maint.mk: correct a diagnostic
[pspp] / ChangeLog
1 2010-04-10  Jim Meyering  <meyering@redhat.com>
2
3         maint.mk: correct a diagnostic
4         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
5         in diagnostic; now use $prohibit.
6
7 2010-04-10  Bruno Haible  <address@hidden>
8
9         fchownat: Fix a C++ test error on Solaris 8.
10         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
11         the function does not exist.
12
13 2010-04-10  Bruno Haible  <bruno@clisp.org>
14
15         vasnprintf: Add more tests.
16         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17         (test_function): Test converting an invalid wide string.
18
19         vasnprintf: Correct handling of unconvertible wide string arguments.
20         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21         VASNPRINTF.
22         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24         smaller than the expected maximum need for the directive. Set errno to
25         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
27         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
28         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29         * modules/vasnprintf (Files): Add m4/printf.m4.
30         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31
32 2010-04-10  Bruno Haible  <bruno@clisp.org>
33
34         vasnprintf: Fix crash in %ls directive.
35         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
36         string is passed as argument to %ls, with no precision and no width.
37         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
38
39 2010-04-10  Bruno Haible  <bruno@clisp.org>
40
41         vasnprintf: Fix multiple test failures on mingw.
42         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
43         _snprintf, or snwprintf, not _snwprintf.
44
45 2010-04-10  Bruno Haible  <bruno@clisp.org>
46
47         write: Fix a C++ test error on mingw.
48         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
49
50 2010-04-10  Bruno Haible  <bruno@clisp.org>
51
52         vasnprintf test: Reduce code duplication.
53         * tests/test-vasnprintf.c (test_function): New function, extracted from
54         test_vasnprintf.
55         (test_vasnprintf, test_asnprintf): Invoke it.
56
57 2010-04-10  Bruno Haible  <bruno@clisp.org>
58
59         strnlen: Fix warning in C++ mode on MacOS X.
60         * lib/string.in.h (strnlen): Use the modern idiom.
61         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
62         defining strnlen as a macro already in <config.h>.
63         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64         REPLACE_STRNLEN.
65         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
66         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67
68 2010-04-08  James Youngman  <jay@gnu.org>
69
70         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
71         the example.
72
73 2010-04-09  Jim Meyering  <meyering@redhat.com>
74
75         maint.mk: print better diagnostic when there is no $(_hv_file)
76         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
77         announce that when $(_hv_file) (aka help-version) does not exist.
78
79         init.sh: run tr in the "C" locale to avoid multibyte interpretation
80         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
81         not try to interpret its random input bytes.  Jarno Rajahalme reported
82         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
83         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
84         (mktempd_): Likewise, just in case.
85
86         ftruncate: add two years to projected module removal date: 2012
87         * m4/ftruncate.m4: Adjust comments.
88
89         ftruncate: mark module as obsolete; even MinGW provides it, now
90         * modules/ftruncate (Status): Obsolete.
91         (Notice): Say that.
92         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
93         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
94
95 2010-04-08  Bruno Haible  <bruno@clisp.org>
96
97         Fix side effects from tests-related modules.
98         * modules/dprintf-posix (Comment): New section.
99         * modules/fprintf-posix (Comment): Likewise.
100         * modules/obstack-printf-posix (Comment): Likewise.
101         * modules/printf-posix (Comment): Likewise.
102         * modules/snprintf-posix (Comment): Likewise.
103         * modules/sprintf-posix (Comment): Likewise.
104         * modules/vasnprintf-posix (Comment): Likewise.
105         * modules/vasprintf-posix (Comment): Likewise.
106         * modules/vdprintf-posix (Comment): Likewise.
107         * modules/vfprintf-posix (Comment): Likewise.
108         * modules/vprintf-posix (Comment): Likewise.
109         * modules/vsnprintf-posix (Comment): Likewise.
110         * modules/vsprintf-posix (Comment): Likewise.
111         * modules/xprintf-posix (Comment): Likewise.
112         * modules/xvasprintf-posix (Comment): Likewise.
113         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
114         * modules/floorf-tests (Depends-on): Likewise.
115         * modules/round-tests (Depends-on): Likewise.
116         * modules/roundf-tests (Depends-on): Likewise.
117         * modules/trunc-tests (Depends-on): Likewise.
118         * modules/truncf-tests (Depends-on): Likewise.
119         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
120         'fprintf-posix' module is not present.
121         * tests/test-floorf2.c (check): Likewise.
122         * tests/test-trunc2.c (check): Likewise.
123         * tests/test-truncf2.c (check): Likewise.
124         * tests/test-round2.c (equal): Likewise.
125         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
126
127 2010-04-07  Karl Berry  <karl@gnu.org>
128
129         * config/srclist.txt,
130         * config/srclistvars.sh,
131         * config/srclist-update: doc fixes.
132
133 2010-04-07  Jim Meyering  <meyering@redhat.com>
134
135         maint.mk: add a PATH crosschecking syntax-check rule
136         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
137         Useful if you use a test like the one in help-version (coreutils,
138         diffutils, grep, gzip) that ensures $(VERSION) matches what is
139         printed by prog --version.
140
141 2010-04-06  Bruno Haible  <bruno@clisp.org>
142
143         Fix link error on mingw.
144         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
145         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
146
147 2010-04-06  Bruno Haible  <bruno@clisp.org>
148
149         Assume rmdir exists.
150         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
151
152 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
153
154         doc: update users.txt
155         * users.txt: Add gcal.
156
157 2010-04-06  Jim Meyering  <meyering@redhat.com>
158
159         init.sh: simply unset TMPDIR rather than risking env -i
160         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
161         although it probably works fine on all Unix-based systems, some
162         systems (Cygwin?) cannot tolerate a totally cleared environment.
163         Suggestion from Eric Blake.
164
165 2010-04-06  Jim Meyering  <meyering@redhat.com>
166
167         init.sh: portability fix: use env's POSIX-specified -i option not -u
168         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
169         than unportable env -u.  Solaris 5.11's env lacks support for -u.
170
171 2010-04-05  Bruno Haible  <bruno@clisp.org>
172
173         btowc: Work around Cygwin 1.7.2 bug.
174         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
175         does not map NUL to 0.
176         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
177
178 2010-04-05  Bruno Haible  <bruno@clisp.org>
179
180         Make the multithread modules work on Cygwin 1.7.2.
181         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
182         imported symbols can be declared weak, so that it returns "no" on
183         Cygwin 1.7.2.
184
185 2010-04-05  Bruno Haible  <bruno@clisp.org>
186
187         Use the module 'strncat'.
188         * modules/unistr/u8-strncat (Depends-on): Add strncat.
189
190         Tests for module 'strncat'.
191         * modules/strncat-tests: New file.
192         * tests/test-strncat.c: New file.
193
194         New module 'strncat'.
195         * lib/string.in.h (strncat): New declaration.
196         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
197         * m4/strncat.m4: New file, based on m4/memchr.m4.
198         * modules/strncat: New file.
199         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
200         is declared.
201         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
202         REPLACE_STRNCAT.
203         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
204         REPLACE_STRNCAT.
205         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
206         module.
207         * tests/test-string-c++.cc: Check signature of strncat.
208
209 2010-04-05  Jim Meyering  <meyering@redhat.com>
210
211         xstrtoumax-tests: convert to use init.sh
212         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
213         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
214         Use Exit, not exit.
215         Remove uses of $EXEEXT and "./" to run a program in the current dir.
216
217         xstrtoimax-tests: convert to use init.sh
218         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
219         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
220         Use Exit, not exit.
221         Remove uses of $EXEEXT and "./" to run a program in the current dir.
222
223 2010-04-05  Bruno Haible  <bruno@clisp.org>
224
225         sys_socket: Avoid #define replacements in C++ mode.
226         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
227         warning to the function if possible, rather than #defining the symbol
228         to a dysfunctional alias.
229
230 2010-04-05  Bruno Haible  <bruno@clisp.org>
231
232         fseeko: Fix C++ test error on mingw.
233         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
234         gl_FUNC_FSEEKO.
235         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
236         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
237         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
238         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
239
240 2010-04-05  Bruno Haible  <bruno@clisp.org>
241
242         duplocale: Improve test output.
243         * tests/test-duplocale.c (main): Print reason for skipped test.
244
245 2010-04-05  Bruno Haible  <bruno@clisp.org>
246
247         Assume rmdir exists.
248         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
249         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
250
251 2010-04-05  Bruno Haible  <bruno@clisp.org>
252
253         Fix link error on Solaris 8 with cc.
254         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
255
256 2010-04-05  Bruno Haible  <bruno@clisp.org>
257
258         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
259         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
260
261 2010-04-05  Bruno Haible  <bruno@clisp.org>
262
263         vasprintf: Update documentation.
264         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
265
266 2010-04-05  Bruno Haible  <bruno@clisp.org>
267
268         ptsname: Improve test.
269         * tests/test-ptsname.c (main): Also try the various master names of BSD
270         systems.
271
272 2010-04-05  Bruno Haible  <bruno@clisp.org>
273
274         memchr: Avoid a possible C++ test error.
275         * lib/string.in.h (memchr): Provide declaration if function is missing.
276         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
277         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
278         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
279         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
280
281 2010-04-05  Bruno Haible  <bruno@clisp.org>
282
283         strtok_r: Improve idiom.
284         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
285         AC_LIBOBJ is used.
286
287 2010-04-05  Bruno Haible  <bruno@clisp.org>
288
289         strdup: Improve idiom.
290         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
291         AC_LIBOBJ is used.
292         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
293         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
294         when AC_LIBOBJ is used.
295
296 2010-04-05  Bruno Haible  <bruno@clisp.org>
297
298         mbsinit, mbrtowc, wcrtomb: Improve idioms.
299         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
300         don't set REPLACE_MBSINIT to 1.
301         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
302         don't set REPLACE_MBRTOWC to 1.
303         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
304         exist, don't set REPLACE_MBSRTOWCS to 1.
305         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
306         exist, don't set REPLACE_MBSNRTOWCS to 1.
307         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
308         don't set REPLACE_WCRTOMB to 1.
309         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
310         exist, don't set REPLACE_WCSRTOMBS to 1.
311         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
312         exist, don't set REPLACE_WCSNRTOMBS to 1.
313
314 2010-04-05  Bruno Haible  <bruno@clisp.org>
315
316         ldexpl: Improve idiom.
317         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
318         make sure to set HAVE_DECL_LDEXPL to 0.
319
320 2010-04-05  Jim Meyering  <meyering@redhat.com>
321
322         xstrtol-tests: convert to use init.sh
323         * modules/xstrtol-tests (Files): Add tests/init.sh.
324         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
325         Use Exit, not exit.
326         Remove uses of $EXEEXT and "./" to run a program in the current dir.
327
328         atexit-tests: convert to use init.sh
329         * modules/atexit-tests (Files): Add tests/init.sh.
330         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
331         Use Exit, not exit.
332         Remove uses of $EXEEXT and "./" to run a program in the current dir.
333
334         init.sh: fix typo
335         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
336
337         init.sh: make it easier for a test script to write to the tty, ...
338         when using automake's parallel-tests mode.
339         * tests/init.sh (stderr_fileno_): Define overridable variable.
340         (warn_): New function, to use it.
341         (fail_, skip_, framework_failure_): Use warn_.
342
343 2010-04-04  Bruno Haible  <bruno@clisp.org>
344
345         btowc: Avoid warning.
346         * lib/btowc.c: Include <stdlib.h>.
347         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
348
349 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
350             Bruno Haible  <bruno@clisp.org>
351
352         wchar: Port to NetBSD 1.5.
353         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
354         * lib/wctype.in.h (WEOF): Likewise.
355
356 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
357             Bruno Haible  <bruno@clisp.org>
358
359         Port extended stdio to NetBSD 1.5.
360         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
361         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
362         older.
363
364 2010-04-04  Bruno Haible  <bruno@clisp.org>
365
366         string: Remove unused substitution.
367         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
368         HAVE_DECL_STRERROR.
369         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
370
371 2010-04-04  Bruno Haible  <bruno@clisp.org>
372
373         strtod: Avoid a possible C++ test error.
374         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
375         set REPLACE_STRTOD.
376
377 2010-04-04  Bruno Haible  <bruno@clisp.org>
378
379         strerror: Update documentation.
380         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
381
382 2010-04-04  Bruno Haible  <bruno@clisp.org>
383
384         stdio: Fix some C++ test errors on Solaris 8 with GCC.
385         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
386         _GL_CXXALIAS_SYS_CAST.
387
388 2010-04-04  Bruno Haible  <bruno@clisp.org>
389
390         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
391         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
392         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
393         REPLACE_FREXPL to 1.
394         * doc/posix-functions/frexpl.texi: Update documentation.
395
396 2010-04-04  Bruno Haible  <bruno@clisp.org>
397
398         math: Fix some C++ test errors on Solaris 8 and Cygwin.
399         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
400
401 2010-04-04  Bruno Haible  <bruno@clisp.org>
402
403         Implement nanosleep for native Windows.
404         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
405
406 2010-04-04  Bruno Haible  <bruno@clisp.org>
407
408         math: Fix some C++ test errors on Solaris 8.
409         * lib/math.in.h (truncf, trunc): Use simpler idiom.
410
411 2010-04-04  Bruno Haible  <bruno@clisp.org>
412
413         math: Fix some C++ test errors on Cygwin.
414         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
415         truncl): Provide declaration if the system does not have it.
416         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
417         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
418         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
419         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
420         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
421         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
422         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
423         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
424         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
425         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
426         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
427         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
428         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
429         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
430         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
431         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
433         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
434         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
435         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
436         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
437         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
438
439 2010-04-04  Bruno Haible  <bruno@clisp.org>
440
441         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
442         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
443         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
444         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
445         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
446         * m4/isinf.m4 (gl_ISINF): Likewise.
447         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
448
449 2010-04-04  Bruno Haible  <bruno@clisp.org>
450
451         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
452         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
453
454 2010-04-04  Bruno Haible  <bruno@clisp.org>
455
456         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
457         * modules/tmpfile (configure.ac): Update.
458
459         tmpfile: Fix C++ test error on mingw.
460         * lib/stdio.in.h (tmpfile): New declaration.
461         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
462         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
463         * modules/tmpfile (Depends-on): Add stdio.
464         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
465         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
466         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
467         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
468         REPLACE_TMPFILE.
469         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
470
471 2010-04-04  Bruno Haible  <bruno@clisp.org>
472
473         ioctl: Fix C++ test error on mingw.
474         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
475         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
476         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
477
478 2010-04-03  Bruno Haible  <bruno@clisp.org>
479
480         wcwidth: Fix C++ test error on mingw.
481         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
482         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
483         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
484
485 2010-04-03  Bruno Haible  <bruno@clisp.org>
486
487         nanosleep: Fix C++ test error on mingw.
488         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
489         * lib/time.in.h (nanosleep): Use modern idiom.
490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
491         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
492         REPLACE_NANOSLEEP to 1.
493         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
494         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
495
496 2010-04-03  Bruno Haible  <bruno@clisp.org>
497
498         strptime: Fix C++ test error on mingw.
499         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
500         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
501         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
502         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
503         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
504         not REPLACE_STRPTIME.
505         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
506         REPLACE_STRPTIME.
507
508 2010-04-03  Bruno Haible  <bruno@clisp.org>
509
510         timegm: Fix C++ test error on mingw.
511         * lib/time.in.h (timegm): Use modern idiom.
512         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
513         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
514         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
515         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
516
517 2010-04-03  Bruno Haible  <bruno@clisp.org>
518
519         timegm: Assume declaration if function exists.
520         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
521         if it exists. Don't clobber ac_cv_func_timegm.
522
523 2010-04-03  Bruno Haible  <bruno@clisp.org>
524
525         time_r: Fix C++ test error on mingw.
526         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
527         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
528         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
529         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
530         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
531
532 2010-04-03  Bruno Haible  <bruno@clisp.org>
533
534         time_r: Minor updates.
535         * modules/time_r (Description): Mention the provided functions.
536         * lib/time_r.c: Don't include <string.h>.
537         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
538         * doc/posix-functions/localtime_r.texi: Likewise.
539
540 2010-04-03  Bruno Haible  <bruno@clisp.org>
541
542         time: Fix regression introduced on 2010-03-08.
543         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
544         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
545
546 2010-04-03  Jim Meyering  <meyering@redhat.com>
547
548         maint.mk: don't silently disable project-specific syntax-check rules
549         * top/maint.mk (_prohibit_regexp): Define, to help people realize
550         that they need to convert their project-specific syntax-check rules
551         to use the new _sc_search_regexp.
552
553 2010-04-03  Bruno Haible  <bruno@clisp.org>
554
555         fchdir: Fix regression introduced on 2010-03-08.
556         * lib/unistd.in.h (fchdir): Fix declaration.
557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
559         REPLACE_FCHDIR.
560         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
561         REPLACE_FCHDIR.
562
563 2010-04-03  Bruno Haible  <bruno@clisp.org>
564
565         getpagesize: Fix C++ test error on mingw.
566         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
567         system does not declare the function.
568         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
569         declared.
570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
571         HAVE_DECL_GETPAGESIZE.
572         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
573
574 2010-04-03  Bruno Haible  <bruno@clisp.org>
575
576         stdio: Make C++ tests work on mingw.
577         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
578         does not declare the function.
579
580 2010-04-03  Bruno Haible  <bruno@clisp.org>
581
582         ftello: Fix C++ test error on mingw.
583         * lib/stdio.in.h (ftello): Use modern idiom.
584         * lib/ftello.c (ftello): Renamed from rpl_ftello.
585         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
586         is missing and that it needs to be replaced.
587         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
589         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
590
591 2010-04-03  Bruno Haible  <bruno@clisp.org>
592
593         fseeko: Fix C++ test error on mingw.
594         * lib/stdio.in.h (fseeko): Use modern idiom.
595         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
596         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
597         is missing and that it needs to be replaced.
598         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
600         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
601
602 2010-04-03  Bruno Haible  <bruno@clisp.org>
603
604         mkstemp: Fix C++ test error on mingw.
605         * lib/stdlib.in.h (mkstemp): Use modern idiom.
606         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
607         function is missing and that it needs to be replaced.
608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
609         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
610
611 2010-04-03  Bruno Haible  <bruno@clisp.org>
612
613         stpncpy: Fix C++ test error on mingw.
614         * lib/string.in.h (stpncpy): Use modern idiom.
615         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
616         function is missing and that it needs to be replaced.
617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
618         REPLACE_STPNCPY.
619         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
620
621 2010-04-03  Bruno Haible  <bruno@clisp.org>
622
623         sys_stat: Fix C++ test error on mingw.
624         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
625         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
626
627 2010-04-03  Bruno Haible  <bruno@clisp.org>
628
629         pty: Update doc.
630         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
631
632 2010-04-03  Bruno Haible  <bruno@clisp.org>
633
634         unistd: Fix C++ test error on mingw.
635         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
636
637 2010-04-03  Bruno Haible  <bruno@clisp.org>
638
639         Update doc regarding mingw.
640         * doc/glibc-functions/openpty.texi: Update regarding mingw.
641         * doc/glibc-functions/login_tty.texi: Likewise.
642         * doc/glibc-functions/forkpty.texi: Likewise.
643
644 2010-04-03  Bruno Haible  <bruno@clisp.org>
645
646         stdlib: Avoid compilation failure of c-strtold on mingw.
647         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
648
649 2010-04-03  Bruno Haible  <bruno@clisp.org>
650
651         locale: Make C++ tests work on Cygwin and mingw.
652         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
653         cannot provide the function.
654         Reported by Simon Josefsson.
655
656 2010-04-03  Bruno Haible  <bruno@clisp.org>
657
658         localename: Port to MacOS X 10.6.
659         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
660         memory layout of the locales in MacOS X 10.6 as well.
661         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
662
663 2010-04-02  Bruno Haible  <bruno@clisp.org>
664
665         gnulib-tool: Ensure that long-running tests are executed last.
666         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
667         running tests after the one for the other tests.
668
669 2010-04-02  Bruno Haible  <bruno@clisp.org>
670
671         gnulib-tool: Ensure the tests in the main directory are executed first.
672         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
673         start with the current directory.
674
675 2010-04-02  Bruno Haible  <bruno@clisp.org>
676
677         Tests for module 'havelib', moved here from GNU gettext.
678         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
679         modifications.
680         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
681         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
682         with modifications.
683         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
684         modifications.
685         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
686         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
687         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
688         with modifications.
689         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
690         with modifications.
691         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
692         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
693         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
694         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
695         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
696         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
697         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
698         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
699         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
700         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
701         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
702         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
703         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
704         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
705         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
706         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
707         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
708         with modifications.
709         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
710         with modifications.
711         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
712         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
713         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
714         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
715         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
716         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
717         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
718         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
719         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
720         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
721         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
722         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
723         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
724         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
725         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
726         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
727         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
728         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
729         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
730         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
731         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
732         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
733         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
734         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
735         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
736         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
737         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
738         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
739         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
740         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
741         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
742         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
743         * tests/havelib/rpathx/rpathx.c: New file, from
744         gettext/autoconf-lib-link.
745         * tests/havelib/rpathx/Makefile.am: New file, from
746         gettext/autoconf-lib-link.
747         * tests/havelib/rpathx/configure.ac: New file, from
748         gettext/autoconf-lib-link with modifications.
749         * tests/havelib/rpathy/rpathy.c: New file, from
750         gettext/autoconf-lib-link.
751         * tests/havelib/rpathy/Makefile.am: New file, from
752         gettext/autoconf-lib-link.
753         * tests/havelib/rpathy/configure.ac: New file, from
754         gettext/autoconf-lib-link with modifications.
755         * tests/havelib/rpathz/rpathz.c: New file, from
756         gettext/autoconf-lib-link.
757         * tests/havelib/rpathz/Makefile.am: New file, from
758         gettext/autoconf-lib-link.
759         * tests/havelib/rpathz/configure.ac: New file, from
760         gettext/autoconf-lib-link with modifications.
761         * tests/havelib/rpathlx/usex.c: New file, from
762         gettext/autoconf-lib-link.
763         * tests/havelib/rpathlx/Makefile.am: New file, from
764         gettext/autoconf-lib-link.
765         * tests/havelib/rpathlx/configure.ac: New file, from
766         gettext/autoconf-lib-link with modifications.
767         * tests/havelib/rpathly/usey.c: New file, from
768         gettext/autoconf-lib-link.
769         * tests/havelib/rpathly/Makefile.am: New file, from
770         gettext/autoconf-lib-link.
771         * tests/havelib/rpathly/configure.ac: New file, from
772         gettext/autoconf-lib-link with modifications.
773         * tests/havelib/rpathlz/usez.c: New file, from
774         gettext/autoconf-lib-link.
775         * tests/havelib/rpathlz/Makefile.am: New file, from
776         gettext/autoconf-lib-link.
777         * tests/havelib/rpathlz/configure.ac: New file, from
778         gettext/autoconf-lib-link with modifications.
779         * tests/havelib/rpathlyx/usey.c: New file, from
780         gettext/autoconf-lib-link.
781         * tests/havelib/rpathlyx/Makefile.am: New file, from
782         gettext/autoconf-lib-link.
783         * tests/havelib/rpathlyx/configure.ac: New file, from
784         gettext/autoconf-lib-link with modifications.
785         * tests/havelib/rpathlzyx/usez.c: New file, from
786         gettext/autoconf-lib-link.
787         * tests/havelib/rpathlzyx/Makefile.am: New file, from
788         gettext/autoconf-lib-link.
789         * tests/havelib/rpathlzyx/configure.ac: New file, from
790         gettext/autoconf-lib-link with modifications.
791         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
792         with modifications.
793
794 2010-04-02  Bruno Haible  <bruno@clisp.org>
795
796         gnulib-tool: Create distributed built sources also for the tests.
797         * gnulib-tool (func_create_testdir): Also generate distributed built
798         sources in the tests directory.
799
800 2010-04-02  Bruno Haible  <bruno@clisp.org>
801
802         gnulib-tool: Obey user's environment variables.
803         * gnulib-tool (func_create_testdir): When creating built sources,
804         respect the environment variables for autoconf, automake, etc. given by
805         the user.
806
807 2010-04-02  Bruno Haible  <bruno@clisp.org>
808
809         gnulib-tool: Provide the value of --m4-base to modules.
810         * gnulib-tool (func_import, func_create_testdir): Emit a definition
811         of gl_m4_base.
812
813 2010-04-02  Eric Blake  <eblake@redhat.com>
814
815         maint.mk: fix some fallout
816         * NEWS: Document the incompatible change, and its effect on cfg.mk.
817         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
818
819 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
820
821         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
822         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
823         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
824         (sc_cast_of_x_alloc_return_value): Likewise.
825         (sc_cast_of_alloca_return_value): Likewise.
826         (sc_space_tab): Likewise.
827         (sc_prohibit_atoi_atof): Likewise.
828         (sc_prohibit_magic_number_exit): Likewise.
829         (sc_error_exit_success): Likewise.
830         (sc_file_system): Likewise.
831         (sc_prohibit_have_config_h): Likewise.
832         (sc_require_config_h): Likewise.
833         (sc_prohibit_HAVE_MBRTOWC): Likewise.
834         (sc_obsolete_symbols): Likewise.
835         (sc_changelog): Likewise.
836         (sc_program_name): Likewise.
837         (sc_the_the): Likewise.
838         (sc_trailing_blank): Likewise.
839         (sc_two_space_separator_in_usage): Likewise.
840         (sc_useless_cpp_parens): Likewise.
841         (sc_GPL_version): Likewise.
842         (sc_GFDL_version): Likewise.
843         (sc_texinfo_acronym): Likewise.
844         (sc_prohibit_cvs_keyword): Likewise.
845         (sc_prohibit_stat_st_blocks): Likewise.
846         (sc_prohibit_S_IS_definition): Likewise.
847         (sc_redundant_const): Likewise.
848         (sc_makefile_TAB_only_indentation): Likewise.
849         (sc_m4_quote_check): Likewise.
850         (sc_makefile_path_separator_check): Likewise.
851         (sc_copyright_check): Likewise.
852         (sc_Wundef_boolean): Likewise.
853         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
854
855         maint.mk: match 0 or more whitespace-before-function-call '('
856         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
857         that have zero or two-and-more spaces between the function name
858         and the open parenthesis.
859         (sc_error_message_warn_fatal): Likewise.
860         (sc_error_message_uppercase): Likewise.
861         (sc_error_message_period): Likewise.
862
863 2010-03-31  Eric Blake  <eblake@redhat.com>
864
865         maint.mk: check for [ as well as test
866         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
867         Based on a libvirt report by Matthias Bolte.
868
869         gnumakefile: don't squelch _version output
870         * top/GNUmakefile (_version): Create one-shot dependency rather
871         than using $(shell) when version must be regenerated.
872         (_autoreconf): Run verbosely, by default.
873
874         sys_time: avoid compiler warnings
875         * lib/sys_time.in.h (includes): Ensure gcc pragma is
876         unconditional, fixing regression from 2010-03-29.
877         Reported by Simon Josefsson.
878
879 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
880
881         maint.mk: s/_header_without_use/_sc_header_without_use/
882         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
883         (sc_prohibit_assert_without_use): Use the new name.
884         (sc_prohibit_close_stream_without_use): Likewise.
885         (sc_prohibit_getopt_without_use): Likewise.
886         (sc_prohibit_quotearg_without_use): Likewise.
887         (sc_prohibit_quote_without_use): Likewise.
888         (sc_prohibit_long_options_without_use): Likewise.
889         (sc_prohibit_inttostr_without_use): Likewise.
890         (sc_prohibit_ignore_value_without_use): Likewise.
891         (sc_prohibit_error_without_use): Likewise.
892         (sc_prohibit_xalloc_without_use): Likewise.
893         (sc_prohibit_hash_without_use): Likewise.
894         (sc_prohibit_hash_pjw_without_use): Likewise.
895         (sc_prohibit_safe_read_without_use): Likewise.
896         (sc_prohibit_argmatch_without_use): Likewise.
897         (sc_prohibit_canonicalize_without_use): Likewise.
898         (sc_prohibit_root_dev_ino_without_use): Likewise.
899         (sc_prohibit_openat_without_use): Likewise.
900         (sc_prohibit_c_ctype_without_use): Likewise.
901         (sc_prohibit_signal_without_use): Likewise.
902         (sc_prohibit_intprops_without_use): Likewise.
903
904 2010-03-30  Eric Blake  <eblake@redhat.com>
905
906         maint: improve module indicators
907         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
908         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
909         columns, and avoid extra macro expansion.
910
911         fdopendir: work around FreeBSD bug
912         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
913         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
914         * modules/dirent (Makefile.am): Substitute it.
915         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
916         declaration.
917         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
918         fix.
919         Reported by Christian Weisgerber <naddy@mips.inka.de>.
920
921 2010-03-29  Bruno Haible  <bruno@clisp.org>
922
923         Emit #pragma system_header after the inclusion guard, not before.
924         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
925         guard that spans the entire file, not before. This enables an
926         optimization in GCC's preprocessor.
927         * lib/ctype.in.h: Likewise.
928         * lib/dirent.in.h: Likewise.
929         * lib/errno.in.h: Likewise.
930         * lib/float.in.h: Likewise.
931         * lib/getopt.in.h: Likewise.
932         * lib/iconv.in.h: Likewise.
933         * lib/langinfo.in.h: Likewise.
934         * lib/locale.in.h: Likewise.
935         * lib/math.in.h: Likewise.
936         * lib/netdb.in.h: Likewise.
937         * lib/netinet_in.in.h: Likewise.
938         * lib/pty.in.h: Likewise.
939         * lib/sched.in.h: Likewise.
940         * lib/se-selinux.in.h: Likewise.
941         * lib/search.in.h: Likewise.
942         * lib/spawn.in.h: Likewise.
943         * lib/stdarg.in.h: Likewise.
944         * lib/stdint.in.h: Likewise.
945         * lib/string.in.h: Likewise.
946         * lib/strings.in.h: Likewise.
947         * lib/sys_file.in.h: Likewise.
948         * lib/sys_ioctl.in.h: Likewise.
949         * lib/sys_time.in.h: Likewise.
950         * lib/sys_times.in.h: Likewise.
951         * lib/sys_utsname.in.h: Likewise.
952         * lib/sys_wait.in.h: Likewise.
953         * lib/sysexits.in.h: Likewise.
954         * lib/wctype.in.h: Likewise.
955
956 2010-03-28  James Youngman  <jay@gnu.org>
957
958         save-cwd: don't leak a file descriptor when the caller execs.
959         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
960         saved file descriptor.
961         * modules/save-cwd (Depends-on): Depend on cloexec.
962
963 2010-03-29  Bruno Haible  <bruno@clisp.org>
964
965         Remove vestiges of fts-lgpl module.
966         * lib/fts_.h: Assume GNULIB_FTS is 1.
967         * lib/fts.c: Likewise.
968         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
969
970 2010-03-28  Bruno Haible  <bruno@clisp.org>
971
972         Fix definition of tests witness macro.
973         * gnulib-tool (func_import): Fix definition of witness macro.
974
975 2010-03-28  Bruno Haible  <bruno@clisp.org>
976
977         Fix ioctl's protoype on glibc systems.
978         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
979         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
980         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
981         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
982         signature. If not, arrange to replace the ioctl function.
983         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
984         REPLACE_IOCTL.
985         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
986         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
987         Reported by Ludovic Courtès <ludo@gnu.org>.
988
989 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
990
991         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
992         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
993         made it so grep -r --include=GLOB* ... did not work.
994
995 2010-03-26  Jim Meyering  <meyering@redhat.com>
996             Eric Blake  <eblake@redhat.com>
997
998         maint.mk: prohibit use of test's -o and -a operators
999         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
1000
1001 2010-03-28  Bruno Haible  <bruno@clisp.org>
1002
1003         Remove unused GNULIB_XYZ macro definitions.
1004         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
1005         invocation.
1006
1007 2010-03-28  Bruno Haible  <bruno@clisp.org>
1008
1009         Mark privileged tests modules.
1010         * modules/idpriv-drop-tests (Status): New section.
1011         * modules/idpriv-droptemp-tests (Status): New section.
1012
1013 2010-03-28  Bruno Haible  <bruno@clisp.org>
1014
1015         Split C++ tests into separate tests modules.
1016         * modules/dirent-c++-tests: New file, extracted from
1017         modules/dirent-tests.
1018         * modules/dirent-tests: Depend on it.
1019         * modules/fcntl-h-c++-tests: New file, extracted from
1020         modules/fcntl-h-tests.
1021         * modules/fcntl-h-tests: Depend on it.
1022         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
1023         * modules/glob-tests: Depend on it.
1024         * modules/iconv-h-c++-tests: New file, extracted from
1025         modules/iconv-h-tests.
1026         * modules/iconv-h-tests: Depend on it.
1027         * modules/langinfo-c++-tests: New file, extracted from
1028         modules/langinfo-tests.
1029         * modules/langinfo-tests: Depend on it.
1030         * modules/locale-c++-tests: New file, extracted from
1031         modules/locale-tests.
1032         * modules/locale-tests: Depend on it.
1033         * modules/math-c++-tests: New file, extracted from modules/math-tests.
1034         * modules/math-tests: Depend on it.
1035         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
1036         * modules/pty-tests: Depend on it.
1037         * modules/search-c++-tests: New file, extracted from
1038         modules/search-tests.
1039         * modules/search-tests: Depend on it.
1040         * modules/signal-c++-tests: New file, extracted from
1041         modules/signal-tests.
1042         * modules/signal-tests: Depend on it.
1043         * modules/spawn-c++-tests: New file, extracted from
1044         modules/spawn-tests.
1045         * modules/spawn-tests: Depend on it.
1046         * modules/stdio-c++-tests: New file, extracted from
1047         modules/stdio-tests.
1048         * modules/stdio-tests: Depend on it.
1049         * modules/stdlib-c++-tests: New file, extracted from
1050         modules/stdlib-tests.
1051         * modules/stdlib-tests: Depend on it.
1052         * modules/string-c++-tests: New file, extracted from
1053         modules/string-tests.
1054         * modules/string-tests: Depend on it.
1055         * modules/sys_ioctl-c++-tests: New file, extracted from
1056         modules/sys_ioctl-tests.
1057         * modules/sys_ioctl-tests: Depend on it.
1058         * modules/sys_select-c++-tests: New file, extracted from
1059         modules/sys_select-tests.
1060         * modules/sys_select-tests: Depend on it.
1061         * modules/sys_socket-c++-tests: New file, extracted from
1062         modules/sys_socket-tests.
1063         * modules/sys_socket-tests: Depend on it.
1064         * modules/sys_stat-c++-tests: New file, extracted from
1065         modules/sys_stat-tests.
1066         * modules/sys_stat-tests: Depend on it.
1067         * modules/sys_time-c++-tests: New file, extracted from
1068         modules/sys_time-tests.
1069         * modules/sys_time-tests: Depend on it.
1070         * modules/time-c++-tests: New file, extracted from modules/time-tests.
1071         * modules/time-tests: Depend on it.
1072         * modules/unistd-c++-tests: New file, extracted from
1073         modules/unistd-tests.
1074         * modules/unistd-tests: Depend on it.
1075         * modules/wchar-c++-tests: New file, extracted from
1076         modules/wchar-tests.
1077         * modules/wchar-tests: Depend on it.
1078         * modules/wctype-c++-tests: New file, extracted from
1079         modules/wctype-tests.
1080         * modules/wctype-tests: Depend on it.
1081         Reported by Simon Josefsson.
1082
1083 2010-03-28  Bruno Haible  <bruno@clisp.org>
1084
1085         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
1086         * gnulib-tool (func_exists_module): New function, extracted from
1087         func_verify_module.
1088         (func_verify_module): Use it.
1089         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
1090         'foo' only if 'foo' exists.
1091         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
1092         module.
1093
1094 2010-03-28  Bruno Haible  <bruno@clisp.org>
1095
1096         gnulib-tool: Add support for special categories of tests.
1097         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
1098         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
1099         (func_usage): Document them.
1100         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
1101         inc_unportable_tests, inc_all_tests): New variables.
1102         (func_acceptable): Consider these variables.
1103         (func_modules_transitive_closure): Make it work when the 'Status' field
1104         consists of multiple words.
1105         (func_import): Store and restore the values of inc_cxx_tests,
1106         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
1107         inc_all_tests in gnulib-comp.m4.
1108         (func_create_testdir): Set inc_all_tests to true.
1109         * doc/gnulib.texi (Extra tests modules): New section.
1110         Suggested by Jim Meyering.
1111
1112 2010-03-28  Bruno Haible  <bruno@clisp.org>
1113
1114         ansi-c++-opt: Allow turning off the C++ build by default.
1115         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
1116         gl_CXX_CHOICE_DEFAULT_NO is defined.
1117         Requested by Eric Blake.
1118
1119 2010-03-28  Bruno Haible  <bruno@clisp.org>
1120
1121         unistd: Avoid #define replacements in C++ mode.
1122         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1123         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1124         setsockopt, shutdown, select): In C++, attach a warning to the function
1125         if possible, rather than #defining the symbol to a dysfunctional alias.
1126         Reported by John W. Eaton <jwe@gnu.org>.
1127
1128 2010-03-28  Bruno Haible  <bruno@clisp.org>
1129
1130         Fix link errors on mingw.
1131         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
1132         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
1133         $(LIBSOCKET).
1134         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
1135         $(LIBSOCKET).
1136
1137 2010-03-28  Bruno Haible  <bruno@clisp.org>
1138             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1139
1140         lib-ignore: Determine different options for different compilers.
1141         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
1142         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
1143         Add comments.
1144         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
1145         * NEWS: Mention the change.
1146
1147 2010-03-27  Bruno Haible  <bruno@clisp.org>
1148
1149         Remove unused GNULIB_XYZ macro definitions.
1150         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1151         * modules/fseek (configure.ac): Likewise.
1152         * modules/ioctl (configure.ac): Likewise.
1153         * modules/open (configure.ac): Likewise.
1154         * modules/stdlib-safer (configure.ac): Likewise.
1155
1156 2010-03-27  Bruno Haible  <bruno@clisp.org>
1157
1158         Add a remark about certain modules.
1159         * modules/malloc (Comment): New section.
1160         * modules/realloc (Comment): Likewise.
1161         * modules/sigpipe (Comment): Likewise.
1162
1163 2010-03-27  Bruno Haible  <bruno@clisp.org>
1164
1165         Resolve conflict between the two kinds of module indicators.
1166         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
1167         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
1168         * modules/canonicalize (configure.ac): Invoke
1169         gl_MODULE_INDICATOR_FOR_TESTS.
1170         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
1171         GNULIB_XYZ.
1172         * tests/test-dirent-c++.cc: Likewise.
1173         * tests/test-dirent-safer.c: Likewise.
1174         * tests/test-dup2.c: Likewise.
1175         * tests/test-fchdir.c: Likewise.
1176         * tests/test-fcntl-h-c++.cc: Likewise.
1177         * tests/test-getopt.c: Likewise.
1178         * tests/test-getopt.h: Likewise.
1179         * tests/test-langinfo-c++.cc: Likewise.
1180         * tests/test-locale-c++.cc: Likewise.
1181         * tests/test-math-c++.cc: Likewise.
1182         * tests/test-pty-c++.cc: Likewise.
1183         * tests/test-search-c++.cc: Likewise.
1184         * tests/test-signal-c++.cc: Likewise.
1185         * tests/test-spawn-c++.cc: Likewise.
1186         * tests/test-stdio-c++.cc: Likewise.
1187         * tests/test-stdlib-c++.cc: Likewise.
1188         * tests/test-string-c++.cc: Likewise.
1189         * tests/test-sys_ioctl-c++.cc: Likewise.
1190         * tests/test-sys_select-c++.cc: Likewise.
1191         * tests/test-sys_socket-c++.cc: Likewise.
1192         * tests/test-sys_stat-c++.cc: Likewise.
1193         * tests/test-sys_time-c++.cc: Likewise.
1194         * tests/test-time-c++.cc: Likewise.
1195         * tests/test-unistd-c++.cc: Likewise.
1196         * tests/test-wchar-c++.cc: Likewise.
1197         * tests/uninorm/test-u8-nfc.c: Likewise.
1198         * tests/uninorm/test-u8-nfd.c: Likewise.
1199         * tests/uninorm/test-u8-nfkc.c: Likewise.
1200         * tests/uninorm/test-u8-nfkd.c: Likewise.
1201         * tests/uninorm/test-u16-nfc.c: Likewise.
1202         * tests/uninorm/test-u16-nfd.c: Likewise.
1203         * tests/uninorm/test-u16-nfkc.c: Likewise.
1204         * tests/uninorm/test-u16-nfkd.c: Likewise.
1205         * tests/uninorm/test-u32-nfc.c: Likewise.
1206         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1207         * tests/uninorm/test-u32-nfd.c: Likewise.
1208         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1209         * tests/uninorm/test-u32-nfkc.c: Likewise.
1210         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1211         * tests/uninorm/test-u32-nfkd.c: Likewise.
1212         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1213         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1214
1215 2010-03-27  Bruno Haible  <bruno@clisp.org>
1216
1217         Distinguish two kinds of module indicators.
1218         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1219         gl_MODULE_INDICATOR.
1220         (gl_MODULE_INDICATOR): New macro.
1221         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1222         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1223         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1224         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1225         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1226         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1227         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1228         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1229         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1230         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1231         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1232         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1234         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1235         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1236         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1237         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1238         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1239         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1240         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1241         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1242         * modules/cloexec (configure.ac): Likewise.
1243         * modules/getopt-gnu (configure.ac): Likewise.
1244         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1245         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1246         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1247         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1248
1249 2010-03-27  Bruno Haible  <bruno@clisp.org>
1250
1251         New module description field 'Comment'.
1252         * gnulib-tool: New option --extract-comment.
1253         (func_usage): Document it.
1254         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1255         (func_get_comment): New function.
1256         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1257
1258 2010-03-27  Bruno Haible  <bruno@clisp.org>
1259
1260         Addendum to 2010-02-07 commit.
1261         * gnulib-tool (func_usage): Document --extract-applicability option.
1262
1263 2010-03-27  Bruno Haible  <bruno@clisp.org>
1264
1265         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1266         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1267         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1268         rather than link errors.
1269
1270 2010-03-27  Bruno Haible  <bruno@clisp.org>
1271
1272         Avoid side effects from tests-related modules on the compilation of lib.
1273         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1274         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1275         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1276         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1277         macro.
1278         (func_import): Define a witness macro. Assign it a value that depends
1279         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1280         tests-related modules.
1281         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1282         Reported by Jim Meyering.
1283
1284 2010-03-27  Bruno Haible  <bruno@clisp.org>
1285
1286         Factorize common .m4 code.
1287         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1288         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1289         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1290         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1291         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1292         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1293         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1294         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1295         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1296         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1297         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1298         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1299         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1300         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1301         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1302         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1303         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1304         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1305         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1306         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1307         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1308         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1309         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1310         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1311         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1312         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1313         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1314         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1315         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1316         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1317         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1318         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1319
1320 2010-03-27  Bruno Haible  <bruno@clisp.org>
1321
1322         Fix a compilation error on Cygwin with g++ >= 4.3.
1323         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1324         if it is undefined or if we alias it to chmod.
1325         (lstat): Don't warn about the use of this function if it is undefined
1326         or if we alias it to stat.
1327         Reported by Simon Josefsson.
1328
1329 2010-03-27  Bruno Haible  <bruno@clisp.org>
1330
1331         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1332         * modules/getlogin (configure.ac): Update.
1333
1334         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1335         * modules/getlogin_r (configure.ac): Update.
1336
1337         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1338         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1339         * modules/inet_ntop (configure.ac): Update.
1340
1341         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1342         * modules/inet_pton (configure.ac): Update.
1343
1344         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1345         * modules/mbslen (configure.ac): Update.
1346
1347         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1348         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1349         * modules/forkpty (configure.ac): Update.
1350         * modules/openpty (configure.ac): Update.
1351
1352 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1353
1354         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1355         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1356
1357 2010-03-25  Eric Blake  <eblake@redhat.com>
1358
1359         maint: use pragma consistently across replacement headers
1360         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1361         * lib/dirent.in.h (system_header): Likewise.
1362         * lib/errno.in.h (system_header): Likewise.
1363         * lib/float.in.h (system_header): Likewise.
1364         * lib/getopt.in.h (system_header): Likewise.
1365         * lib/iconv.in.h (system_header): Likewise.
1366         * lib/inttypes.in.h (system_header): Likewise.
1367         * lib/langinfo.in.h (system_header): Likewise.
1368         * lib/locale.in.h (system_header): Likewise.
1369         * lib/math.in.h (system_header): Likewise.
1370         * lib/netdb.in.h (system_header): Likewise.
1371         * lib/netinet_in.in.h (system_header): Likewise.
1372         * lib/pty.in.h (system_header): Likewise.
1373         * lib/sched.in.h (system_header): Likewise.
1374         * lib/se-selinux.in.h (system_header): Likewise.
1375         * lib/search.in.h (system_header): Likewise.
1376         * lib/spawn.in.h (system_header): Likewise.
1377         * lib/stdarg.in.h (system_header): Likewise.
1378         * lib/stdint.in.h (system_header): Likewise.
1379         * lib/string.in.h (system_header): Likewise.
1380         * lib/strings.in.h (system_header): Likewise.
1381         * lib/sys_file.in.h (system_header): Likewise.
1382         * lib/sys_ioctl.in.h (system_header): Likewise.
1383         * lib/sys_socket.in.h (system_header): Likewise.
1384         * lib/sys_times.in.h (system_header): Likewise.
1385         * lib/sys_utsname.in.h (system_header): Likewise.
1386         * lib/sys_wait.in.h (system_header): Likewise.
1387         * lib/sysexits.in.h (system_header): Likewise.
1388         * lib/unistd.in.h (system_header): Likewise.
1389         * lib/wctype.in.h (system_header): Likewise.
1390
1391         arpa/inet: fix mingw compilation warning
1392         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1393         Reported by Matthew Bolte.
1394
1395 2010-03-25  Bruno Haible  <bruno@clisp.org>
1396
1397         Avoid collision between gnulib wrapper and libintl wrapper.
1398         * lib/printf.c (printf): Don't define if a printf wrapper is already
1399         defined in intl/printf.c.
1400         Reported by Michel Boaventura <michel@michelboaventura.com>.
1401
1402 2010-03-25  Bruno Haible  <bruno@clisp.org>
1403
1404         Use ANSI C.
1405         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1406
1407 2010-03-25  Bruno Haible  <bruno@clisp.org>
1408
1409         Minor formatting changes.
1410         * lib/acosl.c: Insert space before function argument list.
1411         * lib/argz.c: Likewise.
1412         * lib/asinl.c: Likewise.
1413         * lib/expl.c: Likewise.
1414         * lib/gen-uni-tables.c: Likewise.
1415         * lib/gettext.h: Likewise.
1416         * lib/glthread/lock.h: Likewise.
1417         * lib/tanl.c: Likewise.
1418         * lib/uniname/uniname.c: Likewise.
1419         * tests/test-idpriv-drop.c: Likewise.
1420         * tests/test-idpriv-droptemp.c: Likewise.
1421         * tests/test-lock.c: Likewise.
1422         * tests/test-tls.c: Likewise.
1423         * lib/argp-help.c: Insert space before function-like macro argument
1424         list.
1425         * lib/memcmp.c: Likewise.
1426         * tests/test-base64.c: Likewise.
1427         * lib/localename.c: Insert space before sizeof's argument list.
1428         * lib/safe-alloc.h: Likewise.
1429         * lib/file-set.h: Insert space before macro argument list.
1430         * tests/test-argp.c: Likewise.
1431         * lib/argp-namefrob.h: Insert space before function parameter list.
1432         * lib/getaddrinfo.c: Likewise.
1433         * lib/netdb.in.h: Likewise.
1434         * lib/parse-duration.h: Likewise.
1435         * lib/parse-duration.c: Likewise.
1436         * lib/poll.c: Likewise.
1437         * lib/select.c: Likewise.
1438         * lib/trim.h: Likewise.
1439         * tests/test-usleep.c: Likewise.
1440         * lib/ldexpl.c: Insert space before function parameter list and before
1441         function argument list.
1442         * lib/logl.c: Likewise.
1443         * lib/sqrtl.c: Likewise.
1444         * lib/trim.c: Likewise.
1445         * lib/cosl.c: Use GNU style indentation. Insert space before function
1446         argument list.
1447         * lib/sinl.c: Likewise.
1448         * lib/tsearch.c: Insert space after 'for'.
1449         Reported by Jim Meyering.
1450
1451 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1452
1453         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1454         config header before grepping, as it's not present before
1455         autoreconf/configure are run.  Reported by Simon Josefsson.
1456
1457 2010-03-23  Bruno Haible  <bruno@clisp.org>
1458
1459         pt_chown: Make it work with automake < 1.11.
1460         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1461         Reported by Simon Josefsson.
1462
1463 2010-03-23  Bruno Haible  <bruno@clisp.org>
1464
1465         pt_chown: Don't depend on GPLed modules.
1466         * lib/pt_chown.c: Don't include idpriv.h.
1467         (main): Don't drop privileges.
1468         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1469         Reported by Simon Josefsson.
1470
1471 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1472
1473         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1474         suggestions from karl@freefriends.org (Karl Berry).
1475
1476 2010-03-22  Eric Blake  <eblake@redhat.com>
1477
1478         gethostname: further tweaks
1479         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1480         are overriding gethostname.
1481         Suggested by Bruno Haible.
1482
1483 2010-03-21  Bruno Haible  <bruno@clisp.org>
1484
1485         Fix comments.
1486         * lib/forkpty.c (rpl_forkpty): Fix comment.
1487         * lib/openpty.c (rpl_openpty): Likewise.
1488         Reported by Eric Blake.
1489
1490 2010-03-22  Eric Blake  <eblake@redhat.com>
1491
1492         gethostname: fix build on mingw
1493         * lib/unistd.in.h (includes): Work around fact that mingw
1494         <winsock2.h> re-includes <unistd.h>, by avoiding any
1495         redeclarations if we are being included by <winsock2.h>.
1496         Reported by Matthias Bolte.
1497
1498 2010-03-21  Bruno Haible  <bruno@clisp.org>
1499
1500         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1501         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1502         modifications.
1503         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1504         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1505         provide the replacement.
1506         * modules/forkpty (Depends-on): Add openpty, login_tty.
1507         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1508         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1509         * doc/glibc-functions/forkpty.texi: More supported platforms.
1510         * config/srclist.txt: Add forkpty.c (commented).
1511
1512 2010-03-21  Bruno Haible  <bruno@clisp.org>
1513
1514         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1515         (Makefile.am): Verify that PTY_LIB is defined.
1516
1517         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1518
1519 2010-03-21  Bruno Haible  <bruno@clisp.org>
1520
1521         Tests for module 'login_tty'.
1522         * modules/login_tty-tests: New file.
1523         * tests/test-login_tty.c: New file.
1524
1525         New module 'login_tty'.
1526         * lib/login_tty.c: New file.
1527         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1528         * modules/login_tty: New file.
1529         * doc/glibc-functions/login_tty.texi: Mention the new module.
1530
1531 2010-03-21  Bruno Haible  <bruno@clisp.org>
1532
1533         login_tty: Documentation.
1534         * doc/glibc-functions/login_tty.texi: New file.
1535         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1536
1537 2010-03-21  Bruno Haible  <bruno@clisp.org>
1538
1539         pty: Consistent macro naming.
1540         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1541         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1542         * modules/pty (configure.ac): Update.
1543
1544 2010-03-21  Bruno Haible  <bruno@clisp.org>
1545
1546         Tests for openpty: Make stricter.
1547         * tests/test-openpty.c (main): Add test of canonical processing and
1548         erase.
1549         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1550
1551         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1552         * lib/openpty.c (openpty): New replacement function.
1553         * lib/pty.in.h: Include <termios.h>.
1554         (openpty): Update declaration. Add comments.
1555         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1556         is not declared, arrange to provide the replacement. Check for _getpty
1557         and posix_openpt.
1558         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1559         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1560         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1561         * modules/pty-tests (test_pty_c___LDADD): New variable.
1562         * doc/glibc-functions/openpty.texi: More supported platforms.
1563
1564 2010-03-21  Bruno Haible  <bruno@clisp.org>
1565
1566         setenv: Tweaks.
1567         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1568         the test program.
1569         * doc/posix-functions/setenv.texi: Update platforms list.
1570
1571 2010-03-21  Bruno Haible  <bruno@clisp.org>
1572
1573         New module 'unlockpt'.
1574         * lib/unlockpt.c: New file, from glibc with modifications.
1575         * m4/unlockpt.m4: New file.
1576         * modules/unlockpt: New file.
1577         * lib/stdlib.in.h (unlockpt): New declaration.
1578         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1579         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1580         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1581         HAVE_UNLOCKPT.
1582         * doc/posix-functions/unlockpt.texi: Mention the new module.
1583         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1584         * config/srclist.txt: Add unlockpt.c (commented).
1585
1586 2010-03-21  Jim Meyering  <meyering@redhat.com>
1587
1588         maint.mk: prohibit inclusion of "intprops.h" without use
1589         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1590
1591 2010-03-21  Bruno Haible  <bruno@clisp.org>
1592
1593         New module 'grantpt'.
1594         * lib/grantpt.c: New file, from glibc with modifications.
1595         * m4/grantpt.m4: New file.
1596         * modules/grantpt: New file.
1597         * lib/stdlib.in.h (grantpt): New declaration.
1598         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1599         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1600         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1601         HAVE_GRANTPT.
1602         * doc/posix-functions/grantpt.texi: Mention the new module.
1603         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1604         * config/srclist.txt: Add grantpt.c (commented).
1605
1606 2010-03-21  Bruno Haible  <bruno@clisp.org>
1607
1608         New module 'pt_chown'.
1609         * lib/pt_chown.c: New file, from glibc with modifications.
1610         * lib/pty-private.h: New file, from glibc with modifications.
1611         * modules/pt_chown: New file.
1612         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1613
1614 2010-03-21  Bruno Haible  <bruno@clisp.org>
1615
1616         Tests for module 'ptsname'.
1617         * modules/ptsname-tests: New file.
1618         * tests/test-ptsname.c: New file.
1619
1620         New module 'ptsname'.
1621         * lib/ptsname.c: New file, from glibc with modifications.
1622         * m4/ptsname.m4: New file.
1623         * modules/ptsname: New file.
1624         * lib/stdlib.in.h (ptsname): New declaration.
1625         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1626         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1627         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1628         HAVE_PTSNAME.
1629         * doc/posix-functions/ptsname.texi: Mention the new module.
1630         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1631         * config/srclist.txt: Add ptsname.c (commented).
1632
1633 2010-03-21  Bruno Haible  <bruno@clisp.org>
1634
1635         Tests for module 'ttyname_r'.
1636         * modules/ttyname_r-tests: New file.
1637         * tests/test-ttyname_r.c: New file.
1638
1639         New module 'ttyname_r'.
1640         * lib/ttyname_r.c: New file.
1641         * m4/ttyname_r.m4: New file.
1642         * modules/ttyname_r: New file.
1643         * lib/unistd.in.h (ttyname_r): New declaration.
1644         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1645         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1646         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1647         HAVE_TTYNAME_R.
1648         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1649         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1650
1651 2010-03-20  Bruno Haible  <bruno@clisp.org>
1652
1653         signal: Undefine macro definitions in C++ mode.
1654         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1655         sigfillset): Undefine macro definitions from the system header in C++
1656         mode.
1657         Reported by John W. Eaton <jwe@gnu.org>.
1658
1659 2010-03-20  Bruno Haible  <bruno@clisp.org>
1660
1661         Ensure no #include statements inside extern "C" { ... }.
1662         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1663         contain #include statements.
1664         * lib/time.in.h: Likewise.
1665
1666 2010-03-20  Bruno Haible  <bruno@clisp.org>
1667
1668         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1669         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1670         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1671         Reported by John W. Eaton <jwe@gnu.org>.
1672
1673 2010-03-20  Bruno Haible  <bruno@clisp.org>
1674
1675         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1676         Reported by Jim Meyering.
1677
1678 2010-03-20  Bruno Haible  <bruno@clisp.org>
1679
1680         pipe: Set errno upon failure.
1681         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1682         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1683         errno value in error message.
1684
1685 2010-03-20  Bruno Haible  <bruno@clisp.org>
1686             Jim Meyering  <meyering@redhat.com>
1687
1688         lchown: Avoid "unused variable" warning.
1689         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1690
1691 2010-03-20  Bruno Haible  <bruno@clisp.org>
1692
1693         Work around unlink() bug on MacOS X 10.5.6.
1694         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1695         attempting to unlink a parent directory.
1696         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1697         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1698         activate for the replacement function.
1699         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1700
1701 2010-03-20  Bruno Haible  <bruno@clisp.org>
1702
1703         Fix link errors on Solaris 8.
1704         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1705         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1706
1707 2010-03-19  Jim Meyering  <meyering@redhat.com>
1708
1709         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1710         The _LIBC implementation of build_range_exp correctly honors the
1711         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1712         However, the non-_LIBC implementation would ignore that syntax-bit
1713         flag and return REG_ERANGE unconditionally.
1714         This change makes it honor that flag.
1715         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1716         Make two pointer parameters "const".
1717         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1718         (parse_bracket_exp): Update caller.
1719
1720         regex.m4: correct the reversed range endpoint ([b-a]) test
1721         * m4/regex.m4: When requiring that [b-a] evoke failure,
1722         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1723         test pass once again for x86-based systems.
1724
1725 2010-03-19  Bruno Haible  <bruno@clisp.org>
1726
1727         scandir: Fix link error on Solaris 8.
1728         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1729         macros.
1730
1731 2010-03-19  Bruno Haible  <bruno@clisp.org>
1732
1733         getusershell: Fix documentation.
1734         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1735         module.
1736         * doc/glibc-functions/setusershell.texi: Likewise.
1737
1738         getusershell: Provide declaration, missing on Solaris 9.
1739         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1740         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1741         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1742         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1744         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1745         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1746         HAVE_GETUSERSHELL.
1747         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1748
1749 2010-03-19  Bruno Haible  <bruno@clisp.org>
1750
1751         wctype: Provide iswblank function.
1752         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1753         exists and is fine.
1754         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1755         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1756         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1757         * doc/posix-functions/iswblank.texi: Update.
1758
1759 2010-03-19  Bruno Haible  <bruno@clisp.org>
1760
1761         Tests of module 'pty' in C++ mode.
1762         * modules/pty-tests: New file.
1763         * tests/test-pty-c++.cc: New file.
1764         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1765
1766 2010-03-19  Eric Blake  <eblake@redhat.com>
1767
1768         logb: fix documentation
1769         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1770         1.5 declaration bug.
1771
1772         forkpty, openpty: prefer glibc's const-safe prototype
1773         * lib/forkpty.c (rpl_forkpty): New file.
1774         * lib/openpty.c (rpl_openpty): Likewise.
1775         * modules/forkpty (Files): Distribute it.
1776         * modules/openpty (Files): Likewise.
1777         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1778         check...
1779         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1780         replacement for for non-const BSD signature.
1781         * modules/pty (Makefile.am): Substitute witnesses.
1782         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1783         * tests/test-forkpty.c: Update signature check.
1784         * tests/test-openpty.c: Likewise.
1785         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1786         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1787
1788         forkpty, openpty: split functions into new modules
1789         * modules/pty (Makefile.am): Substitute new witnesses.
1790         (Libraries): Move library detection...
1791         * modules/forkpty: ...into new module.
1792         * modules/openpty: Another new module.
1793         * modules/pty-tests: Rename and split...
1794         * modules/forkpty-tests: ...to this...
1795         * modules/openpty-tests: ...and this.
1796         * tests/test-pty.c: Rename and split...
1797         * tests/test-forkpty.c: ...to this...
1798         * tests/test-openpty.c: ...and this.
1799         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1800         (gl_PTY): Split library searching...
1801         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1802         (gl_FORKPTY, gl_OPENPTY): New macros.
1803         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1804         * NEWS: Mention the split.
1805         * MODULES.html.sh (Misc): Document the modules.
1806         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1807         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1808
1809         pty: improve replacement header
1810         * lib/pty.in.h: New file.
1811         * modules/pty (Files): Ship it.
1812         (Makefile.am): Always build replacement.
1813         * m4/pty.m4: Rename...
1814         * m4/pty_h.m4: ...to this.
1815         (gl_PTY): Modernize setting of witness macros; update check of
1816         forkpty to take proper advantage of cache.
1817         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1818
1819         getopt: avoid compiler warning
1820         * lib/getopt.c (attribute_hidden): Remove unused macro.
1821
1822 2010-03-18  Bruno Haible  <bruno@clisp.org>
1823
1824         Fix link errors on Solaris 8.
1825         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1826         * modules/search-tests (test_search_c___LDADD): Likewise.
1827         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1828         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1829         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1830         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1831         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1832         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1833         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1834
1835 2010-03-18  Bruno Haible  <bruno@clisp.org>
1836
1837         Fix bug introduced on 2010-03-14.
1838         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1839         (gl_SPAWN_H): Require it.
1840         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1841         Reported by Simon Josefsson.
1842
1843 2010-03-18  Bruno Haible  <bruno@clisp.org>
1844
1845         Fix typo introduced on 2009-12-31.
1846         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1847         posix_spawn_file_actions_adddup2.
1848
1849 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1850         and Eric Blake  <eblake@redhat.com>
1851
1852         test-vc-list-files-git: make more robust
1853         * tests/test-vc-list-files-git.sh: Unset problematic environment
1854         variables.  Chain commands together.
1855
1856 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1857
1858         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1859         `AC_CHECK_DECL' invocation.
1860
1861 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1862
1863         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1864         appears before executable statements. Suggested by Petr Sumbera
1865         <Petr.Sumbera@Sun.COM>.
1866
1867 2010-03-14  Bruno Haible  <bruno@clisp.org>
1868
1869         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1870         portability problems. Instead use a simpler test.
1871         (main): Check that invalid arguments are rejected only on Linux.
1872
1873 2010-03-14  Bruno Haible  <bruno@clisp.org>
1874
1875         Fix bug introduced on 2009-12-31.
1876         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1877         gl_PREREQ_SYS_H_WINSOCK2 always.
1878         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1879         SYS_SOCKET_H variable.
1880         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1881         Update comments.
1882         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1883         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1884         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1885         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1886         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1887
1888 2010-03-14  Bruno Haible  <bruno@clisp.org>
1889
1890         Fix values returned by sinl, cosl.
1891         * lib/trigl.h: Add specification comments.
1892         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1893         that combines the values from the precomputed table with the values of
1894         the Chebyshev polynomials.
1895
1896 2010-03-14  Bruno Haible  <bruno@clisp.org>
1897
1898         Fix compilation error when modules 'posix_spawn[p]' are not used.
1899         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1900         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1901
1902 2010-03-14  Bruno Haible  <bruno@clisp.org>
1903
1904         Fix compilation error on mingw when module 'time_r' is not used.
1905         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1906         is 1.
1907         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1908         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1909         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1910         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1911
1912 2010-03-14  Bruno Haible  <bruno@clisp.org>
1913
1914         Fix compilation error with Sun C.
1915         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1916         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1917         instead of GCC specific ULONG_LONG_MAX.
1918         * lib/xstrtoll.c: Likewise.
1919         * lib/xstrtoull.c: Likewise.
1920
1921 2010-03-13  Bruno Haible  <bruno@clisp.org>
1922
1923         Allow the user to disable C++ code and tests.
1924         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1925         (gl_PROG_ANSI_CXX): Require it.
1926
1927 2010-03-13  Bruno Haible  <bruno@clisp.org>
1928
1929         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1930         cases.
1931
1932 2010-03-13  Bruno Haible  <bruno@clisp.org>
1933
1934         Test that gnulib does not break the standard C++ headers.
1935         * tests/test-locale-c++2.cc: New file.
1936         * modules/locale-tests (Files): Add it.
1937         (Makefile.am): Compile it for test-locale-c++.
1938         * tests/test-math-c++2.cc: New file.
1939         * modules/math-tests (Files): Add it.
1940         (Makefile.am): Compile it for test-math-c++.
1941         * tests/test-signal-c++2.cc: New file.
1942         * modules/signal-tests (Files): Add it.
1943         (Makefile.am): Compile it for test-signal-c++.
1944         * tests/test-stdio-c++2.cc: New file.
1945         * modules/stdio-tests (Files): Add it.
1946         (Makefile.am): Compile it for test-stdio-c++.
1947         * tests/test-stdlib-c++2.cc: New file.
1948         * modules/stdlib-tests (Files): Add it.
1949         (Makefile.am): Compile it for test-stdlib-c++.
1950         * tests/test-string-c++2.cc: New file.
1951         * modules/string-tests (Files): Add it.
1952         (Makefile.am): Compile it for test-string-c++.
1953         * tests/test-time-c++2.cc: New file.
1954         * modules/time-tests (Files): Add it.
1955         (Makefile.am): Compile it for test-time-c++.
1956         Reported by John W. Eaton <jwe@gnu.org>.
1957
1958 2010-03-13  Bruno Haible  <bruno@clisp.org>
1959
1960         * gnulib-tool (func_usage): Clarify which options are available for
1961         --create-testdir and --create-megatestdir.
1962
1963 2010-03-13  Bruno Haible  <bruno@clisp.org>
1964
1965         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1966         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1967         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1968         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1969         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1970         when appropriate.
1971         Reported by Jim Meyering.
1972
1973 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1974
1975         * gnulib-tool (func_import): Explain origin of code.
1976
1977 2010-03-12  Bruno Haible  <bruno@clisp.org>
1978
1979         Fix problem with automake's definition of CXXLINK.
1980         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1981         Reported by Simon Josefsson and Ludovic Courtès.
1982
1983 2010-03-12  Bruno Haible  <bruno@clisp.org>
1984
1985         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1986         stable releases.
1987
1988 2010-03-11  Bruno Haible  <bruno@clisp.org>
1989
1990         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1991         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1992         whether the system provides one variant or multiple variants of the
1993         function.
1994         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1995         C++ compilers.
1996         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1997         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1998         Reported by Jim Meyering.
1999
2000 2010-03-09  Simon Josefsson  <simon@josefsson.org>
2001
2002         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
2003
2004 2010-03-08  Bruno Haible  <bruno@clisp.org>
2005
2006         gnulib-tool: Add support for --libtool in --create-testdir.
2007         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
2008         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
2009
2010 2010-03-08  Eric Blake  <eblake@redhat.com>
2011
2012         gnulib-tool.texi: mention possibility of git submodule
2013         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
2014         submodules.
2015         * doc/.gitignore: Ignore another generated file.
2016
2017 2010-03-08  Karl Berry  <karl@gnu.org>
2018
2019         * doc/gnulib-tool.texi (VCS Issues): Mention third option
2020         of committing gnulib files while skipping others.
2021
2022 2010-03-07  Bruno Haible  <bruno@clisp.org>
2023
2024         Tests of module 'wctype' in C++ mode.
2025         * tests/test-wctype-c++.cc: New file.
2026         * modules/wctype-tests (Files): Add it and tests/signature.h.
2027         (Depends-on): Add ansi-c++-opt.
2028         (Makefile.am): Arrange to compile and run test-wctype-c++.
2029
2030         Tests of module 'wchar' in C++ mode.
2031         * tests/test-wchar-c++.cc: New file.
2032         * modules/wchar-tests (Files): Add it and tests/signature.h.
2033         (Depends-on): Add ansi-c++-opt.
2034         (Makefile.am): Arrange to compile and run test-wchar-c++.
2035         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
2036         gl_MODULE_INDICATOR.
2037
2038         Tests of module 'unistd' in C++ mode.
2039         * tests/test-unistd-c++.cc: New file.
2040         * modules/unistd-tests (Files): Add it and tests/signature.h.
2041         (Depends-on): Add ansi-c++-opt.
2042         (Makefile.am): Arrange to compile and run test-unistd-c++.
2043         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
2044         gl_MODULE_INDICATOR.
2045
2046         Tests of module 'time' in C++ mode.
2047         * tests/test-time-c++.cc: New file.
2048         * modules/time-tests (Files): Add it and tests/signature.h.
2049         (Depends-on): Add ansi-c++-opt.
2050         (Makefile.am): Arrange to compile and run test-time-c++.
2051         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2052
2053         Tests of module 'sys_time' in C++ mode.
2054         * tests/test-sys_time-c++.cc: New file.
2055         * modules/sys_time-tests (Files): Add it and tests/signature.h.
2056         (Depends-on): Add ansi-c++-opt.
2057         (Makefile.am): Arrange to compile and run test-sys_time-c++.
2058         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
2059         gl_MODULE_INDICATOR.
2060
2061         Tests of module 'sys_stat' in C++ mode.
2062         * tests/test-sys_stat-c++.cc: New file.
2063         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
2064         (Depends-on): Add ansi-c++-opt.
2065         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
2066         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
2067         gl_MODULE_INDICATOR.
2068
2069         Tests of module 'sys_socket' in C++ mode.
2070         * tests/test-sys_socket-c++.cc: New file.
2071         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
2072         (Depends-on): Add ansi-c++-opt.
2073         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
2074         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
2075         gl_MODULE_INDICATOR.
2076
2077         Tests of module 'sys_select' in C++ mode.
2078         * tests/test-sys_select-c++.cc: New file.
2079         * modules/sys_select-tests (Files): Add it and tests/signature.h.
2080         (Depends-on): Add ansi-c++-opt.
2081         (Makefile.am): Arrange to compile and run test-sys_select-c++.
2082         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
2083         gl_MODULE_INDICATOR.
2084
2085         Tests of module 'sys_ioctl' in C++ mode.
2086         * tests/test-sys_ioctl-c++.cc: New file.
2087         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
2088         (Depends-on): Add ansi-c++-opt.
2089         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
2090         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
2091         gl_MODULE_INDICATOR.
2092
2093         Tests of module 'string' in C++ mode.
2094         * tests/test-string-c++.cc: New file.
2095         * modules/string-tests (Files): Add it and tests/signature.h.
2096         (Depends-on): Add ansi-c++-opt.
2097         (Makefile.am): Arrange to compile and run test-string-c++.
2098         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
2099         gl_MODULE_INDICATOR.
2100
2101         Tests of module 'stdlib' in C++ mode.
2102         * tests/test-stdlib-c++.cc: New file.
2103         * modules/stdlib-tests (Files): Add it and tests/signature.h.
2104         (Depends-on): Add ansi-c++-opt.
2105         (Makefile.am): Arrange to compile and run test-stdlib-c++.
2106         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
2107         gl_MODULE_INDICATOR.
2108
2109         Tests of module 'stdio' in C++ mode.
2110         * tests/test-stdio-c++.cc: New file.
2111         * modules/stdio-tests (Files): Add it and tests/signature.h.
2112         (Depends-on): Add ansi-c++-opt.
2113         (Makefile.am): Arrange to compile and run test-stdio-c++.
2114         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
2115         gl_MODULE_INDICATOR.
2116
2117         Tests of module 'spawn' in C++ mode.
2118         * tests/test-spawn-c++.cc: New file.
2119         * modules/spawn-tests (Files): Add it and tests/signature.h.
2120         (Depends-on): Add ansi-c++-opt.
2121         (Makefile.am): Arrange to compile and run test-spawn-c++.
2122         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
2123         gl_MODULE_INDICATOR.
2124
2125         Tests of module 'signal' in C++ mode.
2126         * tests/test-signal-c++.cc: New file.
2127         * modules/signal-tests (Files): Add it and tests/signature.h.
2128         (Depends-on): Add ansi-c++-opt.
2129         (Makefile.am): Arrange to compile and run test-signal-c++.
2130         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
2131         gl_MODULE_INDICATOR.
2132
2133         Tests of module 'search' in C++ mode.
2134         * tests/test-search-c++.cc: New file.
2135         * modules/search-tests (Files): Add it and tests/signature.h.
2136         (Depends-on): Add ansi-c++-opt.
2137         (Makefile.am): Arrange to compile and run test-search-c++.
2138         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
2139         gl_MODULE_INDICATOR.
2140
2141         Tests of module 'math' in C++ mode.
2142         * tests/test-math-c++.cc: New file.
2143         * modules/math-tests (Files): Add it and tests/signature.h.
2144         (Depends-on): Add ansi-c++-opt.
2145         (Makefile.am): Arrange to compile and run test-math-c++.
2146         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2147
2148         Tests of module 'locale' in C++ mode.
2149         * tests/test-locale-c++.cc: New file.
2150         * modules/locale-tests (Files): Add it and tests/signature.h.
2151         (Depends-on): Add ansi-c++-opt.
2152         (Makefile.am): Arrange to compile and run test-locale-c++.
2153         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
2154         gl_MODULE_INDICATOR.
2155
2156         Tests of module 'langinfo' in C++ mode.
2157         * tests/test-langinfo-c++.cc: New file.
2158         * modules/langinfo-tests (Files): Add it and tests/signature.h.
2159         (Depends-on): Add ansi-c++-opt.
2160         (Makefile.am): Arrange to compile and run test-langinfo-c++.
2161         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
2162         gl_MODULE_INDICATOR.
2163
2164         Tests of module 'iconv-h' in C++ mode.
2165         * tests/test-iconv-h-c++.cc: New file.
2166         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
2167         (Depends-on): Add ansi-c++-opt.
2168         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
2169
2170         Tests of module 'glob' in C++ mode.
2171         * tests/test-glob-c++.cc: New file.
2172         * modules/glob-tests (Files): Add it.
2173         (Depends-on): Add ansi-c++-opt.
2174         (Makefile.am): Arrange to compile and run test-glob-c++.
2175
2176         Tests of module 'fcntl-h' in C++ mode.
2177         * tests/test-fcntl-h-c++.cc: New file.
2178         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2179         (Depends-on): Add ansi-c++-opt.
2180         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2181         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2182         gl_MODULE_INDICATOR.
2183
2184         Tests of module 'dirent' in C++ mode.
2185         * tests/test-dirent-c++.cc: New file.
2186         * modules/dirent-tests (Files): Add it and tests/signature.h.
2187         (Depends-on): Add ansi-c++-opt.
2188         (Makefile.am): Arrange to compile and run test-dirent-c++.
2189         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2190         gl_MODULE_INDICATOR.
2191
2192         New module 'ansi-c++-opt'.
2193         * modules/ansi-c++-opt: New file.
2194         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2195
2196         Document C++ namespace mode.
2197         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2198
2199         wctype: Avoid #define replacements in C++ mode.
2200         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2201         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2202         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2203         In C++, define a namespaced alias symbol.
2204         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2205         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2206         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2207         rule.
2208
2209         wchar: Avoid #define replacements in C++ mode.
2210         * lib/wchar.in.h: Include c++defs.h.
2211         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2212         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2213         symbol.
2214         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2215         * modules/wchar (Depends-on): Add c++defs.
2216         (Makefile.am): Update wchar.h rule.
2217
2218         unistd: Avoid #define replacements in C++ mode.
2219         * lib/unistd.in.h: Include c++defs.h.
2220         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2221         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2222         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2223         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2224         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2225         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2226         symbol.
2227         (environ): Update.
2228         * modules/unistd (Depends-on): Add c++defs.
2229         (Makefile.am): Update unistd.h rule.
2230
2231         time: Avoid #define replacements in C++ mode.
2232         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2233         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2234         define a namespaced alias symbol.
2235         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2236         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2237         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2238         * modules/time (Depends-on): Add c++defs, warn-on-use.
2239         (Makefile.am): Update time.h rule.
2240         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2241         * modules/nanosleep (configure.ac): Likewise.
2242         * modules/strptime (configure.ac): Likewise.
2243         * modules/timegm (configure.ac): Likewise.
2244
2245         sys_time: Avoid #define replacements in C++ mode.
2246         * lib/sys_time.in.h: Include c++defs.h.
2247         (gettimeofday): In C++, define a namespaced alias symbol.
2248         * modules/sys_time (Depends-on): Add c++defs.
2249         (Makefile.am): Update sys/time.h rule.
2250
2251         sys_stat: Avoid #define replacements in C++ mode.
2252         * lib/sys_stat.in.h: Include c++defs.h.
2253         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2254         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2255         namespaced alias symbol.
2256         In C++, define a namespaced alias symbol.
2257         * modules/sys_stat (Depends-on): Add c++defs.
2258         (Makefile.am): Update sys/stat.h rule.
2259
2260         sys_socket: Avoid #define replacements in C++ mode.
2261         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2262         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2263         definitions also when the system has a <sys/socket.h>.
2264         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2265         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2266         In C++, define a namespaced alias symbol.
2267         * modules/sys_socket (Depends-on): Add c++defs.
2268         (Makefile.am): Update sys/socket.h rule.
2269
2270         sys_select: Avoid #define replacements in C++ mode.
2271         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2272         definitions also when the system has a <sys/select.h>.
2273         (select): In C++, define a namespaced alias symbol.
2274         * modules/sys_select (Depends-on): Add c++defs.
2275         (Makefile.am): Update sys/select.h rule.
2276
2277         sys_ioctl: Avoid #define replacements in C++ mode.
2278         * lib/sys_ioctl.in.h: Include c++defs.h.
2279         (ioctl): In C++, define a namespaced alias symbol.
2280         * modules/sys_ioctl (Depends-on): Add c++defs.
2281         (Makefile.am): Update sys/ioctl.h rule.
2282
2283         string: Avoid #define replacements in C++ mode.
2284         * lib/string.in.h: Include c++defs.h.
2285         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2286         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2287         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2288         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2289         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2290         * modules/string (Depends-on): Add c++defs.
2291         (Makefile.am): Update string.h rule.
2292
2293         stdlib: Avoid #define replacements in C++ mode.
2294         * lib/stdlib.in.h: Include c++defs.h.
2295         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2296         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2297         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2298         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2299         symbol.
2300         * modules/stdlib (Depends-on): Add c++defs.
2301         (Makefile.am): Update stdlib.h rule.
2302
2303         stdio: Avoid #define replacements in C++ mode.
2304         * lib/stdio.in.h: Include c++defs.h.
2305         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2306         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2307         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2308         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2309         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2310         namespaced alias symbol.
2311         * modules/stdio (Depends-on): Add c++defs.
2312         (Makefile.am): Update stdio.h rule.
2313
2314         spawn: Avoid #define replacements in C++ mode.
2315         * lib/spawn.in.h: Include c++defs.h.
2316         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2317         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2318         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2319         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2320         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2321         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2322         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2323         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2324         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2325         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2326         In C++, define a namespaced alias symbol.
2327         * modules/spawn (Depends-on): Add c++defs.
2328         (Makefile.am): Update spawn.h rule.
2329
2330         signal: Avoid #define replacements in C++ mode.
2331         * lib/signal.in.h: Include c++defs.h.
2332         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2333         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2334         namespaced alias symbol.
2335         * modules/signal (Depends-on): Add c++defs.
2336         (Makefile.am): Update signal.h rule.
2337
2338         search: Avoid #define replacements in C++ mode.
2339         * lib/search.in.h: Include c++defs.h.
2340         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2341         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2342         symbol.
2343         * modules/search (Depends-on): Add c++defs.
2344         (Makefile.am): Update search.h rule.
2345
2346         math: Avoid #define replacements in C++ mode.
2347         * lib/math.in.h: Include c++defs.h.
2348         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2349         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2350         trunc, truncl): In C++, define a namespaced alias symbol.
2351         * modules/math (Depends-on): Add c++defs.
2352         (Makefile.am): Update math.h rule.
2353
2354         locale: Avoid #define replacements in C++ mode.
2355         * lib/locale.in.h: Include c++defs.h.
2356         (duplocale): In C++, define a namespaced alias symbol.
2357         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2358         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2359         * modules/locale (Depends-on): Add c++defs.
2360         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2361
2362         langinfo: Avoid #define replacements in C++ mode.
2363         * lib/langinfo.in.h: Include c++defs.h.
2364         (nl_langinfo): In C++, define a namespaced alias symbol.
2365         * modules/langinfo (Depends-on): Add c++defs.
2366         (Makefile.am): Update langinfo.h rule.
2367
2368         iconv-h: Avoid #define replacements in C++ mode.
2369         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2370         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2371         symbol.
2372         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2373         whenever iconv is present.
2374         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2375         (Makefile.am): Update iconv.h rule.
2376
2377         glob: Avoid #define replacements in C++ mode.
2378         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2379         (_gl_glob_errfunc_fn): New type.
2380         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2381         symbol.
2382         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2383         (Makefile.am): Update glob.h rule.
2384
2385         fcntl-h: Avoid #define replacements in C++ mode.
2386         * lib/fcntl.in.h: Include c++defs.h.
2387         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2388         * modules/fcntl-h (Depends-on): Add c++defs.
2389         (Makefile.am): Update fcntl.h rule.
2390
2391         dirent: Avoid #define replacements in C++ mode.
2392         * lib/dirent.in.h: Include c++defs.h.
2393         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2394         namespaced alias symbol.
2395         (dirfd): Update declaration.
2396         * modules/dirent (Depends-on): Add c++defs.
2397         (Makefile.am): Update dirent.h rule.
2398
2399         ctype: Make it usable in C++ code.
2400         * lib/ctype.in.h: Include c++defs.h.
2401         (isblank): Declare as extern "C".
2402         * modules/ctype (Depends-on): Add c++defs.
2403         (Makefile.am): Update ctype.h rule.
2404
2405         New module 'c++defs'.
2406         * modules/c++defs: New file.
2407         * build-aux/c++defs.h: New file.
2408         Reported by John W. Eaton <jwe@gnu.org>.
2409
2410 2010-03-07  Bruno Haible  <bruno@clisp.org>
2411
2412         logb: Provide missing declaration for Cygwin.
2413         * lib/math.in.h (logb): New declaration.
2414         * m4/logb.m4: New file.
2415         * modules/logb (Files): Add m4/logb.m4.
2416         (Depends-on): Add math.
2417         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2418         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2419         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2420         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2421         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2422
2423 2010-03-07  Bruno Haible  <bruno@clisp.org>
2424
2425         Fix test-cond link error.
2426         * tests/test-cond.c: Include <stdio.h>.
2427
2428 2010-03-07  Bruno Haible  <bruno@clisp.org>
2429
2430         Fix test-dirent-safer link error.
2431         * modules/dirent-safer-tests (Makefile.am): Define
2432         test_dirent_safer_LDADD.
2433
2434 2010-03-07  Bruno Haible  <bruno@clisp.org>
2435
2436         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2437         among default module list.
2438
2439 2010-03-07  Bruno Haible  <bruno@clisp.org>
2440
2441         Fix link error on platforms with GNU libiconv.
2442         * modules/unistr/u8-strcoll-tests (Makefile): Define
2443         test_u8_strcoll_LDADD.
2444         * modules/unistr/u16-strcoll-tests (Makefile): Define
2445         test_u16_strcoll_LDADD.
2446         * modules/unistr/u32-strcoll-tests (Makefile): Define
2447         test_u32_strcoll_LDADD.
2448
2449 2010-03-07  Bruno Haible  <bruno@clisp.org>
2450
2451         Use POSIX declarations for socket functions.
2452         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2453         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2454         rpl_sendto): Change declaration to match POSIX.
2455         * lib/connect.c (rpl_connect): Likewise.
2456         * lib/accept.c (rpl_accept): Likewise.
2457         * lib/bind.c (rpl_bind): Likewise.
2458         * lib/getpeername.c (rpl_getpeername): Likewise.
2459         * lib/getsockname.c (rpl_getsockname): Likewise.
2460         * lib/recv.c (rpl_recv): Likewise.
2461         * lib/send.c (rpl_send): Likewise.
2462         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2463         * lib/sendto.c (rpl_sendto): Likewise.
2464
2465 2010-03-06  Bruno Haible  <bruno@clisp.org>
2466
2467         Clarify access, euidaccess, faccessat.
2468         * doc/posix-functions/faccessat.texi: Mention security problem under
2469         "Other problems", not "Portability problems".
2470         * doc/posix-functions/access.texi: Likewise. Mention a related security
2471         problem.
2472         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2473         * lib/euidaccess.c: Add comments about platforms.
2474         * lib/unistd.in.h (access, euidaccess): Add warnings.
2475
2476 2010-03-07  Bruno Haible  <bruno@clisp.org>
2477
2478         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2479         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2480         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2481         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2482         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2483         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2484         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2485         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2486         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2487         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2488         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2489         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2490         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2491         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2492         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2493         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2494         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2495         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2496         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2497         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2498         Likewise.
2499         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2500         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2501         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2502         Likewise.
2503         * tests/test-spawn.c (main): Make it work when
2504         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2505
2506 2010-03-07  Bruno Haible  <bruno@clisp.org>
2507
2508         Fix incorrect Makefile.am generation in German locale.
2509         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2510         Execute sed command with character range in C locale.
2511
2512 2010-03-06  Bruno Haible  <bruno@clisp.org>
2513
2514         Tests for module 'iconv-h'.
2515         * modules/iconv-h-tests: New file.
2516         * tests/test-iconv-h.c: New file.
2517
2518         New module 'iconv-h'.
2519         * modules/iconv-h: New file.
2520         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2521         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2522         (configure.ac): Remove gl_ICONV_H.
2523         (Makefile.am): Remove rule for iconv.h.
2524
2525 2010-03-06  Bruno Haible  <bruno@clisp.org>
2526
2527         More consistent naming of *.m4 files.
2528         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2529         * modules/wctype (Files): Update.
2530
2531         More consistent naming of *.m4 files.
2532         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2533         * modules/wchar (Files): Update.
2534
2535 2010-03-06  Jim Meyering  <meyering@redhat.com>
2536
2537         euidaccess: relax license to LGPLv2+
2538         * modules/euidaccess (License): Relax to LGPLv2+.
2539
2540 2010-03-06  Bruno Haible  <bruno@clisp.org>
2541
2542         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2543         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2544         (Makefile.am): Augment lib_SOURCES instead.
2545
2546 2010-03-04  Jim Meyering  <meyering@redhat.com>
2547
2548         utime: remove obsolete module
2549         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2550         unnecessary for years, and has been marked as obsolete for 10 months.
2551         * modules/utime: Remove file.
2552         * lib/utime.c: Remove file.
2553         * m4/utime.m4: Remove file.
2554         * m4/utimes-null.m4: Remove file.
2555         * doc/posix-functions/utime.texi (utime): Remove reference to
2556         the module.  Move the sole "fixed by gnulib" item into the
2557         "problems not fixed by Gnulib" list.
2558         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2559
2560 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2561
2562         * modules/exit (License): Relax license to LGPLv2+.
2563         (Status): Mark as obsolete.
2564         * NEWS: Mention deprecated 'exit' module.
2565         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2566         of now obsolete 'exit'.
2567
2568 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2569
2570         fts-lgpl: remove unused module
2571         * modules/fts-lgpl: Remove.
2572         * MODULES.html.sh (func_all_modules): Adjust.
2573         * check-module (find_included_lib_files): Adjust.
2574         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2575
2576 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2577
2578         copy-acl: enhance Solaris ACL error handling
2579         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2580         * lib/set-mode-acl.c (qset_acl): Likewise.
2581
2582 2010-03-02  Bruno Haible  <bruno@clisp.org>
2583
2584         spawn: Don't override the system defined values on FreeBSD 8.
2585         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2586         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2587         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2588         if HAVE_POSIX_SPAWN is 1.
2589         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2590
2591 2010-03-01  Bruno Haible  <bruno@clisp.org>
2592
2593         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2594         regarding Automake.
2595
2596 2010-02-25  Bruno Haible  <bruno@clisp.org>
2597
2598         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2599         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2600         setting, not afterwards.
2601         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2602
2603 2010-02-24  Eric Blake  <eblake@redhat.com>
2604
2605         bootstrap, git-version-gen: use timestamp
2606         * build-aux/git-version-gen (scriptversion): Force UTC.
2607         * build-aux/bootstrap (scriptversion): New variable.
2608
2609         bootstrap: allow older git
2610         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2611         older than 1.6.4.  Requested by the libvirt project.
2612
2613 2010-02-23  Eric Blake  <eblake@redhat.com>
2614
2615         warn-on-use: work with old autoconf
2616         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2617         AS_VAR semantics of autoconf 2.60.
2618         Reported by Bruno Haible.
2619
2620         bootstrap: improve some comments
2621         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2622         clarification comments.
2623
2624         gettimeofday: provide correct function
2625         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2626         when replacement is declared, otherwise provide gettimeofday.
2627         Reported by Michael Goffioul.
2628
2629 2010-02-23  Jim Meyering  <meyering@redhat.com>
2630
2631         lib-ignore: relax license to "unlimited", not LGPLv2+
2632         * modules/lib-ignore (License): Relax to "unlimited".
2633
2634 2010-02-23  Jim Meyering  <meyering@redhat.com>
2635
2636         lib-ignore: relax license to LGPLv2+
2637         * modules/lib-ignore (License): Relax to LGPLv2+.
2638
2639 2010-02-22  Eric Blake  <eblake@redhat.com>
2640
2641         lseek: avoid bash 3.2 broken pipe bug
2642         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2643         warning from bash 3.2.
2644         Reported by Ben Pfaff, with analysis from Bruno Haible.
2645
2646         bootstrap: support non-FSF copyright holder
2647         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2648         bootstrap.conf override of COPYRIGHT_HOLDER.
2649         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2650
2651         bootstrap: interoperate with gettext 0.14.1
2652         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2653
2654         bootstrap: allow for alternate submodule location
2655         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2656         hardcoding submodule location.
2657         (gnulib_mk): Allow direct use of Makefile.am.
2658
2659         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2660         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2661         rather than reconfiguring where the submodule points.
2662
2663         gettimeofday: restore support for platforms that lack function
2664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2665         replacement if function is missing.
2666         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2667         * modules/sys_time (Makefile.am): Substitute it.
2668         * lib/sys_time.in.h (gettimeofday): Check it.
2669         Reported by Michael Goffioul.
2670
2671 2010-02-21  Bruno Haible  <bruno@clisp.org>
2672
2673         * lib/stdio.in.h (obstack_printf): Fix typo.
2674
2675 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2676
2677         vc-list-files: use bzr ls's -R option
2678         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2679         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2680
2681 2010-02-21  Jim Meyering  <meyering@redhat.com>
2682
2683         init.sh: fix EXEEXT shims to work also for names like test-prog
2684         * tests/init.sh: Re-exec a better shell, when needed.
2685         If the current shell lacks support for posix $(...), an init.sh-using
2686         test will now try to find a shell that supports that.  If EXEEXT is
2687         nonempty, we also require support for hyphen-in-alias-name and shell
2688         substitutions like ${var#glob}.  Failure to find such a shell results
2689         in a skipped test.
2690
2691 2010-02-21  Bruno Haible  <bruno@clisp.org>
2692
2693         Really work around around "broken pipe" error message from bash 3.2.
2694         * gnulib-tool (func_reset_sigpipe): Remove function.
2695         (echo): In bash 3.2, define to a function that uses printf.
2696         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2697
2698 2010-02-20  Bruno Haible  <bruno@clisp.org>
2699
2700         Restore support for automake 1.9.6 with autoconf 2.61.
2701         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2702         Reported by James Youngman <jay@gnu.org>.
2703
2704 2010-02-20  Bruno Haible  <bruno@clisp.org>
2705
2706         Improve *printf warning condition.
2707         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2708         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2709         and the function is overridden due to SIGPIPE emulation.
2710
2711 2010-02-20  Bruno Haible  <bruno@clisp.org>
2712
2713         * lib/stdio.in.h: Tweak comments.
2714
2715 2010-02-19  Bruno Haible  <bruno@clisp.org>
2716
2717         Make it easier to find modules. New gnulib-tool option '--find'.
2718         * gnulib-tool: New option --find.
2719         (func_usage): Document it.
2720         (func_sanitize_modulelist): New function, extracted from
2721         func_all_modules.
2722         (func_all_modules): Invoke it.
2723         * doc/gnulib-tool.texi (Which modules?): New node.
2724
2725 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2726
2727         * lib/sys_select.in.h: Provide select replacement even if
2728         sys/select.h exists on a system, for Interix.
2729
2730 2010-02-18  Jim Meyering  <meyering@redhat.com>
2731
2732         init.sh: don't use $(...) just yet
2733         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2734         to accommodate e.g., Solaris' /bin/sh.
2735
2736 2010-02-17  Bruno Haible  <bruno@clisp.org>
2737
2738         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2739         Reported by Ludovic Courtès <ludo@gnu.org>.
2740
2741 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2742
2743         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2744         linking with -lintl.
2745
2746 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2747
2748         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2749         if not provided by the system's netdb.h.  Reported by
2750         ludo@gnu.org (Ludovic Courtès).
2751
2752 2010-02-15  Jim Meyering  <meyering@redhat.com>
2753
2754         init.sh: improve portability and efficiency
2755         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2756         "dummy" in a for loop.
2757         Use '!', not '^' to select the complement of a character set used
2758         in a "case" statement.
2759         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2760         Suggestions from Eric Blake.
2761
2762         init.sh: automatically accommodate programs with the .exe suffix
2763         Automatically arrange for an invocation of "prog" to execute the
2764         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2765         may use the simpler "prog", yet still work when built on a system
2766         that requires specifying the added suffix.
2767         Do this by constructing a function named "prog" that invokes
2768         "prog.exe" for each .exe file in selected directories.
2769         * tests/init.sh (find_exe_basenames_): New function.
2770         (create_exe_shim_functions_): New function.
2771         (path_prepend_): Use it.
2772
2773         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2774         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2775         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2776
2777 2010-02-14  Jim Meyering  <meyering@redhat.com>
2778
2779         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2780         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2781         (sc_prohibit_hash_pjw_without_use): New rule.
2782
2783         maint.mk: allow the default upload destination dir to be overridden
2784         * top/maint.mk (upload_dest_dir_): Define with a default that
2785         preserves the status quo.
2786         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2787         Reported by Peter Simons.
2788
2789         maint.mk: prohibit inclusion of "hash.h" without_use
2790         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2791
2792 2010-02-10  Jim Meyering  <meyering@redhat.com>
2793
2794         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2795         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2796
2797 2010-02-09  Eric Blake  <ebb9@byu.net>
2798         and Bruno Haible  <bruno@clisp.org>
2799
2800         obstack-printf-posix: ensure declaration
2801         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2802         extracted from gl_FUNC_OBSTACK_PRINTF.
2803         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2804         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2805         Likewise.
2806         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2807         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2808         0.
2809
2810 2010-02-08  Bruno Haible  <bruno@clisp.org>
2811
2812         gnulib-tool: Fix typo in 2010-02-07 commit.
2813         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2814         Reported by Eric Blake.
2815
2816 2010-02-07  Bruno Haible  <bruno@clisp.org>
2817
2818         gnulib-tool: Fix up caching patches.
2819         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2820         option --no-cache. Use associative arrays when supported by the shell.
2821         (sed_comments): New variable.
2822         (modcache): Renamed from do_cache.
2823         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2824         abbreviate unnecessarily.
2825         (have_associative): New variable.
2826         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2827         way also for ksh and zsh.
2828         (func_init_sed_convert_to_cache_statements): New function, extracted
2829         from func_cache_lookup_module. Add support for associative arrays.
2830         Don't set the c_MODULE_cached variable here. Ignore all lines before
2831         the first field header. Remove only the final newline, not all trailing
2832         newlines. Support empty fields correctly. Limit the use of 'eval' to
2833         assignments.
2834         (func_get_description, func_get_status, func_get_notice,
2835         func_get_applicability, func_get_filelist, func_get_dependencies,
2836         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2837         func_get_automake_snippet, func_get_include_directive,
2838         func_get_link_directive, func_get_license, func_get_maintainer):
2839         Update documentation. List the unoptimized code first. Add support for
2840         associative arrays. Limit the use of 'eval' to assignments.
2841         (func_get_applicability): Undo stylistic pessimisations.
2842         (func_get_automake_snippet, func_get_include_directive): Reduce code
2843         duplication.
2844         (func_modules_transitive_closure, func_modules_add_dummy,
2845         func_modules_notice, func_modules_to_filelist, func_add_file,
2846         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2847         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2848         func_create_testdir, func_create_megatestdir): Update documentation.
2849
2850 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2851
2852         * gnulib-tool (func_cache_lookup_module): Store the module name
2853         belonging to the cache variable; error out if two different
2854         module names map to the same cache variable name.
2855
2856 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2857
2858         gnulib-tool: Make caching optional.
2859         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2860         Update matching short versions of --no-changelog.
2861         (func_usage): Update.
2862         (sed_extract_cache_prog): Renamed from ...
2863         (sed_extract_prog): ... this; revert to old extraction script.
2864         (func_get_description, func_get_status)
2865         (func_get_notice, func_get_applicability, func_get_filelist)
2866         (func_get_dependencies, func_get_autoconf_early_snippet)
2867         (func_get_autoconf_snippet, func_get_automake_snippet)
2868         (func_get_include_directive, func_get_link_directive)
2869         (func_get_license, func_get_maintainer): If $do_cache is false,
2870         use old, non-caching extraction scripts.
2871         Suggestion by Bruno Haible.
2872
2873 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2874
2875         gnulib-tool: cache module metainformation.
2876         * gnulib-tool (sed_extract_prog): Match newline before each
2877         header, and rewrite header to a shell variable suffix.
2878         (func_cache_var, func_cache_lookup_module): New functions,
2879         to turn a module name into a cache variable prefix, and to
2880         look up and cache module metainformation.
2881         (func_get_description, func_get_status)
2882         (func_get_notice, func_get_applicability, func_get_filelist)
2883         (func_get_dependencies, func_get_autoconf_early_snippet)
2884         (func_get_autoconf_snippet, func_get_automake_snippet)
2885         (func_get_include_directive, func_get_link_directive)
2886         (func_get_license, func_get_maintainer): Use
2887         func_cache_lookup_module.
2888
2889 2010-02-07  Bruno Haible  <bruno@clisp.org>
2890
2891         fnctl: Fix missing dependency.
2892         * modules/fcntl (Depends-on): Add getdtablesize.
2893         Reported by John W. Eaton <jwe@gnu.org>.
2894
2895 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2896
2897         Argp: fix recognition of short alias options.
2898
2899         * lib/argp-parse.c (convert_options): Fix improper use of
2900         `|' between character values.
2901         * tests/test-argp.c (group1_option): New alias option
2902         --read (-r).
2903         (group1_parser): Special handling for 'r'.
2904         (test15): New test case.
2905         (test_fun): Add test15.
2906         * tests/test-argp-2.sh: Update expected --help and --usage
2907         outputs.
2908
2909 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2910
2911         * tests/test-argp.c: Fix indentation.
2912
2913 2010-02-04  Eric Blake  <ebb9@byu.net>
2914
2915         gettimeofday: expose type of second argument
2916         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2917         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2918         * tests/test-gettimeofday.c: Use it to silence warning.
2919         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2920         the issue.
2921
2922 2010-02-03  Jim Meyering  <meyering@redhat.com>
2923
2924         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2925         * lib/regcomp.c (TYPE_SIGNED): Define.
2926         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2927
2928         regcomp.c: avoid a new -Wshadow warning
2929         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2930
2931 2010-02-01  Jim Meyering  <meyering@redhat.com>
2932
2933         removing useless parentheses in cpp #define directives
2934         For motivation, see commit c0221df4, "define STREQ(a,b)
2935         consistently, removing useless parentheses"
2936         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2937         * lib/mountlist.c (MNT_IGNORE): Likewise.
2938         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2939
2940 2010-02-01  Eric Blake  <ebb9@byu.net>
2941
2942         sys_time: use link-warning
2943         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2944         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2945         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2946         * modules/sys_time (Depends-on): Add warn-on-use.
2947         (Makefile.am): Always build replacement.
2948         (configure.ac): Update substitutions.
2949         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2950         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2951         bother with SYS_TIME_H.
2952         * modules/gettimeofday (configure.ac): Declare indicator.
2953         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2954         in use.
2955
2956         closein-tests: silence compiler warning
2957         * tests/test-closein.c (main): Ignore fread result.
2958         * modules/closein-tests (Depends-on): Add ignore-value.
2959
2960         tests: silence warning about system return
2961         * tests/test-areadlink-with-size.c (main): Ignore system result.
2962         * tests/test-areadlink.c (main): Likewise.
2963         * tests/test-areadlinkat-with-size.c (main): Likewise.
2964         * tests/test-areadlinkat.c (main): Likewise.
2965         * tests/test-canonicalize-lgpl.c (main): Likewise.
2966         * tests/test-canonicalize.c (main): Likewise.
2967         * tests/test-chown.c (main): Likewise.
2968         * tests/test-fchownat.c (main): Likewise.
2969         * tests/test-fdutimensat.c (main): Likewise.
2970         * tests/test-fstatat.c (main): Likewise.
2971         * tests/test-futimens.c (main): Likewise.
2972         * tests/test-lchown.c (main): Likewise.
2973         * tests/test-link.c (main): Likewise.
2974         * tests/test-linkat.c (main): Likewise.
2975         * tests/test-lstat.c (main): Likewise.
2976         * tests/test-mkdir.c (main): Likewise.
2977         * tests/test-mkdirat.c (main): Likewise.
2978         * tests/test-mkfifo.c (main): Likewise.
2979         * tests/test-mkfifoat.c (main): Likewise.
2980         * tests/test-mknod.c (main): Likewise.
2981         * tests/test-readlink.c (main): Likewise.
2982         * tests/test-remove.c (main): Likewise.
2983         * tests/test-rename.c (main): Likewise.
2984         * tests/test-renameat.c (main): Likewise.
2985         * tests/test-rmdir.c (main): Likewise.
2986         * tests/test-symlink.c (main): Likewise.
2987         * tests/test-symlinkat.c (main): Likewise.
2988         * tests/test-unlink.c (main): Likewise.
2989         * tests/test-unlinkat.c (main): Likewise.
2990         * tests/test-utimens.c (main): Likewise.
2991         * tests/test-utimensat.c (main): Likewise.
2992         * modules/areadlink-tests (Depends-on): Add ignore-value.
2993         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2994         * modules/areadlinkat-tests (Depends-on): Likewise.
2995         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2996         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2997         * modules/canonicalize-tests (Depends-on): Likewise.
2998         * modules/chown-tests (Depends-on): Likewise.
2999         * modules/fdutimensat-tests (Depends-on): Likewise.
3000         * modules/futimens-tests (Depends-on): Likewise.
3001         * modules/lchown-tests (Depends-on): Likewise.
3002         * modules/link-tests (Depends-on): Likewise.
3003         * modules/linkat-tests (Depends-on): Likewise.
3004         * modules/lstat-tests (Depends-on): Likewise.
3005         * modules/mkdir-tests (Depends-on): Likewise.
3006         * modules/mkfifo-tests (Depends-on): Likewise.
3007         * modules/mkfifoat-tests (Depends-on): Likewise.
3008         * modules/mknod-tests (Depends-on): Likewise.
3009         * modules/openat-tests (Depends-on): Likewise.
3010         * modules/readlink-tests (Depends-on): Likewise.
3011         * modules/remove-tests (Depends-on): Likewise.
3012         * modules/rename-tests (Depends-on): Likewise.
3013         * modules/renameat-tests (Depends-on): Likewise.
3014         * modules/rmdir-tests (Depends-on): Likewise.
3015         * modules/symlink-tests (Depends-on): Likewise.
3016         * modules/symlinkat-tests (Depends-on): Likewise.
3017         * modules/unlink-tests (Depends-on): Likewise.
3018         * modules/utimens-tests (Depends-on): Likewise.
3019         * modules/utimensat-tests (Depends-on): Likewise.
3020
3021 2010-01-31  Bruno Haible  <bruno@clisp.org>
3022
3023         Perform the same test for many <math.h> functions.
3024         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
3025         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
3026         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
3027         of gl_MATHFUNC.
3028         * modules/acos (configure.ac): Likewise.
3029         * modules/asin (configure.ac): Likewise.
3030         * modules/atan (configure.ac): Likewise.
3031         * modules/atan2 (configure.ac): Likewise.
3032         * modules/cbrt (configure.ac): Likewise.
3033         * modules/copysign (configure.ac): Likewise.
3034         * modules/cos (configure.ac): Likewise.
3035         * modules/cosh (configure.ac): Likewise.
3036         * modules/erf (configure.ac): Likewise.
3037         * modules/erfc (configure.ac): Likewise.
3038         * modules/exp (configure.ac): Likewise.
3039         * modules/fmod (configure.ac): Likewise.
3040         * modules/hypot (configure.ac): Likewise.
3041         * modules/j0 (configure.ac): Likewise.
3042         * modules/j1 (configure.ac): Likewise.
3043         * modules/jn (configure.ac): Likewise.
3044         * modules/lgamma (configure.ac): Likewise.
3045         * modules/log (configure.ac): Likewise.
3046         * modules/log10 (configure.ac): Likewise.
3047         * modules/log1p (configure.ac): Likewise.
3048         * modules/pow (configure.ac): Likewise.
3049         * modules/remainder (configure.ac): Likewise.
3050         * modules/sin (configure.ac): Likewise.
3051         * modules/sinh (configure.ac): Likewise.
3052         * modules/tan (configure.ac): Likewise.
3053         * modules/tanh (configure.ac): Likewise.
3054         * modules/y0 (configure.ac): Likewise.
3055         * modules/y1 (configure.ac): Likewise.
3056         * modules/yn (configure.ac): Likewise.
3057         Suggested by Paolo Bonzini.
3058
3059 2010-01-31  Bruno Haible  <bruno@clisp.org>
3060
3061         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
3062
3063 2010-01-31  Bruno Haible  <bruno@clisp.org>
3064
3065         Work around getdelim() bug on FreeBSD 8.0.
3066         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
3067         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
3068         not work.
3069         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
3070         is 1.
3071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
3072         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
3073         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
3074         a non-zero size.
3075         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
3076
3077 2010-01-31  Bruno Haible  <bruno@clisp.org>
3078
3079         Work around getline() bug on FreeBSD 8.0.
3080         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
3081         and a non-zero size.
3082         * tests/test-getline.c (main): Likewise.
3083         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
3084         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
3085
3086 2010-01-28  Eric Blake  <ebb9@byu.net>
3087
3088         regex: fix build failure
3089         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
3090         platforms.
3091
3092 2010-01-28  Jim Meyering  <meyering@redhat.com>
3093
3094         regex: do not ignore memory allocation failure
3095         * lib/regex_internal.c (create_cd_newstate): Detect
3096         re_node_set_init_copy failure.   Extracted from glibc commit
3097         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3098
3099         regex: sync more white-space changes from libc
3100         * lib/regex_internal.c: White-space only changes.
3101         * lib/regexec.c: Likewise.
3102
3103         regex: add many uses of __attribute_warn_unused_result__
3104         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
3105         * lib/regexec.c: Likewise.
3106         Extracted from a messy glibc commit.
3107
3108         regcomp.c: spelling and merge-artifact from glibc
3109         * lib/regcomp.c: Merge remainder of glibc's
3110         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3111
3112         regcomp.c: sync white-space changes from glibc
3113         * lib/regcomp.c: Merge to accommodate white space
3114         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3115
3116         regcomp.c: do not ignore internal return values
3117         * lib/regcomp.c: Do not ignore internal return values.
3118         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
3119         but without its white-space changes and spelling fixes.
3120
3121         regex_internal.h: define __attribute_warn_unused_result__
3122         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
3123
3124         maint: add a syntax-check rule to check for vulnerable Makefile.in
3125         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
3126
3127 2010-01-27  Jim Meyering  <meyering@redhat.com>
3128
3129         ncftpput-ftp: clean up spaces
3130         * build-aux/ncftpput-ftp: Make Copyright line consistent.
3131         Remove trailing blanks.
3132
3133 2010-01-27  Simon Josefsson  <simon@josefsson.org>
3134
3135         * build-aux/git-version-gen: Fix copyright statement.
3136         * build-aux/gnupload: Likewise.
3137         * tests/test-arcfour.c: Likewise.
3138         * tests/test-arctwo.c: Likewise.
3139         * tests/test-count-one-bits.c: Likewise.
3140         * tests/test-crc.c: Likewise.
3141         * tests/test-des.c: Likewise.
3142         * tests/test-gc-arcfour.c: Likewise.
3143         * tests/test-gc-arctwo.c: Likewise.
3144         * tests/test-gc-des.c: Likewise.
3145         * tests/test-gc-hmac-md5.c: Likewise.
3146         * tests/test-gc-hmac-sha1.c: Likewise.
3147         * tests/test-gc-md2.c: Likewise.
3148         * tests/test-gc-md4.c: Likewise.
3149         * tests/test-gc-md5.c: Likewise.
3150         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3151         * tests/test-gc-rijndael.c: Likewise.
3152         * tests/test-gc-sha1.c: Likewise.
3153         * tests/test-gc.c: Likewise.
3154         * tests/test-gethostname.c: Likewise.
3155         * tests/test-gettimeofday.c: Likewise.
3156         * tests/test-hash.c: Likewise.
3157         * tests/test-hmac-md5.c: Likewise.
3158         * tests/test-hmac-sha1.c: Likewise.
3159         * tests/test-md2.c: Likewise.
3160         * tests/test-md4.c: Likewise.
3161         * tests/test-md5.c: Likewise.
3162         * tests/test-memchr.c: Likewise.
3163         * tests/test-memchr2.c: Likewise.
3164         * tests/test-memcmp.c: Likewise.
3165         * tests/test-memmem.c: Likewise.
3166         * tests/test-memrchr.c: Likewise.
3167         * tests/test-rawmemchr.c: Likewise.
3168         * tests/test-read-file.c: Likewise.
3169         * tests/test-rijndael.c: Likewise.
3170         * tests/test-sockets.c: Likewise.
3171         * tests/test-strchrnul.c: Likewise.
3172         * tests/test-strstr.c: Likewise.
3173         * tests/test-strtod.c: Likewise.
3174         * build-aux/ncftpput-ftp: Likewise.
3175
3176 2010-01-26  Eric Blake  <ebb9@byu.net>
3177
3178         ignore-value: update recommended header name
3179         * modules/ignore-value (Include): Only use <> for headers that
3180         exist in glibc.
3181
3182 2010-01-26  Jim Meyering  <meyering@redhat.com>
3183
3184         test-userspec.c: avoid compiler warnings
3185         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3186         and "initialization discards qualifiers..." warnings.
3187         Put the first "uid" in its own scope, and make char* members "const".
3188
3189 2010-01-25  Bruno Haible  <bruno@clisp.org>
3190
3191         gnulib-tool: Make warning diagnostics consistent.
3192         * gnulib-tool (func_warning): New function.
3193         Use it everywhere where gnulib-tool produces output to stderr and it is
3194         not a fatal error.
3195
3196 2010-01-25  Bruno Haible  <bruno@clisp.org>
3197
3198         Fix test dependencies.
3199         * modules/xstrtol-tests (Depends-on): Add inttypes.
3200         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3201
3202 2010-01-25 Pádraig Brady <P@draigBrady.com>
3203
3204         syntax-check: detect incorrect boolean macro values in config.h
3205         * modules/maintainer-makefile (configure.ac): Parameterize the location
3206         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3207         The logic is from Eric Blake and the location indicated by Jim Meyering.
3208         Note the more natural CONFIG_HEADER name is prohibited by automake
3209         for backwards compatibility reasons.
3210         * top/maint.mk (sc_Wundef_boolean): New rule.
3211
3212 2010-01-25  Jim Meyering  <meyering@redhat.com>
3213
3214         bootstrap: detect MacOS 10.6's shasum, too
3215         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3216         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3217
3218 2010-01-23  Jim Meyering  <meyering@redhat.com>
3219
3220         xstrtoll: new module
3221         * modules/xstrtoll: New file.
3222         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3223         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3224         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3225         ./configure fails if you use this module and lack "long long".
3226         * modules/xstrtoll-tests: New module.
3227         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3228         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3229         new init.sh-based test framework.
3230
3231 2010-01-24  Bruno Haible  <bruno@clisp.org>
3232
3233         Tests for module 'yn'.
3234         * modules/yn-tests: New file.
3235         * tests/test-yn.c: New file.
3236
3237         Tests for module 'y1'.
3238         * modules/y1-tests: New file.
3239         * tests/test-y1.c: New file.
3240
3241         Tests for module 'y0'.
3242         * modules/y0-tests: New file.
3243         * tests/test-y0.c: New file.
3244
3245         Tests for module 'tanh'.
3246         * modules/tanh-tests: New file.
3247         * tests/test-tanh.c: New file.
3248
3249         Tests for module 'tan'.
3250         * modules/tan-tests: New file.
3251         * tests/test-tan.c: New file.
3252
3253         Tests for module 'sqrt'.
3254         * modules/sqrt-tests: New file.
3255         * tests/test-sqrt.c: New file.
3256
3257         Tests for module 'sinh'.
3258         * modules/sinh-tests: New file.
3259         * tests/test-sinh.c: New file.
3260
3261         Tests for module 'sin'.
3262         * modules/sin-tests: New file.
3263         * tests/test-sin.c: New file.
3264
3265         Tests for module 'rint'.
3266         * modules/rint-tests: New file.
3267         * tests/test-rint.c: New file.
3268
3269         Tests for module 'remainder'.
3270         * modules/remainder-tests: New file.
3271         * tests/test-remainder.c: New file.
3272
3273         Tests for module 'pow'.
3274         * modules/pow-tests: New file.
3275         * tests/test-pow.c: New file.
3276
3277         Tests for module 'nextafter'.
3278         * modules/nextafter-tests: New file.
3279         * tests/test-nextafter.c: New file.
3280
3281         Tests for module 'modf'.
3282         * modules/modf-tests: New file.
3283         * tests/test-modf.c: New file.
3284
3285         Tests for module 'logb'.
3286         * modules/logb-tests: New file.
3287         * tests/test-logb.c: New file.
3288
3289         Tests for module 'log1p'.
3290         * modules/log1p-tests: New file.
3291         * tests/test-log1p.c: New file.
3292
3293         Tests for module 'log10'.
3294         * modules/log10-tests: New file.
3295         * tests/test-log10.c: New file.
3296
3297         Tests for module 'log'.
3298         * modules/log-tests: New file.
3299         * tests/test-log.c: New file.
3300
3301         Tests for module 'lgamma'.
3302         * modules/lgamma-tests: New file.
3303         * tests/test-lgamma.c: New file.
3304
3305         Tests for module 'ldexp'.
3306         * modules/ldexp-tests: New file.
3307         * tests/test-ldexp.c: New file.
3308
3309         Tests for module 'jn'.
3310         * modules/jn-tests: New file.
3311         * tests/test-jn.c: New file.
3312
3313         Tests for module 'j1'.
3314         * modules/j1-tests: New file.
3315         * tests/test-j1.c: New file.
3316
3317         Tests for module 'j0'.
3318         * modules/j0-tests: New file.
3319         * tests/test-j0.c: New file.
3320
3321         Tests for module 'hypot'.
3322         * modules/hypot-tests: New file.
3323         * tests/test-hypot.c: New file.
3324
3325         Tests for module 'fmod'.
3326         * modules/fmod-tests: New file.
3327         * tests/test-fmod.c: New file.
3328
3329         Tests for module 'fabs'.
3330         * modules/fabs-tests: New file.
3331         * tests/test-fabs.c: New file.
3332
3333         Tests for module 'exp'.
3334         * modules/exp-tests: New file.
3335         * tests/test-exp.c: New file.
3336
3337         Tests for module 'erfc'.
3338         * modules/erfc-tests: New file.
3339         * tests/test-erfc.c: New file.
3340
3341         Tests for module 'erf'.
3342         * modules/erf-tests: New file.
3343         * tests/test-erf.c: New file.
3344
3345         Tests for module 'cosh'.
3346         * modules/cosh-tests: New file.
3347         * tests/test-cosh.c: New file.
3348
3349         Tests for module 'cos'.
3350         * modules/cos-tests: New file.
3351         * tests/test-cos.c: New file.
3352
3353         Tests for module 'copysign'.
3354         * modules/copysign-tests: New file.
3355         * tests/test-copysign.c: New file.
3356
3357         Tests for module 'cbrt'.
3358         * modules/cbrt-tests: New file.
3359         * tests/test-cbrt.c: New file.
3360
3361         Tests for module 'atan2'.
3362         * modules/atan2-tests: New file.
3363         * tests/test-atan2.c: New file.
3364
3365         Tests for module 'atan'.
3366         * modules/atan-tests: New file.
3367         * tests/test-atan.c: New file.
3368
3369         Tests for module 'asin'.
3370         * modules/asin-tests: New file.
3371         * tests/test-asin.c: New file.
3372
3373         Tests for module 'acos'.
3374         * modules/acos-tests: New file.
3375         * tests/test-acos.c: New file.
3376
3377 2010-01-24  Bruno Haible  <bruno@clisp.org>
3378
3379         Fix tests for common <math.h> functions.
3380         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3381         code snippet that references the function pointer, rather than merely
3382         calling the function. Substitute the FUNC_LIBM variable.
3383         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3384         * modules/acos (configure.ac): Likewise.
3385         * modules/asin (configure.ac): Likewise.
3386         * modules/atan (configure.ac): Likewise.
3387         * modules/atan2 (configure.ac): Likewise.
3388         * modules/cbrt (configure.ac): Likewise.
3389         * modules/copysign (configure.ac): Likewise.
3390         * modules/cos (configure.ac): Likewise.
3391         * modules/cosh (configure.ac): Likewise.
3392         * modules/erf (configure.ac): Likewise.
3393         * modules/erfc (configure.ac): Likewise.
3394         * modules/exp (configure.ac): Likewise.
3395         * modules/fabs (configure.ac): Likewise.
3396         * modules/fmod (configure.ac): Likewise.
3397         * modules/hypot (configure.ac): Likewise.
3398         * modules/j0 (configure.ac): Likewise.
3399         * modules/j1 (configure.ac): Likewise.
3400         * modules/jn (configure.ac): Likewise.
3401         * modules/ldexp (configure.ac): Likewise.
3402         * modules/lgamma (configure.ac): Likewise.
3403         * modules/log (configure.ac): Likewise.
3404         * modules/log10 (configure.ac): Likewise.
3405         * modules/log1p (configure.ac): Likewise.
3406         * modules/logb (configure.ac): Likewise.
3407         * modules/modf (configure.ac): Likewise.
3408         * modules/nextafter (configure.ac): Likewise.
3409         * modules/pow (configure.ac): Likewise.
3410         * modules/remainder (configure.ac): Likewise.
3411         * modules/rint (configure.ac): Likewise.
3412         * modules/sin (configure.ac): Likewise.
3413         * modules/sinh (configure.ac): Likewise.
3414         * modules/tan (configure.ac): Likewise.
3415         * modules/tanh (configure.ac): Likewise.
3416         * modules/y0 (configure.ac): Likewise.
3417         * modules/y1 (configure.ac): Likewise.
3418         * modules/yn (configure.ac): Likewise.
3419
3420 2010-01-24  Bruno Haible  <bruno@clisp.org>
3421
3422         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3423         * tests/test-acosl.c (x): New variable.
3424         (main): Store argument in x and fetch it from x.
3425         * tests/test-asinl.c (x): New variable.
3426         (main): Store argument in x and fetch it from x.
3427         * tests/test-atanl.c (x): New variable.
3428         (main): Store argument in x and fetch it from x.
3429         * tests/test-cosl.c (x): New variable.
3430         (main): Store argument in x and fetch it from x.
3431         * tests/test-expl.c (x): New variable.
3432         (main): Store argument in x and fetch it from x.
3433         * tests/test-logl.c (x): New variable.
3434         (main): Store argument in x and fetch it from x.
3435         * tests/test-sinl.c (x): New variable.
3436         (main): Store argument in x and fetch it from x.
3437         * tests/test-sqrtl.c (x): New variable.
3438         (main): Store argument in x and fetch it from x.
3439         * tests/test-tanl.c (x): New variable.
3440         (main): Store argument in x and fetch it from x.
3441
3442 2010-01-24  Bruno Haible  <bruno@clisp.org>
3443
3444         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3445         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3446         assignments to the initial TESTS_ENVIRONMENT.
3447         * doc/gnulib.texi (Unit test modules): Document it.
3448         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3449         TESTS_ENVIRONMENT.
3450         * modules/btowc-tests (Makefile.am): Likewise.
3451         * modules/c-stack-tests (Makefile.am): Likewise.
3452         * modules/c-strcase-tests (Makefile.am): Likewise.
3453         * modules/copy-file-tests (Makefile.am): Likewise.
3454         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3455         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3456         * modules/mbrtowc-tests (Makefile.am): Likewise.
3457         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3458         * modules/mbscasestr-tests (Makefile.am): Likewise.
3459         * modules/mbschr-tests (Makefile.am): Likewise.
3460         * modules/mbscspn-tests (Makefile.am): Likewise.
3461         * modules/mbsinit-tests (Makefile.am): Likewise.
3462         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3463         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3464         * modules/mbspbrk-tests (Makefile.am): Likewise.
3465         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3466         * modules/mbsrchr-tests (Makefile.am): Likewise.
3467         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3468         * modules/mbsspn-tests (Makefile.am): Likewise.
3469         * modules/mbsstr-tests (Makefile.am): Likewise.
3470         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3471         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3472         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3473         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3474         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3475         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3476         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3477         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3478         * modules/wcrtomb-tests (Makefile.am): Likewise.
3479         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3480         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3481         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3482         assignments from TESTS_ENVIRONMENT.
3483         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3484         augmentation.
3485         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3486         * modules/atexit-tests (Makefile.am): Likewise.
3487         * modules/binary-io-tests (Makefile.am): Likewise.
3488         * modules/closein-tests (Makefile.am): Likewise.
3489         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3490         * modules/exclude-tests (Makefile.am): Likewise.
3491         * modules/fflush-tests (Makefile.am): Likewise.
3492         * modules/fpending-tests (Makefile.am): Likewise.
3493         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3494         * modules/freadahead-tests (Makefile.am): Likewise.
3495         * modules/freadptr-tests (Makefile.am): Likewise.
3496         * modules/freadseek-tests (Makefile.am): Likewise.
3497         * modules/fseek-tests (Makefile.am): Likewise.
3498         * modules/fseeko-tests (Makefile.am): Likewise.
3499         * modules/ftell-tests (Makefile.am): Likewise.
3500         * modules/ftello-tests (Makefile.am): Likewise.
3501         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3502         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3503         * modules/lseek-tests (Makefile.am): Likewise.
3504         * modules/parse-duration-tests (Makefile.am): Likewise.
3505         * modules/perror-tests (Makefile.am): Likewise.
3506         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3507         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3508         * modules/pipe-tests (Makefile.am): Likewise.
3509         * modules/pread-tests (Makefile.am): Likewise.
3510         * modules/printf-posix-tests (Makefile.am): Likewise.
3511         * modules/select-tests (Makefile.am): Likewise.
3512         * modules/sigpipe-tests (Makefile.am): Likewise.
3513         * modules/tsearch-tests (Makefile.am): Likewise.
3514         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3515         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3516         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3517         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3518         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3519         * modules/version-etc-tests (Makefile.am): Likewise.
3520         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3521         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3522         * modules/xalloc-die-tests (Makefile.am): Likewise.
3523         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3524         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3525         * modules/xstrtol-tests (Makefile.am): Likewise.
3526         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3527         * modules/yesno-tests (Makefile.am): Likewise.
3528         Suggested by Jim Meyering.
3529
3530 2010-01-24  Bruno Haible  <bruno@clisp.org>
3531
3532         More documentation.
3533         * doc/gnulib.texi (Writing modules): New chapter.
3534         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3535         the new chapter.
3536
3537 2010-01-24  Jim Meyering  <meyering@redhat.com>
3538
3539         maint.mk: do not prepend "./" after filtering
3540         * top/maint.mk (_prepend_srcdir_prefix): New variable
3541         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3542         "./" when $(srcdir) is ".".
3543
3544         define STREQ(a,b) consistently, removing useless parentheses
3545         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3546         since the only risk is that "a" or "b" contains an unparenthesized
3547         comma, but if either did that, STREQ would have 3 or more arguments.
3548         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3549         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3550         * lib/hash-triple.c (STREQ): Likewise.
3551         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3552         * lib/getugroups.c (STREQ): Likewise.
3553
3554 2010-01-23  Jim Meyering  <meyering@redhat.com>
3555
3556         maint.mk: fix syntax-check in a non-srcdir build directory
3557         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3558         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3559
3560 2010-01-22  Jim Meyering  <meyering@redhat.com>
3561
3562         userspec: add unit tests
3563         * tests/test-userspec.c: New file.
3564         * modules/userspec-tests: Likewise.
3565
3566 2010-01-21  Jim Meyering  <meyering@redhat.com>
3567
3568         maint.mk: handle source file names containing "." robustly
3569         * top/maint.mk (_dot_escaped_srcdir): Define.
3570         (VC_LIST): Use it in LHS of sed substitution.
3571
3572 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3573
3574         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3575         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3576         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3577         from a non-srcdir build.
3578
3579 2010-01-20  Eric Blake  <ebb9@byu.net>
3580
3581         warn-on-use: use instead of link-warning
3582         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3583         * modules/unistd (Depends-on, Makefile.am): Likewise.
3584         * modules/arpa_inet (Depends-on): Replace link-warning with
3585         warn-on-use.
3586         (Makefile.am): Update rules accordingly.
3587         * modules/ctype (Depends-on, Makefile.am): Likewise.
3588         * modules/dirent (Depends-on, Makefile.am): Likewise.
3589         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3590         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3591         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3592         * modules/locale (Depends-on, Makefile.am): Likewise.
3593         * modules/math (Depends-on, Makefile.am): Likewise.
3594         * modules/search (Depends-on, Makefile.am): Likewise.
3595         * modules/signal (Depends-on, Makefile.am): Likewise.
3596         * modules/spawn (Depends-on, Makefile.am): Likewise.
3597         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3598         * modules/string (Depends-on, Makefile.am): Likewise.
3599         * modules/strings (Depends-on, Makefile.am): Likewise.
3600         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3601         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3602         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3603         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3604         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3605         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3606         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3607         * modules/wchar (Depends-on, Makefile.am): Likewise.
3608         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3609         should be poisoned.
3610         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3611         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3612         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3613         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3614         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3615         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3616         * m4/math_h.m4 (gl_MATH_H): Likewise.
3617         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3618         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3619         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3620         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3621         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3622         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3623         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3624         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3625         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3626         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3627         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3628         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3629         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3630         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3631         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3632         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3633         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3634         GL_LINK_WARNING.
3635         * lib/ctype.in.h: Likewise.
3636         * lib/dirent.in.h: Likewise.
3637         * lib/fcntl.in.h: Likewise.
3638         * lib/inttypes.in.h: Likewise.
3639         * lib/langinfo.in.h: Likewise.
3640         * lib/locale.in.h: Likewise.
3641         * lib/math.in.h: Likewise.
3642         * lib/search.in.h: Likewise.
3643         * lib/signal.in.h: Likewise.
3644         * lib/spawn.in.h: Likewise.
3645         * lib/stdio.in.h: Likewise.
3646         * lib/stdlib.in.h: Likewise.
3647         * lib/string.in.h: Likewise.
3648         * lib/strings.in.h: Likewise.
3649         * lib/sys_file.in.h: Likewise.
3650         * lib/sys_ioctl.in.h: Likewise.
3651         * lib/sys_select.in.h: Likewise.
3652         * lib/sys_socket.in.h: Likewise.
3653         * lib/sys_stat.in.h: Likewise.
3654         * lib/sys_times.in.h: Likewise.
3655         * lib/sys_utsname.in.h: Likewise.
3656         * lib/unistd.in.h: Likewise.
3657         * lib/wchar.in.h: Likewise.
3658
3659 2010-01-20  Bruno Haible  <bruno@clisp.org>
3660
3661         Avoid duplicate -lm.
3662         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3663         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3664         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3665         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3666         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3667         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3668         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3669         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3670         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3671         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3672         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3673         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3674         Reported by Paolo Bonzini.
3675
3676 2010-01-19  Bruno Haible  <bruno@clisp.org>
3677
3678         langinfo, nl_langinfo: Relicense under LGPLv2+.
3679         * modules/langinfo (License): Change to LGPLv2+.
3680         * modules/nl_langinfo (License): Likewise.
3681         Patch by David Lutterkort <lutter@redhat.com>.
3682
3683 2010-01-19  Bruno Haible  <bruno@clisp.org>
3684
3685         Avoid compilation error with cc on OSF/1 5.1.
3686         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3687         statement, not before.
3688         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3689
3690 2010-01-18  Bruno Haible  <bruno@clisp.org>
3691
3692         Avoid a link error due to the __printf__ symbol.
3693         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3694         and 2.6.x.
3695         (__format__, __printf__): Remove definitions.
3696         * lib/argp-fmtstream.h: Likewise.
3697         * lib/argp.h: Likewise.
3698         * lib/error.h: Likewise.
3699         * lib/vasnprintf.h: Likewise.
3700         * lib/xprintf.h: Likewise.
3701         * lib/xvasprintf.h: Likewise.
3702         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3703
3704 2010-01-18  Bruno Haible  <bruno@clisp.org>
3705
3706         Tests for module 'tanl'.
3707         * modules/tanl-tests: New file.
3708         * tests/test-tanl.c: New file.
3709
3710         Tests for module 'sqrtl'.
3711         * modules/sqrtl-tests: New file.
3712         * tests/test-sqrtl.c: New file.
3713
3714         Tests for module 'sinl'.
3715         * modules/sinl-tests: New file.
3716         * tests/test-sinl.c: New file.
3717
3718         Tests for module 'logl'.
3719         * modules/logl-tests: New file.
3720         * tests/test-logl.c: New file.
3721
3722         Tests for module 'expl'.
3723         * modules/expl-tests: New file.
3724         * tests/test-expl.c: New file.
3725
3726         Tests for module 'cosl'.
3727         * modules/cosl-tests: New file.
3728         * tests/test-cosl.c: New file.
3729
3730         Tests for module 'atanl'.
3731         * modules/atanl-tests: New file.
3732         * tests/test-atanl.c: New file.
3733
3734         Tests for module 'asinl'.
3735         * modules/asinl-tests: New file.
3736         * tests/test-asinl.c: New file.
3737
3738         Tests for module 'acosl'.
3739         * modules/acosl-tests: New file.
3740         * tests/test-acosl.c: New file.
3741
3742         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3743         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3744         tanl): Use the standard gnulib idiom.
3745         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3746         * lib/sinl.c: Likewise.
3747         * lib/tanl.c: Don't include trigl.c.
3748         (kernel_tanl): Make static.
3749         * lib/sincosl.c: Include trigl.h first.
3750         * lib/trigl.c: Likewise.
3751         * m4/acosl.m4: New file.
3752         * m4/asinl.m4: New file.
3753         * m4/atanl.m4: New file.
3754         * m4/cosl.m4: New file.
3755         * m4/expl.m4: New file.
3756         * m4/logl.m4: New file.
3757         * m4/sinl.m4: New file.
3758         * m4/sqrtl.m4: New file.
3759         * m4/tanl.m4: New file.
3760         * m4/mathl.m4: Remove file.
3761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3762         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3763         Don't initialize GNULIB_MATHL.
3764         * modules/acosl: New file.
3765         * modules/asinl: New file.
3766         * modules/atanl: New file.
3767         * modules/cosl: New file.
3768         * modules/expl: New file.
3769         * modules/logl: New file.
3770         * modules/sinl: New file.
3771         * modules/sqrtl: New file.
3772         * modules/tanl: New file.
3773         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3774         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3775         substitute GNULIB_MATHL.
3776         * modules/mathl: Rewritten.
3777         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3778         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3779         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3780         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3781         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3782         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3783         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3784         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3785         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3786
3787 2010-01-18  Bruno Haible  <bruno@clisp.org>
3788
3789         sqrt: Make gl_FUNC_SQRT requirable.
3790         * m4/sqrt.m4: New file.
3791         * modules/sqrt (Files): Add it.
3792         (configure.ac): Invoke gl_FUNC_SQRT.
3793
3794 2010-01-18  Bruno Haible  <bruno@clisp.org>
3795
3796         New modules for common <math.h> functions.
3797         * m4/mathfunc.m4: New file.
3798         * modules/acos: New file.
3799         * modules/asin: New file.
3800         * modules/atan: New file.
3801         * modules/atan2: New file.
3802         * modules/cbrt: New file.
3803         * modules/copysign: New file.
3804         * modules/cos: New file.
3805         * modules/cosh: New file.
3806         * modules/erf: New file.
3807         * modules/erfc: New file.
3808         * modules/exp: New file.
3809         * modules/fabs: New file.
3810         * modules/fmod: New file.
3811         * modules/hypot: New file.
3812         * modules/j0: New file.
3813         * modules/j1: New file.
3814         * modules/jn: New file.
3815         * modules/ldexp: New file.
3816         * modules/lgamma: New file.
3817         * modules/log: New file.
3818         * modules/log10: New file.
3819         * modules/log1p: New file.
3820         * modules/logb: New file.
3821         * modules/modf: New file.
3822         * modules/nextafter: New file.
3823         * modules/pow: New file.
3824         * modules/remainder: New file.
3825         * modules/rint: New file.
3826         * modules/sin: New file.
3827         * modules/sinh: New file.
3828         * modules/sqrt: New file.
3829         * modules/tan: New file.
3830         * modules/tanh: New file.
3831         * modules/y0: New file.
3832         * modules/y1: New file.
3833         * modules/yn: New file.
3834         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3835         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3836         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3837         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3838         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3839         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3840         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3841         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3842         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3843         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3844         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3845         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3846         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3847         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3848         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3849         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3850         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3851         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3852         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3853         * doc/posix-functions/log.texi: Mention the 'log' module.
3854         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3855         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3856         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3857         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3858         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3859         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3860         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3861         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3862         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3863         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3864         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3865         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3866         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3867         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3868         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3869         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3870
3871 2010-01-18  Jim Meyering  <meyering@redhat.com>
3872
3873         ignore-value: relax license to LGPLv2+
3874         * modules/ignore-value (License): Relax to LGPLv2+.
3875
3876         getdate: don't leak when TZ contains two or more '"'s
3877         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3878         double quote in TZ after the first one.
3879
3880         readtokens: do not leak internal token_lengths buffer
3881         * lib/readtokens.c (readtokens): Free the local, lengths,
3882         when the supplied "token_lengths" parameter is NULL.
3883
3884 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3885
3886         Fix a couple of missing LIBTHREAD link failures on AIX.
3887         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3888         $(LIBTHREAD).
3889         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3890
3891         Link test-poll against INET_PTON_LIB.
3892         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3893         for inet_pton on Solaris 10.
3894
3895 2010-01-17  Bruno Haible  <bruno@clisp.org>
3896
3897         unistdio/*-sprintf: Fix typo in module description.
3898         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3899         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3900         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3901         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3902         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3903         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3904         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3905         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3906
3907 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3908
3909         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3910         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3911         variables in shell case patterns, for AIX and HP-UX ksh.
3912
3913         Split large sed scripts, for HP-UX sed.
3914         * modules/stdio: Split sed scripts around 50 sed commands,
3915         to avoid HP-UX limit of 99 commands, in the near future.
3916         * modules/string: Likewise.
3917         * modules/unistd: Likewise.
3918
3919         gnulib-tool: avoid writing in the current directory.
3920         * gnulib-tool (func_emit_lib_Makefile_am)
3921         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3922         not in the current directory, so concurrent gnulib-tool
3923         instances do not interfere.
3924
3925 2010-01-16  Jim Meyering  <meyering@redhat.com>
3926
3927         doc: update users.txt
3928         * users.txt: Add grep.
3929         (diffutils, gzip): Update URLs.
3930
3931 2010-01-12  Bruno Haible  <bruno@clisp.org>
3932
3933         posix_spawn: Avoid test failure on Cygwin.
3934         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3935         characters.
3936         Reported by Simon Josefsson.
3937
3938 2010-01-12  Bruno Haible  <bruno@clisp.org>
3939
3940         * tests/test-cond.c (main): When skipping the test, show the reason.
3941
3942 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3943
3944         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3945
3946 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3947
3948         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3949         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3950
3951 2010-01-12  Eric Blake  <ebb9@byu.net>
3952
3953         build: guarantee AS_VAR_IF
3954         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3955         (gl_AS_VAR_IF): Move...
3956         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3957         Reported by Simon Josefsson.
3958
3959 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3960
3961         * lib/stdio.in.h: Fix typo.
3962
3963 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3964
3965         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3966         libgpg-error.
3967
3968 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3969
3970         * tests/test-xalloc-die.sh: Use $EXEEXT.
3971
3972 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3973             Bruno Haible  <bruno@clisp.org>
3974
3975         getlogin, getlogin_r: Avoid test failure.
3976         * tests/test-getlogin.c: Include <stdio.h>.
3977         (main): Skip the test when the function fails because stdin is not a
3978         tty.
3979         * tests/test-getlogin_r.c: Include <stdio.h>.
3980         (main): Skip the test when the function fails because stdin is not a
3981         tty.
3982
3983 2010-01-11  Eric Blake  <ebb9@byu.net>
3984
3985         tests: avoid more large file warnings
3986         * tests/test-fflush.c: Avoid warning about ftell use.
3987         * tests/test-fseek.c: Avoid warning about fseek use.
3988
3989 2010-01-10  Bruno Haible  <bruno@clisp.org>
3990
3991         nproc: Work better on Linux when /proc and /sys are not mounted.
3992         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3993         as lower bound when, on glibc/Linux systems,
3994         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3995         Suggested by Pádraig Brady <P@draigbrady.com>.
3996         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3997
3998         nproc: Refactor.
3999         * lib/nproc.c (num_processors_via_affinity_mask): New function,
4000         extracted from num_processors.
4001         (num_processors): Call it.
4002
4003 2010-01-11  Jim Meyering  <meyering@redhat.com>
4004
4005         utimecmp: avoid new warning from upcoming gcc-4.5.0
4006         * lib/utimecmp.c (BILLION): Define using #define rather than an
4007         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
4008
4009 2010-01-11  Eric Blake  <ebb9@byu.net>
4010
4011         math: add portability warnings for classification macros
4012         * modules/math (Depends-on): Add warn-on-use.
4013         (Makefile.am): Provide new substitutions.
4014         * m4/math_h.m4 (gl_MATH_H): Require inline.
4015         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
4016         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
4017         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
4018         implement warnings.
4019
4020         unistd: warn on use of environ without module
4021         * modules/unistd (Depends-on): Add warn-on-use.
4022         (Makefile.am): Provide new substitutions.
4023         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
4024         * lib/unistd.in.h (environ): Wrap with a warning helper function.
4025
4026         stdio: warn on suspicious uses
4027         * modules/stdio (Depends-on): Add warn-on-use.
4028         (Makefile.am): Provide new substitutions.
4029         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
4030         fseeko.
4031         * lib/stdio.in.h (gets): Always warn on use.
4032         (fseek, ftell): Adjust when warnings are issued, and honor
4033         _GL_NO_LARGE_FILES as a way to silence the warning.
4034         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
4035         any warning about large file offsets.
4036         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
4037         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
4038         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
4039         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
4040         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
4041         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
4042         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
4043         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
4044
4045         warn-on-use: new module
4046         * modules/warn-on-use: New file.
4047         * build-aux/warn-on-use.h: Likewise.
4048         * m4/warn-on-use.m4: Likewise.
4049         * MODULES.html.sh (Support for building): Mention it.
4050
4051 2010-01-10  Bruno Haible  <bruno@clisp.org>
4052
4053         Tests for module 'unistr/u32-strdup'.
4054         * modules/unistr/u32-strdup-tests: New file.
4055         * tests/unistr/test-u32-strdup.c: New file.
4056
4057         Tests for module 'unistr/u16-strdup'.
4058         * modules/unistr/u16-strdup-tests: New file.
4059         * tests/unistr/test-u16-strdup.c: New file.
4060
4061         Tests for module 'unistr/u8-strdup'.
4062         * modules/unistr/u8-strdup-tests: New file.
4063         * tests/unistr/test-u8-strdup.c: New file.
4064         * tests/unistr/test-strdup.h: New file.
4065
4066         Tests for module 'unistr/u32-strncmp'.
4067         * modules/unistr/u32-strncmp-tests: New file.
4068         * tests/unistr/test-u32-strncmp.c: New file.
4069
4070         Tests for module 'unistr/u16-strncmp'.
4071         * modules/unistr/u16-strncmp-tests: New file.
4072         * tests/unistr/test-u16-strncmp.c: New file.
4073
4074         Tests for module 'unistr/u8-strncmp'.
4075         * modules/unistr/u8-strncmp-tests: New file.
4076         * tests/unistr/test-u8-strncmp.c: New file.
4077         * tests/unistr/test-strncmp.h: New file.
4078
4079         Tests for module 'unistr/u32-strcoll'.
4080         * modules/unistr/u32-strcoll-tests: New file.
4081         * tests/unistr/test-u32-strcoll.c: New file.
4082
4083         Tests for module 'unistr/u16-strcoll'.
4084         * modules/unistr/u16-strcoll-tests: New file.
4085         * tests/unistr/test-u16-strcoll.c: New file.
4086
4087         Tests for module 'unistr/u8-strcoll'.
4088         * modules/unistr/u8-strcoll-tests: New file.
4089         * tests/unistr/test-u8-strcoll.c: New file.
4090
4091         Tests for module 'unistr/u32-strcmp'.
4092         * modules/unistr/u32-strcmp-tests: New file.
4093         * tests/unistr/test-u32-strcmp.c: New file.
4094         * tests/unistr/test-u32-strcmp.h: New file.
4095
4096         Tests for module 'unistr/u16-strcmp'.
4097         * modules/unistr/u16-strcmp-tests: New file.
4098         * tests/unistr/test-u16-strcmp.c: New file.
4099         * tests/unistr/test-u16-strcmp.h: New file.
4100
4101         Tests for module 'unistr/u8-strcmp'.
4102         * modules/unistr/u8-strcmp-tests: New file.
4103         * tests/unistr/test-u8-strcmp.c: New file.
4104         * tests/unistr/test-u8-strcmp.h: New file.
4105         * tests/unistr/test-strcmp.h: New file.
4106
4107         Tests for module 'unistr/u32-strncat'.
4108         * modules/unistr/u32-strncat-tests: New file.
4109         * tests/unistr/test-u32-strncat.c: New file.
4110
4111         Tests for module 'unistr/u16-strncat'.
4112         * modules/unistr/u16-strncat-tests: New file.
4113         * tests/unistr/test-u16-strncat.c: New file.
4114
4115         Tests for module 'unistr/u8-strncat'.
4116         * modules/unistr/u8-strncat-tests: New file.
4117         * tests/unistr/test-u8-strncat.c: New file.
4118         * tests/unistr/test-strncat.h: New file.
4119
4120         Tests for module 'unistr/u32-strcat'.
4121         * modules/unistr/u32-strcat-tests: New file.
4122         * tests/unistr/test-u32-strcat.c: New file.
4123
4124         Tests for module 'unistr/u16-strcat'.
4125         * modules/unistr/u16-strcat-tests: New file.
4126         * tests/unistr/test-u16-strcat.c: New file.
4127
4128         Tests for module 'unistr/u8-strcat'.
4129         * modules/unistr/u8-strcat-tests: New file.
4130         * tests/unistr/test-u8-strcat.c: New file.
4131         * tests/unistr/test-strcat.h: New file.
4132
4133         Tests for module 'unistr/u32-stpncpy'.
4134         * modules/unistr/u32-stpncpy-tests: New file.
4135         * tests/unistr/test-u32-stpncpy.c: New file.
4136
4137         Tests for module 'unistr/u16-stpncpy'.
4138         * modules/unistr/u16-stpncpy-tests: New file.
4139         * tests/unistr/test-u16-stpncpy.c: New file.
4140
4141         Tests for module 'unistr/u8-stpncpy'.
4142         * modules/unistr/u8-stpncpy-tests: New file.
4143         * tests/unistr/test-u8-stpncpy.c: New file.
4144         * tests/unistr/test-stpncpy.h: New file.
4145
4146         Tests for module 'unistr/u32-strncpy'.
4147         * modules/unistr/u32-strncpy-tests: New file.
4148         * tests/unistr/test-u32-strncpy.c: New file.
4149
4150         Tests for module 'unistr/u16-strncpy'.
4151         * modules/unistr/u16-strncpy-tests: New file.
4152         * tests/unistr/test-u16-strncpy.c: New file.
4153
4154         Tests for module 'unistr/u8-strncpy'.
4155         * modules/unistr/u8-strncpy-tests: New file.
4156         * tests/unistr/test-u8-strncpy.c: New file.
4157         * tests/unistr/test-strncpy.h: New file.
4158
4159         Tests for module 'unistr/u32-stpcpy'.
4160         * modules/unistr/u32-stpcpy-tests: New file.
4161         * tests/unistr/test-u32-stpcpy.c: New file.
4162
4163         Tests for module 'unistr/u16-stpcpy'.
4164         * modules/unistr/u16-stpcpy-tests: New file.
4165         * tests/unistr/test-u16-stpcpy.c: New file.
4166
4167         Tests for module 'unistr/u8-stpcpy'.
4168         * modules/unistr/u8-stpcpy-tests: New file.
4169         * tests/unistr/test-u8-stpcpy.c: New file.
4170         * tests/unistr/test-stpcpy.h: New file.
4171
4172         Tests for module 'unistr/u32-strcpy'.
4173         * modules/unistr/u32-strcpy-tests: New file.
4174         * tests/unistr/test-u32-strcpy.c: New file.
4175
4176         Tests for module 'unistr/u16-strcpy'.
4177         * modules/unistr/u16-strcpy-tests: New file.
4178         * tests/unistr/test-u16-strcpy.c: New file.
4179
4180         Tests for module 'unistr/u8-strcpy'.
4181         * modules/unistr/u8-strcpy-tests: New file.
4182         * tests/unistr/test-u8-strcpy.c: New file.
4183         * tests/unistr/test-strcpy.h: New file.
4184
4185         Tests for module 'unistr/u32-strnlen'.
4186         * modules/unistr/u32-strnlen-tests: New file.
4187         * tests/unistr/test-u32-strnlen.c: New file.
4188
4189         Tests for module 'unistr/u16-strnlen'.
4190         * modules/unistr/u16-strnlen-tests: New file.
4191         * tests/unistr/test-u16-strnlen.c: New file.
4192
4193         Tests for module 'unistr/u8-strnlen'.
4194         * modules/unistr/u8-strnlen-tests: New file.
4195         * tests/unistr/test-u8-strnlen.c: New file.
4196         * tests/unistr/test-strnlen.h: New file.
4197
4198         Tests for module 'unistr/u32-strlen'.
4199         * modules/unistr/u32-strlen-tests: New file.
4200         * tests/unistr/test-u32-strlen.c: New file.
4201
4202         Tests for module 'unistr/u16-strlen'.
4203         * modules/unistr/u16-strlen-tests: New file.
4204         * tests/unistr/test-u16-strlen.c: New file.
4205
4206         Tests for module 'unistr/u8-strlen'.
4207         * modules/unistr/u8-strlen-tests: New file.
4208         * tests/unistr/test-u8-strlen.c: New file.
4209
4210         Tests for module 'unistr/u32-prev'.
4211         * modules/unistr/u32-prev-tests: New file.
4212         * tests/unistr/test-u32-prev.c: New file.
4213
4214         Tests for module 'unistr/u16-prev'.
4215         * modules/unistr/u16-prev-tests: New file.
4216         * tests/unistr/test-u16-prev.c: New file.
4217
4218         Tests for module 'unistr/u8-prev'.
4219         * modules/unistr/u8-prev-tests: New file.
4220         * tests/unistr/test-u8-prev.c: New file.
4221
4222         Tests for module 'unistr/u32-next'.
4223         * modules/unistr/u32-next-tests: New file.
4224         * tests/unistr/test-u32-next.c: New file.
4225
4226         Tests for module 'unistr/u16-next'.
4227         * modules/unistr/u16-next-tests: New file.
4228         * tests/unistr/test-u16-next.c: New file.
4229
4230         Tests for module 'unistr/u8-next'.
4231         * modules/unistr/u8-next-tests: New file.
4232         * tests/unistr/test-u8-next.c: New file.
4233
4234         Tests for module 'unistr/u32-strmbtouc'.
4235         * modules/unistr/u32-strmbtouc-tests: New file.
4236         * tests/unistr/test-u32-strmbtouc.c: New file.
4237
4238         Tests for module 'unistr/u16-strmbtouc'.
4239         * modules/unistr/u16-strmbtouc-tests: New file.
4240         * tests/unistr/test-u16-strmbtouc.c: New file.
4241
4242         Tests for module 'unistr/u8-strmbtouc'.
4243         * modules/unistr/u8-strmbtouc-tests: New file.
4244         * tests/unistr/test-u8-strmbtouc.c: New file.
4245
4246         Tests for module 'unistr/u32-strmblen'.
4247         * modules/unistr/u32-strmblen-tests: New file.
4248         * tests/unistr/test-u32-strmblen.c: New file.
4249
4250         Tests for module 'unistr/u16-strmblen'.
4251         * modules/unistr/u16-strmblen-tests: New file.
4252         * tests/unistr/test-u16-strmblen.c: New file.
4253
4254         Tests for module 'unistr/u8-strmblen'.
4255         * modules/unistr/u8-strmblen-tests: New file.
4256         * tests/unistr/test-u8-strmblen.c: New file.
4257
4258         Tests for module 'unistr/u32-cpy-alloc'.
4259         * modules/unistr/u32-cpy-alloc-tests: New file.
4260         * tests/unistr/test-u32-cpy-alloc.c: New file.
4261
4262         Tests for module 'unistr/u16-cpy-alloc'.
4263         * modules/unistr/u16-cpy-alloc-tests: New file.
4264         * tests/unistr/test-u16-cpy-alloc.c: New file.
4265
4266         Tests for module 'unistr/u8-cpy-alloc'.
4267         * modules/unistr/u8-cpy-alloc-tests: New file.
4268         * tests/unistr/test-u8-cpy-alloc.c: New file.
4269         * tests/unistr/test-cpy-alloc.h: New file.
4270
4271         Tests for module 'unistr/u32-mbsnlen'.
4272         * modules/unistr/u32-mbsnlen-tests: New file.
4273         * tests/unistr/test-u32-mbsnlen.c: New file.
4274
4275         Tests for module 'unistr/u16-mbsnlen'.
4276         * modules/unistr/u16-mbsnlen-tests: New file.
4277         * tests/unistr/test-u16-mbsnlen.c: New file.
4278
4279         Tests for module 'unistr/u8-mbsnlen'.
4280         * modules/unistr/u8-mbsnlen-tests: New file.
4281         * tests/unistr/test-u8-mbsnlen.c: New file.
4282
4283         Tests for module 'unistr/u32-chr'.
4284         * modules/unistr/u32-chr-tests: New file.
4285         * tests/unistr/test-u32-chr.c: New file.
4286
4287         Tests for module 'unistr/u16-chr'.
4288         * modules/unistr/u16-chr-tests: New file.
4289         * tests/unistr/test-u16-chr.c: New file.
4290
4291         Tests for module 'unistr/u8-chr'.
4292         * modules/unistr/u8-chr-tests: New file.
4293         * tests/unistr/test-u8-chr.c: New file.
4294         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4295
4296         Tests for module 'unistr/u32-cmp2'.
4297         * modules/unistr/u32-cmp2-tests: New file.
4298         * tests/unistr/test-u32-cmp2.c: New file.
4299
4300         Tests for module 'unistr/u16-cmp2'.
4301         * modules/unistr/u16-cmp2-tests: New file.
4302         * tests/unistr/test-u16-cmp2.c: New file.
4303
4304         Tests for module 'unistr/u8-cmp2'.
4305         * modules/unistr/u8-cmp2-tests: New file.
4306         * tests/unistr/test-u8-cmp2.c: New file.
4307         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4308
4309         Tests for module 'unistr/u32-cmp'.
4310         * modules/unistr/u32-cmp-tests: New file.
4311         * tests/unistr/test-u32-cmp.c: New file.
4312
4313         Tests for module 'unistr/u16-cmp'.
4314         * modules/unistr/u16-cmp-tests: New file.
4315         * tests/unistr/test-u16-cmp.c: New file.
4316
4317         Tests for module 'unistr/u8-cmp'.
4318         * modules/unistr/u8-cmp-tests: New file.
4319         * tests/unistr/test-u8-cmp.c: New file.
4320         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4321
4322         Tests for module 'unistr/u32-set'.
4323         * modules/unistr/u32-set-tests: New file.
4324         * tests/unistr/test-u32-set.c: New file.
4325
4326         Tests for module 'unistr/u16-set'.
4327         * modules/unistr/u16-set-tests: New file.
4328         * tests/unistr/test-u16-set.c: New file.
4329
4330         Tests for module 'unistr/u8-set'.
4331         * modules/unistr/u8-set-tests: New file.
4332         * tests/unistr/test-u8-set.c: New file.
4333         * tests/unistr/test-set.h: New file.
4334
4335         Tests for module 'unistr/u32-move'.
4336         * modules/unistr/u32-move-tests: New file.
4337         * tests/unistr/test-u32-move.c: New file.
4338
4339         Tests for module 'unistr/u16-move'.
4340         * modules/unistr/u16-move-tests: New file.
4341         * tests/unistr/test-u16-move.c: New file.
4342
4343         Tests for module 'unistr/u8-move'.
4344         * modules/unistr/u8-move-tests: New file.
4345         * tests/unistr/test-u8-move.c: New file.
4346         * tests/unistr/test-move.h: New file.
4347
4348         Tests for module 'unistr/u32-cpy'.
4349         * modules/unistr/u32-cpy-tests: New file.
4350         * tests/unistr/test-u32-cpy.c: New file.
4351
4352         Tests for module 'unistr/u16-cpy'.
4353         * modules/unistr/u16-cpy-tests: New file.
4354         * tests/unistr/test-u16-cpy.c: New file.
4355
4356         Tests for module 'unistr/u8-cpy'.
4357         * modules/unistr/u8-cpy-tests: New file.
4358         * tests/unistr/test-u8-cpy.c: New file.
4359         * tests/unistr/test-cpy.h: New file.
4360
4361 2010-01-09  Bruno Haible  <bruno@clisp.org>
4362
4363         Tests for module 'unistr/u32-uctomb'.
4364         * modules/unistr/u32-uctomb-tests: New file.
4365         * tests/unistr/test-u32-uctomb.c: New file.
4366
4367         Tests for module 'unistr/u16-uctomb'.
4368         * modules/unistr/u16-uctomb-tests: New file.
4369         * tests/unistr/test-u16-uctomb.c: New file.
4370
4371         Tests for module 'unistr/u8-uctomb'.
4372         * modules/unistr/u8-uctomb-tests: New file.
4373         * tests/unistr/test-u8-uctomb.c: New file.
4374
4375         Tests for module 'unistr/u32-mbtoucr'.
4376         * modules/unistr/u32-mbtoucr-tests: New file.
4377         * tests/unistr/test-u32-mbtoucr.c: New file.
4378
4379         Tests for module 'unistr/u16-mbtoucr'.
4380         * modules/unistr/u16-mbtoucr-tests: New file.
4381         * tests/unistr/test-u16-mbtoucr.c: New file.
4382
4383         Tests for module 'unistr/u8-mbtoucr'.
4384         * modules/unistr/u8-mbtoucr-tests: New file.
4385         * tests/unistr/test-u8-mbtoucr.c: New file.
4386
4387         Tests for module 'unistr/u32-mbtouc'.
4388         * modules/unistr/u32-mbtouc-tests: New file.
4389         * tests/unistr/test-u32-mbtouc.c: New file.
4390
4391         Tests for module 'unistr/u16-mbtouc'.
4392         * modules/unistr/u16-mbtouc-tests: New file.
4393         * tests/unistr/test-u16-mbtouc.c: New file.
4394
4395         Tests for module 'unistr/u8-mbtouc'.
4396         * modules/unistr/u8-mbtouc-tests: New file.
4397         * tests/unistr/test-u8-mbtouc.c: New file.
4398
4399         Tests for module 'unistr/u32-mbtouc-unsafe'.
4400         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4401         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4402         * tests/unistr/test-u32-mbtouc.h: New file.
4403
4404         Tests for module 'unistr/u16-mbtouc-unsafe'.
4405         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4406         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4407         * tests/unistr/test-u16-mbtouc.h: New file.
4408
4409         Tests for module 'unistr/u8-mbtouc-unsafe'.
4410         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4411         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4412         * tests/unistr/test-u8-mbtouc.h: New file.
4413
4414         Tests for module 'unistr/u32-mblen'.
4415         * modules/unistr/u32-mblen-tests: New file.
4416         * tests/unistr/test-u32-mblen.c: New file.
4417
4418         Tests for module 'unistr/u16-mblen'.
4419         * modules/unistr/u16-mblen-tests: New file.
4420         * tests/unistr/test-u16-mblen.c: New file.
4421
4422         Tests for module 'unistr/u8-mblen'.
4423         * modules/unistr/u8-mblen-tests: New file.
4424         * tests/unistr/test-u8-mblen.c: New file.
4425
4426         Tests for module 'unistr/u32-to-u16'.
4427         * modules/unistr/u32-to-u16-tests: New file.
4428         * tests/unistr/test-u32-to-u16.c: New file.
4429
4430         Tests for module 'unistr/u32-to-u8'.
4431         * modules/unistr/u32-to-u8-tests: New file.
4432         * tests/unistr/test-u32-to-u8.c: New file.
4433
4434         Tests for module 'unistr/u16-to-u32'.
4435         * modules/unistr/u16-to-u32-tests: New file.
4436         * tests/unistr/test-u16-to-u32.c: New file.
4437
4438         Tests for module 'unistr/u16-to-u8'.
4439         * modules/unistr/u16-to-u8-tests: New file.
4440         * tests/unistr/test-u16-to-u8.c: New file.
4441
4442         Tests for module 'unistr/u8-to-u32'.
4443         * modules/unistr/u8-to-u32-tests: New file.
4444         * tests/unistr/test-u8-to-u32.c: New file.
4445
4446         Tests for module 'unistr/u8-to-u16'.
4447         * modules/unistr/u8-to-u16-tests: New file.
4448         * tests/unistr/test-u8-to-u16.c: New file.
4449
4450         Tests for module 'unistr/u32-check'.
4451         * modules/unistr/u32-check-tests: New file.
4452         * tests/unistr/test-u32-check.c: New file.
4453
4454         Tests for module 'unistr/u16-check'.
4455         * modules/unistr/u16-check-tests: New file.
4456         * tests/unistr/test-u16-check.c: New file.
4457
4458         Tests for module 'unistr/u8-check'.
4459         * modules/unistr/u8-check-tests: New file.
4460         * tests/unistr/test-u8-check.c: New file.
4461
4462         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4463         (category_equals): New function.
4464         (main): Add more tests.
4465         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4466
4467         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4468
4469 2010-01-10  Bruno Haible  <bruno@clisp.org>
4470
4471         unistr/u*-strcoll: Try harder to distinguish different strings.
4472         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4473         compare s1 and s2 to see if they are different.
4474
4475 2010-01-10  Bruno Haible  <bruno@clisp.org>
4476
4477         unistr/u*-stpncpy: Fix the return value.
4478         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4479         description of the return value consistent with stpncpy in glibc.
4480         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4481         written non-NUL unit.
4482
4483 2010-01-10  Bruno Haible  <bruno@clisp.org>
4484
4485         unistr/u*-next: Add missing dependencies.
4486         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4487         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4488         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4489
4490 2010-01-10  Bruno Haible  <bruno@clisp.org>
4491
4492         unistr/u8-mbsnlen: Fix return value for incomplete character.
4493         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4494         u8_mblen.
4495         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4496         Remove unistr/u8-mblen.
4497         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4498         u16_mblen.
4499         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4500         Remove unistr/u16-mblen.
4501
4502 2010-01-10  Bruno Haible  <bruno@clisp.org>
4503
4504         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4505         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4506         Reported by Brian Gough <bjg@gnu.org> and
4507         Chris Clayton <chris2553@googlemail.com> via
4508         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4509
4510 2010-01-09  Bruno Haible  <bruno@clisp.org>
4511
4512         unistr/u16-to-u32: Reject invalid input.
4513         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4514         u16_mbtouc.
4515         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4516         Remove unistr/u16-mbtouc.
4517
4518         unistr/u16-to-u8: Reject invalid input.
4519         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4520         u16_mbtouc.
4521         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4522         Remove unistr/u16-mbtouc.
4523
4524         unistr/u8-to-u32: Reject invalid input.
4525         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4526         u8_mbtouc.
4527         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4528         Remove unistr/u8-mbtouc.
4529
4530         unistr/u8-to-u16: Reject invalid input.
4531         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4532         u8_mbtouc.
4533         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4534         Remove unistr/u8-mbtouc.
4535
4536 2010-01-09  Bruno Haible  <bruno@clisp.org>
4537
4538         Tests for module 'getlogin'.
4539         * modules/getlogin-tests: New file.
4540         * tests/test-getlogin.c: New file.
4541
4542         New module 'getlogin'.
4543         * lib/unistd.in.h (getlogin): New declaration.
4544         * lib/getlogin.c: New file.
4545         * m4/getlogin.m4: New file.
4546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4547         HAVE_GETLOGIN.
4548         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4549         HAVE_GETLOGIN.
4550         * modules/getlogin: New file.
4551         * doc/posix-functions/getlogin.texi: Mention the new module.
4552         Reported by John W. Eaton <jwe@gnu.org>.
4553
4554 2010-01-09  Bruno Haible  <bruno@clisp.org>
4555
4556         getlogin_r: Support for native Windows.
4557         * lib/getlogin_r.c: Include <windows.h>
4558         (getlogin_r): Implement for native Windows.
4559         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4560         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4561         via John W. Eaton <jwe@gnu.org>.
4562
4563 2010-01-09  Bruno Haible  <bruno@clisp.org>
4564
4565         getlogin_r: Small fixes.
4566         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4567         succeeds.
4568         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4569         before testing whether getlogin_r is declared. No need to set
4570         HAVE_DECL_GETLOGIN_R to 1.
4571         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4572
4573 2010-01-09  Bruno Haible  <bruno@clisp.org>
4574
4575         * lib/unistd.in.h (getlogin_r): Add comment.
4576
4577 2010-01-09  Bruno Haible  <bruno@clisp.org>
4578
4579         Tests for module 'getlogin_r'.
4580         * modules/getlogin_r-tests: New file.
4581         * tests/test-getlogin_r.c: New file.
4582
4583 2010-01-09  Jim Meyering  <meyering@redhat.com>
4584
4585         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4586         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4587         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4588
4589 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4590
4591         * lib/dup2.c (rpl_dup2): Improve comment.
4592
4593 2010-01-08  Eric Blake  <ebb9@byu.net>
4594
4595         maint.mk: allow packages to add makefile @@ exceptions
4596         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4597         (sc_makefile_check): Rename...
4598         (sc_makefile_at_at_check): ...to this, and use hook.
4599
4600         dup2: work around mingw bug
4601         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4602         Reported by Simon Josefsson.
4603
4604 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4605
4606         glob: Fix C++ compilation.
4607         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4608         C++.
4609
4610 2010-01-07  Bruno Haible  <bruno@clisp.org>
4611
4612         Fix indentation of wctype.in.h, broken since 2007-01-06.
4613         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4614
4615 2010-01-07  Bruno Haible  <bruno@clisp.org>
4616
4617         mbslen: Avoid collision with system function.
4618         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4619         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4620         * m4/mbslen.m4: New file.
4621         * modules/mbslen (Files): Add it.
4622         (configure.ac): Invoke gl_MBSLEN.
4623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4624         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4625         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4626         via Ian Beckwith <ianb@erislabs.net>.
4627
4628 2010-01-07  Bruno Haible  <bruno@clisp.org>
4629
4630         dirent: Document the last fix.
4631         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4632
4633 2010-01-07  Bruno Haible  <bruno@clisp.org>
4634
4635         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4636         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4637         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4638         va_list are defined.
4639         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4640         Reported by Eric Blake.
4641
4642 2010-01-07  Bruno Haible  <bruno@clisp.org>
4643
4644         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4645         * modules/xlist (Depends-on): Add 'list',
4646         * modules/xoset (Depends-on): Add 'oset'.
4647         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4648
4649 2010-01-07  Bruno Haible  <bruno@clisp.org>
4650
4651         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4652         * doc/posix-functions/strncasecmp.texi: Likewise.
4653
4654 2010-01-07  Bruno Haible  <bruno@clisp.org>
4655
4656         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4657
4658 2010-01-07  John W. Eaton  <jwe@octave.org>
4659
4660         wctype: allow C++ use
4661         * lib/wctype.in.h: Add extern "C" block for C++.
4662
4663 2010-01-06  Eric Blake  <ebb9@byu.net>
4664
4665         maint.mk: detect incorrect GFDL usage
4666         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4667
4668 2010-01-06  Jim Meyering  <meyering@redhat.com>
4669         and Eric Blake  <ebb9@byu.net>
4670
4671         maint.mk: ignore multi-line copyright in NEWS
4672         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4673
4674 2010-01-06  Eric Blake  <ebb9@byu.net>
4675
4676         select: add missing dependency
4677         * modules/select-tests (Depends-on): Move sockets dependency...
4678         * modules/select (Depends-on): ...here.
4679         Reported by Ian Beckwith.
4680
4681         doc: regenerate INSTALL
4682         * doc/INSTALL: Reflect recent autoconf update.
4683         * doc/INSTALL.ISO: Likewise.
4684         * doc/INSTALL.UTF-8: Likewise.
4685
4686         pread: fix compilation on glibc
4687         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4688         Reported by Ralf Wildenhues.
4689
4690         dirent: fix test failure
4691         * lib/dirent.in.h (includes): Guarantee ino_t.
4692         Reported by Ralf Wildenhues.
4693
4694 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4695
4696         linkat, renameat: avoid bad free
4697         * lib/at-func2.c (at_func2): Fix typo.
4698         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4699
4700 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4701
4702         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4703         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4704         to avoid failure of symlink test later.
4705
4706 2010-01-06  Eric Blake  <ebb9@byu.net>
4707
4708         stdio, unistd: guarantee ssize_t
4709         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4710         2008 are exposed when needed.
4711         * lib/stdio.in.h (includes): Likewise.
4712         Reported by Ralf Wildenhues.
4713
4714 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4715
4716         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4717         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4718         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4719
4720 2010-01-06  Jim Meyering  <meyering@redhat.com>
4721
4722         readtokens: this module *does* require xalloc.h
4723         It uses only functions that were omitted by the old syntax-check rule.
4724         * lib/readtokens.c: Include "xalloc.h" once again.
4725         * modules/readtokens (Depends-on): Add xalloc.
4726         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4727
4728 2010-01-05  Eric Blake  <ebb9@byu.net>
4729
4730         maint: support 'make announcement' from a VPATH build
4731         * top/maint.mk (announcement): Look for correct NEWS file.
4732
4733 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4734
4735         utimens (fdutimens): ignore a negative FD, per contract
4736         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4737         when we have a valid file descriptor.  Otherwise, using a brand
4738         new glibc (with just-patched futimens that now fails with EBADF)
4739         would cause this function to fail with ENOSYS.
4740         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4741         See also http://bugzilla.redhat.com/552320.
4742
4743 2010-01-05  Eric Blake  <ebb9@byu.net>
4744
4745         strcase: document what it provides
4746         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4747         gnulib module.
4748         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4749         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4750
4751 2010-01-05  Jim Meyering  <meyering@redhat.com>
4752
4753         maint: remove useless inclusions of "xalloc.h"
4754         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4755         * lib/readtokens.c: Likewise.
4756         * lib/same.c: Likewise.
4757         * modules/getloadavg (Depends-on): Remove xalloc.
4758         * modules/readtokens: Likewise.
4759         * modules/same: Likewise.
4760
4761         maint.mk: include 4 more function names in alloca.h-checking regexp
4762         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4763         regexp.  Before, we would give a false-positive (saying alloca.h
4764         is included unnecessarily) when the only uses involved omitted symbols.
4765
4766         xalloc.h: use consistent formatting
4767         * lib/xalloc.h: Move declarations to start in the first column.
4768
4769 2010-01-05  Eric Blake  <ebb9@byu.net>
4770
4771         mkdir: avoid xalloc
4772         * lib/mkdir.c (includes): Drop unused header.
4773         Reported by John W. Eaton.
4774
4775 2010-01-04  Jim Meyering  <meyering@redhat.com>
4776
4777         nl_langinfo: avoid configure-time syntax error
4778         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4779         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4780         the empty string.  Don't let that provoke a shell syntax error.
4781
4782         regcomp, regexec, fnmatch: avoid array bounds read error
4783         * lib/regcomp.c (build_equiv_class): From glibc:
4784         Use only the low 24 bits of a findidx return value as an index
4785         into the weights array.  Patch by Ulrich Drepper:
4786         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4787         * lib/regexec.c (check_node_accept_bytes): Likewise.
4788         * lib/fnmatch_loop.c (FCT): Likewise.
4789
4790         regcomp: skip collseq lookup when there are no rules
4791         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4792         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4793
4794         regcomp: recognize ill-formed { } expressions
4795         * lib/regcomp.c (parse_dup_op): From glibc:
4796         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4797
4798         regcomp: fix typo in comment
4799         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4800         s/satisfy/satisfies/.
4801
4802         regcomp: sync from glibc: remove dead store
4803         * lib/regcomp.c (duplicate_node_closure): Remove useless
4804         search_duplicated_node call and dead store.
4805
4806         regcomp: sync from glibc; always use nl_langinfo
4807         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4808         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4809         * modules/regex (Depends-on): Add nl_langinfo.
4810
4811 2010-01-04  Eric Blake  <ebb9@byu.net>
4812
4813         fdopendir: fix configure test
4814         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4815
4816 2010-01-01  Bruno Haible  <bruno@clisp.org>
4817
4818         wchar: Remove unused configure check.
4819         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4820
4821 2010-01-01  Eric Blake  <ebb9@byu.net>
4822
4823         headers: make check of system header explicit
4824         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4825         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4826         ourselves.
4827         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4828         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4829         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4830         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4831         internals.
4832         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4833         missing.
4834         Suggested by Bruno Haible.
4835
4836 2010-01-01  Jim Meyering  <meyering@redhat.com>
4837
4838         ChangeLog: tweak to eliminate unnecessary copyright line
4839         * ChangeLog: Remove a copyright line that was mistakenly updated
4840         by today's update-copyright run.  Reported by Eric Blake.
4841
4842         test-update-copyright: don't let envvar setting cause test failure
4843         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4844
4845 2010-01-01  Bruno Haible  <bruno@clisp.org>
4846
4847         localename: Avoid gcc warning.
4848         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4849         function if it is not used.
4850
4851 2010-01-01  Jim Meyering  <meyering@redhat.com>
4852
4853         update nearly all FSF copyright year lists to include 2010
4854         Use the same procedure as for 2009, outlined in
4855         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4856
4857         version-etc: set COPYRIGHT_YEAR to 2010
4858         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4859
4860 2009-12-31  Eric Blake  <ebb9@byu.net>
4861
4862         doc: correct availability of cygwin 1.5.x getopt
4863         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4864         variables.
4865         * doc/posix-functions/opterr.texi (opterr): Likewise.
4866         * doc/posix-functions/optind.texi (optind): Likewise.
4867         * doc/posix-functions/optopt.texi (optopt): Likewise.
4868         * doc/posix-functions/tzname.texi (tzname): Likewise.
4869
4870         openat: update maintainer
4871         * modules/openat (Maintainer): Add myself.
4872
4873         utimens: avoid shadowing warning
4874         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4875         buffers into one, to avoid shadowing, as well as avoiding a
4876         redundant stat.
4877         Reported by Jim Meyering.
4878
4879         test-dup2: avoid compiler warning
4880         * tests/test-dup2.c (is_inheritable): Only define if used.
4881
4882 2010-01-01  Bruno Haible  <bruno@clisp.org>
4883
4884         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4885         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4886         defined, use wctomb instead of wcrtomb.
4887
4888 2010-01-01  Bruno Haible  <bruno@clisp.org>
4889
4890         iconv: Reject native Solaris iconv.
4891         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4892         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4893
4894 2009-12-31  Bruno Haible  <bruno@clisp.org>
4895
4896         * tests/test-signal.c (main): Remove test of 'SIG'.
4897
4898 2009-12-31  Bruno Haible  <bruno@clisp.org>
4899
4900         spawn: Fix incomplete fix.
4901         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4902         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4903         warnings for GNULIB_POSIXCHECK again.
4904         Reported by Eric Blake.
4905
4906 2009-12-31  Bruno Haible  <bruno@clisp.org>
4907
4908         Avoid namespace pollution on glibc systems.
4909         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4910         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4911         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4912         glibc systems.
4913
4914 2009-12-31  Bruno Haible  <bruno@clisp.org>
4915
4916         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4917         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4918         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4919         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4920         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4921         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4922         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4923
4924 2009-12-31  Bruno Haible  <bruno@clisp.org>
4925
4926         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4927         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4928         afterwards.
4929
4930 2009-12-31  Bruno Haible  <bruno@clisp.org>
4931
4932         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4933         SYS_UTSNAME_H.
4934
4935 2009-12-31  Bruno Haible  <bruno@clisp.org>
4936
4937         spawn: Fix misapplied patch.
4938         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4939         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4940         warnings for GNULIB_POSIXCHECK.
4941
4942 2009-12-31  Bruno Haible  <bruno@clisp.org>
4943
4944         times: Update after sys_times changed.
4945         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4946         * modules/times (Files): Add it.
4947         (configure.ac): Invoke gl_FUNC_TIMES.
4948
4949 2009-12-31  Bruno Haible  <bruno@clisp.org>
4950
4951         Use AC_C_INLINE where necessary.
4952         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4953         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4954         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4955         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4956         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4957         * m4/mbiter.m4 (gl_MBITER): Likewise.
4958         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4959         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4960         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4961         * modules/u64 (configure.ac): Likewise.
4962
4963 2009-12-31  Bruno Haible  <bruno@clisp.org>
4964
4965         Use AC_C_INLINE instead of module 'inline' where possible.
4966         * modules/inline (Description): Clarify purpose.
4967         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4968         * modules/count-one-bits (Depends-on): Remove inline.
4969         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4970         * modules/openat (Depends-on): Remove inline.
4971         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4972         instead of depending on module 'inline'.
4973         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4974         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4975         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4976         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4977         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4978         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4979         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4980         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4981         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4982         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4983         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4984         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4985         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4986         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4987         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4988         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4989         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4990         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4991         Likewise.
4992         * modules/unictype/property-ascii-hex-digit (Depends-on,
4993         configure.ac): Likewise.
4994         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4995         configure.ac): Likewise.
4996         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4997         configure.ac): Likewise.
4998         * modules/unictype/property-bidi-block-separator (Depends-on,
4999         configure.ac): Likewise.
5000         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
5001         configure.ac): Likewise.
5002         * modules/unictype/property-bidi-common-separator (Depends-on,
5003         configure.ac): Likewise.
5004         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
5005         Likewise.
5006         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
5007         configure.ac): Likewise.
5008         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
5009         configure.ac): Likewise.
5010         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
5011         configure.ac): Likewise.
5012         * modules/unictype/property-bidi-european-digit (Depends-on,
5013         configure.ac): Likewise.
5014         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
5015         configure.ac): Likewise.
5016         * modules/unictype/property-bidi-left-to-right (Depends-on,
5017         configure.ac): Likewise.
5018         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
5019         configure.ac): Likewise.
5020         * modules/unictype/property-bidi-other-neutral (Depends-on,
5021         configure.ac): Likewise.
5022         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
5023         Likewise.
5024         * modules/unictype/property-bidi-segment-separator (Depends-on,
5025         configure.ac): Likewise.
5026         * modules/unictype/property-bidi-whitespace (Depends-on,
5027         configure.ac): Likewise.
5028         * modules/unictype/property-combining (Depends-on, configure.ac):
5029         Likewise.
5030         * modules/unictype/property-composite (Depends-on, configure.ac):
5031         Likewise.
5032         * modules/unictype/property-currency-symbol (Depends-on,
5033         configure.ac): Likewise.
5034         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
5035         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
5036         Likewise.
5037         * modules/unictype/property-default-ignorable-code-point (Depends-on,
5038         configure.ac): Likewise.
5039         * modules/unictype/property-deprecated (Depends-on, configure.ac):
5040         Likewise.
5041         * modules/unictype/property-diacritic (Depends-on, configure.ac):
5042         Likewise.
5043         * modules/unictype/property-extender (Depends-on, configure.ac):
5044         Likewise.
5045         * modules/unictype/property-format-control (Depends-on, configure.ac):
5046         Likewise.
5047         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
5048         Likewise.
5049         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
5050         Likewise.
5051         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
5052         Likewise.
5053         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
5054         Likewise.
5055         * modules/unictype/property-hyphen (Depends-on, configure.ac):
5056         Likewise.
5057         * modules/unictype/property-id-continue (Depends-on, configure.ac):
5058         Likewise.
5059         * modules/unictype/property-id-start (Depends-on, configure.ac):
5060         Likewise.
5061         * modules/unictype/property-ideographic (Depends-on, configure.ac):
5062         Likewise.
5063         * modules/unictype/property-ids-binary-operator (Depends-on,
5064         configure.ac): Likewise.
5065         * modules/unictype/property-ids-trinary-operator (Depends-on,
5066         configure.ac): Likewise.
5067         * modules/unictype/property-ignorable-control (Depends-on,
5068         configure.ac): Likewise.
5069         * modules/unictype/property-iso-control (Depends-on, configure.ac):
5070         Likewise.
5071         * modules/unictype/property-join-control (Depends-on, configure.ac):
5072         Likewise.
5073         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
5074         Likewise.
5075         * modules/unictype/property-line-separator (Depends-on, configure.ac):
5076         Likewise.
5077         * modules/unictype/property-logical-order-exception (Depends-on,
5078         configure.ac): Likewise.
5079         * modules/unictype/property-lowercase (Depends-on, configure.ac):
5080         Likewise.
5081         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
5082         * modules/unictype/property-non-break (Depends-on, configure.ac):
5083         Likewise.
5084         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
5085         Likewise.
5086         * modules/unictype/property-numeric (Depends-on, configure.ac):
5087         Likewise.
5088         * modules/unictype/property-other-alphabetic (Depends-on,
5089         configure.ac): Likewise.
5090         * modules/unictype/property-other-default-ignorable-code-point
5091         (Depends-on, configure.ac): Likewise.
5092         * modules/unictype/property-other-grapheme-extend (Depends-on,
5093         configure.ac): Likewise.
5094         * modules/unictype/property-other-id-continue (Depends-on,
5095         configure.ac): Likewise.
5096         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
5097         Likewise.
5098         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
5099         Likewise.
5100         * modules/unictype/property-other-math (Depends-on, configure.ac):
5101         Likewise.
5102         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
5103         Likewise.
5104         * modules/unictype/property-paired-punctuation (Depends-on,
5105         configure.ac): Likewise.
5106         * modules/unictype/property-paragraph-separator (Depends-on,
5107         configure.ac): Likewise.
5108         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
5109         Likewise.
5110         * modules/unictype/property-pattern-white-space (Depends-on,
5111         configure.ac): Likewise.
5112         * modules/unictype/property-private-use (Depends-on, configure.ac):
5113         Likewise.
5114         * modules/unictype/property-punctuation (Depends-on, configure.ac):
5115         Likewise.
5116         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
5117         Likewise.
5118         * modules/unictype/property-radical (Depends-on, configure.ac):
5119         Likewise.
5120         * modules/unictype/property-sentence-terminal (Depends-on,
5121         configure.ac): Likewise.
5122         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
5123         Likewise.
5124         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
5125         * modules/unictype/property-terminal-punctuation (Depends-on,
5126         configure.ac): Likewise.
5127         * modules/unictype/property-titlecase (Depends-on, configure.ac):
5128         Likewise.
5129         * modules/unictype/property-unassigned-code-value (Depends-on,
5130         configure.ac): Likewise.
5131         * modules/unictype/property-unified-ideograph (Depends-on,
5132         configure.ac): Likewise.
5133         * modules/unictype/property-uppercase (Depends-on, configure.ac):
5134         Likewise.
5135         * modules/unictype/property-variation-selector (Depends-on,
5136         configure.ac): Likewise.
5137         * modules/unictype/property-white-space (Depends-on, configure.ac):
5138         Likewise.
5139         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
5140         Likewise.
5141         * modules/unictype/property-xid-start (Depends-on, configure.ac):
5142         Likewise.
5143         * modules/unictype/property-zero-width (Depends-on, configure.ac):
5144         Likewise.
5145         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
5146         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
5147         Likewise.
5148
5149 2009-12-31  Bruno Haible  <bruno@clisp.org>
5150
5151         Remove unnecessary AC_C_INLINE invocation.
5152         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
5153         since 2009-08-21.
5154
5155 2009-12-31  Jim Meyering  <meyering@redhat.com>
5156
5157         maint.mk: don't require explicit gpg_key_ID in cfg.mk
5158         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
5159         With this change, we can all remove the gpg_key_ID = ... definition
5160         from our respective cfg.mk files.
5161
5162         maint.mk: create announcement template in ~/, not in /tmp
5163         * top/maint.mk (emit_upload_commands): Adjust.
5164         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
5165         Remove temporary file, .ci-msg.
5166
5167 2009-12-31  Eric Blake  <ebb9@byu.net>
5168
5169         link-warning: always build headers with link warnings
5170         * modules/arpa_inet (Makefile.am): Always build replacement
5171         header.
5172         * modules/ctype (Makefile.am): Likewise.
5173         * modules/dirent (Makefile.am): Likewise.
5174         * modules/inttypes (Makefile.am): Likewise.
5175         * modules/langinfo (Makefile.am): Likewise.
5176         * modules/locale (Makefile.am): Likewise.
5177         * modules/spawn (Makefile.am): Likewise.
5178         * modules/sys_file (Makefile.am): Likewise.
5179         * modules/sys_ioctl (Makefile.am): Likewise.
5180         * modules/sys_select (Makefile.am): Likewise.
5181         * modules/sys_socket (Makefile.am): Likewise.
5182         * modules/sys_times (Makefile.am): Likewise.
5183         * modules/sys_utsname (Makefile.am): Likewise.
5184         * modules/sys_wait (Makefile.am): Likewise.
5185         * modules/wchar (Makefile.am): Likewise.
5186         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5187         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5188         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5189         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5190         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5191         Likewise.
5192         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5193         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5194         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5195         Likewise.
5196         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5197         Likewise.
5198         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5199         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5200         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5201         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5202         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5203         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5204         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5205         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5206         (gl_WCHAR_H_DEFAULTS): Likewise.
5207
5208 2009-12-31  Eric Blake  <ebb9@byu.net>
5209
5210         signal, spawn: use link warnings
5211         * lib/signal.in.h (sigset_t): Make unconditional.
5212         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5213         (sigpending, sigprocmask, sigaction): Add link warnings.
5214         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5215         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5216         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5217         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5218         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5219         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5220         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5221         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5222         (posix_spawn_file_actions_destroy)
5223         (posix_spawn_file_actions_addopen)
5224         (posix_spawn_file_actions_addclose)
5225         (posix_spawn_file_actions_adddup2): Likewise.
5226         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5227         * tests/test-signal.c (main): Enhance test.
5228
5229         spawn: improve wrapper support
5230         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5231         (gl_SPAWN_H_DEFAULTS): New defaults.
5232         * modules/spawn (Makefile.am): Substitute them.
5233         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5234         Only declare if missing or broken.
5235
5236         sys_times, sys_utsname: use include_next
5237         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5238         header.
5239         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5240         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5241         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5242         * modules/sys_times (Depends-on): Add include_next.
5243         (Makefile.am): Substitute additional values.
5244         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5245         * lib/sys_times.in.h (includes): Include native header, if
5246         available.
5247         * lib/sys_utsname.in.h (includes): Likewise.
5248         * tests/test-sys_times.c (main): Enhance test.
5249
5250         fdutimensat: revert prior patch
5251         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5252         utimens.h.
5253         Reported by Bruno Haible.
5254
5255 2009-12-30  Eric Blake  <ebb9@byu.net>
5256
5257         sys_wait: drop link-warning dependency
5258         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5259         link-warning efforts.
5260         * lib/sys_wait.in.h: Likewise.
5261
5262         fdutimensat: remove bogus dependency
5263         * modules/fdutimensat (Depends-on): Drop inline.
5264
5265         unistd: fix typo
5266         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5267
5268 2009-12-30  Bruno Haible  <bruno@clisp.org>
5269
5270         Fix compilation error with Solaris cc.
5271         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5272         * lib/unicase/u16-is-invariant.c: Likewise.
5273         * lib/unicase/u32-is-invariant.c: Likewise.
5274         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5275
5276 2009-12-30  Bruno Haible  <bruno@clisp.org>
5277
5278         Fix test crash.
5279         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5280         locales.
5281         Reported by Simon Josefsson <simon@josefsson.org>.
5282
5283 2009-12-30  Bruno Haible  <bruno@clisp.org>
5284
5285         Fix compilation error on most platforms.
5286         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5287         Reported by Simon Josefsson <simon@josefsson.org>
5288         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5289
5290 2009-12-30  Eric Blake  <ebb9@byu.net>
5291
5292         futimens, utimensat: work around ntfs-3g bug
5293         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5294         a ctime bug is present, and expand workaround to cover ntfs-3g.
5295         * lib/utimens.c (fdutimens, lutimens): Likewise.
5296         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5297         (validate_timespec): Adjust return value.
5298         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5299         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5300         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5301
5302 2009-12-29  Eric Blake  <ebb9@byu.net>
5303
5304         link-warning: make usage consistent
5305         * modules/ctype (Depends-on): Add link-warning.
5306         (Makefile.am): Update rules accordingly.
5307         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5308         * modules/locale (Depends-on, Makefile.am): Likewise.
5309         * modules/sys_file (Makefile.am): Likewise.
5310         * modules/getopt-posix (Makefile.am): Delete unused link warning
5311         efforts.
5312         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5313         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5314         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5315         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5316
5317         stdio: remove unused variables
5318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5319         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5320         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5321
5322         tests: test more substitute headers
5323         * modules/ctype-tests: New file.
5324         * modules/dirent-tests: Likewise.
5325         * modules/spawn-tests: Likewise.
5326         * modules/sys_file-tests: Likewise.
5327         * modules/sys_ioctl-tests: Likewise.
5328         * modules/sys_wait-tests: Likewise.
5329         * tests/test-ctype.c: Likewise.
5330         * tests/test-dirent.c: Likewise.
5331         * tests/test-spawn.c: Likewise.
5332         * tests/test-sys_file.c: Likewise.
5333         * tests/test-sys_ioctl.c: Likewise.
5334         * tests/test-sys_wait.c: Likewise.
5335         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5336         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5337         whether or not flock is in use.
5338
5339         tests: remove License section from module
5340         * modules/arpa_inet-tests: Remove unneeded section.
5341         * modules/byteswap-tests: Likewise.
5342         * modules/ceilf-tests: Likewise.
5343         * modules/ceill-tests: Likewise.
5344         * modules/crypto/des-tests: Likewise.
5345         * modules/crypto/gc-arcfour-tests: Likewise.
5346         * modules/crypto/gc-arctwo-tests: Likewise.
5347         * modules/crypto/gc-des-tests: Likewise.
5348         * modules/crypto/gc-hmac-md5-tests: Likewise.
5349         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5350         * modules/crypto/gc-md2-tests: Likewise.
5351         * modules/crypto/gc-md4-tests: Likewise.
5352         * modules/crypto/gc-md5-tests: Likewise.
5353         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5354         * modules/crypto/gc-rijndael-tests: Likewise.
5355         * modules/crypto/gc-sha1-tests: Likewise.
5356         * modules/crypto/gc-tests: Likewise.
5357         * modules/crypto/md2-tests: Likewise.
5358         * modules/crypto/md4-tests: Likewise.
5359         * modules/fcntl-h-tests: Likewise.
5360         * modules/floorf-tests: Likewise.
5361         * modules/floorl-tests: Likewise.
5362         * modules/frexp-nolibm-tests: Likewise.
5363         * modules/frexp-tests: Likewise.
5364         * modules/frexpl-nolibm-tests: Likewise.
5365         * modules/frexpl-tests: Likewise.
5366         * modules/getaddrinfo-tests: Likewise.
5367         * modules/inttypes-tests: Likewise.
5368         * modules/isfinite-tests: Likewise.
5369         * modules/isinf-tests: Likewise.
5370         * modules/ldexpl-tests: Likewise.
5371         * modules/locale-tests: Likewise.
5372         * modules/math-tests: Likewise.
5373         * modules/netdb-tests: Likewise.
5374         * modules/netinet_in-tests: Likewise.
5375         * modules/printf-frexp-tests: Likewise.
5376         * modules/printf-frexpl-tests: Likewise.
5377         * modules/priv-set-tests: Likewise.
5378         * modules/random_r-tests: Likewise.
5379         * modules/round-tests: Likewise.
5380         * modules/roundf-tests: Likewise.
5381         * modules/roundl-tests: Likewise.
5382         * modules/search-tests: Likewise.
5383         * modules/select-tests: Likewise.
5384         * modules/signal-tests: Likewise.
5385         * modules/stdbool-tests: Likewise.
5386         * modules/stddef-tests: Likewise.
5387         * modules/stdint-tests: Likewise.
5388         * modules/stdio-tests: Likewise.
5389         * modules/stdlib-tests: Likewise.
5390         * modules/string-tests: Likewise.
5391         * modules/strings-tests: Likewise.
5392         * modules/sys_select-tests: Likewise.
5393         * modules/sys_socket-tests: Likewise.
5394         * modules/sys_stat-tests: Likewise.
5395         * modules/sys_time-tests: Likewise.
5396         * modules/sys_utsname-tests: Likewise.
5397         * modules/sysexits-tests: Likewise.
5398         * modules/time-tests: Likewise.
5399         * modules/trunc-tests: Likewise.
5400         * modules/truncf-tests: Likewise.
5401         * modules/truncl-tests: Likewise.
5402         * modules/tsearch-tests: Likewise.
5403         * modules/unistd-tests: Likewise.
5404         * modules/wchar-tests: Likewise.
5405         * modules/wctype-tests: Likewise.
5406
5407         tests: fix license on several tests
5408         * tests/test-des.c: Update to GPLv3+.
5409         * tests/test-flock.c: Likewise.
5410         * tests/test-fsync.c: Likewise.
5411         * tests/test-futimens.h: Likewise.
5412         * tests/test-gc-arcfour.c: Likewise.
5413         * tests/test-gc-arctwo.c: Likewise.
5414         * tests/test-gc-des.c: Likewise.
5415         * tests/test-gc-hmac-md5.c: Likewise.
5416         * tests/test-gc-hmac-sha1.c: Likewise.
5417         * tests/test-gc-md2.c: Likewise.
5418         * tests/test-gc-md4.c: Likewise.
5419         * tests/test-gc-md5.c: Likewise.
5420         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5421         * tests/test-gc-rijndael.c: Likewise.
5422         * tests/test-gc-sha1.c: Likewise.
5423         * tests/test-gc.c: Likewise.
5424         * tests/test-getcwd.c: Likewise.
5425         * tests/test-link.c: Likewise.
5426         * tests/test-link.h: Likewise.
5427         * tests/test-lutimens.h: Likewise.
5428         * tests/test-md2.c: Likewise.
5429         * tests/test-md4.c: Likewise.
5430         * tests/test-mkdir.h: Likewise.
5431         * tests/test-rename.c: Likewise.
5432         * tests/test-rename.h: Likewise.
5433         * tests/test-safe-alloc.c: Likewise.
5434         * tests/test-utimens-common.h: Likewise.
5435         * tests/test-utimens.h: Likewise.
5436
5437         maint: sync license texts
5438         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5439         * doc/gpl-3.0.texi: Revert copyright year update.
5440         * doc/lgpl-3.0.texi: Likewise.
5441
5442 2009-12-29  Jim Meyering  <meyering@redhat.com>
5443
5444         update nearly all FSF copyright year lists to include 2009
5445         The files named by the following are exempted:
5446             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5447               test -f "$dst" && { echo "$dst"; continue; }
5448               test -d "$dst" || continue
5449               echo "$dst"/$(basename "$src")
5450             done > exempt
5451             git ls-files tests/unictype >> exempt
5452         In the remaining files, convert to all-interval notation if
5453         - there is already at least one year interval like 2000-2003
5454         - the file is maintained by me
5455         - the file is in lib/uni*/, where that style already prevails
5456         Otherwise, use update-copyright's default.
5457
5458 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5459         and Eric Blake  <ebb9@byu.net>
5460
5461         tests: don't require debug system() to pass
5462         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5463         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5464         * tests/test-unlink.h (test_unlink_func): Likewise.
5465         * tests/test-fstatat.c (main): ...into callers.
5466         * tests/test-lstat.c (main): Likewise.
5467         * tests/test-rmdir.c (main): Likewise.
5468         * tests/test-unlink.c (main): Likewise.
5469         * tests/test-unlinkat.c (main): Likewise.
5470         * tests/test-areadlink-with-size.c (main): Don't require a
5471         debug-only system call to pass, aiding cross-testing to mingw.
5472         * tests/test-areadlink.c (main): Likewise.
5473         * tests/test-areadlinkat-with-size.c (main): Likewise.
5474         * tests/test-areadlinkat.c (main): Likewise.
5475         * tests/test-canonicalize-lgpl.c (main): Likewise.
5476         * tests/test-canonicalize.c (main): Likewise.
5477         * tests/test-chown.c (main): Likewise.
5478         * tests/test-fchownat.c (main): Likewise.
5479         * tests/test-lchown.c (main): Likewise.
5480         * tests/test-fdutimensat.c (main): Likewise.
5481         * tests/test-futimens.c (main): Likewise.
5482         * tests/test-link.c (main): Likewise.
5483         * tests/test-linkat.c (main): Likewise.
5484         * tests/test-mkdir.c (main): Likewise.
5485         * tests/test-mkdirat.c (main): Likewise.
5486         * tests/test-mkfifo.c (main): Likewise.
5487         * tests/test-mkfifoat.c (main): Likewise.
5488         * tests/test-mknod.c (main): Likewise.
5489         * tests/test-readlink.c (main): Likewise.
5490         * tests/test-remove.c (main): Likewise.
5491         * tests/test-rename.c (main): Likewise.
5492         * tests/test-renameat.c (main): Likewise.
5493         * tests/test-symlink.c (main): Likewise.
5494         * tests/test-symlinkat.c (main): Likewise.
5495         * tests/test-utimens.c (main): Likewise.
5496         * tests/test-utimensat.c (main): Likewise.
5497
5498 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5499
5500         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5501         on $(UNUSED_PARAMETER_H) to avoid build failure.
5502
5503 2009-12-28  Jim Meyering  <meyering@redhat.com>
5504
5505         update-copyright: you may specify a max. line length other than 72
5506         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5507
5508         maint: use consistent FSF copyright line syntax
5509         * lib/posixtm.c: Add missing comma in FSF copyright line.
5510         * lib/posixtm.h: Likewise.
5511         * lib/getugroups.c: Add missing ", Inc.".
5512
5513         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5514         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5515         FSF copyright line.  Remove trailing blanks.
5516
5517 2009-12-28  Eric Blake  <ebb9@byu.net>
5518
5519         test-dup2: reduce dependencies
5520         * modules/cloexec (Configure.ac): Set witness.
5521         * modules/dup2-tests (Depends-on): Drop cloexec.
5522         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5523         not present.
5524         Suggested by Bruno Haible.
5525
5526 2009-12-26  Bruno Haible  <bruno@clisp.org>
5527
5528         Remove an unneeded dependency.
5529         * modules/fseterr (Depends-on): Remove dup2.
5530
5531 2009-12-26  Eric Blake  <ebb9@byu.net>
5532
5533         tests: use macros.h in more places
5534         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5535         (ASSERT_STREAM): Provide default of stderr.
5536         * tests/test-dirent-safer.c: Include macros.h, using alternate
5537         stream for assertions.
5538         * tests/test-dup-safer.c: Likewise.
5539         * tests/test-freopen-safer.c: Likewise.
5540         * tests/test-getopt.c: Likewise.
5541         * tests/test-openat-safer.c: Likewise.
5542         * tests/test-pipe.c: Likewise.
5543         * tests/test-popen-safer.c: Likewise.
5544         * modules/dirent-safer-tests (Files): Include macros.h.
5545         * modules/unistd-safer-tests (Files): Likewise.
5546         * modules/freopen-safer-tests (Files): Likewise.
5547         * modules/getopt-posix-tests (Files): Likewise.
5548         * modules/openat-safer-tests (Files): Likewise.
5549         * modules/pipe-tests (Files): Likewise.
5550
5551 2009-12-26  Bruno Haible  <bruno@clisp.org>
5552
5553         javacomp: Portability fix.
5554         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5555         that it also works on Solaris.
5556
5557 2009-12-26  Bruno Haible  <bruno@clisp.org>
5558
5559         localename: Fix storage allocation of gl_locale_name_thread's result.
5560         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5561         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5562         all platforms that have 'uselocale'.
5563         (gl_locale_name_thread_unsafe): New function, extracted from
5564         gl_locale_name_thread.
5565         (gl_locale_name_thread): Call struniq on all platforms that have
5566         'uselocale'.
5567         * tests/test-localename.c (test_locale_name_thread): Check that the
5568         resulting strings are permanently allocated.
5569         * modules/localename-tests (Depends-on): Add strdup.
5570
5571 2009-12-26  Bruno Haible  <bruno@clisp.org>
5572
5573         * tests/test-localename.c (categories): Fill in the strings.
5574
5575 2009-12-26  Jim Meyering  <meyering@redhat.com>
5576
5577         isdir: complete the removal of m4/isdir.m4
5578         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5579
5580         isdir: clean up, since at least grep still uses it
5581         * lib/isdir.c: Include "isdir.h".
5582         (S_ISDIR): Remove now-unneeded definition.
5583         * modules/isdir (Files): Add lib/isdir.h.
5584         * lib/isdir.h: New file, with declaration.
5585         * m4/isdir.m4: Remove file -- unneeded.
5586
5587 2009-12-25  Bruno Haible  <bruno@clisp.org>
5588
5589         selinux-h: Make generated .h files standalone.
5590         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5591         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5592         * lib/se-selinux.in.h: Likewise.
5593         * modules/selinux-h (Depends-on): Add unused-parameter.
5594         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5595         selinux/selinux.h and selinux/context.h.
5596         Suggested by Eric Blake.
5597
5598 2009-12-25  Bruno Haible  <bruno@clisp.org>
5599
5600         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5601         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5602         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5603         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5604         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5605
5606 2009-12-24  Bruno Haible  <bruno@clisp.org>
5607
5608         openat: Fix warning.
5609         * lib/openat-proc.c: Include <unistd.h>.
5610
5611 2009-12-24  Bruno Haible  <bruno@clisp.org>
5612
5613         New module 'unused-parameter'.
5614         * build-aux/unused-parameter.h: New file, extracted from earlier
5615         gnulib-common.m4.
5616         * modules/unused-parameter: New file.
5617         * lib/unistr.h: Include unused-parameter.h.
5618         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5619         _GL_UNUSED.
5620         * modules/unistr/base (Depends-on): Add unused-parameter.
5621
5622 2009-12-24  Bruno Haible  <bruno@clisp.org>
5623
5624         Add missing dependencies to 'extensions' module.
5625         * m4/extensions.m4: Add comment.
5626         * modules/accept4 (Depends-on): Add extensions.
5627         * modules/dup3 (Depends-on): Likewise.
5628         * modules/fcntl (Depends-on): Likewise.
5629         * modules/futimens (Depends-on): Likewise.
5630         * modules/mknod (Depends-on): Likewise.
5631         * modules/pipe2 (Depends-on): Likewise.
5632         * modules/stat-time (Depends-on): Likewise.
5633         * modules/strcasestr-simple (Depends-on): Likewise.
5634         * modules/strsignal (Depends-on): Likewise.
5635         * modules/utimensat (Depends-on): Likewise.
5636         * modules/localcharset (Depends-on): Likewise. Needed because of
5637         gl_FCNTL_O_FLAGS.
5638         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5639         AC_TYPE_MBSTATE_T.
5640         * modules/wcsnrtombs (Depends-on): Likewise.
5641         * modules/wcsrtombs (Depends-on): Likewise.
5642
5643 2009-12-24  Bruno Haible  <bruno@clisp.org>
5644
5645         binary-io: Avoid gcc warning due to SET_BINARY.
5646         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5647         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5648
5649 2009-12-24  Bruno Haible  <bruno@clisp.org>
5650
5651         Avoid future namespace pollution on glibc systems.
5652         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5653         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5654         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5655         glibc systems.
5656
5657 2009-12-24  Bruno Haible  <bruno@clisp.org>
5658
5659         Refactor common macros used in tests.
5660         * tests/macros.h: New file.
5661         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5662         and/or <stdlib.h>, if appropriate.
5663         (ASSERT, SIZEOF): Remove macros.
5664         * tests/test-areadlink-with-size.c: Likewise.
5665         * tests/test-areadlinkat.c: Likewise.
5666         * tests/test-areadlinkat-with-size.c: Likewise.
5667         * tests/test-argmatch.c: Likewise.
5668         * tests/test-argv-iter.c: Likewise.
5669         * tests/test-array-mergesort.c: Likewise.
5670         * tests/test-array_list.c: Likewise.
5671         * tests/test-array_oset.c: Likewise.
5672         * tests/test-avltree_list.c: Likewise.
5673         * tests/test-avltree_oset.c: Likewise.
5674         * tests/test-avltreehash_list.c: Likewise.
5675         * tests/test-base64.c: Likewise.
5676         * tests/test-binary-io.c: Likewise.
5677         * tests/test-bitrotate.c: Likewise.
5678         * tests/test-btowc.c: Likewise.
5679         * tests/test-byteswap.c: Likewise.
5680         * tests/test-c-ctype.c: Likewise.
5681         * tests/test-c-stack.c: Likewise.
5682         * tests/test-c-strcasecmp.c: Likewise.
5683         * tests/test-c-strcasestr.c: Likewise.
5684         * tests/test-c-strncasecmp.c: Likewise.
5685         * tests/test-c-strstr.c: Likewise.
5686         * tests/test-canonicalize-lgpl.c: Likewise.
5687         * tests/test-canonicalize.c: Likewise.
5688         * tests/test-carray_list.c: Likewise.
5689         * tests/test-ceilf1.c: Likewise.
5690         * tests/test-ceilf2.c: Likewise.
5691         * tests/test-ceill.c: Likewise.
5692         * tests/test-chown.c: Likewise.
5693         * tests/test-cloexec.c: Likewise.
5694         * tests/test-copy-acl.c: Likewise.
5695         * tests/test-copy-file.c: Likewise.
5696         * tests/test-count-one-bits.c: Likewise.
5697         * tests/test-dprintf-posix.c: Likewise.
5698         * tests/test-dup2.c: Likewise.
5699         * tests/test-dup3.c: Likewise.
5700         * tests/test-duplocale.c: Likewise.
5701         * tests/test-fbufmode.c: Likewise.
5702         * tests/test-fchdir.c: Likewise.
5703         * tests/test-fchownat.c: Likewise.
5704         * tests/test-fcntl-safer.c: Likewise.
5705         * tests/test-fcntl.c: Likewise.
5706         * tests/test-fdopendir.c: Likewise.
5707         * tests/test-fdutimensat.c: Likewise.
5708         * tests/test-fflush2.c: Likewise.
5709         * tests/test-file-has-acl.c: Likewise.
5710         * tests/test-filevercmp.c: Likewise.
5711         * tests/test-flock.c: Likewise.
5712         * tests/test-floorf1.c: Likewise.
5713         * tests/test-floorf2.c: Likewise.
5714         * tests/test-floorl.c: Likewise.
5715         * tests/test-fnmatch.c: Likewise.
5716         * tests/test-fopen.h: Likewise.
5717         * tests/test-fpending.c: Likewise.
5718         * tests/test-fprintf-posix.c: Likewise.
5719         * tests/test-fpurge.c: Likewise.
5720         * tests/test-freadable.c: Likewise.
5721         * tests/test-freadahead.c: Likewise.
5722         * tests/test-freading.c: Likewise.
5723         * tests/test-freadptr.c: Likewise.
5724         * tests/test-freadptr2.c: Likewise.
5725         * tests/test-freadseek.c: Likewise.
5726         * tests/test-freopen.c: Likewise.
5727         * tests/test-frexp.c: Likewise.
5728         * tests/test-frexpl.c: Likewise.
5729         * tests/test-fseek.c: Likewise.
5730         * tests/test-fseeko.c: Likewise.
5731         * tests/test-fstatat.c: Likewise.
5732         * tests/test-fstrcmp.c: Likewise.
5733         * tests/test-fsync.c: Likewise.
5734         * tests/test-ftell.c: Likewise.
5735         * tests/test-ftello.c: Likewise.
5736         * tests/test-func.c: Likewise.
5737         * tests/test-futimens.c: Likewise.
5738         * tests/test-fwritable.c: Likewise.
5739         * tests/test-fwriting.c: Likewise.
5740         * tests/test-getcwd.c: Likewise.
5741         * tests/test-getdate.c: Likewise.
5742         * tests/test-getdelim.c: Likewise.
5743         * tests/test-getdtablesize.c: Likewise.
5744         * tests/test-getgroups.c: Likewise.
5745         * tests/test-getline.c: Likewise.
5746         * tests/test-getndelim2.c: Likewise.
5747         * tests/test-glob.c: Likewise.
5748         * tests/test-hash.c: Likewise.
5749         * tests/test-i-ring.c: Likewise.
5750         * tests/test-iconv-utf.c: Likewise.
5751         * tests/test-iconv.c: Likewise.
5752         * tests/test-idpriv-drop.c: Likewise.
5753         * tests/test-idpriv-droptemp.c: Likewise.
5754         * tests/test-inet_ntop.c: Likewise.
5755         * tests/test-inet_pton.c: Likewise.
5756         * tests/test-isblank.c: Likewise.
5757         * tests/test-isfinite.c: Likewise.
5758         * tests/test-isinf.c: Likewise.
5759         * tests/test-isnan.c: Likewise.
5760         * tests/test-isnand.h: Likewise.
5761         * tests/test-isnanf.h: Likewise.
5762         * tests/test-isnanl.h: Likewise.
5763         * tests/test-lchown.c: Likewise.
5764         * tests/test-ldexpl.c: Likewise.
5765         * tests/test-link.c: Likewise.
5766         * tests/test-linkat.c: Likewise.
5767         * tests/test-linked_list.c: Likewise.
5768         * tests/test-linkedhash_list.c: Likewise.
5769         * tests/test-localename.c: Likewise.
5770         * tests/test-lseek.c: Likewise.
5771         * tests/test-lstat.c: Likewise.
5772         * tests/test-mbmemcasecmp.c: Likewise.
5773         * tests/test-mbmemcasecoll.c: Likewise.
5774         * tests/test-mbrtowc.c: Likewise.
5775         * tests/test-mbscasecmp.c: Likewise.
5776         * tests/test-mbscasestr1.c: Likewise.
5777         * tests/test-mbscasestr2.c: Likewise.
5778         * tests/test-mbscasestr3.c: Likewise.
5779         * tests/test-mbscasestr4.c: Likewise.
5780         * tests/test-mbschr.c: Likewise.
5781         * tests/test-mbscspn.c: Likewise.
5782         * tests/test-mbsinit.c: Likewise.
5783         * tests/test-mbsncasecmp.c: Likewise.
5784         * tests/test-mbsnrtowcs.c: Likewise.
5785         * tests/test-mbspbrk.c: Likewise.
5786         * tests/test-mbspcasecmp.c: Likewise.
5787         * tests/test-mbsrchr.c: Likewise.
5788         * tests/test-mbsrtowcs.c: Likewise.
5789         * tests/test-mbsspn.c: Likewise.
5790         * tests/test-mbsstr1.c: Likewise.
5791         * tests/test-mbsstr2.c: Likewise.
5792         * tests/test-mbsstr3.c: Likewise.
5793         * tests/test-memchr.c: Likewise.
5794         * tests/test-memchr2.c: Likewise.
5795         * tests/test-memcmp.c: Likewise.
5796         * tests/test-memmem.c: Likewise.
5797         * tests/test-memrchr.c: Likewise.
5798         * tests/test-mkdir.c: Likewise.
5799         * tests/test-mkdirat.c: Likewise.
5800         * tests/test-mkfifo.c: Likewise.
5801         * tests/test-mkfifoat.c: Likewise.
5802         * tests/test-mknod.c: Likewise.
5803         * tests/test-nanosleep.c: Likewise.
5804         * tests/test-nl_langinfo.c: Likewise.
5805         * tests/test-obstack-printf.c: Likewise.
5806         * tests/test-open.c: Likewise.
5807         * tests/test-openat.c: Likewise.
5808         * tests/test-pipe-filter-gi1.c: Likewise.
5809         * tests/test-pipe-filter-gi2-main.c: Likewise.
5810         * tests/test-pipe-filter-ii1.c: Likewise.
5811         * tests/test-pipe-filter-ii2-main.c: Likewise.
5812         * tests/test-pipe2.c: Likewise.
5813         * tests/test-popen.h: Likewise.
5814         * tests/test-posixtm.c: Likewise.
5815         * tests/test-pread.c: Likewise.
5816         * tests/test-printf-frexp.c: Likewise.
5817         * tests/test-printf-frexpl.c: Likewise.
5818         * tests/test-printf-posix.c: Likewise.
5819         * tests/test-priv-set.c: Likewise.
5820         * tests/test-quotearg.c: Likewise.
5821         * tests/test-random_r.c: Likewise.
5822         * tests/test-rawmemchr.c: Likewise.
5823         * tests/test-rbtree_list.c: Likewise.
5824         * tests/test-rbtree_oset.c: Likewise.
5825         * tests/test-rbtreehash_list.c: Likewise.
5826         * tests/test-readlink.c: Likewise.
5827         * tests/test-remove.c: Likewise.
5828         * tests/test-rename.c: Likewise.
5829         * tests/test-renameat.c: Likewise.
5830         * tests/test-rmdir.c: Likewise.
5831         * tests/test-round1.c: Likewise.
5832         * tests/test-roundf1.c: Likewise.
5833         * tests/test-roundl.c: Likewise.
5834         * tests/test-safe-alloc.c: Likewise.
5835         * tests/test-sameacls.c: Likewise.
5836         * tests/test-set-mode-acl.c: Likewise.
5837         * tests/test-setenv.c: Likewise.
5838         * tests/test-sigaction.c: Likewise.
5839         * tests/test-signbit.c: Likewise.
5840         * tests/test-sleep.c: Likewise.
5841         * tests/test-snprintf-posix.c: Likewise.
5842         * tests/test-snprintf.c: Likewise.
5843         * tests/test-sprintf-posix.c: Likewise.
5844         * tests/test-stat-time.c: Likewise.
5845         * tests/test-stat.c: Likewise.
5846         * tests/test-strcasestr.c: Likewise.
5847         * tests/test-strchrnul.c: Likewise.
5848         * tests/test-strerror.c: Likewise.
5849         * tests/test-striconv.c: Likewise.
5850         * tests/test-striconveh.c: Likewise.
5851         * tests/test-striconveha.c: Likewise.
5852         * tests/test-strsignal.c: Likewise.
5853         * tests/test-strstr.c: Likewise.
5854         * tests/test-strtod.c: Likewise.
5855         * tests/test-strverscmp.c: Likewise.
5856         * tests/test-symlink.c: Likewise.
5857         * tests/test-symlinkat.c: Likewise.
5858         * tests/test-trunc1.c: Likewise.
5859         * tests/test-trunc2.c: Likewise.
5860         * tests/test-truncf1.c: Likewise.
5861         * tests/test-truncf2.c: Likewise.
5862         * tests/test-truncl.c: Likewise.
5863         * tests/test-uname.c: Likewise.
5864         * tests/test-unlink.c: Likewise.
5865         * tests/test-unlinkat.c: Likewise.
5866         * tests/test-unsetenv.c: Likewise.
5867         * tests/test-usleep.c: Likewise.
5868         * tests/test-utimens.c: Likewise.
5869         * tests/test-utimensat.c: Likewise.
5870         * tests/test-vasnprintf-posix.c: Likewise.
5871         * tests/test-vasnprintf-posix2.c: Likewise.
5872         * tests/test-vasnprintf.c: Likewise.
5873         * tests/test-vasprintf-posix.c: Likewise.
5874         * tests/test-vasprintf.c: Likewise.
5875         * tests/test-vdprintf-posix.c: Likewise.
5876         * tests/test-vfprintf-posix.c: Likewise.
5877         * tests/test-vprintf-posix.c: Likewise.
5878         * tests/test-vsnprintf-posix.c: Likewise.
5879         * tests/test-vsnprintf.c: Likewise.
5880         * tests/test-vsprintf-posix.c: Likewise.
5881         * tests/test-wcrtomb.c: Likewise.
5882         * tests/test-wcsnrtombs.c: Likewise.
5883         * tests/test-wcsrtombs.c: Likewise.
5884         * tests/test-wctype.c: Likewise.
5885         * tests/test-wcwidth.c: Likewise.
5886         * tests/test-xfprintf-posix.c: Likewise.
5887         * tests/test-xmemdup0.c: Likewise.
5888         * tests/test-xprintf-posix.c: Likewise.
5889         * tests/test-xvasprintf.c: Likewise.
5890         * tests/unicase/test-locale-language.c: Likewise.
5891         * tests/unicase/test-mapping-part1.h: Likewise.
5892         * tests/unicase/test-predicate-part1.h: Likewise.
5893         * tests/unicase/test-u8-casecmp.c: Likewise.
5894         * tests/unicase/test-u8-casecoll.c: Likewise.
5895         * tests/unicase/test-u8-casefold.c: Likewise.
5896         * tests/unicase/test-u8-is-cased.c: Likewise.
5897         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5898         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5899         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5900         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5901         * tests/unicase/test-u8-tolower.c: Likewise.
5902         * tests/unicase/test-u8-totitle.c: Likewise.
5903         * tests/unicase/test-u8-toupper.c: Likewise.
5904         * tests/unicase/test-u16-casecmp.c: Likewise.
5905         * tests/unicase/test-u16-casecoll.c: Likewise.
5906         * tests/unicase/test-u16-casefold.c: Likewise.
5907         * tests/unicase/test-u16-is-cased.c: Likewise.
5908         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5909         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5910         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5911         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5912         * tests/unicase/test-u16-tolower.c: Likewise.
5913         * tests/unicase/test-u16-totitle.c: Likewise.
5914         * tests/unicase/test-u16-toupper.c: Likewise.
5915         * tests/unicase/test-u32-casecmp.c: Likewise.
5916         * tests/unicase/test-u32-casecoll.c: Likewise.
5917         * tests/unicase/test-u32-casefold.c: Likewise.
5918         * tests/unicase/test-u32-is-cased.c: Likewise.
5919         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5920         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5921         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5922         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5923         * tests/unicase/test-u32-tolower.c: Likewise.
5924         * tests/unicase/test-u32-totitle.c: Likewise.
5925         * tests/unicase/test-u32-toupper.c: Likewise.
5926         * tests/unicase/test-ulc-casecmp.c: Likewise.
5927         * tests/unicase/test-ulc-casecoll.c: Likewise.
5928         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5929         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5930         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5931         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5932         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5933         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5934         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5935         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5936         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5937         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5938         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5939         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5940         * tests/unictype/test-bidi_byname.c: Likewise.
5941         * tests/unictype/test-bidi_name.c: Likewise.
5942         * tests/unictype/test-bidi_of.c: Likewise.
5943         * tests/unictype/test-bidi_test.c: Likewise.
5944         * tests/unictype/test-block_list.c: Likewise.
5945         * tests/unictype/test-block_of.c: Likewise.
5946         * tests/unictype/test-block_test.c: Likewise.
5947         * tests/unictype/test-categ_and.c: Likewise.
5948         * tests/unictype/test-categ_and_not.c: Likewise.
5949         * tests/unictype/test-categ_byname.c: Likewise.
5950         * tests/unictype/test-categ_name.c: Likewise.
5951         * tests/unictype/test-categ_none.c: Likewise.
5952         * tests/unictype/test-categ_of.c: Likewise.
5953         * tests/unictype/test-categ_or.c: Likewise.
5954         * tests/unictype/test-categ_test_withtable.c: Likewise.
5955         * tests/unictype/test-combining.c: Likewise.
5956         * tests/unictype/test-decdigit.c: Likewise.
5957         * tests/unictype/test-digit.c: Likewise.
5958         * tests/unictype/test-mirror.c: Likewise.
5959         * tests/unictype/test-numeric.c: Likewise.
5960         * tests/unictype/test-pr_byname.c: Likewise.
5961         * tests/unictype/test-pr_test.c: Likewise.
5962         * tests/unictype/test-predicate-part1.h: Likewise.
5963         * tests/unictype/test-scripts.c: Likewise.
5964         * tests/unictype/test-sy_c_ident.c: Likewise.
5965         * tests/unictype/test-sy_java_ident.c: Likewise.
5966         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5967         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5968         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5969         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5970         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5971         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5972         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5973         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5974         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5975         * tests/uninorm/test-compat-decomposition.c: Likewise.
5976         * tests/uninorm/test-composition.c: Likewise.
5977         * tests/uninorm/test-decomposing-form.c: Likewise.
5978         * tests/uninorm/test-decomposition.c: Likewise.
5979         * tests/uninorm/test-u8-nfc.c: Likewise.
5980         * tests/uninorm/test-u8-nfd.c: Likewise.
5981         * tests/uninorm/test-u8-nfkc.c: Likewise.
5982         * tests/uninorm/test-u8-nfkd.c: Likewise.
5983         * tests/uninorm/test-u8-normcmp.c: Likewise.
5984         * tests/uninorm/test-u8-normcoll.c: Likewise.
5985         * tests/uninorm/test-u16-nfc.c: Likewise.
5986         * tests/uninorm/test-u16-nfd.c: Likewise.
5987         * tests/uninorm/test-u16-nfkc.c: Likewise.
5988         * tests/uninorm/test-u16-nfkd.c: Likewise.
5989         * tests/uninorm/test-u16-normcmp.c: Likewise.
5990         * tests/uninorm/test-u16-normcoll.c: Likewise.
5991         * tests/uninorm/test-u32-nfc.c: Likewise.
5992         * tests/uninorm/test-u32-nfd.c: Likewise.
5993         * tests/uninorm/test-u32-nfkc.c: Likewise.
5994         * tests/uninorm/test-u32-nfkd.c: Likewise.
5995         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5996         * tests/uninorm/test-u32-normcmp.c: Likewise.
5997         * tests/uninorm/test-u32-normcoll.c: Likewise.
5998         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5999         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
6000         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
6001         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
6002         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
6003         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
6004         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
6005         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
6006         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
6007         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
6008         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
6009         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
6010         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
6011         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
6012         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
6013         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
6014         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
6015         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
6016         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
6017         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
6018         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
6019         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
6020         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
6021         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
6022         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
6023         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
6024         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
6025         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
6026         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
6027         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
6028         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
6029         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
6030         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
6031         * tests/uniwidth/test-u8-strwidth.c: Likewise.
6032         * tests/uniwidth/test-u8-width.c: Likewise.
6033         * tests/uniwidth/test-u16-strwidth.c: Likewise.
6034         * tests/uniwidth/test-u16-width.c: Likewise.
6035         * tests/uniwidth/test-u32-strwidth.c: Likewise.
6036         * tests/uniwidth/test-u32-width.c: Likewise.
6037         * tests/uniwidth/test-uc_width.c: Likewise.
6038         * tests/uniwidth/test-uc_width2.c: Likewise.
6039         * modules/acl-tests (Files): Add tests/macros.h.
6040         * modules/areadlink-tests (Files): Likewise.
6041         * modules/areadlink-with-size-tests (Files): Likewise.
6042         * modules/areadlinkat-tests (Files): Likewise.
6043         * modules/areadlinkat-with-size-tests (Files): Likewise.
6044         * modules/argmatch-tests (Files): Likewise.
6045         * modules/argv-iter-tests (Files): Likewise.
6046         * modules/array-list-tests (Files): Likewise.
6047         * modules/array-mergesort-tests (Files): Likewise.
6048         * modules/array-oset-tests (Files): Likewise.
6049         * modules/avltree-list-tests (Files): Likewise.
6050         * modules/avltree-oset-tests (Files): Likewise.
6051         * modules/avltreehash-list-tests (Files): Likewise.
6052         * modules/base64-tests (Files): Likewise.
6053         * modules/binary-io-tests (Files): Likewise.
6054         * modules/bitrotate-tests (Files): Likewise.
6055         * modules/btowc-tests (Files): Likewise.
6056         * modules/byteswap-tests (Files): Likewise.
6057         * modules/c-ctype-tests (Files): Likewise.
6058         * modules/c-stack-tests (Files): Likewise.
6059         * modules/c-strcase-tests (Files): Likewise.
6060         * modules/c-strcasestr-tests (Files): Likewise.
6061         * modules/c-strstr-tests (Files): Likewise.
6062         * modules/canonicalize-lgpl-tests (Files): Likewise.
6063         * modules/canonicalize-tests (Files): Likewise.
6064         * modules/carray-list-tests (Files): Likewise.
6065         * modules/ceilf-tests (Files): Likewise.
6066         * modules/ceill-tests (Files): Likewise.
6067         * modules/chown-tests (Files): Likewise.
6068         * modules/cloexec-tests (Files): Likewise.
6069         * modules/copy-file-tests (Files): Likewise.
6070         * modules/count-one-bits-tests (Files): Likewise.
6071         * modules/dprintf-posix-tests (Files): Likewise.
6072         * modules/dup2-tests (Files): Likewise.
6073         * modules/dup3-tests (Files): Likewise.
6074         * modules/duplocale-tests (Files): Likewise.
6075         * modules/fbufmode-tests (Files): Likewise.
6076         * modules/fchdir-tests (Files): Likewise.
6077         * modules/fcntl-safer-tests (Files): Likewise.
6078         * modules/fcntl-tests (Files): Likewise.
6079         * modules/fdopendir-tests (Files): Likewise.
6080         * modules/fdutimensat-tests (Files): Likewise.
6081         * modules/fflush-tests (Files): Likewise.
6082         * modules/filevercmp-tests (Files): Likewise.
6083         * modules/flock-tests (Files): Likewise.
6084         * modules/floorf-tests (Files): Likewise.
6085         * modules/floorl-tests (Files): Likewise.
6086         * modules/fnmatch-tests (Files): Likewise.
6087         * modules/fopen-safer-tests (Files): Likewise.
6088         * modules/fopen-tests (Files): Likewise.
6089         * modules/fpending-tests (Files): Likewise.
6090         * modules/fprintf-posix-tests (Files): Likewise.
6091         * modules/fpurge-tests (Files): Likewise.
6092         * modules/freadable-tests (Files): Likewise.
6093         * modules/freadahead-tests (Files): Likewise.
6094         * modules/freading-tests (Files): Likewise.
6095         * modules/freadptr-tests (Files): Likewise.
6096         * modules/freadseek-tests (Files): Likewise.
6097         * modules/freopen-tests (Files): Likewise.
6098         * modules/frexp-nolibm-tests (Files): Likewise.
6099         * modules/frexp-tests (Files): Likewise.
6100         * modules/frexpl-nolibm-tests (Files): Likewise.
6101         * modules/frexpl-tests (Files): Likewise.
6102         * modules/fseek-tests (Files): Likewise.
6103         * modules/fseeko-tests (Files): Likewise.
6104         * modules/fstrcmp-tests (Files): Likewise.
6105         * modules/fsync-tests (Files): Likewise.
6106         * modules/ftell-tests (Files): Likewise.
6107         * modules/ftello-tests (Files): Likewise.
6108         * modules/func-tests (Files): Likewise.
6109         * modules/futimens-tests (Files): Likewise.
6110         * modules/fwritable-tests (Files): Likewise.
6111         * modules/fwriting-tests (Files): Likewise.
6112         * modules/getcwd-tests (Files): Likewise.
6113         * modules/getdate-tests (Files): Likewise.
6114         * modules/getdelim-tests (Files): Likewise.
6115         * modules/getdtablesize-tests (Files): Likewise.
6116         * modules/getgroups-tests (Files): Likewise.
6117         * modules/getline-tests (Files): Likewise.
6118         * modules/getndelim2-tests (Files): Likewise.
6119         * modules/glob-tests (Files): Likewise.
6120         * modules/hash-tests (Files): Likewise.
6121         * modules/i-ring-tests (Files): Likewise.
6122         * modules/iconv-tests (Files): Likewise.
6123         * modules/iconv_open-utf-tests (Files): Likewise.
6124         * modules/idpriv-drop-tests (Files): Likewise.
6125         * modules/idpriv-droptemp-tests (Files): Likewise.
6126         * modules/inet_ntop-tests (Files): Likewise.
6127         * modules/inet_pton-tests (Files): Likewise.
6128         * modules/isblank-tests (Files): Likewise.
6129         * modules/isfinite-tests (Files): Likewise.
6130         * modules/isinf-tests (Files): Likewise.
6131         * modules/isnan-tests (Files): Likewise.
6132         * modules/isnand-nolibm-tests (Files): Likewise.
6133         * modules/isnand-tests (Files): Likewise.
6134         * modules/isnanf-nolibm-tests (Files): Likewise.
6135         * modules/isnanf-tests (Files): Likewise.
6136         * modules/isnanl-nolibm-tests (Files): Likewise.
6137         * modules/isnanl-tests (Files): Likewise.
6138         * modules/lchown-tests (Files): Likewise.
6139         * modules/ldexpl-tests (Files): Likewise.
6140         * modules/link-tests (Files): Likewise.
6141         * modules/linkat-tests (Files): Likewise.
6142         * modules/linked-list-tests (Files): Likewise.
6143         * modules/linkedhash-list-tests (Files): Likewise.
6144         * modules/localename-tests (Files): Likewise.
6145         * modules/lseek-tests (Files): Likewise.
6146         * modules/lstat-tests (Files): Likewise.
6147         * modules/mbmemcasecmp-tests (Files): Likewise.
6148         * modules/mbmemcasecoll-tests (Files): Likewise.
6149         * modules/mbrtowc-tests (Files): Likewise.
6150         * modules/mbscasecmp-tests (Files): Likewise.
6151         * modules/mbscasestr-tests (Files): Likewise.
6152         * modules/mbschr-tests (Files): Likewise.
6153         * modules/mbscspn-tests (Files): Likewise.
6154         * modules/mbsinit-tests (Files): Likewise.
6155         * modules/mbsncasecmp-tests (Files): Likewise.
6156         * modules/mbsnrtowcs-tests (Files): Likewise.
6157         * modules/mbspbrk-tests (Files): Likewise.
6158         * modules/mbspcasecmp-tests (Files): Likewise.
6159         * modules/mbsrchr-tests (Files): Likewise.
6160         * modules/mbsrtowcs-tests (Files): Likewise.
6161         * modules/mbsspn-tests (Files): Likewise.
6162         * modules/mbsstr-tests (Files): Likewise.
6163         * modules/memchr-tests (Files): Likewise.
6164         * modules/memchr2-tests (Files): Likewise.
6165         * modules/memcmp-tests (Files): Likewise.
6166         * modules/memmem-tests (Files): Likewise.
6167         * modules/memrchr-tests (Files): Likewise.
6168         * modules/mkdir-tests (Files): Likewise.
6169         * modules/mkfifo-tests (Files): Likewise.
6170         * modules/mkfifoat-tests (Files): Likewise.
6171         * modules/mknod-tests (Files): Likewise.
6172         * modules/nanosleep-tests (Files): Likewise.
6173         * modules/nl_langinfo-tests (Files): Likewise.
6174         * modules/obstack-printf-tests (Files): Likewise.
6175         * modules/open-tests (Files): Likewise.
6176         * modules/openat-tests (Files): Likewise.
6177         * modules/pipe-filter-gi-tests (Files): Likewise.
6178         * modules/pipe-filter-ii-tests (Files): Likewise.
6179         * modules/pipe2-tests (Files): Likewise.
6180         * modules/popen-safer-tests (Files): Likewise.
6181         * modules/popen-tests (Files): Likewise.
6182         * modules/posixtm-tests (Files): Likewise.
6183         * modules/pread-tests (Files): Likewise.
6184         * modules/printf-frexp-tests (Files): Likewise.
6185         * modules/printf-frexpl-tests (Files): Likewise.
6186         * modules/printf-posix-tests (Files): Likewise.
6187         * modules/priv-set-tests (Files): Likewise.
6188         * modules/quotearg-tests (Files): Likewise.
6189         * modules/random_r-tests (Files): Likewise.
6190         * modules/rawmemchr-tests (Files): Likewise.
6191         * modules/rbtree-list-tests (Files): Likewise.
6192         * modules/rbtree-oset-tests (Files): Likewise.
6193         * modules/rbtreehash-list-tests (Files): Likewise.
6194         * modules/readlink-tests (Files): Likewise.
6195         * modules/remove-tests (Files): Likewise.
6196         * modules/rename-tests (Files): Likewise.
6197         * modules/renameat-tests (Files): Likewise.
6198         * modules/rmdir-tests (Files): Likewise.
6199         * modules/round-tests (Files): Likewise.
6200         * modules/roundf-tests (Files): Likewise.
6201         * modules/roundl-tests (Files): Likewise.
6202         * modules/safe-alloc-tests (Files): Likewise.
6203         * modules/setenv-tests (Files): Likewise.
6204         * modules/sigaction-tests (Files): Likewise.
6205         * modules/signbit-tests (Files): Likewise.
6206         * modules/sleep-tests (Files): Likewise.
6207         * modules/snprintf-posix-tests (Files): Likewise.
6208         * modules/snprintf-tests (Files): Likewise.
6209         * modules/sprintf-posix-tests (Files): Likewise.
6210         * modules/stat-tests (Files): Likewise.
6211         * modules/stat-time-tests (Files): Likewise.
6212         * modules/strcasestr-tests (Files): Likewise.
6213         * modules/strchrnul-tests (Files): Likewise.
6214         * modules/strerror-tests (Files): Likewise.
6215         * modules/striconv-tests (Files): Likewise.
6216         * modules/striconveh-tests (Files): Likewise.
6217         * modules/striconveha-tests (Files): Likewise.
6218         * modules/strsignal-tests (Files): Likewise.
6219         * modules/strstr-tests (Files): Likewise.
6220         * modules/strtod-tests (Files): Likewise.
6221         * modules/strverscmp-tests (Files): Likewise.
6222         * modules/symlink-tests (Files): Likewise.
6223         * modules/symlinkat-tests (Files): Likewise.
6224         * modules/trunc-tests (Files): Likewise.
6225         * modules/truncf-tests (Files): Likewise.
6226         * modules/truncl-tests (Files): Likewise.
6227         * modules/uname-tests (Files): Likewise.
6228         * modules/unicase/cased-tests (Files): Likewise.
6229         * modules/unicase/ignorable-tests (Files): Likewise.
6230         * modules/unicase/locale-language-tests (Files): Likewise.
6231         * modules/unicase/tolower-tests (Files): Likewise.
6232         * modules/unicase/totitle-tests (Files): Likewise.
6233         * modules/unicase/toupper-tests (Files): Likewise.
6234         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6235         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6236         * modules/unicase/u8-casefold-tests (Files): Likewise.
6237         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6238         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6239         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6240         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6241         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6242         * modules/unicase/u8-tolower-tests (Files): Likewise.
6243         * modules/unicase/u8-totitle-tests (Files): Likewise.
6244         * modules/unicase/u8-toupper-tests (Files): Likewise.
6245         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6246         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6247         * modules/unicase/u16-casefold-tests (Files): Likewise.
6248         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6249         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6250         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6251         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6252         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6253         * modules/unicase/u16-tolower-tests (Files): Likewise.
6254         * modules/unicase/u16-totitle-tests (Files): Likewise.
6255         * modules/unicase/u16-toupper-tests (Files): Likewise.
6256         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6257         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6258         * modules/unicase/u32-casefold-tests (Files): Likewise.
6259         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6260         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6261         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6262         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6263         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6264         * modules/unicase/u32-tolower-tests (Files): Likewise.
6265         * modules/unicase/u32-totitle-tests (Files): Likewise.
6266         * modules/unicase/u32-toupper-tests (Files): Likewise.
6267         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6268         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6269         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6270         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6271         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6272         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6273         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6274         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6275         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6276         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6277         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6278         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6279         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6280         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6281         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6282         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6283         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6284         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6285         * modules/unictype/block-list-tests (Files): Likewise.
6286         * modules/unictype/block-of-tests (Files): Likewise.
6287         * modules/unictype/block-test-tests (Files): Likewise.
6288         * modules/unictype/category-C-tests (Files): Likewise.
6289         * modules/unictype/category-Cc-tests (Files): Likewise.
6290         * modules/unictype/category-Cf-tests (Files): Likewise.
6291         * modules/unictype/category-Cn-tests (Files): Likewise.
6292         * modules/unictype/category-Co-tests (Files): Likewise.
6293         * modules/unictype/category-Cs-tests (Files): Likewise.
6294         * modules/unictype/category-L-tests (Files): Likewise.
6295         * modules/unictype/category-Ll-tests (Files): Likewise.
6296         * modules/unictype/category-Lm-tests (Files): Likewise.
6297         * modules/unictype/category-Lo-tests (Files): Likewise.
6298         * modules/unictype/category-Lt-tests (Files): Likewise.
6299         * modules/unictype/category-Lu-tests (Files): Likewise.
6300         * modules/unictype/category-M-tests (Files): Likewise.
6301         * modules/unictype/category-Mc-tests (Files): Likewise.
6302         * modules/unictype/category-Me-tests (Files): Likewise.
6303         * modules/unictype/category-Mn-tests (Files): Likewise.
6304         * modules/unictype/category-N-tests (Files): Likewise.
6305         * modules/unictype/category-Nd-tests (Files): Likewise.
6306         * modules/unictype/category-Nl-tests (Files): Likewise.
6307         * modules/unictype/category-No-tests (Files): Likewise.
6308         * modules/unictype/category-P-tests (Files): Likewise.
6309         * modules/unictype/category-Pc-tests (Files): Likewise.
6310         * modules/unictype/category-Pd-tests (Files): Likewise.
6311         * modules/unictype/category-Pe-tests (Files): Likewise.
6312         * modules/unictype/category-Pf-tests (Files): Likewise.
6313         * modules/unictype/category-Pi-tests (Files): Likewise.
6314         * modules/unictype/category-Po-tests (Files): Likewise.
6315         * modules/unictype/category-Ps-tests (Files): Likewise.
6316         * modules/unictype/category-S-tests (Files): Likewise.
6317         * modules/unictype/category-Sc-tests (Files): Likewise.
6318         * modules/unictype/category-Sk-tests (Files): Likewise.
6319         * modules/unictype/category-Sm-tests (Files): Likewise.
6320         * modules/unictype/category-So-tests (Files): Likewise.
6321         * modules/unictype/category-Z-tests (Files): Likewise.
6322         * modules/unictype/category-Zl-tests (Files): Likewise.
6323         * modules/unictype/category-Zp-tests (Files): Likewise.
6324         * modules/unictype/category-Zs-tests (Files): Likewise.
6325         * modules/unictype/category-and-not-tests (Files): Likewise.
6326         * modules/unictype/category-and-tests (Files): Likewise.
6327         * modules/unictype/category-byname-tests (Files): Likewise.
6328         * modules/unictype/category-name-tests (Files): Likewise.
6329         * modules/unictype/category-none-tests (Files): Likewise.
6330         * modules/unictype/category-of-tests (Files): Likewise.
6331         * modules/unictype/category-or-tests (Files): Likewise.
6332         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6333         * modules/unictype/combining-class-tests (Files): Likewise.
6334         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6335         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6336         * modules/unictype/ctype-blank-tests (Files): Likewise.
6337         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6338         * modules/unictype/ctype-digit-tests (Files): Likewise.
6339         * modules/unictype/ctype-graph-tests (Files): Likewise.
6340         * modules/unictype/ctype-lower-tests (Files): Likewise.
6341         * modules/unictype/ctype-print-tests (Files): Likewise.
6342         * modules/unictype/ctype-punct-tests (Files): Likewise.
6343         * modules/unictype/ctype-space-tests (Files): Likewise.
6344         * modules/unictype/ctype-upper-tests (Files): Likewise.
6345         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6346         * modules/unictype/decimal-digit-tests (Files): Likewise.
6347         * modules/unictype/digit-tests (Files): Likewise.
6348         * modules/unictype/mirror-tests (Files): Likewise.
6349         * modules/unictype/numeric-tests (Files): Likewise.
6350         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6351         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6352         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6353         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6354         Likewise.
6355         * modules/unictype/property-bidi-block-separator-tests (Files):
6356         Likewise.
6357         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6358         Likewise.
6359         * modules/unictype/property-bidi-common-separator-tests (Files):
6360         Likewise.
6361         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6362         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6363         Likewise.
6364         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6365         Likewise.
6366         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6367         Likewise.
6368         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6369         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6370         Likewise.
6371         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6372         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6373         Likewise.
6374         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6375         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6376         * modules/unictype/property-bidi-segment-separator-tests (Files):
6377         Likewise.
6378         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6379         * modules/unictype/property-byname-tests (Files): Likewise.
6380         * modules/unictype/property-combining-tests (Files): Likewise.
6381         * modules/unictype/property-composite-tests (Files): Likewise.
6382         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6383         * modules/unictype/property-dash-tests (Files): Likewise.
6384         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6385         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6386         Likewise.
6387         * modules/unictype/property-deprecated-tests (Files): Likewise.
6388         * modules/unictype/property-diacritic-tests (Files): Likewise.
6389         * modules/unictype/property-extender-tests (Files): Likewise.
6390         * modules/unictype/property-format-control-tests (Files): Likewise.
6391         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6392         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6393         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6394         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6395         * modules/unictype/property-hyphen-tests (Files): Likewise.
6396         * modules/unictype/property-id-continue-tests (Files): Likewise.
6397         * modules/unictype/property-id-start-tests (Files): Likewise.
6398         * modules/unictype/property-ideographic-tests (Files): Likewise.
6399         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6400         * modules/unictype/property-ids-trinary-operator-tests (Files):
6401         Likewise.
6402         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6403         * modules/unictype/property-iso-control-tests (Files): Likewise.
6404         * modules/unictype/property-join-control-tests (Files): Likewise.
6405         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6406         * modules/unictype/property-line-separator-tests (Files): Likewise.
6407         * modules/unictype/property-logical-order-exception-tests (Files):
6408         Likewise.
6409         * modules/unictype/property-lowercase-tests (Files): Likewise.
6410         * modules/unictype/property-math-tests (Files): Likewise.
6411         * modules/unictype/property-non-break-tests (Files): Likewise.
6412         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6413         * modules/unictype/property-numeric-tests (Files): Likewise.
6414         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6415         * modules/unictype/property-other-default-ignorable-code-point-tests
6416         (Files): Likewise.
6417         * modules/unictype/property-other-grapheme-extend-tests (Files):
6418         Likewise.
6419         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6420         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6421         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6422         * modules/unictype/property-other-math-tests (Files): Likewise.
6423         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6424         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6425         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6426         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6427         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6428         * modules/unictype/property-private-use-tests (Files): Likewise.
6429         * modules/unictype/property-punctuation-tests (Files): Likewise.
6430         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6431         * modules/unictype/property-radical-tests (Files): Likewise.
6432         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6433         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6434         * modules/unictype/property-space-tests (Files): Likewise.
6435         * modules/unictype/property-terminal-punctuation-tests (Files):
6436         Likewise.
6437         * modules/unictype/property-test-tests (Files): Likewise.
6438         * modules/unictype/property-titlecase-tests (Files): Likewise.
6439         * modules/unictype/property-unassigned-code-value-tests (Files):
6440         Likewise.
6441         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6442         * modules/unictype/property-uppercase-tests (Files): Likewise.
6443         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6444         * modules/unictype/property-white-space-tests (Files): Likewise.
6445         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6446         * modules/unictype/property-xid-start-tests (Files): Likewise.
6447         * modules/unictype/property-zero-width-tests (Files): Likewise.
6448         * modules/unictype/scripts-tests (Files): Likewise.
6449         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6450         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6451         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6452         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6453         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6454         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6455         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6456         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6457         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6458         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6459         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6460         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6461         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6462         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6463         * modules/uninorm/composition-tests (Files): Likewise.
6464         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6465         * modules/uninorm/decomposition-tests (Files): Likewise.
6466         * modules/uninorm/filter-tests (Files): Likewise.
6467         * modules/uninorm/nfc-tests (Files): Likewise.
6468         * modules/uninorm/nfd-tests (Files): Likewise.
6469         * modules/uninorm/nfkc-tests (Files): Likewise.
6470         * modules/uninorm/nfkd-tests (Files): Likewise.
6471         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6472         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6473         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6474         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6475         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6476         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6477         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6478         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6479         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6480         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6481         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6482         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6483         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6484         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6485         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6486         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6487         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6488         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6489         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6490         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6491         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6492         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6493         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6494         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6495         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6496         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6497         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6498         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6499         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6500         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6501         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6502         * modules/uniwidth/u8-width-tests (Files): Likewise.
6503         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6504         * modules/uniwidth/u16-width-tests (Files): Likewise.
6505         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6506         * modules/uniwidth/u32-width-tests (Files): Likewise.
6507         * modules/uniwidth/width-tests (Files): Likewise.
6508         * modules/unlink-tests (Files): Likewise.
6509         * modules/unsetenv-tests (Files): Likewise.
6510         * modules/usleep-tests (Files): Likewise.
6511         * modules/utimens-tests (Files): Likewise.
6512         * modules/utimensat-tests (Files): Likewise.
6513         * modules/vasnprintf-posix-tests (Files): Likewise.
6514         * modules/vasnprintf-tests (Files): Likewise.
6515         * modules/vasprintf-posix-tests (Files): Likewise.
6516         * modules/vasprintf-tests (Files): Likewise.
6517         * modules/vdprintf-posix-tests (Files): Likewise.
6518         * modules/vfprintf-posix-tests (Files): Likewise.
6519         * modules/vprintf-posix-tests (Files): Likewise.
6520         * modules/vsnprintf-posix-tests (Files): Likewise.
6521         * modules/vsnprintf-tests (Files): Likewise.
6522         * modules/vsprintf-posix-tests (Files): Likewise.
6523         * modules/wcrtomb-tests (Files): Likewise.
6524         * modules/wcsnrtombs-tests (Files): Likewise.
6525         * modules/wcsrtombs-tests (Files): Likewise.
6526         * modules/wctype-tests (Files): Likewise.
6527         * modules/wcwidth-tests (Files): Likewise.
6528         * modules/xmemdup0-tests (Files): Likewise.
6529         * modules/xprintf-posix-tests (Files): Likewise.
6530         * modules/xvasprintf-tests (Files): Likewise.
6531
6532 2009-12-24  Eric Blake  <ebb9@byu.net>
6533
6534         test-nanosleep: fix typo
6535         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6536         patch.
6537         Reported by Bruno Haible.
6538
6539 2009-12-24  Bruno Haible  <bruno@clisp.org>
6540
6541         Reduce namespace pollution on glibc systems.
6542         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6543         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6544         systems.
6545         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6546         <getopt.h> on glibc systems.
6547         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6548         systems.
6549         * lib/fcntl.c: Include <unistd.h> here instead.
6550
6551 2009-12-24  Bruno Haible  <bruno@clisp.org>
6552
6553         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6554
6555 2009-12-24  Eric Blake  <ebb9@byu.net>
6556
6557         tests: add signature checks
6558         * tests/signature.h (SIGNATURE_CHECK): New file.
6559         * modules/atexit-tests (Files): Use it.
6560         * modules/btowc-tests (Files): Likewise.
6561         * modules/canonicalize-lgpl-tests (Files): Likewise.
6562         * modules/ceilf-tests (Files): Likewise.
6563         * modules/ceill-tests (Files): Likewise.
6564         * modules/chown-tests (Files): Likewise.
6565         * modules/dprintf-posix-tests (Files): Likewise.
6566         * modules/dup2-tests (Files): Likewise.
6567         * modules/dup3-tests (Files): Likewise.
6568         * modules/duplocale-tests (Files): Likewise.
6569         * modules/fchdir-tests (Files): Likewise.
6570         * modules/fcntl-tests (Files): Likewise.
6571         * modules/fdopendir-tests (Files): Likewise.
6572         * modules/fflush-tests (Files): Likewise.
6573         * modules/flock-tests (Files): Likewise.
6574         * modules/floorf-tests (Files): Likewise.
6575         * modules/floorl-tests (Files): Likewise.
6576         * modules/fnmatch-tests (Files): Likewise.
6577         * modules/fopen-tests (Files): Likewise.
6578         * modules/fprintf-posix-tests (Files): Likewise.
6579         * modules/freopen-tests (Files): Likewise.
6580         * modules/frexp-nolibm-tests (Files): Likewise.
6581         * modules/frexp-tests (Files): Likewise.
6582         * modules/frexpl-nolibm-tests (Files): Likewise.
6583         * modules/frexpl-tests (Files): Likewise.
6584         * modules/fseek-tests (Files): Likewise.
6585         * modules/fseeko-tests (Files): Likewise.
6586         * modules/fsync-tests (Files): Likewise.
6587         * modules/ftell-tests (Files): Likewise.
6588         * modules/ftello-tests (Files): Likewise.
6589         * modules/futimens-tests (Files): Likewise.
6590         * modules/getaddrinfo-tests (Files): Likewise.
6591         * modules/getcwd-tests (Files): Likewise.
6592         * modules/getdelim-tests (Files): Likewise.
6593         * modules/getdtablesize-tests (Files): Likewise.
6594         * modules/getgroups-tests (Files): Likewise.
6595         * modules/gethostname-tests (Files): Likewise.
6596         * modules/getline-tests (Files): Likewise.
6597         * modules/getopt-posix-tests (Files): Likewise.
6598         * modules/gettimeofday-tests (Files): Likewise.
6599         * modules/glob-tests (Files): Likewise.
6600         * modules/iconv-tests (Files): Likewise.
6601         * modules/inet_ntop-tests (Files): Likewise.
6602         * modules/inet_pton-tests (Files): Likewise.
6603         * modules/isblank-tests (Files): Likewise.
6604         * modules/lchown-tests (Files): Likewise.
6605         * modules/ldexpl-tests (Files): Likewise.
6606         * modules/link-tests (Files): Likewise.
6607         * modules/linkat-tests (Files): Likewise.
6608         * modules/lseek-tests (Files): Likewise.
6609         * modules/lstat-tests (Files): Likewise.
6610         * modules/mbrtowc-tests (Files): Likewise.
6611         * modules/mbsinit-tests (Files): Likewise.
6612         * modules/mbsnrtowcs-tests (Files): Likewise.
6613         * modules/mbsrtowcs-tests (Files): Likewise.
6614         * modules/memchr-tests (Files): Likewise.
6615         * modules/memcmp-tests (Files): Likewise.
6616         * modules/memmem-tests (Files): Likewise.
6617         * modules/memrchr-tests (Files): Likewise.
6618         * modules/mkdir-tests (Files): Likewise.
6619         * modules/mkfifo-tests (Files): Likewise.
6620         * modules/mkfifoat-tests (Files): Likewise.
6621         * modules/mknod-tests (Files): Likewise.
6622         * modules/nanosleep-tests (Files): Likewise.
6623         * modules/nl_langinfo-tests (Files): Likewise.
6624         * modules/obstack-printf-tests (Files): Likewise.
6625         * modules/open-tests (Files): Likewise.
6626         * modules/openat-tests (Files): Likewise.
6627         * modules/perror-tests (Files): Likewise.
6628         * modules/pipe2-tests (Files): Likewise.
6629         * modules/poll-tests (Files): Likewise.
6630         * modules/popen-tests (Files): Likewise.
6631         * modules/posix_spawn-tests (Files): Likewise.
6632         * modules/posix_spawnp-tests (Files): Likewise.
6633         * modules/pread-tests (Files): Likewise.
6634         * modules/printf-posix-tests (Files): Likewise.
6635         * modules/pty-tests (Files): Likewise.
6636         * modules/random_r-tests (Files): Likewise.
6637         * modules/rawmemchr-tests (Files): Likewise.
6638         * modules/readlink-tests (Files): Likewise.
6639         * modules/remove-tests (Files): Likewise.
6640         * modules/rename-tests (Files): Likewise.
6641         * modules/renameat-tests (Files): Likewise.
6642         * modules/rmdir-tests (Files): Likewise.
6643         * modules/round-tests (Files): Likewise.
6644         * modules/roundf-tests (Files): Likewise.
6645         * modules/roundl-tests (Files): Likewise.
6646         * modules/select-tests (Files): Likewise.
6647         * modules/setenv-tests (Files): Likewise.
6648         * modules/sigaction-tests (Files): Likewise.
6649         * modules/sleep-tests (Files): Likewise.
6650         * modules/snprintf-posix-tests (Files): Likewise.
6651         * modules/snprintf-tests (Files): Likewise.
6652         * modules/sprintf-posix-tests (Files): Likewise.
6653         * modules/stat-tests (Files): Likewise.
6654         * modules/strcasestr-tests (Files): Likewise.
6655         * modules/strchrnul-tests (Files): Likewise.
6656         * modules/strerror-tests (Files): Likewise.
6657         * modules/strsignal-tests (Files): Likewise.
6658         * modules/strstr-tests (Files): Likewise.
6659         * modules/strtod-tests (Files): Likewise.
6660         * modules/strverscmp-tests (Files): Likewise.
6661         * modules/symlink-tests (Files): Likewise.
6662         * modules/symlinkat-tests (Files): Likewise.
6663         * modules/times-tests (Files): Likewise.
6664         * modules/trunc-tests (Files): Likewise.
6665         * modules/truncf-tests (Files): Likewise.
6666         * modules/truncl-tests (Files): Likewise.
6667         * modules/tsearch-tests (Files): Likewise.
6668         * modules/uname-tests (Files): Likewise.
6669         * modules/unlink-tests (Files): Likewise.
6670         * modules/unsetenv-tests (Files): Likewise.
6671         * modules/usleep-tests (Files): Likewise.
6672         * modules/utimensat-tests (Files): Likewise.
6673         * modules/vasprintf-tests (Files): Likewise.
6674         * modules/vdprintf-posix-tests (Files): Likewise.
6675         * modules/vfprintf-posix-tests (Files): Likewise.
6676         * modules/vprintf-posix-tests (Files): Likewise.
6677         * modules/vsnprintf-posix-tests (Files): Likewise.
6678         * modules/vsnprintf-tests (Files): Likewise.
6679         * modules/vsprintf-posix-tests (Files): Likewise.
6680         * modules/wcrtomb-tests (Files): Likewise.
6681         * modules/wcsnrtombs-tests (Files): Likewise.
6682         * modules/wcsrtombs-tests (Files): Likewise.
6683         * modules/wcwidth-tests (Files): Likewise.
6684         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6685         * tests/test-isinf.c (isinf): Likewise.
6686         * tests/test-isnan.c (isnan): Likewise.
6687         * tests/test-signbit.c (signbit): Likewise.
6688         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6689         declaration, either as macro or with correct signature.
6690         (select): Ensure function under test is declared with correct
6691         signature in correct header.
6692         * tests/test-atexit.c (atexit): Likewise.
6693         * tests/test-btowc.c (btowc): Likewise.
6694         * tests/test-canonicalize-lgpl.c (realpath)
6695         (canonicalize_file_name): Likewise.
6696         * tests/test-ceilf1.c (ceilf): Likewise.
6697         * tests/test-ceill.c (ceill): Likewise.
6698         * tests/test-chown.c (chown): Likewise.
6699         * tests/test-dprintf-posix.c (dprintf): Likewise.
6700         * tests/test-dup2.c (dup2): Likewise.
6701         * tests/test-dup3.c (dup3): Likewise.
6702         * tests/test-duplocale.c (duplocale): Likewise.
6703         * tests/test-fchdir.c (fchdir): Likewise.
6704         * tests/test-fchownat.c (fchownat): Likewise.
6705         * tests/test-fcntl.c (fcntl): Likewise.
6706         * tests/test-fdopendir.c (fdopendir): Likewise.
6707         * tests/test-fflush.c (fflush): Likewise.
6708         * tests/test-flock.c (flock): Likewise.
6709         * tests/test-floorf1.c (floorf): Likewise.
6710         * tests/test-floorl.c (floorl): Likewise.
6711         * tests/test-fnmatch.c (fnmatch): Likewise.
6712         * tests/test-fopen.c (fopen): Likewise.
6713         * tests/test-fprintf-posix.c (fprintf): Likewise.
6714         * tests/test-freopen.c (freopen): Likewise.
6715         * tests/test-frexp.c (frexp): Likewise.
6716         * tests/test-frexpl.c (frexpl): Likewise.
6717         * tests/test-fseek.c (fseek): Likewise.
6718         * tests/test-fseeko.c (fseeko): Likewise.
6719         * tests/test-fstatat.c (fstatat): Likewise.
6720         * tests/test-fsync.c (fsync): Likewise.
6721         * tests/test-ftell.c (ftell): Likewise.
6722         * tests/test-ftello.c (ftello): Likewise.
6723         * tests/test-futimens.c (futimens): Likewise.
6724         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6725         (gai_strerror): Likewise.
6726         * tests/test-getcwd.c (getcwd): Likewise.
6727         * tests/test-getdelim.c (getdelim): Likewise.
6728         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6729         * tests/test-getgroups.c (getgroups): Likewise.
6730         * tests/test-gethostname.c (gethostname): Likewise.
6731         * tests/test-getline.c (getline): Likewise.
6732         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6733         Likewise.
6734         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6735         * tests/test-glob.c (glob, globfree): Likewise.
6736         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6737         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6738         * tests/test-inet_pton.c (inet_pton): Likewise.
6739         * tests/test-isblank.c (isblank): Likewise.
6740         * tests/test-lchown.c (lchown): Likewise.
6741         * tests/test-ldexpl.c (ldexpl): Likewise.
6742         * tests/test-link.c (link): Likewise.
6743         * tests/test-linkat.c (linkat): Likewise.
6744         * tests/test-lseek.c (lseek): Likewise.
6745         * tests/test-lstat.c (lstat): Likewise.
6746         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6747         * tests/test-mbsinit.c (mbsinit): Likewise.
6748         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6749         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6750         * tests/test-memchr.c (memchr): Likewise.
6751         * tests/test-memcmp.c (memcmp): Likewise.
6752         * tests/test-memmem.c (memmem): Likewise.
6753         * tests/test-memrchr.c (memrchr): Likewise.
6754         * tests/test-mkdir.c (mkdir): Likewise.
6755         * tests/test-mkdirat.c (mkdirat): Likewise.
6756         * tests/test-mkfifo.c (mkfifo): Likewise.
6757         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6758         * tests/test-mknod.c (mknod): Likewise.
6759         * tests/test-nanosleep.c (nanosleep): Likewise.
6760         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6761         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6762         Likewise.
6763         * tests/test-open.c (open): Likewise.
6764         * tests/test-openat.c (openat): Likewise.
6765         * tests/test-perror.c (perror): Likewise.
6766         * tests/test-pipe2.c (pipe2): Likewise.
6767         * tests/test-poll.c (poll): Likewise.
6768         * tests/test-popen.c (popen, pclose): Likewise.
6769         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6770         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6771         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6772         (posix_spawn_file_actions_destroy)
6773         (posix_spawn_file_actions_addclose)
6774         (posix_spawn_file_actions_addopen)
6775         (posix_spawn_file_actions_adddup2): Likewise.
6776         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6777         * tests/test-pread.c (pread): Likewise.
6778         * tests/test-printf-posix.c (printf): Likewise.
6779         * tests/test-pty.c (openpty, forkpty): Likewise.
6780         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6781         (random_r): Likewise.
6782         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6783         * tests/test-readlink.c (readlink): Likewise.
6784         * tests/test-remove.c (remove): Likewise.
6785         * tests/test-rename.c (rename): Likewise.
6786         * tests/test-renameat.c (renameat): Likewise.
6787         * tests/test-rmdir.c (rmdir): Likewise.
6788         * tests/test-round1.c (round): Likewise.
6789         * tests/test-roundf1.c (roundf): Likewise.
6790         * tests/test-roundl.c (roundl): Likewise.
6791         * tests/test-setenv.c (setenv): Likewise.
6792         * tests/test-sigaction.c (sigaction): Likewise.
6793         * tests/test-sleep.c (sleep): Likewise.
6794         * tests/test-snprintf.c (snprintf): Likewise.
6795         * tests/test-sprintf-posix.c (sprintf): Likewise.
6796         * tests/test-stat.c (stat): Likewise.
6797         * tests/test-stpncpy.c (stpncpy): Likewise.
6798         * tests/test-strcasestr.c (strcasestr): Likewise.
6799         * tests/test-strchrnul.c (strchrnul): Likewise.
6800         * tests/test-strerror.c (strerror): Likewise.
6801         * tests/test-strsignal.c (strsignal): Likewise.
6802         * tests/test-strstr.c (strstr): Likewise.
6803         * tests/test-strtod.c (strtod): Likewise.
6804         * tests/test-strverscmp.c (strverscmp): Likewise.
6805         * tests/test-symlink.c (symlink): Likewise.
6806         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6807         * tests/test-times.c (times): Likewise.
6808         * tests/test-trunc1.c (trunc): Likewise.
6809         * tests/test-truncf1.c (truncf): Likewise.
6810         * tests/test-truncl.c (truncl): Likewise.
6811         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6812         Likewise.
6813         * tests/test-uname.c (uname): Likewise.
6814         * tests/test-unlink.c (unlink): Likewise.
6815         * tests/test-unlinkat.c (unlinkat): Likewise.
6816         * tests/test-unsetenv.c (unsetenv): Likewise.
6817         * tests/test-usleep.c (usleep): Likewise.
6818         * tests/test-utimensat.c (utimensat): Likewise.
6819         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6820         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6821         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6822         * tests/test-vprintf-posix.c (vprintf): Likewise.
6823         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6824         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6825         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6826         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6827         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6828         * tests/test-wcwidth.c (wcwidth): Likewise.
6829
6830         build: pull in conditional headers during GNULIB_POSIXCHECK
6831         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6832         definitions from any conditionally-included headers.
6833         * lib/stdlib.in.h (includes): Likewise.
6834         * lib/unistd.in.h (includes): Likewise.
6835
6836 2009-12-24  Bruno Haible  <bruno@clisp.org>
6837
6838         * tests/test-argv-iter.c: Include header file being tested immediately
6839         after config.h.
6840         * tests/test-base64.c: Likewise.
6841         * tests/test-flock.c: Likewise.
6842         * tests/test-fsync.c: Likewise.
6843         * tests/test-getdate.c: Likewise.
6844         * tests/test-getndelim2.c: Likewise.
6845         * tests/test-isfinite.c: Likewise.
6846         * tests/test-isinf.c: Likewise.
6847         * tests/test-strerror.c: Likewise.
6848         * tests/test-strsignal.c: Likewise.
6849
6850 2009-12-23  Eric Blake  <ebb9@byu.net>
6851
6852         unistd: work around cygwin bug
6853         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6854         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6855         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6856
6857 2009-12-23  Bruno Haible  <bruno@clisp.org>
6858
6859         localename: More tests.
6860         * tests/test-localename.c (SIZEOF): New macro.
6861         (categories): New variable.
6862         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6863         test_locale_name_default): Add test w.r.t. thread locale.
6864         (test_locale_name_thread): New function.
6865         (main): Invoke it.
6866
6867         localename: Make aware of thread locale.
6868         * lib/localename.h (gl_locale_name_thread): New declaration.
6869         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6870         behaviour with respect to thread locale.
6871         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6872         <langinfo.h>, glthread/lock.h.
6873         (SIZE_BITS): New macro.
6874         (string_hash): New function.
6875         (struct hash_node): New type.
6876         (HASH_TABLE_SIZE): New macro.
6877         (struniq_hash_table, struniq_lock): New variables.
6878         (struniq): New function.
6879         (gl_locale_name_thread): New function.
6880         (gl_locale_name): Invoke it.
6881         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6882         * modules/localename (Depends-on): Add lock.
6883         Reported by Mike Gran <spk121@yahoo.com>.
6884
6885 2009-12-23  Eric Blake  <ebb9@byu.net>
6886
6887         va-args: new module
6888         * modules/va-args: New file.
6889         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6890         * MODULES.html.sh (Core language properties): Mention it.
6891
6892         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6893         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6894         named alias for __attribute__((__unused__)).
6895         * lib/chown.c: Update client.
6896         * lib/fchmodat.c: Likewise.
6897         * lib/fts.c: Likewise.
6898         * lib/getdate.y: Likewise.
6899         * lib/getgroups.c: Likewise.
6900         * lib/getopt.c: Likewise.
6901         * lib/getugroups.c: Likewise.
6902         * lib/mkdir.c: Likewise.
6903         * lib/mkfifo.c: Likewise.
6904         * lib/mkfifoat.c: Likewise.
6905         * lib/mknod.c: Likewise.
6906         * lib/mknodat.c: Likewise.
6907         * lib/readlink.c: Likewise.
6908         * lib/se-context.in.h: Likewise.
6909         * lib/se-selinux.in.h: Likewise.
6910         * lib/sockets.c: Likewise.
6911         * lib/symlink.c: Likewise.
6912         * lib/symlinkat.c: Likewise.
6913         * lib/unicodeio.c: Likewise.
6914         * lib/unistr.h: Likewise.
6915         * tests/test-areadlink.c: Likewise.
6916         * tests/test-areadlinkat.c: Likewise.
6917         * tests/test-filenamecat.c: Likewise.
6918         * tests/test-fseeko.c: Likewise.
6919         * tests/test-ftello.c: Likewise.
6920         * tests/test-getdate.c: Likewise.
6921         * tests/test-getgroups.c: Likewise.
6922         * tests/test-gethostname.c: Likewise.
6923         * tests/test-quotearg.c: Likewise.
6924         * tests/test-version-etc.c: Likewise.
6925         * tests/test-xalloc-die.c: Likewise.
6926         * tests/test-xfprintf-posix.c: Likewise.
6927         * tests/test-xprintf-posix.c: Likewise.
6928         * tests/test-xvasprintf.c: Likewise.
6929
6930         tests: avoid compiler warnings
6931         * tests/test-fcntl.c (main): Delete unused parameters.
6932         * tests/test-freopen-safer.c (main): Likewise.
6933         * tests/test-xalloc-die.c (main): Mark unused parameters.
6934         * tests/test-fseeko.c (main): Likewise.
6935         * tests/test-ftello.c (main): Likewise.
6936         * tests/test-nanosleep.c (main): Avoid declaration warning.
6937         * tests/test-sleep.c (main): Likewise.
6938         * tests/test-unsetenv.c (main): Silence warning about string
6939         literal.
6940         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6941
6942 2009-12-23  Bruno Haible  <bruno@clisp.org>
6943
6944         * tests/test-localename.c (test_locale_name): New function, extracted
6945         from main. Also test mixed situations.
6946         (test_locale_name_posix, test_locale_name_environ,
6947         test_locale_name_default): New functions.
6948         (main): Invoke them all.
6949         * modules/localename-tests (configure.ac): Test for newlocale.
6950
6951 2009-12-23  Bruno Haible  <bruno@clisp.org>
6952
6953         unistd: Ensure getcwd gets declared before being overridden.
6954         * lib/unistd.in.h: Conditionally include <io.h>.
6955
6956 2009-12-22  Bruno Haible  <bruno@clisp.org>
6957
6958         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6959         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6960         (gl_WCHAR_H): Invoke it.
6961         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6962         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6963         Reported by Karl Berry <karl@freefriends.org>.
6964
6965 2009-12-22  Eric Blake  <ebb9@byu.net>
6966
6967         math, unistd: avoid redundant includes
6968         * lib/math.in.h (isnan): No need to re-include <math.h>.
6969         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6970
6971         getsubopt: work around cygwin bug
6972         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6973         avoid conflicting with system getsubopt.
6974         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6975         bug.
6976
6977         getopt: synchronize from glibc
6978         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6979         parameter order.  Adjust all callers.
6980         (_getopt_internal_r, main): Adjust quoting in error messages.
6981         Drop considerations for outdated POSIX 1003.2 error message.
6982         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6983         callers.
6984         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6985
6986         test-getopt: test stderr behavior
6987         * modules/getopt-posix-tests (Depends-on): Add dup2.
6988         * tests/test-getopt.c (ASSERT): Avoid stderr.
6989         (main): Move stderr to a temporary file.
6990         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6991         Instead, add parameter to inform caller if output occurred.
6992         (test_getopt): Adjust all existing tests to expect silence, and
6993         add new tests of leading ":".
6994         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6995         glibc shortcomings with leading "-:" or "+:" in optstring.
6996         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6997         Likewise.
6998         * doc/posix-functions/getopt.texi (getopt): Likewise.
6999
7000         test-getopt: enhance test
7001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
7002         supports optind=0.
7003         * tests/test-getopt.c (OPTIND_MIN): Move...
7004         * tests/test-getopt.h (OPTIND_MIN): ...here.
7005         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
7006         Require that optind=0 works, since modern BSD supports it in
7007         addition to optreset, and since coreutils expects it.
7008         (test_getopt_long_only): New test.
7009         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7010         glibc shortcomings with 'W;', and enforcement of optind=0.
7011         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7012         Likewise.
7013
7014 2009-12-21  Bruno Haible  <bruno@clisp.org>
7015
7016         localename: Improvements for MacOS X and Cygwin.
7017         * lib/localename.h (gl_locale_name_environ): New declaration.
7018         * lib/localename.c (gl_locale_name_environ): New function, extracted from
7019         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
7020         (gl_locale_name_posix): Invoke it.
7021         (gl_locale_name_default): Add comments. Use Windows native API also on
7022         Cygwin.
7023
7024 2009-12-21  Bruno Haible  <bruno@clisp.org>
7025
7026         Update list of Win32 locale ids.
7027         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
7028         (LANG_SAMI): Renamed from LANG_SAAMI.
7029         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
7030         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
7031         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
7032         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
7033         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
7034         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
7035         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
7036         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
7037         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
7038         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
7039         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
7040         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
7041         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
7042         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
7043         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
7044         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
7045         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
7046         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
7047         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
7048         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
7049         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
7050         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
7051         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
7052         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
7053         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
7054         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
7055         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
7056         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
7057         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
7058         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
7059         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
7060         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
7061         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
7062         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
7063         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
7064         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
7065         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
7066         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
7067         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
7068         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
7069         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
7070         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
7071         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
7072         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
7073         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
7074         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
7075         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
7076         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
7077         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
7078         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
7079         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
7080         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
7081         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
7082         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
7083         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
7084         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
7085         Add more languages and countries for Sami, Sorbian. Add more countries
7086         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
7087         for Pashto. Change country for Syriac, Tswana.
7088
7089 2009-12-21  Eric Blake  <ebb9@byu.net>
7090
7091         test-utimens: avoid spurious failure
7092         * tests/test-chown.h (nap): Factor...
7093         * tests/nap.h: ...into new file.
7094         * tests/test-lchown.h (nap): Avoid duplication.
7095         * tests/test-utimens-common.h (nap): Use shared implementation,
7096         necessary on file systems with 1-second resolution.
7097         * modules/chown-tests (Files): Include new file.
7098         * modules/fdutimensat-tests (Files): Likewise.
7099         * modules/futimens-tests (Files): Likewise.
7100         * modules/lchown-tests (Files): Likewise.
7101         * modules/openat-tests (Files): Likewise.
7102         * modules/utimens-tests (Files): Likewise.
7103         * modules/utimensat-tests (Files): Likewise.
7104
7105 2009-12-19  Eric Blake  <ebb9@byu.net>
7106
7107         futimens, utimensat: work around Linux bug
7108         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
7109         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7110         * lib/utimensat.c (rpl_utimensat): Work around it.
7111         * lib/futimens.c (rpl_futimens): Adjust comment.
7112
7113         utimens: work around Linux ctime bug
7114         * lib/utimens.c (detect_ctime_bug): New helper function.
7115         (update_timespec): Differentiate between workaround needed for
7116         this bug vs. what is needed for systems that lack utimensat.
7117         (fdutimens, lutimens): Work around bug.
7118
7119         utimens: check for ctime update
7120         * tests/test-utimens-common.h (check_ctime): Define.
7121         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
7122         * tests/test-futimens.h (test_futimens): Likewise.
7123         * tests/test-lutimens.h (test_lutimens): Likewise.
7124         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7125         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7126
7127 2009-12-19  Bruno Haible  <bruno@clisp.org>
7128
7129         dprintf-posix: Check against memory leak fixed on 2009-12-15.
7130         * tests/test-dprintf-posix2.sh: New file.
7131         * tests/test-dprintf-posix2.c: New file.
7132         * modules/dprintf-posix-tests (Files): Add them.
7133         (configure.ac): Check for getrlimit and setrlimit.
7134         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7135
7136 2009-12-19  Bruno Haible  <bruno@clisp.org>
7137
7138         fprintf-posix: Check against memory leak fixed on 2009-12-15.
7139         * tests/test-fprintf-posix3.sh: New file.
7140         * tests/test-fprintf-posix3.c: New file.
7141         * modules/fprintf-posix-tests (Files): Add them.
7142         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7143
7144 2009-12-19  Eric Blake  <ebb9@byu.net>
7145
7146         dirfd: fix prototype
7147         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
7148         * lib/dirfd.c (dirfd): Likewise.
7149
7150         canonicalize: reduce memory usage
7151         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
7152         allocation to size.
7153         Reported by Solar Designer <solar@openwall.com>.
7154
7155 2009-12-19  Bruno Haible  <bruno@clisp.org>
7156
7157         New module attribute 'Applicability'.
7158         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
7159         * gnulib-tool: New option --extract-applicability.
7160         (func_usage): Document it.
7161         (sed_extract_prog): Recognize it.
7162         (func_get_applicability): New function.
7163         (func_import): Generalize handling of 'link-warning' module.
7164         * modules/link-warning (Applicability): New section.
7165         * modules/arg-nonnull (Applicability): New section.
7166         Repoted by Simon Josefsson <simon@josefsson.org>.
7167
7168 2009-12-19  Bruno Haible  <bruno@clisp.org>
7169
7170         fflush: tweak
7171         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
7172         * lib/fseeko.c (rpl_fseeko): Likewise.
7173
7174 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
7175
7176         * lib/gl_list.h: Fix typo in comment.
7177
7178 2009-12-16  Eric Blake  <ebb9@byu.net>
7179
7180         fcntl: use to simplify other modules
7181         * modules/cloexec (Depends-on): Add fcntl.
7182         * modules/fchdir (Depends-on): Likewise.
7183         * modules/fd-safer-flag (Depends-on): Likewise.
7184         * modules/unistd-safer (Depends-on): Likewise.
7185         * modules/dup3 (configure.ac): Set module indicator.
7186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7187         missing.
7188         * lib/fchdir.c (_gl_register_dup): Fix comment.
7189         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7190         * lib/dup-safer.c (dup_safer): Likewise.
7191         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7192         * lib/dup3.c (dup3): Likewise.
7193         * tests/test-fchdir.c (main): Enhance test.
7194         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
7195
7196         fcntl: port portions of fcntl to mingw
7197         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7198         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7199         replacement for mingw.
7200         * modules/fcntl (Description): Update.
7201         (Depends-on): Add dup2.
7202         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7203         * modules/fcntl-h (Makefile.am): Substitute it.
7204         * lib/fcntl.in.h (fcntl): Update declaration.
7205         (F_DUPFD, F_GETFD): New macros, when needed.
7206         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7207         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7208         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7209         we now guarantee.
7210
7211         fcntl: work around cygwin bug in F_DUPFD
7212         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7213         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7214         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7215         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7216         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7217
7218         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7219         * modules/fcntl (Files): List new files.
7220         (configure.ac): Run a test.
7221         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7222         * lib/fcntl.c (rpl_fcntl): Likewise.
7223         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7224         (gl_FCNTL_H): Always replace fcntl.h.
7225         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7226         * lib/fcntl.in.h (fcntl): Declare replacement.
7227         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7228         needed, plus a witness.
7229         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7230         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7231         * tests/test-fcntl.c: New file.
7232         * modules/fcntl-tests: Likewise.
7233
7234         binary-io: avoid potential compilation warning
7235         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7236         directives.
7237
7238         fflush: avoid compilation error on NetBSD
7239         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7240         between off_t and fpos_t, since the latter is sometimes a struct.
7241         * lib/fseeko.c (rpl_fseeko): Likewise.
7242         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7243
7244 2009-12-15  Eric Blake  <ebb9@byu.net>
7245
7246         fcntl-h, stdio, sys_ioctl: fix declarations
7247         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7248         function must not take arguments.
7249         * lib/sys_ioctl.in.h (ioctl): Likewise.
7250         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7251         (open): Add a link warning.
7252
7253 2009-12-15  Jim Meyering  <meyering@redhat.com>
7254
7255         areadlink, areadlink-with-size: relax license to LGPLv2+
7256         * modules/areadlink (License): Relax to LGPLv2+.
7257         * modules/areadlink-with-size (License): Likewise.
7258
7259 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7260             Bruno Haible  <bruno@clisp.org>
7261
7262         *printf: Fix memory leak.
7263         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7264         * lib/vfprintf.c (vfprintf): Likewise.
7265         * lib/dprintf.c (dprintf): Likewise.
7266         * lib/vdprintf.c (vdprintf): Likewise.
7267
7268 2009-12-14  Eric Blake  <ebb9@byu.net>
7269
7270         accept4: adjust module dependencies
7271         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7272
7273         utimens: one more try at avoiding compiler warning
7274         * lib/utimens.c (lutimens): Lower scope of result.
7275
7276 2009-12-13  Bruno Haible  <bruno@clisp.org>
7277
7278         Move the malloc checking from module 'list' to new module 'xlist'.
7279         * modules/xlist: New file.
7280         * lib/gl_xlist.h: New file.
7281         * lib/gl_xlist.c: New file.
7282         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7283         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7284         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7285         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7286         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7287         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7288         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7289         gl_sortedlist_nx_add): New declarations.
7290         (struct gl_list_implementation): Rename and change methods accordingly.
7291         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7292         (gl_list_nx_create): Renamed from gl_list_create.
7293         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7294         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7295         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7296         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7297         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7298         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7299         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7300         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7301         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7302         gl_list_create_empty.
7303         (gl_list_nx_create): Renamed from gl_list_create.
7304         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7305         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7306         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7307         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7308         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7309         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7310         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7311         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7312         * lib/gl_array_list.c: Don't include xalloc.h.
7313         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7314         NULL upon out-of-memory.
7315         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7316         out-of-memory.
7317         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7318         Change return type to 'int'.
7319         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7320         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7321         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7322         upon out-of-memory.
7323         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7324         upon out-of-memory.
7325         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7326         upon out-of-memory.
7327         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7328         upon out-of-memory.
7329         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7330         out-of-memory.
7331         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7332         Update.
7333         (gl_array_list_implementation): Update.
7334         * lib/gl_carray_list.c: Don't include xalloc.h.
7335         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7336         Return NULL upon out-of-memory.
7337         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7338         out-of-memory.
7339         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7340         Change return type to 'int'.
7341         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7342         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7343         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7344         upon out-of-memory.
7345         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7346         upon out-of-memory.
7347         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7348         out-of-memory.
7349         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7350         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7351         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7352         Update.
7353         (gl_carray_list_implementation): Update.
7354         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7355         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7356         gl_linked_create_empty. Return NULL upon out-of-memory.
7357         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7358         out-of-memory.
7359         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7360         Change return type to 'int'. Return -1 upon out-of-memory.
7361         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7362         out-of-memory.
7363         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7364         upon out-of-memory.
7365         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7366         upon out-of-memory.
7367         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7368         NULL upon out-of-memory.
7369         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7370         upon out-of-memory.
7371         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7372         out-of-memory.
7373         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7374         Update.
7375         * lib/gl_linked_list.c: Don't include xalloc.h.
7376         (gl_linked_list_implementation): Update.
7377         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7378         (add_to_bucket): Change return type to 'int'.
7379         (gl_linkedhash_list_implementation): Update.
7380         * lib/gl_anytree_list1.h (free_subtree): New function.
7381         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7382         gl_tree_create_empty. Return NULL upon out-of-memory.
7383         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7384         Change return type to 'int'. Return -1 upon out-of-memory.
7385         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7386         out-of-memory.
7387         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7388         (gl_tree_remove_node): New function, moved here from
7389         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7390         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7391         Update.
7392         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7393         malloc, not xmalloc. Return NULL upon out-of-memory.
7394         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7395         out-of-memory.
7396         (gl_tree_remove_node_from_tree): New function, extracted from
7397         gl_tree_remove_node.
7398         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7399         upon out-of-memory.
7400         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7401         out-of-memory.
7402         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7403         upon out-of-memory.
7404         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7405         upon out-of-memory.
7406         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7407         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7408         not xmalloc. Return NULL upon out-of-memory.
7409         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7410         out-of-memory.
7411         (gl_tree_remove_node_from_tree): New function, extracted from
7412         gl_tree_remove_node.
7413         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7414         upon out-of-memory.
7415         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7416         out-of-memory.
7417         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7418         upon out-of-memory.
7419         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7420         upon out-of-memory.
7421         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7422         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7423         gl_anytree_list1.h before gl_anyavltree_list2.h.
7424         (gl_avltree_list_implementation): Update.
7425         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7426         gl_anytree_list1.h before gl_anyavltree_list2.h.
7427         (gl_rbtree_list_implementation): Update.
7428         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7429         Change return type to 'int'. Return -1 upon out-of-memory. Use
7430         __builtin_expect.
7431         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7432         (gl_avltreehash_list_implementation): Update.
7433         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7434         (gl_rbtreehash_list_implementation): Update.
7435         * modules/array-list (Depends-on): Remove xalloc.
7436         * modules/carray-list (Depends-on): Likewise.
7437         * modules/linked-list (Depends-on): Likewise.
7438         * modules/linkedhash-list (Depends-on): Likewise.
7439         * modules/avltree-list (Depends-on): Likewise.
7440         * modules/rbtree-list (Depends-on): Likewise.
7441         * modules/avltreehash-list (Depends-on): Likewise.
7442         * modules/rbtreehash-list (Depends-on): Likewise.
7443
7444         * modules/xsublist: New file.
7445         * lib/gl_xsublist.h: New file.
7446         * lib/gl_xsublist.c: New file.
7447         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7448         (gl_sublist_nx_create): New declaration.
7449         * lib/gl_sublist.c: Don't include xalloc.h.
7450         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7451         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7452         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7453         Change return type to 'int'. Return -1 upon out-of-memory.
7454         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7455         upon out-of-memory.
7456         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7457         NULL upon out-of-memory.
7458         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7459         upon out-of-memory.
7460         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7461         NULL upon out-of-memory.
7462         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7463         NULL upon out-of-memory.
7464         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7465         upon out-of-memory.
7466         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7467         (gl_sublist_list_implementation): Update.
7468         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7469         upon out-of-memory.
7470         * modules/sublist (Depends-on): Remove xalloc.
7471
7472         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7473         * tests/test-carray_list.c: Likewise.
7474         * tests/test-linked_list.c: Likewise.
7475         * tests/test-linkedhash_list.c: Likewise.
7476         * tests/test-avltree_list.c: Likewise.
7477         * tests/test-rbtree_list.c: Likewise.
7478         * tests/test-avltreehash_list.c: Likewise.
7479         * tests/test-rbtreehash_list.c: Likewise.
7480         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7481         * modules/carray-list-tests (Makefile.am): Likewise.
7482         * modules/linked-list-tests (Makefile.am): Likewise.
7483         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7484         * modules/avltree-list-tests (Makefile.am): Likewise.
7485         * modules/rbtree-list-tests (Makefile.am): Likewise.
7486         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7487         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7488
7489         * NEWS: Mention the changes.
7490
7491         * lib/clean-temp.c: Include gl_xlist.h.
7492         * modules/clean-temp (Depends-on): Add xlist.
7493
7494         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7495         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7496
7497         * tests/test-array_oset.c: Include gl_xlist.h.
7498         * modules/array-oset-tests (Depends-on): Add xlist.
7499
7500         Reported by José E. Marchesi <jemarch@gnu.org>.
7501
7502 2009-12-13  Bruno Haible  <bruno@clisp.org>
7503
7504         Move the malloc checking from module 'oset' to new module 'xoset'.
7505         * modules/xoset: New file.
7506         * lib/gl_xoset.h: New file.
7507         * lib/gl_xoset.c: New file.
7508         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7509         declarations.
7510         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7511         (struct gl_oset_implementation): Rename and change methods accordingly.
7512         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7513         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7514         'int'. Mark as __warn_unused_result__.
7515         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7516         gl_oset_create_empty.
7517         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7518         'int'.
7519         * lib/gl_array_oset.c: Don't include xalloc.h.
7520         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7521         malloc, not xmalloc.
7522         (grow): Change return type to 'int'. Don't call xalloc_die.
7523         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7524         to 'int'.
7525         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7526         'int'.
7527         (gl_array_oset_implementation): Update.
7528         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7529         gl_tree_create_empty.
7530         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7531         'int'.
7532         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7533         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7534         xmalloc.
7535         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7536         not xmalloc.
7537         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7538         xmalloc.
7539         (gl_avltree_oset_implementation): Update.
7540         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7541         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7542         xmalloc.
7543         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7544         not xmalloc.
7545         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7546         xmalloc.
7547         (gl_rbtree_oset_implementation): Update.
7548         * modules/array-oset (Depends-on): Remove xalloc.
7549         * modules/avltree-oset (Depends-on): Likewise.
7550         * modules/rbtree-oset (Depends-on): Likewise.
7551         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7552         * tests/test-avltree_oset.c: Likewise.
7553         * tests/test-rbtree_oset.c: Likewise.
7554         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7555         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7556         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7557         * NEWS: Mention the change.
7558
7559 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7560
7561         maint.mk: allow a project to override release-prep commands
7562         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7563         commands into a new rule.
7564         (release-prep): New rule.
7565         (release-prep-hook): New overridable variable.
7566
7567 2009-12-13  Bruno Haible  <bruno@clisp.org>
7568
7569         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7570
7571 2009-12-13  Jim Meyering  <meyering@redhat.com>
7572
7573         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7574         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7575
7576 2009-12-12  Bruno Haible  <bruno@clisp.org>
7577
7578         duplocale: Tweak.
7579         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7580
7581 2009-12-12  Karl Berry  <karl@gnu.org>
7582
7583         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7584
7585 2009-12-12  Bruno Haible  <bruno@clisp.org>
7586
7587         * m4/po.m4: Undo incorrect untabification.
7588
7589 2009-12-12  Bruno Haible  <bruno@clisp.org>
7590
7591         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7592         * modules/c-strtod (Depends-on): Add locale.
7593         * modules/c-strtold (Depends-on): Likewise.
7594
7595 2009-12-12  Bruno Haible  <bruno@clisp.org>
7596
7597         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7598
7599 2009-12-11  Eric Blake  <ebb9@byu.net>
7600
7601         setenv: relax requirement in light of POSIX ruling
7602         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7603         not NULL.
7604         * tests/test-setenv.c (main): Relax test.
7605         * tests/test-unsetenv.c (main): Likewise.
7606         * doc/posix-functions/setenv.texi (setenv): Document this.
7607         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7608
7609 2009-12-11  Bruno Haible  <bruno@clisp.org>
7610
7611         New module 'fd-safer-flag'.
7612         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7613         * lib/dup-safer.c (dup_safer_flag): Remove function.
7614         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7615         * lib/fd-safer.c (fd_safer_flag): Remove function.
7616         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7617         * modules/cloexec (configure.ac): Drop indicator macro.
7618         * modules/fd-safer-flag: New file.
7619         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7620         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7621         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7622
7623 2009-12-11  Bruno Haible  <bruno@clisp.org>
7624
7625         Tests for module 'nl_langinfo'.
7626         * modules/nl_langinfo-tests: New file.
7627         * tests/test-nl_langinfo.sh: New file.
7628         * tests/test-nl_langinfo.c: New file.
7629
7630         New module 'nl_langinfo'.
7631         * lib/nl_langinfo.c: New file.
7632         * m4/nl_langinfo.m4: New file.
7633         * modules/nl_langinfo: New file.
7634         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7635
7636 2009-12-11  Bruno Haible  <bruno@clisp.org>
7637
7638         Tests for module 'langinfo'.
7639         * modules/langinfo-tests: New file.
7640         * tests/test-langinfo.c: New file.
7641
7642         New module 'langinfo'.
7643         * lib/langinfo.in.h: New file.
7644         * m4/langinfo_h.m4: New file.
7645         * modules/langinfo: New file.
7646         * doc/posix-headers/langinfo.texi: Mention the new module.
7647
7648 2009-12-11  Bruno Haible  <bruno@clisp.org>
7649
7650         * lib/config.charset: Untabify.
7651
7652 2009-12-11  Bruno Haible  <bruno@clisp.org>
7653
7654         * modules/unistd-safer (configure.ac): Drop indicator macro.
7655
7656 2009-12-11  Bruno Haible  <bruno@clisp.org>
7657
7658         Move pipe2-safer code to its own file.
7659         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7660         * lib/pipe-safer.c (pipe2_safer): Remove function.
7661         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7662         (Makefile.am): Add it to lib_SOURCES.
7663
7664 2009-12-10  Bruno Haible  <bruno@clisp.org>
7665
7666         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7667
7668 2009-12-10  Bruno Haible  <bruno@clisp.org>
7669
7670         Declare which arguments expect non-NULL values, for GCC and clang.
7671         * build-aux/arg-nonnull.h: New file.
7672         * modules/arg-nonnull: New file.
7673         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7674         (inet_ntop, inet_pton): Use it.
7675         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7676         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7677         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7678         (open, openat): Use it.
7679         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7680         (fnmatch): Use it.
7681         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7682         (getopt, getopt_long, getopt_long_only): Use it.
7683         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7684         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7685         Use it.
7686         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7687         (iconv_open): Use it.
7688         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7689         (strtoimax, strtoumax): Use it.
7690         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7691         (duplocale): Use it.
7692         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7693         (frexp, frexpl): Use it.
7694         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7695         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7696         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7697         (tsearch, tfind, tdelete, twalk): Use it.
7698         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7699         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7700         sigpending): Use it.
7701         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7702         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7703         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7704         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7705         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7706         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7707         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7708         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7709         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7710         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7711         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7712         Use it.
7713         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7714         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7715         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7716         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7717         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7718         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7719         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7720         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7721         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7722         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7723         strtoull, unsetenv): Use it.
7724         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7725         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7726         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7727         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7728         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7729         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7730         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7731         (strcasecmp, strncasecmp): Use it.
7732         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7733         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7734         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7735         rpl_setsockopt): Use it.
7736         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7737         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7738         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7739         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7740         (gettimeofday): Use it.
7741         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7742         (times): Use it.
7743         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7744         (uname): Use it.
7745         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7746         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7747         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7748         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7749         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7750         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7751         unlinkat, write): Use it.
7752         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7753         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7754         * lib/argv-iter.h: Include arg-nonnull.h.
7755         (_ATTRIBUTE_NONNULL_): Remove macro.
7756         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7757         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7758         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7759         optimization.
7760         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7761         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7762         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7763         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7764         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7765         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7766         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7767         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7768         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7769         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7770         * modules/dirent (Depends-on): Add arg-nonnull.
7771         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7772         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7773         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7774         * modules/fnmatch (Depends-on): Add arg-nonnull.
7775         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7776         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7777         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7778         * modules/glob (Depends-on): Add arg-nonnull.
7779         (Makefile.am): Insert arg-nonnull.h into glob.h.
7780         * modules/iconv_open (Depends-on): Add arg-nonnull.
7781         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7782         * modules/inttypes (Depends-on): Add arg-nonnull.
7783         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7784         * modules/locale (Depends-on): Add arg-nonnull.
7785         (Makefile.am): Insert arg-nonnull.h into locale.h.
7786         * modules/math (Depends-on): Add arg-nonnull.
7787         (Makefile.am): Insert arg-nonnull.h into math.h.
7788         * modules/netdb (Depends-on): Add arg-nonnull.
7789         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7790         * modules/search (Depends-on): Add arg-nonnull.
7791         (Makefile.am): Insert arg-nonnull.h into search.h.
7792         * modules/signal (Depends-on): Add arg-nonnull.
7793         (Makefile.am): Insert arg-nonnull.h into signal.h.
7794         * modules/spawn (Depends-on): Add arg-nonnull.
7795         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7796         * modules/stdio (Depends-on): Add arg-nonnull.
7797         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7798         * modules/stdlib (Depends-on): Add arg-nonnull.
7799         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7800         * modules/string (Depends-on): Add arg-nonnull.
7801         (Makefile.am): Insert arg-nonnull.h into string.h.
7802         * modules/strings (Depends-on): Add arg-nonnull.
7803         (Makefile.am): Insert arg-nonnull.h into strings.h.
7804         * modules/sys_socket (Depends-on): Add arg-nonnull.
7805         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7806         * modules/sys_stat (Depends-on): Add arg-nonnull.
7807         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7808         * modules/sys_time (Depends-on): Add arg-nonnull.
7809         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7810         * modules/sys_times (Depends-on): Add arg-nonnull.
7811         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7812         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7813         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7814         * modules/time (Depends-on): Add arg-nonnull.
7815         (Makefile.am): Insert arg-nonnull.h into time.h.
7816         * modules/unistd (Depends-on): Add arg-nonnull.
7817         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7818         * modules/wchar (Depends-on): Add arg-nonnull.
7819         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7820         * modules/argv-iter (Depends-on): Add arg-nonnull.
7821         * tests/test-canonicalize.c (null_ptr): New function.
7822         (main): Use it.
7823         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7824         (main): Use it.
7825         * tests/test-memmem.c (null_ptr): New function.
7826         (main): Use it.
7827         Reported by Jim Meyering.
7828
7829 2009-12-10  Bruno Haible  <bruno@clisp.org>
7830
7831         Use spaces for indentation, not tabs.
7832         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7833         * m4/*.m4: Untabify.
7834         * build-aux/*.h: Untabify.
7835         * tests/**/*.[hc]: Untabify.
7836         * README: New section "Indent with spaces, not TABs", based on
7837         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7838         * NEWS: Mention the change.
7839
7840 2009-12-10  Bruno Haible  <bruno@clisp.org>
7841
7842         pty test: Fix link error.
7843         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7844         test_pty_LDADD.
7845
7846 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7847
7848         * modules/pty: New file.
7849         * modules/pty-tests: New file.
7850         * m4/pty.m4: New file.
7851         * tests/test-pty.c: New file.
7852         * doc/glibc-headers/pty.texi: Modified.
7853         * doc/glibc-functions/forkpty.texi: Modified.
7854         * doc/glibc-functions/openpty.texi: Modified.
7855
7856 2009-12-10  Bruno Haible  <bruno@clisp.org>
7857
7858         Avoid syntax error in C++ mode.
7859         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7860
7861 2009-12-10  Bruno Haible  <bruno@clisp.org>
7862
7863         Use sed with option -e.
7864         * gnulib-tool (func_version, func_emit_copyright_notice,
7865         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7866         option -e to sed.
7867         * modules/link-warning (Makefile.am): Likewise.
7868
7869 2009-12-10  Jim Meyering  <meyering@redhat.com>
7870
7871         mgetgroups: do not write bytes beyond end of malloc'd buffer
7872         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7873         username, we call getgroups with a one-element-shorter buffer,
7874         but still told it the length was original, max_n_groups.
7875
7876 2009-12-09  Eric Blake  <ebb9@byu.net>
7877
7878         cloexec: relax license
7879         * modules/cloexec (Maintainer): Add myself.
7880         (License): Use LGPL, not GPL.
7881
7882         link-warning: optimize generation
7883         * modules/link-warning (Makefile.am): Reduce process usage.
7884
7885 2009-12-09  Bruno Haible  <bruno@clisp.org>
7886
7887         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7888         workaround was added on 2009-11-17.
7889
7890 2009-12-09  Jim Meyering  <meyering@redhat.com>
7891             Bruno Haible  <bruno@clisp.org>
7892
7893         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7894         * modules/link-warning (Makefile.am): Make the comment-removing sed
7895         command more robust in the face of bootstrap-prepended comment lines.
7896
7897 2009-12-09  Bruno Haible  <bruno@clisp.org>
7898
7899         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7900         most one group.
7901
7902 2009-12-09  Simon Josefsson <simon@josefsson.org>
7903             Bruno Haible  <bruno@clisp.org>
7904
7905         * build-aux/link-warning.h: Add copyright notice.
7906         * modules/link-warning (Makefile.am): Generate link-warning.h from
7907         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7908         * NEWS: Mention change in link-warning module.
7909         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7910         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7911         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7912         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7913         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7914         * modules/math (Makefile.am): Add dependency to math.h.
7915         * modules/search (Makefile.am): Add dependency to search.h.
7916         * modules/signal (Makefile.am): Add dependency to signal.h.
7917         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7918         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7919         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7920         * modules/string (Makefile.am): Add dependency to string.h.
7921         * modules/strings (Makefile.am): Add dependency to strings.h.
7922         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7923         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7924         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7925         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7926         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7927         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7928         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7929         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7930         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7931
7932 2009-12-09  Bruno Haible  <bruno@clisp.org>
7933
7934         fchdir: Optimize away rpl_fstat when possible.
7935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7936         REPLACE_OPEN_DIRECTORY.
7937         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7938
7939 2009-12-09  Bruno Haible  <bruno@clisp.org>
7940
7941         * lib/fchdir.c: Update comment.
7942
7943 2009-12-09  Bruno Haible  <bruno@clisp.org>
7944
7945         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7946
7947 2009-12-08  Eric Blake  <ebb9@byu.net>
7948
7949         fchdir: avoid memory leak on re-registration.
7950         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7951
7952 2009-12-08  Jim Meyering  <meyering@redhat.com>
7953
7954         init.sh: avoid Solaris 10 /bin/sh portability problem
7955         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7956         sourced script:
7957           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7958           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7959           bar
7960         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7961         and two tests used that idiom.
7962         * tests/init.sh: Update suggested usage comments.
7963         (path_prepend_): New function, to be used in place
7964         of the --src-path=DIR option.
7965         (setup_): Move PATH-prepending code into path_prepend_.
7966         * tests/test-pread.sh: Adapt to new usage.
7967         * tests/test-xalloc-die.sh: Likewise.
7968
7969 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7970
7971         * doc/gnulib.texi (Glibc pty.h): Add.
7972         * doc/glibc-functions/forkpty.texi: Add.
7973         * doc/glibc-functions/openpty.texi: Add.
7974         Suggested by Bruno Haible.
7975
7976 2009-12-08  Eric Blake  <ebb9@byu.net>
7977
7978         fchdir: fix logic bugs
7979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7980         * tests/test-fchdir.c (main): Enhance test.
7981         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7982         is in use.
7983
7984         dup2: fix logic bugs
7985         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7986         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7987         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7988         exists.
7989         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7990
7991 2009-12-07  Eric Blake  <ebb9@byu.net>
7992
7993         unlink: fix m4 detection
7994         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7995
7996         unistd-safer: add unit test
7997         * modules/unistd-safer-tests: New file.
7998         * tests/test-dup-safer.c: Likewise.
7999         * tests/test-cloexec.c (setmode): Avoid compiler warning.
8000         * tests/test-dup2.c (setmode): Likewise.
8001         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
8002
8003         cloexec: preserve text vs. binary across dup_cloexec
8004         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
8005         mode.
8006         * modules/dup2-tests (Depends-on): Add binary-io.
8007         * modules/cloexec-tests (Depends-on): Likewise.
8008         * tests/test-dup2.c (setmode, is_mode): New helpers.
8009         (main): Add tests that translation mode is preserved.
8010         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
8011         Reported by Bruno Haible.
8012
8013         mgetgroups: reduce duplicate listings
8014         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
8015         resulting array.
8016         * tests/test-chown.h (test_chown): Simplify client.
8017         * tests/test-lchown.h (test_lchown): Likewise.
8018
8019 2009-12-06  Bruno Haible  <bruno@clisp.org>
8020
8021         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
8022         value.
8023
8024 2009-12-06  Bruno Haible  <bruno@clisp.org>
8025
8026         * lib/progname.c: Include stdio.h, stdlib.h.
8027         (set_program_name): Reject a NULL argument.
8028
8029 2009-12-05  Eric Blake  <ebb9@byu.net>
8030
8031         pipe2-safer: new module
8032         * modules/pipe2-safer: New file.
8033         * lib/unistd-safer.h (pipe2_safer): New prototype.
8034         * lib/unistd--.h (pipe2): New wrapper.
8035         * lib/pipe-safer.c (pipe2_safer): New function.
8036         * modules/pipe (Depends-on): Add pipe2-safer.
8037         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
8038
8039         stdlib-safer: preserve cloexec flag for mkostemp[s]
8040         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
8041         fd_safer_flag.
8042
8043         unistd-safer: allow preservation of cloexec status via flag
8044         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
8045         prototypes.
8046         * lib/dup-safer.c (dup_safer_flag): New function.
8047         * lib/fd-safer.c (fd_safer_flag): Likewise.
8048         * modules/cloexec (configure.ac): Set witness.
8049
8050         test-dup2: enhance test
8051         * modules/dup2-tests (Depends-on): Add cloexec.
8052         * tests/test-dup2.c (main): Enhance test.
8053
8054         cloexec: add dup_cloexec
8055         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
8056         header and comments.
8057         * lib/cloexec.c (set_cloexec_flag): Add comments.
8058         (dup_cloexec): New function, with mingw implementation borrowed
8059         from...
8060         * lib/w32spawn.h (dup_noinherit): ...here.
8061         * modules/execute (Depends-on): Add cloexec.
8062         * modules/pipe (Depends-on): Likewise.
8063         * modules/cloexec (Depends-on): Add dup2.
8064         * modules/cloexec-tests (Files): New file.
8065         * tests/test-cloexec.c: Likewise.
8066
8067         test-xalloc-die: fix test for mingw
8068         * modules/xalloc-die-tests (Files): Add tests/init.sh.
8069         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
8070         directory and .exe suffix off argv[0] output.
8071
8072         test-fseeko: fix test for mingw
8073         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
8074         than undefining fseek, so test will pass on mingw.
8075
8076 2009-12-05  Bruno Haible  <bruno@clisp.org>
8077
8078         * lib/progname.h (set_program_name): Clarify specification.
8079         * lib/progname.c (set_program_name): Likewise.
8080         Reported by Jim Meyering.
8081
8082 2009-12-05  Jim Meyering  <meyering@redhat.com>
8083
8084         maint.mk: backslash-escape parens in default regexp
8085         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
8086         backslash-escape the literal parentheses.
8087
8088         maint.mk: news-date-check: use grep -E
8089         * top/maint.mk (today): Define a Make variable, not a...
8090         (news-date-check): ...shell variable.
8091         (news-date-regexp): Use the Make variable.
8092         Use grep's -E option.  Change the failing diagnostic to mention
8093         the variable, $(news-date-regexp).
8094
8095 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
8096
8097         maintainer-makefile: allow customization of NEWS entry format
8098         * top/maint.mk (news-date-regexp): New overridable variable.
8099         (news-date-check): Use it.
8100
8101 2009-12-04  Eric Blake  <ebb9@byu.net>
8102
8103         mgetgroups: add xgetgroups, and avoid ENOSYS failures
8104         * lib/mgetgroups.h (xgetgroups): New prototype.
8105         * lib/mgetgroups.c (xgetgroups): New wrapper.
8106         (mgetgroups): Handle ENOSYS.
8107         * modules/mgetgroups (Depends-on): Add realloc.
8108         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
8109
8110         mgetgroups: avoid argument promotion issues with -1
8111         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
8112         for invalid gid_t.
8113         * tests/test-chown.h (getegid, test_chown): Likewise.
8114         * tests/test-lchown.h (getegid, test_lchown): Likewise.
8115
8116 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
8117
8118         exclude: Fix header file problems.
8119         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
8120
8121 2009-12-01  Jim Meyering  <meyering@redhat.com>
8122
8123         fts: fts_open: do not let an empty string cause immediate failure
8124         This is required in support of GNU rm, for which the command
8125         "rm A '' B" must process and remove both A and B, in spite of
8126         the empty string argument.
8127         * lib/fts.c (fts_open): Do not let the presence of an empty string
8128         cause fts_open to fail immediately.  Most fts-using tools must be
8129         able to process all arguments, in order, and can be expected to
8130         diagnose such arguments themselves.
8131
8132 2009-11-30  Eric Blake  <ebb9@byu.net>
8133
8134         utimens: fix compilation error
8135         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
8136         Declare variable at right scope.
8137
8138 2009-11-29  Jim Meyering  <meyering@redhat.com>
8139
8140         bootstrap: handle perl-5.11's changed --version output
8141         * build-aux/bootstrap (get_version): Handle perl separately,
8142         since perl-5.11's --version output is different.
8143
8144 2009-11-28  Jim Meyering  <meyering@redhat.com>
8145
8146         userspec: depend on the inttostr module, too
8147         * modules/userspec (Depends-on): Add inttostr.
8148
8149         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
8150         * lib/userspec.c (parse_with_separator): Do not accept a user ID
8151         number of MAXUID when it evaluates to (uid_t) -1.
8152         Likewise for group ID.  Reported by Matt McCutchen in
8153         <http://savannah.gnu.org/bugs/?28113>
8154
8155         userspec: reformat to use spaces, not TABs
8156         * lib/userspec.c: Expand TABs to spaces.
8157         Add Emacs' "indent-tabs-mode: nil" hint.
8158
8159 2009-11-27  Eric Blake  <ebb9@byu.net>
8160
8161         getopt-gnu: flush out another BSD bug
8162         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
8163         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
8164         flush out BSD bug.
8165         * tests/test-getopt.h (test_getopt): End lists with NULL.
8166         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8167         (test_getopt_long_posix): Enhance test.
8168         * modules/getopt-posix-tests (Depends-on): Add stdbool.
8169         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
8170         getopt-gnu.
8171         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8172         Likewise.
8173
8174 2009-11-27  Simon Josefsson  <simon@josefsson.org>
8175
8176         * modules/idpriv-droptemp-tests (Notice): Fix text.
8177
8178 2009-11-27  Jim Meyering  <meyering@redhat.com>
8179
8180         test-xalloc-die: avoid spurious failure due to libtool argv difference
8181         In a libtool-enabled project, this test would fail due to a difference
8182         in the emitted program name, e.g.,
8183         -test-xalloc-die: memory exhausted
8184         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8185         Use program to avoid that.
8186         * modules/xalloc-die-tests (Depends-on): Add progname.
8187         * tests/test-xalloc-die.c: Include progname.h".
8188         (program_name): Remove decl.
8189         (main): Call set_program_name.
8190         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8191
8192 2009-11-26  Richard Jones  <rjones@redhat.com>
8193
8194         w32sock: leave win32 error in place.
8195         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8196
8197 2009-11-26  Eric Blake  <ebb9@byu.net>
8198
8199         init.sh: suggest to use skip_ and fail_ functions in comments
8200         * tests/init.sh: Add a sentence.
8201
8202 2009-11-25  Bruno Haible  <bruno@clisp.org>
8203
8204         init.sh: add documentation in comments
8205         * tests/init.sh: Add some developer and user documentation.
8206
8207 2009-11-26  Jim Meyering  <meyering@redhat.com>
8208
8209         init.sh: accommodate even those who specify bogus srcdir manually
8210         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8211         configure-time tests to be sanitized, so that there is no need to
8212         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8213         (with no double quotes) suffices.  However, since tests may be
8214         invoked manually, and since you may explicitly set srcdir to the
8215         name of a directory containing spaces, do quote its uses here.
8216         * tests/test-pread.sh: Likewise.
8217         Suggested by Bruno Haible.
8218
8219         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8220         * tests/test-pread.sh: Write no data into the pipe, because
8221         test-pread actually reads none.  This avoids a diagnostic,
8222         "bash: echo: write error: Broken pipe", that arises in the unusual
8223         event something is ignoring SIGPIPE, and might be interpreted
8224         as some sort of failure.  Reported by Bruno Haible.
8225
8226 2009-11-25  Jim Meyering  <meyering@redhat.com>
8227
8228         test-pread: cover failure with ESPIPE and EINVAL
8229         * tests/test-pread.c (main): Test for failure, too.
8230         * tests/test-pread.sh: Invoke with stdin on a pipe.
8231         Suggested by Eric Blake.
8232
8233         pread: improvement and fix
8234         * modules/pread (Depends-on): Depend on lseek, for portability to
8235         e.g., mingw.  Suggested by Eric Blake.
8236         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8237
8238         unistd.in.h: correct declaration of pread
8239         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8240         Reported by Richard W.M. Jones.
8241
8242         test-pread.sh: distribute the test script
8243         * modules/pread-tests (Files): Include test-pread.sh.
8244
8245         test-pread.sh: clean up
8246         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8247         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8248         That is unnecessary, since it's always ".".
8249         Suggestion from Eric Blake.
8250
8251         test-pread.sh: make executable
8252         * tests/test-pread.sh: Set executable bit.
8253         Reported by Eric Blake.
8254
8255         correct typo in test-pread.sh
8256         * tests/test-pread.sh: Add #! line.
8257
8258         test pread
8259         * tests/test-pread.c: New file.
8260         * tests/test-pread.sh: Likewise.
8261         * modules/pread-tests: Likewise.
8262
8263         pread: new module
8264         * modules/pread: New file.
8265         * lib/unistd.in.h (pread): Define/declare.
8266         * lib/pread.c (pread): New file.
8267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8268         * modules/unistd (Makefile.am): Substitute witnesses.
8269         * doc/posix-functions/pread.texi (pread): Update.
8270         * MODULES.html.sh: Add pread.
8271
8272 2009-11-25  Jim Meyering  <meyering@redhat.com>
8273
8274         tests/init.sh: new file to be used via most *.sh tests
8275         * tests/init.sh: New file.
8276
8277 2009-11-25  Eric Blake  <ebb9@byu.net>
8278
8279         utimens: work around older Linux failure with symlinks
8280         * lib/utimens.c (lutimensat_works_really): New variable.
8281         (fdutimens, lutimens): Use it to manage kernels that support
8282         nanosecond times on files, but not on symlinks.
8283         Reported by OndÅ™ej Vašík.
8284
8285         utimes: fix configure grammar
8286         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8287
8288 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8289
8290         regex: Fix fastmap for multibyte character ranges.
8291         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8292         characters when a multibyte character range is included.
8293
8294 2009-11-22  Andy Wingo  <wingo@pobox.com>
8295
8296         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8297         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8298
8299 2009-11-24  Bruno Haible  <bruno@clisp.org>
8300
8301         doc: Most *_l functions exist in MacOS X 10.5.
8302         * doc/posix-functions/duplocale.texi: Update platforms list.
8303         * doc/posix-functions/freelocale.texi: Likewise.
8304         * doc/posix-functions/newlocale.texi: Likewise.
8305         * doc/posix-functions/uselocale.texi: Likewise.
8306         * doc/posix-functions/isalnum_l.texi: Likewise.
8307         * doc/posix-functions/isalpha_l.texi: Likewise.
8308         * doc/posix-functions/isblank_l.texi: Likewise.
8309         * doc/posix-functions/iscntrl_l.texi: Likewise.
8310         * doc/posix-functions/isdigit_l.texi: Likewise.
8311         * doc/posix-functions/isgraph_l.texi: Likewise.
8312         * doc/posix-functions/islower_l.texi: Likewise.
8313         * doc/posix-functions/isprint_l.texi: Likewise.
8314         * doc/posix-functions/ispunct_l.texi: Likewise.
8315         * doc/posix-functions/isspace_l.texi: Likewise.
8316         * doc/posix-functions/isupper_l.texi: Likewise.
8317         * doc/posix-functions/iswalnum_l.texi: Likewise.
8318         * doc/posix-functions/iswalpha_l.texi: Likewise.
8319         * doc/posix-functions/iswblank_l.texi: Likewise.
8320         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8321         * doc/posix-functions/iswctype_l.texi: Likewise.
8322         * doc/posix-functions/iswdigit_l.texi: Likewise.
8323         * doc/posix-functions/iswgraph_l.texi: Likewise.
8324         * doc/posix-functions/iswlower_l.texi: Likewise.
8325         * doc/posix-functions/iswprint_l.texi: Likewise.
8326         * doc/posix-functions/iswpunct_l.texi: Likewise.
8327         * doc/posix-functions/iswspace_l.texi: Likewise.
8328         * doc/posix-functions/iswupper_l.texi: Likewise.
8329         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8330         * doc/posix-functions/isxdigit_l.texi: Likewise.
8331         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8332         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8333         * doc/posix-functions/strcoll_l.texi: Likewise.
8334         * doc/posix-functions/strfmon_l.texi: Likewise.
8335         * doc/posix-functions/strftime_l.texi: Likewise.
8336         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8337         * doc/posix-functions/strxfrm_l.texi: Likewise.
8338         * doc/posix-functions/tolower_l.texi: Likewise.
8339         * doc/posix-functions/toupper_l.texi: Likewise.
8340         * doc/posix-functions/towctrans_l.texi: Likewise.
8341         * doc/posix-functions/towlower_l.texi: Likewise.
8342         * doc/posix-functions/towupper_l.texi: Likewise.
8343         * doc/posix-functions/wcscoll_l.texi: Likewise.
8344         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8345         * doc/posix-functions/wctrans_l.texi: Likewise.
8346         * doc/posix-functions/wctype_l.texi: Likewise.
8347         * doc/glibc-functions/strptime_l.texi: Likewise.
8348         * doc/glibc-functions/strtod_l.texi: Likewise.
8349         * doc/glibc-functions/strtof_l.texi: Likewise.
8350         * doc/glibc-functions/strtol_l.texi: Likewise.
8351         * doc/glibc-functions/strtold_l.texi: Likewise.
8352         * doc/glibc-functions/strtoll_l.texi: Likewise.
8353         * doc/glibc-functions/strtoul_l.texi: Likewise.
8354         * doc/glibc-functions/strtoull_l.texi: Likewise.
8355         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8356         * doc/glibc-functions/wcstod_l.texi: Likewise.
8357         * doc/glibc-functions/wcstof_l.texi: Likewise.
8358         * doc/glibc-functions/wcstol_l.texi: Likewise.
8359         * doc/glibc-functions/wcstold_l.texi: Likewise.
8360         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8361         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8362         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8363
8364 2009-11-24  Bruno Haible  <bruno@clisp.org>
8365
8366         duplocale: Fix logic bug.
8367         * lib/duplocale.c: Don't include <langinfo.h>.
8368         (_NL_LOCALE_NAME): Remove macro.
8369         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8370         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8371
8372 2009-11-23  Jim Meyering  <meyering@redhat.com>
8373
8374         test-update-copyright: don't hard-code /usr/bin/perl
8375         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8376         perl to print the current year.  Gilles Espinasse reported that
8377         the replaced use of perl was hard-coded as /usr/bin/perl.
8378
8379 2009-11-23  Bruno Haible  <bruno@clisp.org>
8380
8381         duplocale: Add support for glibc 2.3.x.
8382         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8383
8384 2009-11-22  Bruno Haible  <bruno@clisp.org>
8385
8386         vasnprintf: Tiny optimization.
8387         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8388         MacOS X.
8389
8390 2009-11-22  Bruno Haible  <bruno@clisp.org>
8391
8392         Tests for module 'duplocale'.
8393         * modules/duplocale-tests: New file.
8394         * tests/test-duplocale.c: New file.
8395
8396         New module 'duplocale'.
8397         * m4/duplocale.m4: New file.
8398         * lib/locale.in.h (duplocale): New declaration.
8399         * lib/duplocale.c: New file.
8400         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8401         gl_LOCALE_H_DEFAULTS): New macros.
8402         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8403         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8404         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8405         REPLACE_DUPLOCALE.
8406         * modules/duplocale: New file.
8407         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8408
8409 2009-11-22  Bruno Haible  <bruno@clisp.org>
8410
8411         * modules/locale-tests (configure.ac): Test for newlocale function.
8412         * tests/test-locale.c: When the system has extended locale functions,
8413         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8414
8415         locale: Make locale_t available when possible.
8416         * lib/locale.in.h: Include <xlocale.h> when it exists.
8417         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8418         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8419         * modules/locale (Depends-on): Add extensions.
8420         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8421         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8422
8423 2009-11-22  Bruno Haible  <bruno@clisp.org>
8424
8425         Add comments.
8426         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8427         invocation.
8428         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8429         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8430         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8431
8432 2009-11-22  Bruno Haible  <bruno@clisp.org>
8433
8434         error: account for the possibility of freopen (stdout).
8435         * lib/error.c: Include <unistd.h>.
8436         (flush_stdout): New function, extracted from error and error_at_line.
8437         Determine stdout's fd dynamically.
8438         (error, error_at_line): Invoke flush_stdout.
8439         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8440         * modules/error (Depends-on): Add unistd.
8441
8442 2009-11-22  Bruno Haible  <bruno@clisp.org>
8443
8444         diffseq: Add comment.
8445         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8446
8447 2009-11-22  Jim Meyering  <meyering@redhat.com>
8448
8449         c-stack: avoid defining an unused static function
8450         * lib/c-stack.c (find_stack_direction): Do not define this function
8451         when it will not be used.
8452
8453         diffseq: avoid spurious gcc warnings
8454         * lib/diffseq.h (IF_LINT2): Define.
8455         (compareseq): Use it to initialize two members of "part".
8456         This avoids two used-uninitialized warnings.
8457
8458 2009-11-21  Jim Meyering  <meyering@redhat.com>
8459
8460         c-stack: avoid "ignoring return value of `write'" warning
8461         * lib/c-stack.c: Include "ignore-value.h".
8462         (die): Explicitly ignore each write return value.
8463         * modules/c-stack (Depends-on): Add ignore-value.
8464
8465 2009-11-21  Bruno Haible  <bruno@clisp.org>
8466
8467         diffseq: reduce scope of variable 'best'.
8468         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8469         variable, earlier used for two different purposes.
8470
8471 2009-11-21  Jim Meyering  <meyering@redhat.com>
8472
8473         diffseq: remove useless assignment to "best"
8474         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8475         assignment.  At that point "best" is already guaranteed to be zero.
8476
8477 2009-11-20  Eric Blake  <ebb9@byu.net>
8478
8479         build: mention ftp redirector in release announcements
8480         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8481         values that used to come from cfg.mk; mention FTP redirect URL.
8482         * build-aux/announce-gen: Mention the mirror list.
8483         Suggested by Karl Berry.
8484
8485         nanosleep: improve port to mingw
8486         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8488         LIB_NANOSLEEP, but only when needed.
8489         * modules/select (Link): Document LIBSOCKET.
8490         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8491         enough.
8492
8493         nanosleep: work around cygwin bug
8494         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8495         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8496         bug.
8497         (getnow): Delete, not needed.
8498         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8499         LIB_CLOCK_GETTIME.
8500         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8501         clock-time, gettime.
8502         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8503         bug.
8504         * modules/nanosleep-tests: New test.
8505         * tests/test-nanosleep.c: New file.
8506
8507         sleep: work around cygwin bug
8508         * lib/sleep.c (rpl_sleep): Work around the bug.
8509         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8510         (gl_PREREQ_SLEEP): Delete unused macro.
8511         * modules/sleep (Depends-on): Add verify.
8512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8513         * modules/unistd (Makefile.am): Substitute witness.
8514         * lib/unistd.in.h (sleep): Update prototype.
8515         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8516         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8517         * modules/sleep-tests (Depends-on): Check for alarm.
8518
8519 2009-11-20  Jim Meyering  <meyering@redhat.com>
8520
8521         maint.mk: improve sc_prohibit_magic_number_exit
8522         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8523         so it does not match uses like System.exit(1).
8524         Add comments showing how to correct all offenders.
8525
8526 2009-11-19  Eric Blake  <ebb9@byu.net>
8527
8528         xalloc-die-tests: add missing library
8529         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8530
8531         test-xvasprintf: silence compiler warnings
8532         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8533         empty string from gcc.
8534
8535 2009-11-19  Jim Meyering  <meyering@redhat.com>
8536
8537         xfreopen: new module, from coreutils
8538         * modules/xfreopen: New module.
8539         * lib/xfreopen.c: New file.
8540         * lib/xfreopen.h: New file.
8541         * MODULES.html.sh (File stream based Input/Output"): Add it.
8542
8543 2009-11-19  Eric Blake  <ebb9@byu.net>
8544
8545         manywarnings: depend on warnings
8546         * modules/manywarnings (Depends-on): Add warnings.
8547
8548         build: avoid compiler warnings
8549         * lib/select.c (rpl_select): Delete unused variable.
8550         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8551
8552 2009-11-18  Eric Blake  <ebb9@byu.net>
8553
8554         tests: avoid false negative with --with-packager
8555         * tests/test-version-etc.sh: Discard packager information.
8556         * tests/test-argp-version-etc-1.sh: Likewise.
8557         Reported by Mike Frysinger.
8558
8559         utimens: fix regression on Solaris
8560         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8561         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8562         can only change fd timestamps via futimesat.  Instead, use an
8563         additional witness macro to avoid BSD bug.
8564         Reported by Jim Meyering.
8565
8566 2009-11-17  Eric Blake  <ebb9@byu.net>
8567
8568         usleep: use it to simplify tests
8569         * modules/stat-time-tests (Depends-on): Add usleep.
8570         (configure.ac): Drop usleep check.
8571         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8572         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8573         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8574         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8575         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8576         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8577         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8578         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8579         Likewise.
8580         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8581         * tests/test-lchown.h (nap): Likewise.
8582         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8583         * tests/test-stat-time.c (nap): Likewise.
8584         * tests/test-utimens-common.h (nap): Update comments.
8585
8586         usleep: new module
8587         * modules/usleep: New file.
8588         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8589         * lib/usleep.c (usleep): Likewise.
8590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8591         * modules/unistd (Makefile.am): Substitute witnesses.
8592         * lib/unistd.in.h (usleep): Add declaration.
8593         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8594         * MODULES.html.sh (Date and time): Likewise.
8595         * modules/usleep-tests (Depends-on): New test.
8596         * tests/test-usleep.c: New file.
8597
8598         chown: work around OpenBSD bug
8599         * lib/chown.c (rpl_chown): Work around the bug.
8600         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8601         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8602         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8603         * modules/chown (Depends-on): Add stdbool.
8604         * modules/lchown (Depends-on): Likewise.
8605         * doc/posix-functions/chown.texi (chown): Document the bug.
8606         * doc/posix-functions/lchown.texi (lchown): Likewise.
8607         * tests/test-lchown.h (test_chown): Relax test.
8608
8609         mkstemp: avoid conflict with C++ keyword template
8610         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8611         * lib/mkostemp.c (mkostemp): Likewise.
8612         * lib/mkostemps.c (mkostemps): Likewise.
8613         * lib/mkstemp.c (mkstemp): Likewise.
8614         * lib/mkstemps.c (mkstemps): Likewise.
8615
8616         xalloc-die-tests: optimize
8617         * tests/test-xalloc-die.sh: Reduce number of processes.
8618
8619 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8620
8621         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8622         patch from ludo@gnu.org (Ludovic Courtès).
8623
8624 2009-11-17  Jim Meyering  <meyering@redhat.com>
8625
8626         version-etc: use proper license string
8627         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8628         * modules/version-etc-fsf: Likewise.
8629
8630 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8631
8632         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8633         printed to stdout.  Deal with EOL differences.
8634
8635 2009-11-17  Eric Blake  <ebb9@byu.net>
8636
8637         unsetenv: work around Solaris bug
8638         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8639         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8640         Reported by Jim Meyering.
8641
8642         vasnprintf: avoid compiler warnings
8643         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8644         variables.
8645         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8646
8647 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8648
8649         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8650         settings since xalloc-die is no longer the self test,
8651         xalloc-die.sh is.
8652
8653 2009-11-17  Jim Meyering  <meyering@redhat.com>
8654
8655         test-xalloc-die.sh: make the code agree with the commit log
8656         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8657         at the end, just in case you happen to have a test-xalloc-die
8658         program in some other PATH directory.
8659
8660         test-xalloc-die.sh: fix a portability bug
8661         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8662         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8663         Otherwise, argv[0] (as often seen in diagnostics) would be too
8664         system-dependent, sometimes with, and sometimes without the leading "./".
8665
8666         version-etc-fsf: relax license to LGPLv3+
8667         * modules/version-etc-fsf (License): Relax license.
8668
8669 2009-11-16  Eric Blake  <ebb9@byu.net>
8670
8671         xalloc-die-tests: avoid printing null pointer
8672         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8673         shell script.
8674         * tests/test-xalloc-die.c (program_name): Declare.
8675         * tests/test-xalloc-die.sh (tmpfiles): New file.
8676
8677         setenv, unsetenv: work around various bugs
8678         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8679         (setenv) [HAVE_SETENV]: Work around bugs.
8680         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8681         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8682         for bugs.
8683         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8684         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8686         * modules/stdlib (Makefile.am): Update substitutions.
8687         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8688         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8689         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8690         * modules/setenv-tests: New test.
8691         * modules/unsetenv-tests: Likewise.
8692         * tests/test-setenv.c: New file.
8693         * tests/test-unsetenv.c: Likewise.
8694
8695 2009-11-16  Jim Meyering  <meyering@redhat.com>
8696
8697         version-etc: relax license to LGPLv3+
8698         * modules/version-etc (License): Relax license.
8699
8700         better AC_REQUIRE expanded-before-required-warning avoidance
8701         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8702         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8703         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8704         which is no longer needed.
8705
8706 2009-11-16  Eric Blake  <ebb9@byu.net>
8707
8708         test-freading: clean up temporary file
8709         * tests/test-freading.c (main): Remove file on success, and use
8710         ASSERT more liberally.
8711         Reported by Jim Meyering.
8712
8713 2009-11-16  Jim Meyering  <meyering@redhat.com>
8714
8715         avoid new AC_REQUIRE expanded-before-required warnings
8716         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8717         merely using it.
8718         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8719         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8720
8721 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8722
8723         * tests/test-xalloc-die.c: New file.
8724         * modules/xalloc-die-tests: New file.
8725         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8726         XFAIL_TESTS so it can be appended by modules.
8727
8728 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8729
8730         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8731         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8732
8733 2009-11-14  Eric Blake  <ebb9@byu.net>
8734
8735         fnmatch: avoid compiler warning
8736         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8737         to silence compiler warning about mismatch signedness in ?:.
8738         Reported by Robert Millan.
8739
8740         intprops: add double-inclusion guard
8741         * lib/intprops.h: Allow idempotent includes.
8742         Suggested by Bruce Korb.
8743
8744         openat: detect Solaris fchownat bug
8745         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8746         penalizing glibc chownat when only lchownat is broken.
8747         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8748         trailing slash bugs.
8749         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8750         * modules/openat-tests (Files): Include more files.
8751         (Depends-on): Add mgetgroups, sleep, stat-time.
8752         (configure.ac): Add additional checks.
8753         (Makefile.am): Build new test.
8754         * tests/test-fchownat.c: New file.
8755
8756         lchown: detect Solaris and FreeBSD bug
8757         * lib/lchown.c (rpl_lchown): Work around bug.
8758         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8760         * modules/unistd (Makefile.am): Populate it.
8761         * lib/unistd.in.h (lchown): Update declaration.
8762         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8763         * modules/lchown-tests: New file.
8764         * tests/test-lchown.h (test_lchown): Likewise.
8765         * tests/test-lchown.c (main): Likewise.
8766
8767         chown: detect Solaris and FreeBSD bug
8768         * lib/chown.c (rpl_chown): Work around bug.
8769         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8770         (gl_PREREQ_CHOWN): Delete.
8771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8772         * modules/unistd (Makefile.am): Populate it.
8773         * lib/unistd.in.h (chown): Update declaration.
8774         * lib/lchown.c (chown): Update client.
8775         * modules/lchown (Depends-on): Add lstat.
8776         * doc/posix-functions/chown.texi (chown): Document the bug.
8777         * doc/posix-functions/getgroups.texi (getgroups): Document
8778         getgroups pitfall.
8779         * modules/chown-tests: New file.
8780         * tests/test-chown.h (test_chown): Likewise.
8781         * tests/test-chown.c (main): Likewise.
8782
8783 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8784
8785         gnulib-tool: correctly detect absence of m4 directories
8786         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8787
8788 2009-11-14  Jim Meyering  <meyering@redhat.com>
8789
8790         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8791         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8792
8793 2009-11-14  John W. Eaton  <jwe@gnu.org>
8794
8795         strftime.h: wrap funtion declaration in extern "C" block
8796         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8797
8798 2009-11-13  Eric Blake  <ebb9@byu.net>
8799
8800         getgroups: avoid compiler warning
8801         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8802
8803         getgroups: work around FreeBSD bug
8804         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8805         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8806         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8807         * tests/test-getgroups.c (main): Fix buffer overrun.
8808
8809         getgroups: avoid compilation failure
8810         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8811         * modules/getgroups (Depends-on): Add stdint.
8812
8813 2009-11-13  Jim Meyering  <meyering@redhat.com>
8814
8815         test-getgroups: avoid compilation failure
8816         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8817
8818 2009-11-13  Eric Blake  <ebb9@byu.net>
8819
8820         mgetgroups: new module, taken from coreutils
8821         * modules/mgetgroups: New file.
8822         * lib/mgetgroups.h: Likewise.
8823         * lib/mgetgroups.c (mgetgroups): Likewise.
8824         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8825         * MODULES.html.sh (Users and groups): Mention it.
8826
8827         getgroups: don't expose GETGROUPS_T to user
8828         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8829         an element at a time if GETGROUPS_T is wrong size.
8830         * lib/getugroups.h (getugroups): Change signature.
8831         * lib/unistd.in.h (getgroups): Likewise.
8832         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8833         signature needs fixing.
8834         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8835         AC_TYPE_GETGROUPS.
8836         * modules/group-member (Depends-on): Add getgroups.
8837         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8838         (group_member): Rely on getgroups replacement.
8839         * lib/getugroups.c (getugroups): Use gid_t.
8840         * tests/test-getgroups.c (main): Likewise.
8841         * NEWS: Mention the signature change.
8842         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8843         problem with signature.
8844         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8845         GETGROUPS_T is still useful for setgroups.
8846
8847         getgroups, getugroups: provide stubs for mingw
8848         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8849         * lib/getugroups.c (getugroups): Likewise.
8850         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8851         function.  Modernize replacement scheme.
8852         (gl_PREREQ_GETGROUPS): Delete.
8853         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8854         * modules/getgroups (configure.ac): Declare witness.
8855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8856         * modules/unistd (Depends-on): Substitute witness.
8857         * lib/unistd.in.h (getgroups): Declare replacement.
8858
8859         getgroups: avoid calling exit
8860         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8861         drop xalloc.
8862         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8863         dependencies.
8864         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8865         exiting, in the rare case of malloc failure.
8866
8867         getgroups: fix logic error
8868         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8869         has more than 20 groups.
8870         * modules/getgroups-tests: New test.
8871         * tests/test-getgroups.c: New file.
8872
8873 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8874
8875         * tests/test-base64.c: Improve.
8876
8877 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8878
8879         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8880         Blake <ebb9@byu.net>.
8881
8882 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8883
8884         * tests/test-xvasprintf.c: Add %s%s related checks.
8885
8886 2009-11-12  Eric Blake  <ebb9@byu.net>
8887
8888         version-etc: match standards.texi style
8889         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8890         and use <> only for URLs.
8891
8892 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8893
8894         fts: do not fail on a submount during traversal
8895         * lib/fts.c (fts_build): Read the stat info again after opening
8896         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8897         Original report at http://bugzilla.redhat.com/501848.
8898
8899 2009-11-12  Jim Meyering  <meyering@redhat.com>
8900
8901         bootstrap: sync from coreutils
8902         * build-aux/bootstrap (bootstrap_epilogue): New function.
8903         Use git_modules_config in one more place.  This make bootstrap's
8904         --gnulib-srcdir option more useful for testing.
8905
8906         bootstrap: generalize autoheader check
8907         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8908         AC_CONFIG_HEADERS.
8909
8910 2009-11-11  Eric Blake  <ebb9@byu.net>
8911
8912         mkfifoat: use new modules for Solaris and BSD bugs
8913         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8914         * lib/mkfifoat.c (mknodat): Split...
8915         * lib/mknodat.c (mknodat): ...into new file.
8916         * modules/mkfifoat (Files): Ship new file.
8917         (Depends-on): Add mkfifo, mknod.
8918         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8919         (Depends-on): Add symlink.
8920         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8921         redundant with test_mkfifo.h.
8922         (do_mkfifoat, do_mknodat): New helpers.
8923
8924         mknod: new module
8925         * modules/mknod: New file.
8926         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8927         * lib/mknod.c (mknod): Likewise.
8928         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8929         defaults.
8930         * modules/sys_stat (Makefile.am): Substitute them.
8931         * lib/sys_stat.in.h (mknod): Declare replacement.
8932         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8933         Document it.
8934         * doc/posix-functions/mknod.texi (mknod): Likewise.
8935         * modules/mknod-tests: New test.
8936         * tests/test-mknod.c: Likewise.
8937
8938         mkfifo: new module
8939         * modules/mkfifo: New file.
8940         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8941         * lib/mkfifo.c (mkfifo): Likewise.
8942         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8943         defaults.
8944         * modules/sys_stat (Makefile.am): Substitute them.
8945         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8946         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8947         Document it.
8948         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8949         * modules/mkfifo-tests: New test.
8950         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8951         from test-mkfifoat.c.
8952         * tests/test-mkfifo.c: New file.
8953
8954         readlink: detect FreeBSD bug
8955         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8956         slash on symlink.
8957         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8958         * tests/test-readlink.h (test_readlink): Enhance test.
8959
8960         symlink: detect FreeBSD bug
8961         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8962         slash on symlink.
8963         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8964         * tests/test-symlink.h (test_symlink): Enhance test.
8965
8966 2009-11-10  Eric Blake  <ebb9@byu.net>
8967
8968         link: detect FreeBSD bug
8969         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8970         symlink.
8971         * doc/posix-functions/link.texi (link): Document the bug.
8972         * tests/test-link.h (test_link): Enhance test.
8973         * tests/test-linkat.c (main): Update caller.
8974
8975         unlink, remove: detect FreeBSD bug
8976         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8977         slash on symlink.
8978         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8979         * doc/posix-functions/remove.texi (remove): Likewise.
8980         * tests/test-unlink.h (test_unlink): Enhance test.
8981         * tests/test-remove.c (main): Likewise.
8982
8983 2009-11-09  Eric Blake  <ebb9@byu.net>
8984
8985         rename: detect FreeBSD bug
8986         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8987         slash on symlink.
8988         * modules/renameat-tests (Depends-on): Add filenamecat.
8989         * tests/test-rename.h (test_rename): Allow one more errno.
8990         * tests/test-renameat.c (main): Likewise.
8991         * doc/posix-functions/rename.texi (rename): Document the bug.
8992
8993         open: detect FreeBSD bug
8994         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8995         symlink.
8996         * doc/posix-functions/open.texi (open): Document the bug.
8997         * doc/posix-functions/utimes.texi (utimes): Likewise.
8998         * tests/test-open.h (test_open): Add parameters, and test symlink
8999         handling.
9000         * tests/test-open.c (main): Adjust caller.
9001         * tests/test-fcntl-safer.c (main): Likewise.
9002         * modules/open-tests (Depends-on): Add stdbool, symlink.
9003         * modules/fcntl-safer-tests (Depends-on): Likewise.
9004         * tests/test-openat.c (main): Add test-open tests.
9005
9006         stat: detect FreeBSD bug
9007         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
9008         symlink.
9009         * doc/posix-functions/stat.texi (stat): Document the bug.
9010         * tests/test-stat.h (test_stat_func): Add argument.
9011         * tests/test-stat.c (main): Adjust caller.
9012         * tests/test-fstatat.c (main): Likewise.
9013         * modules/stat-tests (Depends-on): Add stdbool, symlink.
9014         Reported by Jim Meyering.
9015
9016 2009-11-09  James Youngman  <jay@gnu.org>
9017
9018         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
9019         * lib/strftime.c: Correct placement of #include "ignore-value.h".
9020
9021 2009-11-08  Jim Meyering  <meyering@redhat.com>
9022
9023         utimens: remove invalid futimesat call
9024         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
9025         It used the file descriptor of the target file as the DIR_FD
9026         parameter and NULL as the file name.  That caused failure with
9027         errno == EFAULT on FreeBSD-8.0-rc2
9028
9029 2009-11-07  Eric Blake  <ebb9@byu.net>
9030
9031         fflush, freadseek: use fseeko, not fseek
9032         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9033         (clear_ungetc_buffer): Avoid potential problems on large files.
9034         * lib/freadseek.c (freadseek): Likewise.
9035         * modules/freadseek (Depends-on): Add fseeko.
9036         * modules/fseek (configure.ac): Set a witness.
9037         * tests/test-fflush.c (main): Use fseeko.
9038         * tests/test-fpurge.c (fseek): Disable link warning.
9039         * tests/test-freadable.c (fseek): Likewise.
9040         * tests/test-freading.c (fseek): Likewise.
9041         * tests/test-fseeko.c (fseek): Likewise.
9042         * tests/test-ftell.c (fseek): Likewise.
9043         * tests/test-ftello.c (fseek): Likewise.
9044         * tests/test-fwritable.c (fseek): Likewise.
9045         * tests/test-fwriting.c (fseek): Likewise.
9046
9047 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9048
9049         * modules/memchr (Depends-on): Drop getpagesize dependency.
9050
9051 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9052
9053         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
9054         Reported by Ludovic Courtès.
9055         * build-aux/pmccabe2html: Improve example usage.
9056         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
9057
9058 2009-11-06  Jim Meyering  <meyering@redhat.com>
9059
9060         do-release-commit-and-tag: New module.
9061         Automate the release-commit and tag process.
9062         * build-aux/do-release-commit-and-tag: New script, from coreutils.
9063         * modules/do-release-commit-and-tag: New file.
9064         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9065
9066 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9067
9068         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
9069         because test-select.c uses inet_pton.
9070
9071 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9072
9073         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
9074         GETADDRINFO_LIB.  Bump serial number.
9075         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
9076         Suggested by Eric Blake <ebb9@byu.net>.
9077
9078 2009-11-05  Eric Blake  <ebb9@byu.net>
9079
9080         strtod: detect darwin bug
9081         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
9082         Reported by Leo Davis.
9083
9084         freopen-safer: new module
9085         * modules/freopen-safer: New module.
9086         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
9087         * lib/freopen-safer.c (freopen_safer): New file.
9088         * lib/stdio-safer.h (freopen_safer): New declaration.
9089         * lib/stdio--.h (freopen): New override.
9090         * MODULES.html.sh (File stream based Input/Output): Mention it.
9091         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
9092         freopen-safer module.
9093         * doc/posix-functions/stderr.texi (stderr): Likewise.
9094         * doc/posix-functions/stdin.texi (stdin): Likewise.
9095         * doc/posix-functions/stdout.texi (stdout): Likewise.
9096         * modules/freopen-safer-tests: New test.
9097         * tests/test-reopen-safer.c: New file.
9098
9099 2009-11-05  Jim Meyering  <meyering@redhat.com>
9100
9101         maint.mk: Prohibit inclusion of "close-stream.h" without use.
9102         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9103
9104 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9105
9106         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
9107
9108 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9109
9110         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
9111
9112 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9113
9114         Fix link error.
9115         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9116         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9117
9118 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9119
9120         * tests/test-func.c: Also test value of __func__.
9121
9122 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9123
9124         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
9125         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
9126
9127 2009-11-05  Bruno Haible  <bruno@clisp.org>
9128
9129         Fix link error.
9130         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9131         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9132         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
9133
9134 2009-11-05  Bruno Haible  <bruno@clisp.org>
9135
9136         Tests for module 'inet_pton'.
9137         * modules/inet_pton-tests: New file.
9138         * tests/test-inet_pton.c: New file.
9139
9140 2009-11-05  Bruno Haible  <bruno@clisp.org>
9141
9142         Tests for module 'inet_ntop'.
9143         * modules/inet_ntop-tests: New file.
9144         * tests/test-inet_ntop.c: New file.
9145
9146 2009-11-04  Eric Blake  <ebb9@byu.net>
9147
9148         stdlib-safer: wrap all mkstemp variants
9149         * modules/mkostemp (configure.ac): Set witness.
9150         * modules/mkostemps (configure.ac): Likewise.
9151         * modules/mkstemps (configure.ac): Likewise.
9152         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
9153         (mkstemps_safer): Wrap more functions.
9154         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
9155         wrapping.
9156         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
9157         (mkstemps_safer): Implement the wrappers.
9158
9159         mkstemps, mkostemps: new modules
9160         * modules/mkostemps: New module.
9161         * modules/mkstemps: Likewise.
9162         * lib/mkostemps.c (mkostemps): New file.
9163         * lib/mkstemps.c (mkstemps): Likewise.
9164         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
9165         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
9166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
9167         * modules/stdlib (Makefile.am): Substitute them.
9168         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
9169         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
9170         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9171         * doc/gnulib.texi (Glibc stdlib.h): Include them.
9172         * MODULES.html.sh (File system functions): Mention them.
9173
9174         tempname: resync from glibc
9175         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
9176         same values for __GT_FILE as glibc.  Abort even when assertions
9177         are disabled.
9178         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9179         match its value otherwise.  Allow idempotent inclusion.
9180         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9181         * lib/mkostemp.c (mkostemp): Likewise.
9182         * lib/mkstemp.c (mkstemp): Likewise.
9183         * lib/tmpfile.c (tmpfile): Likewise.
9184         * NEWS: Document this.
9185
9186         utimens: fix use of futimens on older Linux
9187         * lib/utimens.c (fdutimens): Use updated, rather than original,
9188         timespec to avoid bug in older Linux kernel.
9189         Reported by Simon Josefsson.
9190
9191 2009-11-04  Bruno Haible  <bruno@clisp.org>
9192
9193         Make num_processors more flexible and consistent.
9194         * lib/nproc.h (enum nproc_query): New type.
9195         (num_processors): Add a 'query' argument.
9196         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9197         (num_processors): Add a 'query' argument. Test the value of the
9198         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9199         mingw, count the number of CPUs available for the current process.
9200         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9201         Check for sched_getaffinity and sched_getaffinity_np.
9202         * modules/nproc (Depends-on): Add c-ctype, extensions.
9203         * NEWS: Mention the change.
9204
9205 2009-11-03  Bruno Haible  <bruno@clisp.org>
9206
9207         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9208
9209 2009-11-03  Jim Meyering  <meyering@redhat.com>
9210
9211         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9212         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9213         if it is defined.
9214
9215 2009-11-02  Eric Blake  <ebb9@byu.net>
9216
9217         mktime, timegm: share common declaration
9218         * lib/mktime-internal.h: New file.
9219         * lib/mktime.c: Use it rather than open-coding a declaration.
9220         * lib/timegm.c: Likewise.
9221         * modules/mktime (Files): Ship it.
9222         * modules/timegm (Files): Likewise.
9223         Suggested by Bruno Haible.
9224
9225         test-update-copyright: update test to match script changes
9226         * tests/test-update-copyright.sh: Avoid hard-coding perl
9227         location.  Don't update *.bak created by earlier runs.
9228
9229 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9230             Simon Josefsson  <simon@josefsson.org>
9231             Bruno Haible  <bruno@clisp.org>
9232
9233         Fix link error on Solaris 8.
9234         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9235         also in libnsl. Define also INET_PTON_LIB.
9236         * modules/inet_pton (Link): New section.
9237
9238 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9239             Bruno Haible  <bruno@clisp.org>
9240
9241         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9242         * modules/inet_ntop (Link): New section.
9243         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9244
9245 2009-11-02  Eric Blake  <ebb9@byu.net>
9246
9247         maint: avoid compiler warnings in m4 macros
9248         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9249         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9250
9251 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9252
9253         * m4/pmccabe2html.m4: Remove file.
9254         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9255         function.  Change maintainer.
9256         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9257         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9258         Courtès).
9259
9260 2009-10-31  Eric Blake  <ebb9@byu.net>
9261
9262         fseeko: fix m4 regression
9263         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9264         regression from 2009-10-27.
9265         Reported by Ralf Wildenhues.
9266
9267 2009-10-31  Jim Meyering  <meyering@redhat.com>
9268
9269         inttostr: aesthetics and improved (compile-time) safety
9270         Define inttype_is_signed rather than inttype_is_unsigned,
9271         since the sole use is via "#if inttype_is_signed".
9272         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9273         inttype_is_unsigned.
9274         * lib/offtostr.c (inttype_is_signed): Likewise.
9275         * lib/uinttostr.c (inttype_is_signed): Likewise.
9276         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9277         * lib/inttostr.c (inttostr): Use verify to cross-check the
9278         inttype_is_signed value and the signedness of the actual type.
9279         * modules/inttostr (Depends-on): Add verify.
9280
9281 2009-10-30  Eric Blake  <ebb9@byu.net>
9282
9283         build: avoid compiler warnings
9284         * lib/fchmodat.c (lchmod): Mark unused variables.
9285         * lib/getopt.c (_getopt_initialize): Likewise.
9286         * lib/mktime.c (__mktime_internal): Provide prototype.
9287         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9288         older gcc that do not understand #pragma GCC diagnostic.
9289         * lib/uinttostr.c (inttype_is_unsigned): Define.
9290         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9291
9292 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9293
9294         stat: fix compilation on AIX
9295         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9296         only see struct stat64.
9297
9298 2009-10-30  Eric Blake  <ebb9@byu.net>
9299
9300         exclude: make more robust
9301         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9302         rather than masking a coding bug.
9303         Suggested by Bruno Haible.
9304
9305 2009-10-30  Jim Meyering  <meyering@redhat.com>
9306
9307         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9308         Rather than putting #!/usr/bin/perl on the first line,
9309         start with a variant of what's recommended by "man perlrun" that
9310         invokes the first "perl" program from your shell's search path.
9311         * build-aux/gitlog-to-changelog: Replace #!... as above.
9312         Add a "Local Variables" perl mode setting.
9313         Prompted by a patch from Ludovic Courtès.
9314         Improved by Eric Blake.
9315         * build-aux/useless-if-before-free: Likewise.
9316         * build-aux/announce-gen: Likewise.
9317         * build-aux/update-copyright: Likewise.
9318
9319 2009-10-29  Eric Blake  <ebb9@byu.net>
9320
9321         filenamecat-lgpl: adjust clients
9322         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9323         filenamecat.
9324         * modules/renameat (Depends-on): Likewise.
9325
9326         filenamecat: split into filenamecat-lgpl
9327         * modules/filenamecat-lgpl: New module.
9328         * modules/filenamecat (Files): Move library-safe files into
9329         filenamecat-lgpl.
9330         (Depends-on): Add filenamecat-lgpl.
9331         (configure.ac): Declare witness.
9332         * lib/filenamecat.h (file_name_concat): Only declare when using
9333         GPL module.
9334         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9335         Move...
9336         * lib/filenamecat-lgpl.c: ...into new file.
9337         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9338         (gl_FILE_NAME_CONCAT): Use it.
9339         * MODULES.html.sh (File system functions): Mention new module.
9340
9341         argp: avoid memory leak
9342         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9343         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9344         base_name, since the latter malloc()s and can call exit().
9345         Leak introduced 2006-07-03.
9346
9347         dirname-lgpl: adjust clients that don't need full dirname
9348         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9349         * modules/filenamecat (Depends-on): Likewise.
9350         * modules/linkat (Depends-on): Likewise.
9351         * modules/mkancesdirs (Depends-on): Likewise.
9352         * modules/mkdir (Depends-on): Likewise.
9353         * modules/openat (Depends-on): Likewise.
9354         * modules/savewd (Depends-on): Likewise.
9355         * modules/rename (Depends-on): Likewise.
9356         (License): Relax license.
9357         * modules/mkdir-tests (Depends-on): Drop progname.
9358         (Makefile.am): Delete unneeded LDADD.
9359         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9360
9361         dirname: split into dirname-lgpl
9362         * modules/dirname-lgpl: New module.
9363         * modules/dirname (Files): Move library-safe files into
9364         dirname-lgpl.
9365         (Depends-on): Add dirname-lgpl.
9366         (configure.ac): Declare witness.
9367         * modules/double-slash-root (License): Relax license.
9368         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9369         module.
9370         * lib/dirname.c (dir_len, mdir_name): Move...
9371         * lib/dirname-lgpl.c: ...into new file.
9372         * lib/basename.c (last_component, base_len): Move...
9373         * lib/basename-lgpl.c: ...into new file.
9374         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9375         (gl_DIRNAME): Use it.
9376         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9377         Mention new module.
9378         * modules/dirname-tests (Depends-on): Add progname.
9379         * tests/test-dirname.c (program_name): Delete.
9380
9381         mkdir: make safe for libraries
9382         * modules/mkdir (Depends-on): Drop xalloc.
9383         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9384         exit.
9385
9386         tests: avoid some compiler warnings
9387         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9388         literals.
9389         * tests/test-memchr.c (main): Avoid type mismatch.
9390         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9391         * tests/test-base64.c (main): Likewise.
9392         * tests/test-getdelim.c (main): Likewise.
9393         * tests/test-gethostname.c (main): Likewise.
9394         * tests/test-getline.c (main): Likewise.
9395         * tests/test-netinet_in.c (main): Likewise.
9396         * tests/test-select.c (open_server_socket, main): Likewise.
9397         * tests/test-select-stdin.c (main): Likewise.
9398         * tests/test-sockets.c (main): Likewise.
9399         * tests/test-strsignal.c (main): Likewise.
9400         * tests/test-sys_select.c (main): Likewise.
9401         * tests/test-sys_socket.c (main): Likewise.
9402         * tests/test-u64.c (main): Likewise.
9403         * tests/test-xfprintf-posix.c (main): Likewise.
9404         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9405
9406         sockets: avoid compiler warning
9407         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9408
9409         maint: detect usage(1) and other suspicious exits
9410         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9411
9412 2009-10-29  Jim Meyering  <meyering@redhat.com>
9413
9414         timespec: long-to-int truncation could make timespec_cmp malfunction
9415         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9416         a multiple of 2^32 nanoseconds as no difference.
9417
9418 2009-10-28  Jim Meyering  <meyering@redhat.com>
9419
9420         fprintftime: wrap macro code argument in "do {...} while(0)"
9421         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9422         cpy macro must be a statement that can be followed by a semicolon.
9423         Now that the else clause contains a comment and is hence longer
9424         than one line, I require curly braces.  That in turn requires
9425         that we wrap this code block in the standard do...while(0).
9426
9427         fprintftime: remove stray semicolon from previous change
9428         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9429
9430         fprintftime: avoid a warning about ignored fwrite return value
9431         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9432         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9433         that is unsafe.
9434         * modules/fprintftime (Depends-on): Add ignore-value.
9435
9436         exclude: avoid an unwarranted warning
9437         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9438
9439 2009-10-27  Eric Blake  <ebb9@byu.net>
9440
9441         fseek: avoid compilation failure when fflush is replaced
9442         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9443         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9444         module is in use.
9445         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9446         module is not in use; since REPLACE_FSEEK worked otherwise.
9447         (GNULIB_FTELLO): Likewise for ftell.
9448         Reported by Ian Beckwith and others.
9449
9450 2009-10-27  Bruno Haible  <bruno@clisp.org>
9451
9452         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9453         Reported by Jim Meyering.
9454
9455 2009-10-27  Jim Meyering  <jim@meyering.net>
9456             Bruno Haible  <bruno@clisp.org>
9457
9458         Avoid warning despite dropping the return value of fwrite.
9459         * lib/unicodeio.c: Include ignore-value.h.
9460         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9461         * modules/unicodeio (Depends-on): Add ignore-value.
9462
9463 2009-10-26  Eric Blake  <ebb9@byu.net>
9464
9465         areadlinkat: fix fallback path
9466         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9467         pointer and zero.
9468
9469 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9470
9471         Use a better IO block size for modern systems
9472         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9473         * lib/md2.c: Likewise.
9474         * lib/md4.c: Likewise.
9475         * lib/md5.c: Likewise.
9476         * lib/sha1.c: Likewise.
9477         * lib/sha256.c: Likewise.
9478         * lib/sha512.c: Likewise.
9479
9480 2009-10-22  Eric Blake  <ebb9@byu.net>
9481
9482         tests: avoid several compiler warnings
9483         * tests/test-getcwd.c (main): Avoid buffer underflow.
9484         * tests/test-getdate.c (main): String literals are not safe with
9485         putenv, so use setenv.  Declare unused argument.
9486         * modules/getdate-tests (Depends-on): Add setenv.
9487         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9488         problems with string literals in char *.
9489         * tests/test-hash.c (main): Avoid shadowing declaration.
9490         (insert_new): Treat string literals as char const *.
9491         * tests/test-getopt.h (test_getopt): Likewise.
9492         (getopt_loop): Alter types to minimize casting elsewhere.
9493         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9494         (test_getopt_long_posix): Likewise.
9495         (do_getopt_long): Add wrapper to minimize casting.
9496         * tests/test-atexit.c (clear_temp_file): Use void.
9497         * tests/test-areadlink-with-size.c (main): Declare unused
9498         arguments.
9499         * tests/test-areadlink.c (main): Likewise.
9500         * tests/test-areadlinkat-with-size.c (main): Likewise.
9501         * tests/test-areadlinkat.c (main): Likewise.
9502         * tests/test-canonicalize-lgpl.c (main): Likewise.
9503         * tests/test-canonicalize.c (main): Likewise.
9504         * tests/test-dirent-safer.c (main): Likewise.
9505         * tests/test-dirname.c (main): Likewise.
9506         * tests/test-dup2.c (main): Likewise.
9507         * tests/test-fchdir.c (main): Likewise.
9508         * tests/test-fcntl-h.c (main): Likewise.
9509         * tests/test-fcntl-safer.c (main): Likewise.
9510         * tests/test-fdopendir.c (main): Likewise.
9511         * tests/test-fdutimensat.c (main): Likewise.
9512         * tests/test-fflush.c (main): Likewise.
9513         * tests/test-filenamecat.c (main): Likewise.
9514         * tests/test-filevercmp.c (main): Likewise.
9515         * tests/test-fopen-safer.c (main): Likewise.
9516         * tests/test-fopen.c (main): Likewise.
9517         * tests/test-fpending.c (main): Likewise.
9518         * tests/test-fpurge.c (main): Likewise.
9519         * tests/test-freading.c (main): Likewise.
9520         * tests/test-fstatat.c (main): Likewise.
9521         * tests/test-fsync.c (main): Likewise.
9522         * tests/test-futimens.c (main): Likewise.
9523         * tests/test-getndelim2.c (main): Likewise.
9524         * tests/test-gettimeofday.c (main): Likewise.
9525         * tests/test-getopt.c (main): Likewise.
9526         * tests/test-i-ring.c (main): Likewise.
9527         * tests/test-inttypes.c (main): Likewise.
9528         * tests/test-link.c (main): Likewise.
9529         * tests/test-lstat.c (main): Likewise.
9530         * tests/test-math.c (main): Likewise.
9531         * tests/test-md5.c (main): Likewise.
9532         * tests/test-memchr2.c (main): Likewise.
9533         * tests/test-memrchr.c (main): Likewise.
9534         * tests/test-mkdir.c (main): Likewise.
9535         * tests/test-mkdirat.c (main): Likewise.
9536         * tests/test-mkfifoat.c (main): Likewise.
9537         * tests/test-open.c (main): Likewise.
9538         * tests/test-openat-safer.c (main): Likewise.
9539         * tests/test-openat.c (main): Likewise.
9540         * tests/test-quotearg.c (main): Likewise.
9541         * tests/test-rawmemchr.c (main): Likewise.
9542         * tests/test-readlink.c (main): Likewise.
9543         * tests/test-remove.c (main): Likewise.
9544         * tests/test-rename.c (main): Likewise.
9545         * tests/test-renameat.c (main): Likewise.
9546         * tests/test-rmdir.c (main): Likewise.
9547         * tests/test-sha1.c (main): Likewise.
9548         * tests/test-signal.c (main): Likewise.
9549         * tests/test-sigaction.c (main): Likewise.
9550         * tests/test-stat.c (main): Likewise.
9551         * tests/test-stat-time.c (main): Likewise.
9552         * tests/test-stddef.c (main): Likewise.
9553         * tests/test-stdint.c (main): Likewise.
9554         * tests/test-stdio.c (main): Likewise.
9555         * tests/test-stdlib.c (main): Likewise.
9556         * tests/test-strchrnul.c (main): Likewise.
9557         * tests/test-strerror.c (main): Likewise.
9558         * tests/test-string.c (main): Likewise.
9559         * tests/test-strtod.c (main): Likewise.
9560         * tests/test-strverscmp.c (main): Likewise.
9561         * tests/test-symlink.c (main): Likewise.
9562         * tests/test-symlinkat.c (main): Likewise.
9563         * tests/test-sys_stat.c (main): Likewise.
9564         * tests/test-sys_time.c (main): Likewise.
9565         * tests/test-time.c (main): Likewise.
9566         * tests/test-unistd.c (main): Likewise.
9567         * tests/test-unlink.c (main): Likewise.
9568         * tests/test-unlinkat.c (main): Likewise.
9569         * tests/test-utimens.c (main): Likewise.
9570         * tests/test-utimensat.c (main): Likewise.
9571         * tests/test-version-etc.c (main): Likewise.
9572         * tests/test-wchar.c (main): Likewise.
9573         * tests/test-wctype.c (main): Likewise.
9574         * tests/test-xprintf-posix.c (main): Likewise.
9575         * tests/test-posixtm.c (main): Likewise.
9576         (STREQ): Delete unused macro.
9577         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9578         shadowed variables.
9579         * tests/test-memchr.c (main): Likewise.
9580
9581 2009-10-21  Eric Blake  <ebb9@byu.net>
9582
9583         areadlinkat: avoid failure on older glibc
9584         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9585         rather than mis-comparing 0 against FUNC_RESULT of char*.
9586
9587 2009-10-21  Bruno Haible  <bruno@clisp.org>
9588
9589         * modules/stpncpy (License): Relicense under LGPLv2+.
9590         Reported by David Lutterkort <lutter@redhat.com>.
9591
9592 2009-10-20  Eric Blake  <ebb9@byu.net>
9593
9594         utimensat: work around Solaris 9 bug
9595         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9596         has trailing slash bugs.
9597         * tests/test-lutimens.h (test_lutimens): Enhance test.
9598         * tests/test-utimens.h (test_utimens): Likewise.
9599         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9600         * doc/posix-functions/utimes.texi (utimes): Likewise.
9601         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9602         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9603         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9604         * doc/posix-functions/futimens.texi (futimens): Likewise.
9605
9606         fdutimensat: new module
9607         * modules/fdutimensat: New file.
9608         * lib/fdutimensat.c (fdutimensat): Likewise.
9609         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9610         * MODULES.html.sh (File system functions): Mention module.
9611         * modules/fdutimensat-tests: New test.
9612         * tests/test-fdutimensat.c: Likewise.
9613
9614         doc: regenerate INSTALL
9615         * doc/INSTALL: Reflect recent autoconf update.
9616         * doc/INSTALL.ISO: Likewise.
9617         * doc/INSTALL.UTF-8: Likewise.
9618
9619 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9620
9621         acl: warn if ACL support is not detected
9622         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9623
9624 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9625
9626         * lib/nproc.h: Add extern "C" block for C++.
9627
9628 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9629             Bruno Haible  <bruno@clisp.org>
9630
9631         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9632         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9633         * doc/posix-functions/isalpha.texi: Likewise.
9634         * doc/posix-functions/isblank.texi: Likewise.
9635         * doc/posix-functions/iscntrl.texi: Likewise.
9636         * doc/posix-functions/isdigit.texi: Likewise.
9637         * doc/posix-functions/isgraph.texi: Likewise.
9638         * doc/posix-functions/islower.texi: Likewise.
9639         * doc/posix-functions/isprint.texi: Likewise.
9640         * doc/posix-functions/ispunct.texi: Likewise.
9641         * doc/posix-functions/isspace.texi: Likewise.
9642         * doc/posix-functions/isupper.texi: Likewise.
9643         * doc/posix-functions/isxdigit.texi: Likewise.
9644
9645 2009-10-18  Bruno Haible  <bruno@clisp.org>
9646
9647         Tests for module 'isblank'.
9648         * modules/isblank-tests: New file.
9649         * tests/test-isblank.c: New file.
9650
9651         New module 'isblank'.
9652         * lib/isblank.c: New file.
9653         * m4/isblank.m4: New file.
9654         * modules/isblank: New file.
9655         * doc/posix-functions/isblank.texi: Mention the new module.
9656
9657 2009-10-18  Bruno Haible  <bruno@clisp.org>
9658
9659         New module 'ctype'.
9660         * lib/ctype.in.h: New file.
9661         * m4/ctype.m4: New file.
9662         * modules/ctype: New file.
9663         * doc/posix-headers/ctype.texi: Mention the new module.
9664
9665 2009-10-18  Jim Meyering  <meyering@redhat.com>
9666
9667         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9668         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9669         right after its initialization, rather than farther down.
9670         Keeping these in close proximity makes it easier to ensure
9671         that each such variable is initialized.  E.g.,
9672
9673             LIB_CLOCK_GETTIME=
9674             AC_SUBST([LIB_CLOCK_GETTIME])
9675
9676         This change also increments these serial numbers.
9677         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9678         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9680
9681 2009-10-18  Bruno Haible  <bruno@clisp.org>
9682
9683         Don't let environment variables perturb build.
9684         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9685         (gl_PREREQ_GETHRXTIME): ... not here.
9686
9687 2009-10-18  Bruno Haible  <bruno@clisp.org>
9688
9689         Avoid symlink attack in localcharset module.
9690         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9691         (O_NOFOLLOW): Define fallback.
9692         (get_charset_aliases): Don't open the file if it is a symbolic link.
9693         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9694         gl_FCNTL_H.
9695         (gl_FCNTL_H): Require it.
9696         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9697         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9698         Reported by Fergal Glynn <fglynn@veracode.com>.
9699
9700 2009-10-18  Bruno Haible  <bruno@clisp.org>
9701
9702         Implement nproc for mingw.
9703         * lib/nproc.c: Include <windows.h>
9704         (num_processors): On native Windows platforms, try GetSystemInfo.
9705
9706 2009-10-18  Bruno Haible  <bruno@clisp.org>
9707
9708         Implement nproc for IRIX.
9709         * lib/nproc.c: Include <sys/sysmp.h>.
9710         (num_processors): On IRIX systems, try sysmp.
9711         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9712
9713 2009-10-18  Bruno Haible  <bruno@clisp.org>
9714
9715         Implement nproc for HP-UX.
9716         * lib/nproc.c: Include <sys/pstat.h>
9717         (num_processors): On HP-UX systems, try pstat_getdynamic.
9718         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9719         pstat_getdynamic.
9720
9721 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9722             Bruno Haible  <bruno@clisp.org>
9723
9724         Implement nproc for NetBSD, OpenBSD.
9725         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9726         (ARRAY_SIZE): New macro.
9727         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9728         * m4/nproc.m4: New file.
9729         * modules/nproc (Files): Add m4/nproc.m4.
9730         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9731         (Makefile.am): Instead, augment lib_SOURCES.
9732
9733 2009-10-18  Bruno Haible  <bruno@clisp.org>
9734
9735         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9736         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9737         sys/param.h.
9738
9739 2009-10-16  Eric Blake  <ebb9@byu.net>
9740
9741         utimensat: new module
9742         * modules/utimensat: New file.
9743         * lib/utimensat.c (utimensat): Likewise.
9744         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9745         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9746         so we can work around Linux bugs.
9747         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9748         * modules/sys_stat (Makefile.am): Substitute them.
9749         * lib/sys_stat.in.h (utimensat): Declare it.
9750         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9751         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9752         * modules/utimensat-tests: New test.
9753         * tests/test-utimensat.c: Likewise.
9754
9755         utimens: let lutimens work on non-symlinks
9756         * lib/utimens.c (lutimens): Fall back to utimens rather than
9757         failing with ENOSYS, when file is not a symlink.
9758         (utimens): Reduce redirection.
9759         * tests/test-lutimens.h (test_lutimens): Update test to cover
9760         non-symlinks.
9761         * tests/test-utimens.h (test_utimens): Update test to cover
9762         symlinks.
9763         * tests/test-utimens.c (main): Update caller.
9764
9765         utimens: cache whether utimensat syscall works
9766         * lib/utimens.c (utimensat_works_really): New cache variable.
9767         (fdutimens, lutimens): Use it to avoid failing syscall.
9768
9769         test-stat-time, test-utimens: improve portability
9770         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9771         ext4 on alpha, and for cygwin.
9772         * tests/test-utimens-common.h: New file.
9773         (nap): Factor delays into single function.
9774         * tests/test-lutimens.h (test_lutimens): Use new header.
9775         * tests/test-futimens.h (test_futimens): Likewise.
9776         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9777         timestamps to occur from same machine, as was done previously for
9778         test_utimens.
9779         * modules/utimens-tests (Files): Ship new file.
9780         * modules/futimens-tests (Files): Likewise.
9781         Reported in part by Jim Meyering.
9782
9783         sys_stat: sort replacement declarations
9784         * lib/sys_stat.in.h: Sort declarations.
9785         * lib/futimens.c (futimens): Fix typo.
9786
9787 2009-10-15  Jim Meyering  <meyering@redhat.com>
9788
9789         don't let environment settings perturb build
9790         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9791         could cause a configure-time and/or build-time malfunction.
9792         Typically, a configure-time function-in-library test is performed
9793         via code like this:
9794
9795           LIB_VAR=
9796           AC_SUBST([LIB_VAR])
9797           prefix_saved_LIBS=$LIBS
9798             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9799                        [test "$ac_cv_search_FUNC" = "none required" ||
9800                         LIB_VAR=$ac_cv_search_FUNC])
9801           LIBS=$prefix_saved_LIBS
9802
9803         However, in each of the files affected by this change, the LIB_VAR=
9804         initialization was omitted.  Thus, when set in the environment, its
9805         value would propagate into generated Makefiles when FUNC is not found
9806         in LIB_NAME.
9807         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9808         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9810
9811 2009-10-14  Eric Blake  <ebb9@byu.net>
9812
9813         fchdir: avoid infinite recursion in mingw
9814         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9815         recursing.
9816
9817         test-stat-time: port to mingw
9818         * tests/test-stat-time.c (force_unlink): Return a value.
9819         (test_ctime) [W32]: Fix compilation error.
9820         (nap): Don't call usleep with too large an argument.  Use
9821         force_unlink.
9822         * doc/pastposix-functions/usleep.texi (usleep): Document the
9823         portability issue.
9824
9825 2009-10-13  Jim Meyering  <meyering@redhat.com>
9826
9827         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9828         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9829         * modules/pipe-filter-ii: Likewise.
9830         * modules/sys_socket-tests: Likewise.
9831         * modules/tsearch-tests: Likewise.
9832         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9833         (check): Depend on it.
9834
9835 2009-10-12  Eric Blake  <ebb9@byu.net>
9836
9837         utimens-tests: port to NFS file systems
9838         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9839         comparisons to avoid spurious failures from timestamp drift
9840         between NFS machines.
9841
9842 2009-10-12  Eric Blake  <ebb9@byu.net>
9843
9844         stat-time-tests: minor cleanups
9845         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9846         * tests/test-stat-time.c (nap): Separate assignment from call.
9847         Suggested by Paolo Bonzini and Bruno Haible.
9848
9849         sys_stat: guarantee struct timespec
9850         * lib/sys_stat.in.h (includes): Always include <time.h>
9851         * modules/sys_stat (Depends-on): Add time.
9852         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9853         mode_t permission values.
9854         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9855         get at subsecond timestamps.
9856
9857 2009-10-10  Eric Blake  <ebb9@byu.net>
9858
9859         futimens: new module
9860         * modules/futimens: New file.
9861         * lib/futimens.c (futimens): Likewise.
9862         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9863         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9864         we can work around Linux bugs.
9865         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9866         * modules/sys_stat (Makefile.am): Substitute them.
9867         * lib/sys_stat.in.h (futimens): Declare it.
9868         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9869         * doc/posix-functions/futimens.texi (futimens): Likewise.
9870         * modules/futimens-tests: New test.
9871         * tests/test-futimens.c: Likewise.
9872
9873         utimens: introduce fdutimens
9874         * lib/utimens.h (fdutimens): New prototype.
9875         * lib/utimens.c (gl_futimens): Move guts...
9876         (fdutimens): ...to new interface.
9877         * tests/test-utimens.c (do_fdutimens): Use it.
9878
9879         utimens: add UTIME_NOW and UTIME_OMIT support
9880         * lib/utimens.c (validate_timespec, update_timespec): New helper
9881         functions.
9882         (gl_futimens, lutimens): Use them.
9883         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9884         stdbool, sys_stat.
9885         (Link): Mention resulting library dependency.
9886         * modules/utimecmp (Link): Likewise.
9887         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9888         (Makefile.am): Pick up library dependency.
9889         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9890         definition.
9891         * tests/test-sys_stat.c: Test the definitions.
9892         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9893         * NEWS: Document library dependency.
9894
9895         utimecmp: support symlink timestamps
9896         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9897         hashing when possible.  Use pathconf when available.
9898         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9899         * modules/utimecmp (Depends-on): Add lstat.
9900
9901         utimens: add lutimens interface
9902         * lib/utimens.c (lutimens): New function.
9903         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9904         * lib/utimens.h (lutimens): Declare new interface.
9905         * tests/test-utimens.c (main): Enhance test.
9906         * tests/test-lutimens.h (test_lutimens): New file.
9907         * modules/utimens-tests (Files): Distribute it.
9908         (Depends-on): Add symlink.
9909         (configure.ac): Check for usleep.
9910
9911         utimens: validate futimens usage
9912         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9913         fewer syscalls on failure later on.  Avoid compiler warning on
9914         mingw.
9915         * modules/utimens (Depends-on): Add dup2.
9916
9917         utimens: add test
9918         * modules/utimens-tests: New test.
9919         * tests/test-utimens.h: New file.
9920         * tests/test-futimens.h: Likewise.
9921         * tests/test-utimens.c: Likewise.
9922
9923         doc: mention timestamp portability issues
9924         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9925         instead.
9926         * doc/posix-functions/utime.texi (utime): Likewise.
9927         * doc/posix-functions/utimes.texi (utimes): Likewise.
9928         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9929         instead.
9930         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9931         module.
9932         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9933         Mention weakness with symlink timestamps.
9934         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9935         to utimensat/futimens instead.
9936         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9937
9938         test-dup2: enhance test
9939         * tests/test-dup2.c (main): Also check AT_FDCWD.
9940
9941         test-stat-time: avoid more spurious failures
9942         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9943         xfs; and avoid race if the two timestamps cross quantization edge.
9944
9945         relocatable: prefer 'file system' over 'filesystem'
9946         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9947         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9948         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9949         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9950         * lib/relocatable.c (compute_curr_prefix): Likewise.
9951
9952 2009-10-10  Jim Meyering  <meyering@redhat.com>
9953
9954         stat-time-tests: check for the usleep function
9955         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9956
9957 2009-10-10  Bruno Haible  <bruno@clisp.org>
9958
9959         * modules/xnanosleep: Put the Link section after the Include section.
9960
9961 2009-10-09  Eric Blake  <ebb9@byu.net>
9962
9963         dup2: work around FreeBSD 6.1 bug
9964         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9965         * doc/posix-functions/dup2.texi (dup2): Document it.
9966         Reported by Nelson H. F. Beebe and Jim Meyering.
9967
9968         test-stat-time: port to buggy NFS clients
9969         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9970         (test_ctime): Also skip test if mtime and ctime are skewed.
9971
9972         maint: prefer 'file system' over 'filesystem'
9973         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9974         * doc/posix-functions/lstat.texi (lstat): Likewise.
9975         * lib/file-has-acl.c (file_has_acl): Likewise.
9976         * lib/fwriteerror.c [TEST]: Likewise.
9977         * tests/test-areadlink.h (test_areadlink): Likewise.
9978         * tests/test-areadlinkat-with-size.c (main): Likewise.
9979         * tests/test-areadlinkat.c (main): Likewise.
9980         * tests/test-canonicalize-lgpl.c (main): Likewise.
9981         * tests/test-canonicalize.c (main): Likewise.
9982         * tests/test-fstatat.c (main): Likewise.
9983         * tests/test-linkat.c (main): Likewise.
9984         * tests/test-lstat.h (test_lstat_func): Likewise.
9985         * tests/test-mkdir.h (test_mkdir): Likewise.
9986         * tests/test-readlink.h (test_readlink): Likewise.
9987         * tests/test-remove.c (main): Likewise.
9988         * tests/test-rename.h (test_rename): Likewise.
9989         * tests/test-renameat.c (main): Likewise.
9990         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9991         * tests/test-symlink.h (test_symlink): Likewise.
9992         * tests/test-symlinkat.c (main): Likewise.
9993         * tests/test-unlink.h (test_unlink_func): Likewise.
9994         * tests/test-unlinkat.c (main): Likewise.
9995
9996         maint: make realtime library usage explicit
9997         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9998         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9999         * modules/settime (Link): Likewise.
10000         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
10001
10002         test-stat-time: speed up execution
10003         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
10004         warning on mingw.
10005         (nap): New helper function.
10006         (prepare_test): Use it to reduce sleep time.
10007         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
10008         execution.
10009         * modules/stat-time-tests (configure.ac): Check for usleep.
10010
10011 2009-10-09  Jim Meyering  <meyering@redhat.com>
10012
10013         selinux-h: always use getfilecon wrappers
10014         * lib/getfilecon.c: New file.
10015         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
10016         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
10017         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
10018         (fgetfilecon): Provide a stub.
10019         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
10020         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
10021         file unconditionally.
10022         When <selinux/selinux.h> is found, arrange to use wrappers.
10023         * modules/selinux-h (Files): Add getfilecon.c.
10024         (Makefile.am): Substitute include-next-related bits
10025         into the now-always-generated selinux/selinux.h file.
10026         * doc/glibc-functions/lgetfilecon.texi: New file.
10027         * doc/glibc-functions/fgetfilecon.texi: New file.
10028         * doc/glibc-functions/getfilecon.texi: New file.
10029         * doc/glibc-functions/getfilecon-desc.texi: New file.
10030         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
10031         which to pull in the new files.
10032         * MODULES.html.sh (Misc): Add selinux-h.
10033
10034 2009-10-08  Jim Meyering  <meyering@redhat.com>
10035
10036         unistd: fix comment typo
10037         * lib/unistd.in.h (euidaccess): Fix a comment typo.
10038
10039 2009-10-08  Eric Blake  <ebb9@byu.net>
10040
10041         areadlink: use SIZE_MAX consistently
10042         * modules/areadlink (Depends-on): Add stdint.
10043         * modules/areadlink-with-size (Depends-on): Likewise.
10044         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
10045         gives NULL; drop sys/types, since unistd gives size_t; and add
10046         stdint for SIZE_MAX.
10047         (SIZE_MAX): Rely on headers.
10048         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
10049         and add stdint.
10050         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
10051         (SIZE_MAX): Likewise.
10052         (INITIAL_BUF_SIZE): Turn into enum.
10053         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
10054
10055 2009-10-08  Jim Meyering  <meyering@redhat.com>
10056
10057         areadlinkat: avoid compilation failure
10058         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
10059         Fix typo in comment.
10060
10061 2009-10-07  Eric Blake  <ebb9@byu.net>
10062
10063         areadlinkat-with-size: new module
10064         * modules/areadlinkat-with-size: New module.
10065         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
10066         * lib/areadlink.h (areadlinkat): Declare it.
10067         * MODULES.html.sh (File system functions): Mention it.
10068         * modules/areadlinkat-with-size-tests: New test.
10069         * tests/test-areadlinkat-with-size.c: New file.
10070
10071         xreadlinkat: new module
10072         * modules/xreadlinkat: New module.
10073         * lib/xreadlinkat.c (xreadlinkat): New file.
10074         * lib/xreadlink.h (xreadlinkat): Declare it.
10075         * MODULES.html.sh (File system functions): Mention it.
10076
10077         areadlinkat: new module
10078         * lib/at-func.c (FUNC_FAIL): New define.
10079         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
10080         * modules/areadlinkat: New module.
10081         * lib/linkat.c (areadlinkat): Move...
10082         * lib/areadlinkat.c (areadlinkat): ...to new file.
10083         * lib/areadlink.h (areadlinkat): Declare it.
10084         * modules/linkat (Depends-on): Add areadlinkat.
10085         * MODULES.html.sh (File system functions): Mention it.
10086         * modules/areadlinkat-tests: New test.
10087         * tests/test-areadlinkat.c: New file.
10088
10089         areadlink, areadlink-with-size: add tests
10090         * modules/areadlink-tests: New test.
10091         * modules/areadlink-with-size-tests: Likewise.
10092         * tests/test-areadlink.h: New file.
10093         * tests/test-areadlink.c: Likewise.
10094         * tests/test-areadlink-with-size.c: Likewise.
10095
10096         maint: minor cleanups
10097         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
10098         _UNUSED_PARAMETER_ instead.
10099         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
10100         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
10101         * modules/linkat-tests (Files): Distribute test-link.h.
10102
10103         openat, utimens: whitespace cleanup
10104         * lib/openat.c: Prefer space throughout, rather than mix of 8
10105         spaces vs. tabs.
10106         * lib/at-func.c: Likewise.
10107         * lib/utimens.c: Likewise.
10108
10109         openat: avoid using wrong fd
10110         * lib/openat.c (openat_permissive): Reject user's fd if saving the
10111         working directory chooses same fd.
10112         * lib/at-func.c (AT_FUNC_NAME): Likewise.
10113
10114         mkdir, mkdirat: fix cygwin 1.5.x bug
10115         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
10116         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
10117         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
10118         bug.
10119         (gl_PREREQ_MKDIR): Delete unused macro.
10120         * modules/mkdir (Files): Track file rename.
10121         (configure.ac): Update macro name.
10122         * modules/openat (Depends-on): Add mkdir.
10123         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
10124
10125         mkdir, mkdirat: add tests
10126         * modules/mkdir-tests: New test.
10127         * tests/test-mkdir.h: New file.
10128         * tests/test-mkdir.c: Likewise.
10129         * tests/test-mkdirat.c: Likewise.
10130         * modules/openat-tests (Files): Add new files.
10131         (Makefile.am): Run new test.
10132
10133 2009-10-06  Eric Blake  <ebb9@byu.net>
10134
10135         doc: tweak *at function documentation
10136         * doc/posix-functions/faccessat.texi (faccessat): Mention
10137         known issue with replacement.
10138         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
10139         * doc/posix-functions/linkat.texi (linkat): Likewise.
10140         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10141         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10142         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10143         * doc/posix-functions/renameat.texi (renameat): Likewise.
10144         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10145
10146         openat: fix GNU/Hurd bug in unlinkat
10147         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
10148         broken.
10149         * doc/posix-functions/unlink.texi (unlink): Document this.
10150         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
10151
10152         fdopendir: fix GNU/Hurd bug
10153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
10154         allowing non-directory fds.
10155         * lib/fdopendir.c (rpl_fdopendir): Work around it.
10156         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10157         * modules/dirent (Makefile.am): Substitute it.
10158         * lib/dirent.in.h (fdopendir): Declare replacement.
10159         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
10160         * tests/test-fdopendir.c (main): Test something other than
10161         /dev/null, since on Hurd that behaves like a directory.
10162
10163         test-symlink: port to GNU/Hurd
10164         * tests/test-symlink.h (test_symlink): Relax expected errno.
10165
10166         doc: tweak more cygwin information
10167         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
10168         now compatible with glibc.
10169         * doc/posix-functions/getopt.texi (getopt): Likewise.
10170
10171         getopt-gnu: add another test
10172         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
10173         guarantee behavior relied on by m4.
10174         * tests/test-getopt.c (main): Use it.
10175         * modules/getopt-posix-tests (Depends-on): Add setenv.
10176         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10177
10178         getopt: fix compilation on darwin
10179         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10180         include.
10181         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10182         Reported by Ludovic Courtès.
10183
10184 2009-10-06  Bruno Haible  <bruno@clisp.org>
10185
10186         * modules/size_max (Description): Discourage its use.
10187         Reported by Simon Josefsson.
10188
10189 2009-10-06  Jim Meyering  <meyering@redhat.com>
10190
10191         linkat: avoid compilation failure
10192         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10193
10194 2009-10-05  Eric Blake  <ebb9@byu.net>
10195
10196         linkat: support Linux 2.6.17
10197         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10198         linkat on Linux, but allow cache variable override.
10199         * lib/linkat.c (rpl_linkat): Define override.
10200         * modules/linkat (Depends-on): Add symlinkat.
10201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10202         * modules/unistd (Makefile.am): Substitute it.
10203         * lib/unistd.in.h (linkat): Declare replacement.
10204         Reported by Pádraig Brady.
10205
10206         quotearg: port test to systems with C.UTF-8 locale
10207         * tests/test-quotearg.c (struct result_strings): Add another
10208         member, differentiating between C.ASCII and C.UTF-8 handling.
10209         (compare_strings): Add parameter.
10210         (main): Adjust all callers.
10211
10212         getopt: avoid clash with FreeBSD _getopt_internal
10213         * lib/getopt.in.h (_getopt_internal): Override the name.
10214         * lib/getopt_int.h (includes): Pick up any overrides.
10215         Reported by Reuben Thomas.
10216
10217         hash: allow C89 compilation
10218         * lib/hash.c (check_tuning): Move declaration before statement.
10219         Reported by Reuben Thomas.
10220
10221 2009-10-05  Karl Berry  <karl@gnu.org>
10222
10223         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10224
10225 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10226             Bruno Haible  <bruno@clisp.org>
10227
10228         * lib/uname.c (uname): Use a table-driven algorithm to compute
10229         Windows NT versions.
10230
10231 2009-10-04  Bruno Haible  <bruno@clisp.org>
10232
10233         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10234         program_invocation_short_name.
10235         * modules/progname (configure.ac): Test for presence of
10236         program_invocation_short_name.
10237         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10238
10239 2009-10-04  Bruno Haible  <bruno@clisp.org>
10240
10241         * lib/progname.c (set_program_name): Fix comment.
10242         Reported by Jim Meyering.
10243
10244 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10245             Bruno Haible  <bruno@clisp.org>
10246
10247         * lib/uname.c: Include <string.h>.
10248         (uname): Do only one call to GetVersionEx in the common case.
10249
10250 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10251             Bruno Haible  <bruno@clisp.org>
10252
10253         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10254         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10255         (uname): Add support for Windows CE and various non-x86 CPU types.
10256
10257 2009-10-03  Bruno Haible  <bruno@clisp.org>
10258
10259         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10260         invocation to tests/configure.ac.
10261         Reported by Ian Beckwith <ianb@erislabs.net>.
10262
10263 2009-10-02  Eric Blake  <ebb9@byu.net>
10264
10265         fchdir: avoid compiler warning
10266         * lib/fchdir.c (canonicalize_file_name)
10267         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10268
10269         test-open: support mingw errno values
10270         * tests/test-open.h (test_open): Relax test.
10271         * tests/test-fopen.h (test_fopen): Likewise.
10272         * tests/test-openat-safer.c (main): Likewise.
10273
10274         open: fix opening directory on mingw
10275         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10276
10277         test-open: on GNU/Hurd, /dev/null is a directory
10278         * tests/test-fopen.h (main): Rename...
10279         (test_fopen): ...to this.  Use a guaranteed non-directory when
10280         confirming open behavior on trailing slash.
10281         * tests/test-openat-safer.c (main): Likewise.
10282         * tests/test-open.h (main): Likewise....
10283         (test_open): ...to this.
10284         * tests/test-fopen.c (main): Adjust caller.
10285         * tests/test-fopen-safer.c (main): Likewise.
10286         * tests/test-open.c (main): Likewise.
10287         * tests/test-fcntl-safer.c (main): Likewise.
10288         Reported by Samuel Thibault.
10289
10290         rename, fchdir: don't ignore chdir failure
10291         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10292         * lib/rename.c (rpl_rename) [W32]: Likewise.
10293         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10294         an empty destination directory if source cannot be renamed,
10295         although there is still possibility for failure.
10296         * doc/posix-functions/rename.texi (rename): Document the race.
10297         Reported by Jim Meyering.
10298
10299         maint: cleanup whitespace in recent commits
10300         * lib/rename.c (rpl_rename): Remove tabs.
10301         * tests/test-link.h (test_link): Likewise.
10302         * lib/fchdir.c (get_name): Likewise.
10303         Reported by Jim Meyering.
10304
10305 2009-10-02  Ben Pfaff  <blp@gnu.org>
10306
10307         relocatable-prog-wrapper: Add missing dependency on
10308         double-slash-root.
10309         * modules/relocatable-prog-wrapper: Add dependency.
10310         Reported by Ian Beckwith <ianb@erislabs.net>.
10311
10312 2009-10-02  Eric Blake  <ebb9@byu.net>
10313
10314         renameat: fix Solaris bugs
10315         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10316         needed fixing.
10317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10318         * modules/stdio (Makefile.am): Substitute it.
10319         * lib/stdio.in.h (renameat): Declare replacement.
10320         * lib/renameat.c (rpl_renameat): Implement fix.
10321
10322         renameat: new module
10323         * modules/renameat: New file.
10324         * lib/renameat.c (renameat): Likewise.
10325         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10327         * modules/stdio (Makefile.am): Substitute them.
10328         * lib/stdio.in.h (renameat): Declare it.
10329         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10330         * doc/posix-functions/renameat.texi (renameat): Likewise.
10331         * modules/renameat-tests: New test.
10332         * tests/test-renameat.c: Likewise.
10333
10334         rename: fix mingw bugs
10335         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10336         directory overwrite bugs.
10337
10338         rename: fix another cygwin 1.5 bug
10339         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10340         checks.
10341         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10342         unnecessary cygwin workarounds.  Also work around bug with moving
10343         full directory onto an empty one.
10344         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10345
10346         rename-dest-slash: merge into rename module
10347         * modules/rename-dest-slash (Status): Mark obsolete.
10348         (Depends-on): Add rename.
10349         (Files): Let rename do it all.
10350         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10351         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10352         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10353         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10354         * lib/rename.c (rpl_rename): Update comments.
10355
10356         rename: fix cygwin 1.5.x bugs
10357         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10358         * lib/rename.c (rpl_rename): Work around them.
10359         * modules/rename (Depends-on): Add same-inode.
10360
10361         rename: fix Solaris 10 bug
10362         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10363         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10364         was the only bug.
10365
10366         rename: fix Solaris 9 bug
10367         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10368         on non-directory.  Avoid calling exit.
10369         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10370         strdup.
10371         * modules/rename-tests (Depends-on): Drop lstat.
10372         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10373         (gl_PREREQ_RENAME): Delete unused macro.
10374
10375         rename-dest-slash: fix NetBSD bug
10376         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10377         links.
10378         * modules/rename-dest-slash (Depends-on): Add same-inode.
10379
10380         rename-tests: new test, exposes several platform bugs
10381         * modules/rename-tests: New file.
10382         * tests/test-rename.h: Likewise.
10383         * tests/test-rename.c: Likewise.
10384         * doc/posix-functions/rename.texi (rename): Improve documentation,
10385         including bugs that will eventually be fixed in gnulib.
10386
10387 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10388
10389         * lib/uname.c: Include <stdlib.h>
10390         (uname): Assume version info is available.
10391
10392 2009-10-02  Jim Meyering  <meyering@redhat.com>
10393
10394         gnu-web-doc-update: correct --help output
10395         * build-aux/gnu-web-doc-update: Make --help output relevant.
10396
10397         gnu-web-doc-update: add standard options
10398         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10399
10400         gnu-web-doc-update: New module.
10401         Use this script to automatically update the on-line web documentation
10402         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10403         * modules/gnu-web-doc-update: New file, from coreutils.
10404         * build-aux/gnu-web-doc-update: New script.
10405
10406 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10407
10408         link: LoadLibrary is not needed.
10409         * lib/link.c: Use GetModuleHandle.
10410
10411 2009-10-01  Eric Blake  <ebb9@byu.net>
10412
10413         getopt: bump serial number
10414         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10415         change.
10416
10417         tests: tighten link, rmdir, and remove tests
10418         * tests/test-link.h (includes): No need to use <config.h> here.
10419         Clean up if directory hard link was created, otherwise test for
10420         trailing '.'.
10421         * tests/test-linkat.c (main): Simplify.
10422         * tests/test-remove.c (main): Enhance test for trailing '.'.
10423         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10424
10425 2009-10-01  Jim Meyering  <meyering@redhat.com>
10426
10427         maint.mk: requiring "make major" was annoying, for a "minor" release.
10428         What is intended is "stable", to contrast with alpha and beta,
10429         so require "make stable", not "make major".
10430         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10431         (get_tool_versions): Likewise.
10432         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10433
10434 2009-09-30  Ben Pfaff  <blp@gnu.org>
10435
10436         Fix broken build of replacement for Windows tmpfile().
10437         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10438         flags argument added along with the 'mkostemp' module.
10439
10440 2009-09-28  Bruno Haible  <bruno@clisp.org>
10441
10442         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10443         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10444         to 'remove_elt'.
10445         (gl_list_remove): Update.
10446         * lib/gl_list.c (gl_list_remove): Update.
10447         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10448         to 'remove_elt'.
10449         (gl_oset_remove): Update.
10450         * lib/gl_list.c (gl_oset_remove): Update.
10451         Reported by Eric Blake.
10452
10453 2009-09-28  Eric Blake  <ebb9@byu.net>
10454
10455         doc: mention yet more cygwin 1.7 status
10456         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10457         cygwin.
10458         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10459         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10460
10461         argp: fix test failure
10462         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10463         that are not upper-case.  Pass correct range to tolower.
10464
10465 2009-09-27  Jim Meyering  <meyering@redhat.com>
10466
10467         test-yesno: work around sparc-dash here-document infelicity
10468         Without this change, the literal \177 byte in a here document
10469         would make dash 0.5.5.1-3 access uninitialized memory.
10470         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10471         Instead, use a marker, "@", and filter through tr to create the desired
10472         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10473
10474 2009-09-27  Bruno Haible  <bruno@clisp.org>
10475
10476         Disable untested support for new flavours of ACLs on AIX.
10477         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10478         progress.
10479         * lib/set-mode-acl.c (qset_acl): Likewise.
10480
10481 2008-12-07  Bruno Haible  <bruno@clisp.org>
10482
10483         Add support for new flavours of ACLs on AIX. (Untested.)
10484         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10485         (file_has_acl): Add support for newer AIX.
10486         * lib/set-mode-acl.c (qset_acl): Likewise.
10487         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10488         Rainer Tammer <tammer@tammer.net>.
10489
10490 2009-09-26  Eric Blake  <ebb9@byu.net>
10491
10492         argp: fix compilation of getopt
10493         * lib/getopt.in.h (includes): Use different guard than glibc.
10494         Reported by Sergey Poznyakoff.
10495
10496         doc: mention more cygwin 1.7 status
10497         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10498         bug.
10499         * doc/posix-functions/execl.texi (execl): Likewise.
10500         * doc/posix-functions/execle.texi (execle): Likewise.
10501         * doc/posix-functions/execlp.texi (execlp): Likewise.
10502         * doc/posix-functions/execv.texi (execv): Likewise.
10503         * doc/posix-functions/execve.texi (execve): Likewise.
10504         * doc/posix-functions/execvp.texi (execvp): Likewise.
10505         * doc/glibc-functions/canonicalize_file_name.texi
10506         (canonicalize_file_name): Cygwin 1.7 now provides this.
10507         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10508         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10509         on AT_SYMLINK_NOFOLLOW.
10510
10511 2009-09-24  Eric Blake  <ebb9@byu.net>
10512
10513         test-linkat: make test more robust
10514         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10515
10516         getopt: fix inclusion guards for cygwin
10517         * modules/getopt-posix (Depends-on): Add include-next.
10518         (Makefile.am): Substitute more items in replacement header.
10519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10520         <getopt.h>.
10521         * lib/getopt.in.h (includes): Use split inclusion guard, and
10522         prefer <getopt.h> over include <unistd.h> when one is present.
10523         (option): Also override name of 'struct option'.
10524
10525         same-inode: revert prior change; it is not yet ready
10526         * NEWS: Undo mention of this change.
10527         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10528         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10529         * lib/cycle-check.c (cycle_check): Likewise.
10530         * lib/same.c (same_name): Likewise.
10531         * lib/at-func2.c (at_func2): Likewise.
10532
10533 2009-09-23  Eric Blake  <ebb9@byu.net>
10534
10535         linkat: new module
10536         * modules/linkat: New file.
10537         * lib/at-func2.c (at_func2): Likewise.
10538         * lib/linkat.c (linkat): Likewise.
10539         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10540         * lib/openat-priv.h (at_func2): Add declaration.
10541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10542         * modules/unistd (Makefile.am): Substitute them.
10543         * lib/unistd.in.h (linkat): Declare it.
10544         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10545         * doc/posix-functions/linkat.texi (linkat): Likewise.
10546         * doc/posix-functions/link.texi (link): Tweak wording.
10547         * tests/test-link.c (main): Move guts...
10548         * tests/test-link.h (test_link): ...into new file.
10549         * modules/linkat-tests: New test.
10550         * tests/test-linkat.c: Likewise.
10551         * modules/link-tests (Files): Ship new file.
10552         (Depends-on): Add stdbool.
10553
10554         dirname: add library-safe mdir_name
10555         * lib/dirname.h (mdir_name): New prototype.
10556         * lib/dirname.c (dir_name): Move guts...
10557         (mdir_name): ...to new function that avoids xalloc_die.
10558
10559         fchdir: another mingw fix
10560         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10561         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10562         on mingw (where it has not yet been ported), and make it optional
10563         elsewhere.
10564         (_gl_register_fd): Use it.
10565
10566         same-inode: make SAME_INODE tri-state, to port to mingw
10567         * NEWS: Mention this change.
10568         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10569         st_ino always being 0.
10570         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10571         * lib/cycle-check.c (cycle_check): Likewise.
10572         * lib/same.c (same_name): Likewise.
10573
10574         lstat: avoid mingw compilation error
10575         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10576         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10577         lstat ourselves.
10578         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10579         was adequate.
10580         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10581         the checks for lstat.
10582         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10583
10584         link: fix test failure on Solaris 9
10585         * lib/link.c (rpl_link): Don't assume link will catch bogus
10586         trailing slash on source.
10587
10588         test-symlinkat: enhance test
10589         * tests/test-readlink.c (main): Move guts...
10590         * tests/test-readlink.h (test_readlink): ...into new file.
10591         * tests/test-symlink.c (main): Move guts...
10592         * tests/test-symlink.h (test_symlink): ...into new file.
10593         * tests/test-symlinkat.c (main): Use new files for further
10594         coverage.
10595         (do_symlink, do_readlink): New helper functions.
10596         * modules/symlink-tests (Files): Ship new file.
10597         (Depends-on): Add stdbool.
10598         * modules/readlink-tests (Files): Ship new file.
10599         (Depends-on): Add stdbool.
10600         * modules/symlinkat-tests (Files): Use new files.
10601
10602 2009-09-23  Eric Blake  <ebb9@byu.net>
10603
10604         readlink: document portability issue with symlink length
10605         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10606         systems have bogus st_size on symlinks, and mention the
10607         areadlink-with-size module.
10608         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10609         * doc/posix-functions/readlink.texi (readlink): Mention the
10610         areadlink module, and ERANGE failure.
10611         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10612         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10613
10614         readlink: fix Solaris 9 bug with trailing slash
10615         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10616         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10617         * doc/posix-functions/readlink.texi (readlink): Document this.
10618         * modules/readlink-tests: New test.
10619         * tests/test-readlink.c: Likewise.
10620
10621         readlink: fix cygwin 1.5.x bug with return type
10622         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10623         * lib/unistd.in.h (readlink): Use ssize_t.
10624         * lib/readlink.c (readlink): Likewise.
10625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10626         * modules/unistd (Makefile.am): Substitute it.
10627         * lib/unistd.in.h (readlink): Declare replacement.
10628         * doc/posix-functions/readlink.texi (readlink): Document this.
10629
10630         symlink: use throughout gnulib
10631         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10632         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10633         symlink is not used.
10634         * modules/symlinkat (Depends-on): Add symlink.
10635         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10636         * modules/canonicalize-tests (Depends-on): Likewise.
10637         * modules/lstat-tests (Depends-on): Likewise.
10638         * modules/openat-tests (Depends-on): Likewise.
10639         * modules/remove-tests (Depends-on): Likewise.
10640         * modules/rmdir-tests (Depends-on): Likewise.
10641         * modules/unlink-tests (Depends-on): Likewise.
10642         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10643         * tests/test-canonicalize.c (symlink): Likewise.
10644         * tests/test-fstatat.c (symlink): Likewise.
10645         * tests/test-lstat.c (symlink): Likewise.
10646         * tests/test-remove.c (symlink): Likewise.
10647         * tests/test-rmdir.c (symlink): Likewise.
10648         * tests/test-unlink.c (symlink): Likewise.
10649         * tests/test-unlinkat.c (symlink): Likewise.
10650
10651         symlink: new module, for Solaris 9 bug
10652         * modules/symlink: New file.
10653         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10654         * lib/symlink.c: Likewise.
10655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10656         * modules/unistd (Makefile.am): Substitute them.
10657         * lib/unistd.in.h (symlink): Declare replacement.
10658         * MODULES.html.sh (File system functions): Mention it.
10659         * doc/posix-functions/symlink.texi (symlink): Likewise.
10660         * modules/symlink-tests: New test.
10661         * tests/test-symlink.c: Likewise.
10662
10663 2009-09-23  Bruno Haible  <bruno@clisp.org>
10664
10665         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10666         when needed.
10667         Test case: gnulib-tool --import --with-tests atexit inttypes.
10668         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10669
10670 2009-09-23  Bruno Haible  <bruno@clisp.org>
10671
10672         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10673         subcommand, not in a subshell.
10674
10675 2009-09-22  Eric Blake  <ebb9@byu.net>
10676
10677         unistd: sort replacement declarations
10678         * lib/unistd.in.h: Sort declarations.
10679
10680         open, openat: minor optimization
10681         * lib/open.c (open): If open succeeded, len is non-zero.
10682         * lib/openat.c (rpl_openat): Likewise.
10683
10684         link-follow: ensure correct result
10685         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10686         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10687         distinguish between possible failures.
10688
10689 2009-09-21  Eric Blake  <ebb9@byu.net>
10690
10691         fts: avoid compiler warning
10692         * lib/fts.c (dirent_inode_sort_may_be_useful)
10693         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10694
10695 2009-09-19  Bruno Haible  <bruno@clisp.org>
10696
10697         * lib/progreloc.c (canonicalize_file_name): New declaration.
10698
10699 2009-09-19  Eric Blake  <ebb9@byu.net>
10700
10701         link: fix quoting
10702         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10703
10704         openat: fix openat bugs on Solaris 9
10705         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10706         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10707         * modules/openat (Depends-on): Add open.
10708         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10709         * modules/fcntl-h (Makefile.am): Substitute it.
10710         * lib/fcntl.in.h (openat): Declare replacement.
10711         * doc/posix-functions/openat.texi (openat): Document this.
10712
10713         openat: move fstatat and unlinkat into correct files
10714         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10715         compiled.
10716         * lib/openat.c (fstatat, unlinkat): Move...
10717         * lib/fstatat.c (fstatat): ...into correct files.
10718         * lib/unlinkat.c (unlinkat): Likewise.
10719
10720         openat: fix unlinkat bugs on Solaris 9
10721         * lib/unlinkat.c (unlinkat): New file.
10722         * modules/openat (Depends-on): Add unlink.
10723         (Files): Distribute it.
10724         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10725         trailing slash behavior is broken.
10726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10727         * modules/unistd (Makefile.am): Substitute it.
10728         * lib/unistd.in.h (unlinkat): Declare replacement.
10729         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10730
10731         openat: fix fstatat bugs on Solaris 9
10732         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10733         stat.
10734         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10735
10736         test-unlinkat: enhance test, to expose Solaris 9 bug
10737         * tests/test-unlink.c (main): Factor guts...
10738         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10739         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10740         * tests/test-rmdir.c (main): Adjust caller.
10741         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10742         (unlinker): New helper function.
10743         (rmdirat): Enhance check.
10744         * modules/rmdir-tests (Depends-on): Add stdbool.
10745         * modules/unlink-tests (Depends-on): Likewise.
10746         (Files): Add test-unlink.h.
10747         * modules/openat-tests (Files): Likewise.
10748         (Depends-on): Add unlinkdir.
10749
10750         test-fstatat: new test, to expose Solaris 9 bugs
10751         * tests/test-stat.c (main): Factor guts...
10752         * tests/test-stat.h (test_stat_func): ...into new file.
10753         * tests/test-lstat.c (main): Factor guts...
10754         * tests/test-lstat.h (test_lstat_func): ...into new file.
10755         * tests/test-fstatat.c: New file.
10756         * modules/stat-tests (Files): Add test-stat.h.
10757         * modules/lstat-tests (Files): Add test-lstat.h.
10758         (Depends-on): Add stdbool.
10759         * modules/openat-tests (Depends-on): Add pathmax.
10760         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10761         (Makefile.am): Run new test.
10762
10763         remove: new module, for mingw and Solaris 9 bugs
10764         * modules/remove: New file.
10765         * lib/remove.c: Likewise.
10766         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10768         * modules/stdio (Makefile.am): Use them.
10769         * lib/stdio.in.h (remove): Declare replacement.
10770         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10771         * doc/posix-functions/remove.texi (remove): Likewise.
10772         * modules/remove-tests: New test.
10773         * tests/test-remove.c: Likewise.
10774
10775         unlink: new module, for Solaris 9 bug
10776         * modules/unlink: New file.
10777         * lib/unlink.c: Likewise.
10778         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10780         * modules/unistd (Makefile.am): Use them.
10781         * lib/unistd.in.h (stat): Declare replacement.
10782         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10783         * doc/posix-functions/unlink.texi (unlink): Likewise.
10784         * modules/unlink-tests: New test.
10785         * tests/test-unlink.c: Likewise.
10786
10787         lstat: fix Solaris 9 bug
10788         * lib/lstat.c (lstat): Also check for trailing slash on
10789         non-symlink, non-directories.  Use stat module to simplify logic.
10790         * doc/posix-functions/lstat.texi (lstat): Document it.
10791         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10792         (configure.ac): Check for symlink.
10793         * tests/test-lstat.c (main): Add more tests.
10794
10795         stat: add as dependency to other modules
10796         * modules/chown (Depends-on): Add stat.
10797         * modules/euidaccess (Depends-on): Likewise.
10798         * modules/fchdir (Depends-on): Likewise.
10799         * modules/isdir (Depends-on): Likewise.
10800         * modules/link (Depends-on): Likewise.
10801         * modules/lstat (Depends-on): Likewise.
10802         * modules/mkdir-p (Depends-on): Likewise.
10803         * modules/modechange (Depends-on): Likewise.
10804         * modules/open (Depends-on): Likewise.
10805         * modules/readlink (Depends-on): Likewise.
10806         * modules/same (Depends-on): Likewise.
10807
10808         stat: fix Solaris 9 bug
10809         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10810         slash.
10811         * lib/stat.c (rpl_stat): Work around it.
10812         * doc/posix-functions/stat.texi (stat): Update documentation.
10813
10814         stat: new module, for mingw bug
10815         * modules/stat: New file.
10816         * lib/stat.c: Likewise.
10817         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10819         * modules/sys_stat (Makefile.am): Use them.
10820         * lib/sys_stat.in.h (stat): Declare replacement.
10821         * lib/openat.c (fstatat): Deal with lstat and stat being function
10822         macros.
10823         * modules/openat (Depends-on): Add inline.
10824         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10825         * doc/posix-functions/stat.texi (stat): Likewise.
10826         * modules/stat-tests: New test.
10827         * tests/test-stat.c: Likewise.
10828
10829 2009-09-19  Jim Meyering  <meyering@redhat.com>
10830
10831         syntax-check: detect unnecessary inclusion of canonicalize.h
10832         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10833
10834 2009-09-19  Eric Blake  <ebb9@byu.net>
10835
10836         canonicalize-lgpl: adjust clients to use correct header
10837         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10838         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10839         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10840         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10841         * lib/progreloc.c (includes): Likewise.
10842
10843 2009-09-19  Jim Meyering  <meyering@redhat.com>
10844
10845         test-posixtm.c: correct a comment
10846         * tests/test-posixtm.c: Correct first-line comment.
10847         Spotted by Eric Blake.
10848
10849 2009-09-16  Jim Meyering  <meyering@redhat.com>
10850
10851         posixtm-tests: make T const-correct; add a test case
10852         * tests/test-posixtm.c (T): Declare const.
10853         Add a test for -(2^31+1).
10854         Remove useless can-succeed-only-in-2002 test.
10855
10856         posixtm-tests: adjust the sole failing test
10857         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10858         expected output matches what mktime now produces.  Cross-checked via
10859         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10860
10861         posixtm: move #ifdef'd tests into a new module
10862         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10863         * tests/test-posixtm.c: ... this new file.
10864         * modules/posixtm-tests: New module.
10865
10866 2009-09-19  Eric Blake  <ebb9@byu.net>
10867
10868         openat: simplify use of at-func.c
10869         * lib/at-func.c (includes): Include prerequisites here, to
10870         simplify requirements on client files.
10871         * lib/openat-priv.h: Add double-inclusion guard.
10872         * lib/faccessat.c (includes): Simplify.
10873         * lib/fchmodat.c (includes): Likewise.
10874         * lib/fchownat.c (includes): Likewise.
10875         * lib/mkdirat.c (includes): Likewise.
10876         * lib/mkfifoat.c (includes): Likewise.
10877         * lib/symlinkat.c (includes): Likewise.
10878
10879         openat: allow return of fd 0
10880         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10881         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10882         unistd-safer.
10883         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10884         <fcntl.h>; this module does not leak fds.
10885         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10886         must be allowed to return 0, leaving openat_safer to add the
10887         safety.
10888         (openat_permissive): Avoid writing to just-opened fd 2 if
10889         restoring the current directory fails.
10890         * lib/openat-die.c (openat_restore_fail): Add comment.
10891         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10892         (save_cwd): Guarantee safe fd, but without use of open_safer.
10893         * tests/test-openat.c: New test.
10894         * modules/openat-tests (Files, Makefile.am): Distribute and build
10895         new file.
10896
10897         relocatable-prog-wrapper: fix build
10898         * modules/relocatable-prog-wrapper (Files): Update name of
10899         canonicalize m4 file, broken on 2009-09-17.
10900         Reported by emad hajjar <aleppos@hotmail.com>.
10901
10902 2009-09-19  Bruno Haible  <bruno@clisp.org>
10903
10904         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10905         * lib/safe-alloc.c: Likewise.
10906         Reported by Ian Beckwith <ianb@erislabs.net>.
10907
10908 2009-09-18  Bruno Haible  <bruno@clisp.org>
10909
10910         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10911         Reported by <erobles@sensacd.com.mx>.
10912
10913 2009-09-17  Eric Blake  <ebb9@byu.net>
10914
10915         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10916         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10917         slashes when checking if last component is missing.
10918         * tests/test-canonicalize.c (main): Test this.
10919
10920         canonicalize, canonicalize-lgpl: honor // if distinct from /
10921         * modules/canonicalize (Files): Add double-slash-root.m4.
10922         * modules/canonicalize-lgpl (Files): Likewise.
10923         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10924         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10925         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10926         fallback definition.
10927         (canonicalize_filename_mode): Use it to protect //.
10928         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10929         (__realpath): Likewise.
10930         * tests/test-canonicalize.c (main): Test this.
10931         * tests/test-canonicalize-lgpl.c (main): Likewise.
10932         * modules/canonicalize-tests (Depends-on): Add same-inode.
10933         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10934
10935         canonicalize-lgpl: fix glibc bug with trailing slash
10936         * m4/canonicalize-lgpl.m4: Move contents...
10937         * m4/canonicalize.m4: ...here.
10938         (gl_CANONICALIZE_LGPL): Factor realpath check...
10939         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10940         glibc 2.3.5 bug, fixed 2005-04-27.
10941         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10942         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10943         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10944         * modules/canonicalize-lgpl (Files): Manage file rename.
10945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10946         * modules/stdlib (Makefile.am): Substitute witness.
10947         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10948         is needed.
10949         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10950         replacement is required.
10951         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10952         * doc/glibc-functions/canonicalize_file_name.texi
10953         (canonicalize_file_name): Document this.
10954         * doc/posix-functions/realpath.texi (realpath): Likewise.
10955
10956         canonicalize-lgpl: reject non-directory with trailing slash
10957         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10958         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10959         catches failures in glibc 2.3.5.
10960         * tests/test-canonicalize.c (main): Likewise.
10961
10962         canonicalize-lgpl: use native realpath if it works
10963         * lib/canonicalize-lgpl.c (realpath): Guard with
10964         FUNC_REALPATH_WORKS.
10965         * lib/stdlib.in.h (realpath): Make declaration optional based on
10966         HAVE_REALPATH.
10967         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10968         native realpath works.
10969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10970         * modules/stdlib (Makefile.am): Substitute witness.
10971
10972         canonicalize, canonicalize-lgpl: use <stdlib.h>
10973         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10974         (Include): Mention <stdlib.h>.
10975         (configure.ac): Mention functions we provide.
10976         * modules/canonicalize (configure.ac): Likewise.
10977         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10978         realpath if canonicalize_file_name is missing.
10979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10980         * modules/stdlib (Makefile.am): Substitute witnesses.
10981         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10982         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10983         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10984         * NEWS: Document this.
10985         * doc/glibc-functions/canonicalize_file_name.texi
10986         (canonicalize_file_name): Likewise.
10987         * doc/posix-functions/realpath.texi (realpath): Likewise.
10988         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10989
10990         test-canonicalize: consolidate into single C program
10991         * tests/test-canonicalize.sh: Delete; move setup into...
10992         * tests/test-canonicalize.c (main): ...the program, making it
10993         easier to run in debugger.  Add some tests.
10994         * modules/canonicalize-tests (Files): Remove unused file.
10995         (Depends-on): Add progname.
10996         (configure.ac, Makefile.am): Simplify.
10997
10998         test-canonicalize-lgpl: consolidate into single C program
10999         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
11000         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
11001         easier to run in debugger.  Add some tests.
11002         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
11003         (configure.ac, Makefile.am): Simplify.
11004
11005         canonicalize: avoid resolvepath
11006         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
11007         unnecessary checks.
11008         * lib/canonicalize.c (includes): Simplify.
11009         (canonicalize_file_name): Drop resolvepath implementation.
11010         * modules/canonicalize (Depends-on): Drop filenamecat.
11011
11012         canonicalize: don't lose errno
11013         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
11014         over calls to free.
11015
11016         canonicalize: simplify errno handling
11017         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
11018         assignment.
11019
11020         canonicalize, canonicalize-lgpl: update module dependencies
11021         * modules/canonicalize (Depends-on): Add extensions, lstat,
11022         pathmax, stdlib.
11023         (Files): Drop pathmax.h.
11024         (configure.ac): Adjust macro name.
11025         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
11026         lstat, stdlib, sys_stat.
11027         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
11028         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
11029         extensions.
11030         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
11031         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
11032         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
11033         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
11034         declaration, if available.
11035         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
11036         we can rely on the readlink module.
11037         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
11038         (includes): Use <unistd.h> unconditionally.
11039
11040 2009-09-17  Eric Blake  <ebb9@byu.net>
11041
11042         maint: make Include sections of modules consistent
11043         * modules/alloca: Use only header name; no need to list #include.
11044         * modules/alloca-opt: Likewise.
11045         * modules/arpa_inet: Likewise.
11046         * modules/canon-host: Likewise.
11047         * modules/configmake: Likewise.
11048         * modules/dirent: Likewise.
11049         * modules/eealloc: Likewise.
11050         * modules/environ: Likewise.
11051         * modules/fchdir: Likewise.
11052         * modules/fcntl: Likewise.
11053         * modules/fcntl-h: Likewise.
11054         * modules/gethrxtime: Likewise.
11055         * modules/gettime: Likewise.
11056         * modules/ignore-value: Likewise.
11057         * modules/inet_ntop: Likewise.
11058         * modules/inet_pton: Likewise.
11059         * modules/inttypes: Likewise.
11060         * modules/isnand-nolibm: Likewise.
11061         * modules/isnanf-nolibm: Likewise.
11062         * modules/mbchar: Likewise.
11063         * modules/mbfile: Likewise.
11064         * modules/mbiter: Likewise.
11065         * modules/mbuiter: Likewise.
11066         * modules/netdb: Likewise.
11067         * modules/netinet_in: Likewise.
11068         * modules/nproc: Likewise.
11069         * modules/pagealign_alloc: Likewise.
11070         * modules/poll: Likewise.
11071         * modules/printf-frexp: Likewise.
11072         * modules/pthread: Likewise.
11073         * modules/putenv: Likewise.
11074         * modules/random_r: Likewise.
11075         * modules/relocatable-prog: Likewise.
11076         * modules/search: Likewise.
11077         * modules/select: Likewise.
11078         * modules/selinux-h: Likewise.
11079         * modules/settime: Likewise.
11080         * modules/signal: Likewise.
11081         * modules/size_max: Likewise.
11082         * modules/socklen: Likewise.
11083         * modules/ssize_t: Likewise.
11084         * modules/stdarg: Likewise.
11085         * modules/stdbool: Likewise.
11086         * modules/stddef: Likewise.
11087         * modules/stdint: Likewise.
11088         * modules/stdio: Likewise.
11089         * modules/stdlib: Likewise.
11090         * modules/string: Likewise.
11091         * modules/strings: Likewise.
11092         * modules/sys_file: Likewise.
11093         * modules/sys_ioctl: Likewise.
11094         * modules/sys_select: Likewise.
11095         * modules/sys_socket: Likewise.
11096         * modules/sys_stat: Likewise.
11097         * modules/sys_time: Likewise.
11098         * modules/sys_times: Likewise.
11099         * modules/sys_utsname: Likewise.
11100         * modules/sys_wait: Likewise.
11101         * modules/sysexits: Likewise.
11102         * modules/time: Likewise.
11103         * modules/times: Likewise.
11104         * modules/tmpfile: Likewise.
11105         * modules/trim: Likewise.
11106         * modules/unistd: Likewise.
11107         * modules/wchar: Likewise.
11108         * modules/wctype: Likewise.
11109
11110 2009-09-17  Bruno Haible  <bruno@clisp.org>
11111
11112         Make getdate.y compile on QNX and NetBSD 5 / i386.
11113         * m4/getdate.m4 (gl_GETDATE): Conditionally define
11114         TIME_T_FITS_IN_LONG_INT.
11115         * lib/getdate.y (long_time_t): New type.
11116         (relative_time): Change type of 'seconds' field to long_time_t.
11117         (get_date): Update types of local variables. Check against overflow
11118         during conversion from long_time_t to time_t.
11119         Reported by Matt Kraai <kraai@ftbfs.org>
11120         and Hasso Tepper <hasso@netbsd.org>.
11121
11122 2009-09-17  Bruno Haible  <bruno@clisp.org>
11123
11124         * modules/COPYING: Update copyright years.
11125         * modules/README: Likeiwse.
11126         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
11127         Reported by Ian Beckwith <ianb@erislabs.net>.
11128
11129 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11130
11131         * users.txt: Update references for gnuit package.
11132
11133 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11134
11135         * m4/getdelim.m4: Fix typo in copyright line.
11136
11137 2009-09-17  Bruno Haible  <bruno@clisp.org>
11138
11139         * lib/atoll.c: Use the standard header with GPL copyright.
11140         * lib/argz.in.h: Likewise.
11141         * lib/glob.c: Likewise.
11142         * lib/glob-libc.h: Likewise.
11143         * lib/random_r.c: Likewise.
11144         * lib/siglist.h: Likewise.
11145         * lib/strsignal.c: Likewise.
11146         Reported by Ian Beckwith <ianb@erislabs.net>.
11147
11148 2009-09-17  Eric Blake  <ebb9@byu.net>
11149
11150         rmdir: ensure correct dependency order
11151         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
11152
11153 2009-09-17  Bruno Haible  <bruno@clisp.org>
11154
11155         Disable assertion that fails on NetBSD 5 / i386.
11156         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
11157         Reported by Sam Steingold <sds@gnu.org>
11158         and Hasso Tepper <hasso@netbsd.org>.
11159
11160 2009-09-16  Eric Blake  <ebb9@byu.net>
11161
11162         unlinkdir: port to mingw
11163         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
11164         on which no one can unlink a directory.
11165
11166         stdlib: sort witness names
11167         * modules/stdlib (Makefile.am): Sort replacements.
11168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11169         * lib/stdlib.in.h: Likewise.
11170
11171         parse-duration-tests: avoid link failure
11172         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
11173         LIBINTL.
11174         Reported by Tom G. Christensen.
11175
11176         openat-tests: ensure unlinkat behaves like rmdir
11177         * tests/test-rmdir.c (main): Factor guts...
11178         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11179         * modules/rmdir-tests (Files): Ship new file.
11180         * modules/openat-tests: New test.
11181         * tests/test-unlinkat.c: Likewise.
11182
11183         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11184         * modules/rmdir-errno (Status, Notice): Now obsolete.
11185
11186         rmdir: work around cygwin 1.5.x and mingw bugs
11187         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11188         * lib/rmdir.c (rmdir): Work around it.
11189         * modules/rmdir (Status, Notice): No longer obsolete.
11190         (Files): Add dos.m4.
11191         (Depends-on): Add unistd.
11192         (configure.ac): Set witnesses.
11193         (License): Relax to LGPLv2+.
11194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11195         * modules/unistd (Makefile.am): Substitute witnesses.
11196         * lib/unistd.in.h (rmdir): Declare replacement.
11197         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11198         * modules/rmdir-tests: New tests.
11199         * tests/test-rmdir.c: Likewise.
11200
11201 2009-09-15  Eric Blake  <ebb9@byu.net>
11202
11203         fchdir: improve use of replacement functions
11204         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11205         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11206         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11207         REPLACE_CLOSEDIR.
11208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11209         * modules/sys_stat (Makefile.am): Substitute correct witness.
11210         * modules/dirent (Makefile.am): Likewise.
11211         * modules/unistd (Makefile.am): Likewise.
11212         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11213         * lib/unistd.in.h (dup): Likewise.
11214         * lib/sys_stat.in.h (fstat): Likewise.
11215
11216         maint: ignore gnulib-tool temp files
11217         * .gitignore: Ignore files created during gnulib-tool --test.
11218
11219 2009-09-13  Jim Meyering  <meyering@redhat.com>
11220
11221         posixtm: don't reject a time that specify "60" as the number of seconds
11222         * lib/posixtm.c (posixtime): The code to reject invalid dates
11223         would also reject a time specified with the .60 suffix.
11224         But POSIX allows that, in order to accommodate leap seconds.
11225         So don't reject it.
11226         (main): Adjust tests accordingly.
11227         * modules/posixtm (Depends-on): Add stpcpy.
11228
11229 2009-09-11  Jim Meyering  <meyering@redhat.com>
11230
11231         announce-gen: include [$release_type] in emitted Subject:
11232         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11233         e.g., [stable] in the emitted Subject: line.
11234
11235 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11236
11237         Remove obsolete macros from several modules.
11238         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11239         obsolete Autoconf macros with their modern counterparts.
11240         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11241         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11242         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11243         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11244         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11245         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11247         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11248         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11249         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11250         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11251         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11252         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11253         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11254         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11255         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11256         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11257         * m4/time_r.m4 (gl_TIME_R): Likewise.
11258         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11259         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11260         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11261
11262         Fix copyright header in build-aux scripts.
11263         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11264         recommendation.
11265         * build-aux/ncftpput-ftp: Likewise.
11266         * build-aux/update-copyright: Likewise.
11267
11268 2009-09-09  Eric Blake  <ebb9@byu.net>
11269
11270         test-link: allow Linux choice of errno
11271         * tests/test-link.c (main): Relax test for alternate error.
11272
11273         strndup: fix improper m4 caching
11274         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11275         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11276         (gl_PREREQ_STRNDUP): Delete.
11277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11278         * modules/string (Makefile.am): Substitute it.
11279         * lib/string.in.h (strndup): Modernize prototype.
11280
11281         getcwd: port to mingw
11282         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11283         different from the POSIX assumptions made throughout the getcwd
11284         module; fortunately, the mingw getcwd does not need replacement.
11285         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11286         * modules/getcwd-tests: New test.
11287         * tests/test-getcwd.c: Likewise.
11288
11289         link: fix platform bugs
11290         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11291         * lib/link.c (link): Work around them.  Fix related mingw bug.
11292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11293         * modules/unistd (Makefile.am): Substitute it.
11294         * lib/unistd.in.h (link): Declare replacement.
11295         * doc/posix-functions/link.texi (link): Document this.
11296         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11297
11298         test-link: consolidate into single C program, test more cases
11299         * tests/test-link.sh: Delete.
11300         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11301         at least Cygwin and Solaris.
11302         * modules/link-tests (Files): Remove unused file.
11303         (Depends-on): Add errno, sys_stat.
11304         (Makefile.am): Simplify.
11305
11306 2009-09-08  Bruno Haible  <bruno@clisp.org>
11307
11308         Work around towlower, towupper bug on mingw.
11309         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11310         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11311         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11312         * doc/posix-functions/towupper.texi: Likewise.
11313         Reported by Eric Blake.
11314
11315 2009-09-08  Jim Meyering  <meyering@redhat.com>
11316
11317         build: don't try to run autoheader if we don't use it
11318         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11319         is not used in configure.ac.
11320
11321 2009-09-08  Eric Blake  <ebb9@byu.net>
11322
11323         euidaccess: fix compilation error
11324         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11325
11326         rawmemchr: relax license
11327         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11328         okay.
11329         Reported by Jim Meyering.
11330
11331         mkfifoat: new module
11332         * modules/mkfifoat: New file.
11333         * lib/mkfifoat.c: Likewise.
11334         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11335         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11336         * modules/sys_stat (Makefile.am): Use them.
11337         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11338         * MODULES.html.sh (File system functions): Mention module.
11339         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11340         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11341         * modules/mkfifoat-tests: New test.
11342         * tests/test-mkfifoat.c: Likewise.
11343
11344         strchrnul: relax license
11345         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11346         okay.
11347         Reported by Jim Meyering.
11348
11349 2009-09-08  Eric Blake  <ebb9@byu.net>
11350
11351         fstatat: fix compilation on Solaris
11352         * lib/fstatat.c (includes): Add fcntl.h.
11353         Reported by Pádraig Brady.
11354
11355 2009-09-07  Eric Blake  <ebb9@byu.net>
11356
11357         rename: modernize replacement
11358         * modules/rename (Depends-on): Add stdio.
11359         (configure.ac): Declare witness.
11360         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11361         stdio take care of replacement.
11362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11363         * modules/stdio (Makefile.am): Substitute them.
11364         * lib/stdio.in.h (rename): Declare replacement.
11365         * lib/rename.c (includes): Allow cross-compilation to non-windows
11366         machines.
11367         * doc/posix-functions/rename.texi (rename): Improve
11368         documentation.
11369
11370         stdio: sort witness names
11371         * modules/stdio (Makefile.am): Sort replacements.
11372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11373         * lib/stdio.in.h: Likewise.
11374
11375         getcwd: minor cleanups
11376         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11377         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11378
11379         openat: provide more convenience names
11380         * modules/faccessat (configure.ac): Add C witness.
11381         * lib/unistd.in.h (readlinkat): Fix typo.
11382         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11383         convenience wrappers.
11384         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11385         wrappers in syntax checks.
11386
11387 2009-09-06  Eric Blake  <ebb9@byu.net>
11388
11389         doc: fix comments in recent patches
11390         * lib/faccessat.c: Mention correct function.
11391         * lib/fchmodat.c: Likewise.
11392         * lib/fchownat.c: Likewise.
11393         * lib/symlinkat.c: Likewise.
11394         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11395         constants.
11396
11397         faccessat, symlinkat: continue cleanup of previous patch
11398         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11399         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11400         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11402         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11403         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11404         set.
11405
11406 2009-09-06  Bruno Haible  <bruno@clisp.org>
11407
11408         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11409         (fstatat): Declare if GNULIB_FSTATAT is set.
11410         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11411         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11412         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11413         * modules/fcntl-h (Files): Remove m4/openat.m4.
11414         * modules/sys_stat (Files): Remove m4/openat.m4.
11415         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11416         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11417         * modules/unistd (Files): Remove m4/openat.m4.
11418         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11419         GNULIB_OPENAT.
11420         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11421         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11422         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11423         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11424         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11425         gl_OPENAT_DEFAULTS.
11426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11427         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11428         Don't require gl_OPENAT_DEFAULTS.
11429         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11430         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11431         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11432         (gl_OPENAT_DEFAULTS): Remove macro.
11433
11434 2009-09-06  Bruno Haible  <bruno@clisp.org>
11435
11436         * modules/openat (configure.ac): Remove unneeded witness.
11437
11438 2009-09-06  Bruno Haible  <bruno@clisp.org>
11439
11440         Set errno to ENOSYS when a function is entirely unsupported.
11441         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11442         EOPNOTSUPP.
11443         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11444         * modules/chown (Depends-on): Remove errno.
11445
11446 2009-09-06  Bruno Haible  <bruno@clisp.org>
11447
11448         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11449
11450 2009-09-06  Bruno Haible  <bruno@clisp.org>
11451
11452         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11453
11454 2009-09-06  Ben Pfaff  <blp@gnu.org>
11455             Bruno Haible  <bruno@clisp.org>
11456
11457         Work around a glibc bug in strtok_r.
11458         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11459         Undefine if UNDEFINE_STRTOK_R is set.
11460         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11462         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11463         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11464         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11465         UNDEFINE_STRTOK_R.
11466         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11467
11468 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11469
11470         exclude: minor fix
11471         * lib/exclude.c: Include wctype.h
11472
11473 2009-09-06  Akim Demaille  <demaille@gostai.com>
11474
11475         bootstrap: improve error message
11476         * build-aux/bootstrap (find_tool): Upon failure, report the list
11477         of candidates.
11478         Honor the initial value of the envvar.
11479
11480 2009-09-05  Eric Blake  <ebb9@byu.net>
11481
11482         symlinkat: new module
11483         * modules/symlinkat: New file.
11484         * lib/symlinkat.c: Likewise.
11485         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11487         * modules/unistd (Makefile.am): Use them.
11488         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11489         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11490         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11491         * MODULES.html.sh (File system functions): Mention module.
11492         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11493         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11494         * modules/symlinkat-tests: New test.
11495         * tests/test-symlinkat.c: Likewise.
11496
11497         test-openat-safer: add more checks
11498         * tests/test-openat-safer.c (main): Check more code paths.
11499
11500 2009-09-05  Jim Meyering  <meyering@redhat.com>
11501
11502         syntax-check: detect unnecessary inclusion of openat.h
11503         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11504
11505 2009-09-05  Bruno Haible  <bruno@clisp.org>
11506
11507         Support towlower, towupper.
11508         * doc/posix-functions/towlower.texi: Mention module wctype.
11509         * doc/posix-functions/towupper.texi: Likewise.
11510         * lib/wctype.in.h (towlower, towupper): New functions.
11511         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11512         (ASSERT): New macro.
11513         (e): New variable.
11514         (main): Test also towlower, towupper. Test WEOF argument.
11515         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11516
11517 2009-09-05  Bruno Haible  <bruno@clisp.org>
11518
11519         Fix conversion behaviour when the input is invalid.
11520         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11521         mark occurring in first pass of indirect conversion.
11522         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11523         input.
11524         Found by clang's static analyzer.
11525
11526 2009-09-05  Bruno Haible  <bruno@clisp.org>
11527
11528         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11529         where direct conversion is possible.
11530
11531 2009-09-04  Eric Blake  <ebb9@byu.net>
11532
11533         openat: fail with ENOENT on empty name
11534         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11535         buffer.
11536
11537         link-follow: fix logic bug in prior patch
11538         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11539         reversed sense of yes and no in prior patch.  Avoid confusing
11540         compilation failure with desired semantics.
11541
11542         link-follow: accomodate mingw and cross-compilation
11543         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11544         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11545         cross-compilation results to -1, to make linkat easier to
11546         implement when cross-compiling.  Trivially support mingw.
11547         * modules/link-follow (configure.ac): Call new name.
11548         * NEWS: Mention this.
11549
11550 2009-09-03  Eric Blake  <ebb9@byu.net>
11551
11552         faccessat: compile replacement
11553         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11554         needed.
11555
11556         fts: fix compilation error
11557         * lib/fts.c (includes): Re-add "openat.h", for
11558         openat_needs_fchdir.
11559
11560         faccessat: new module
11561         * modules/faccessat: New file.
11562         * lib/faccessat.c: Likewise.
11563         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11565         * modules/unistd (Makefile.am): Use it.
11566         * lib/unistd.in.h (faccessat): Declare it.
11567         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11568         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11569         * MODULES.html.sh (File system functions): Mention it.
11570         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11571         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11572
11573         euidaccess: prefer POSIX over non-standard implementation
11574         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11575         * lib/euidaccess.c (euidaccess): Use it if available.
11576
11577         openat: make template easier to use
11578         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11579         AT_FUNC_F2 to be undefined.
11580         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11581         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11582         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11583         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11584         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11585         Likewise.
11586         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11587         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11588         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11589         Likewise.
11590
11591         openat: declare in POSIX headers
11592         * NEWS: Mention this.
11593         * modules/openat (configure.ac): Declare witnesses.
11594         (Depends-on): Add fcntl-h, sys_stat, unistd.
11595         (Include): Mention correct headers.
11596         * modules/fcntl-h (Depends-on): Add link-warning.
11597         (Files): Add openat.m4.
11598         (Makefile.am): Substitute witnesses.
11599         * modules/sys_stat (Files, Makefile.am): Likewise.
11600         * modules/unistd (Files, Makefile.am): Likewise.
11601         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11602         (gl_OPENAT_DEFAULTS): New macro.
11603         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11605         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11606         (SYS_STAT_H): Remove unused variable.
11607         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11608         * lib/fcntl--.h (includes): Remove unneeded header.
11609         * lib/openat-safer.c (includes): Likewise.
11610         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11611         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11612         appropriate headers.
11613         (__OPENAT_PREFIX): Delete.
11614         * lib/fcntl.in.h (openat): Provide declaration.
11615         (AT_FDCWD): Fix Solaris bug.
11616         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11617         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11618         * lib/fchmodat.c (includes):  Adjust to find declaration.
11619         * lib/fchownat.c (includes): Likewise.
11620         * lib/mkdirat.c (includes): Likewise.
11621         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11622         still visible.
11623
11624 2009-09-02  Eric Blake  <ebb9@byu.net>
11625
11626         errno: use consistently
11627         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11628         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11629         * lib/canonicalize.c (ELOOP): Likewise.
11630         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11631         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11632         * lib/lchown.c (EOPNOTSUPP): Likewise.
11633         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11634         * lib/savewd.c (ESTALE): Likewise.
11635         * lib/settime.c (ENOSYS): Likewise.
11636         * lib/utimens.c (ENOSYS): Likewise.
11637         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11638         * lib/chdir-safer.c (ELOOP): Likewise.
11639         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11640         * modules/c-stack (Depends-on): Add errno.
11641         * modules/canonicalize (Depends-on): Likewise.
11642         * modules/chdir-safer (Depends-on): Likewise.
11643         * modules/fdopendir (Depends-on): Likewise.
11644         * modules/inet_ntop (Depends-on): Likewise.
11645         * modules/inet_pton (Depends-on): Likewise.
11646         * modules/lchown (Depends-on): Likewise.
11647         * modules/openat (Depends-on): Likewise.
11648         * modules/savewd (Depends-on): Likewise.
11649         * modules/settime (Depends-on): Likewise.
11650         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11651
11652         fts: avoid leaking fds
11653         * modules/fts (Depends-on): Add cloexec.
11654         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11655         flag.
11656
11657         fts: make directory fds more robust
11658         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11659         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11660
11661         backupfile, chdir-long, fts, savedir: make safer
11662         * lib/backupfile.c (includes): Use "dirent--.h", since
11663         numbered_backup can write to stderr during readdir.
11664         * lib/savedir.c (includes): Likewise.
11665         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11666         emulation can write to stderr on failure.
11667         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11668         * lib/getcwd.c: Document why opendir_safer is unused.
11669         * lib/glob.c: Likewise.
11670         * lib/scandir.c: Likewise.
11671         * lib/openat-proc.c: Likewise, for open_safer.
11672         * modules/backupfile (Depends-on): Add dirent-safer.
11673         * modules/savedir (Depends-on): Likewise.
11674         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11675         * modules/chdir-long (Depends-on): Add openat-safer.
11676
11677         openat-safer: new module
11678         * modules/openat-safer: New file.
11679         * lib/openat-safer.c: Likewise.
11680         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11681         * lib/fcntl-safer.h (openat_safer): Declare.
11682         * lib/fcntl--.h (openat): Override.
11683         * MODULES.html.sh (File descriptor based I/O): Mention it.
11684         * lib/openat.h: Add double-inclusion guards.
11685         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11686         "fcntl--.h", so we can implement openat.
11687         * modules/openat-safer-tests: New test.
11688         * tests/test-openat-safer.c: New file.
11689
11690         dirent-safer: new module
11691         * modules/dirent-safer: New file.
11692         * lib/dirent--.h: Likewise.
11693         * lib/dirent-safer.h: Likewise.
11694         * lib/opendir-safer.c: Likewise.
11695         * m4/dirent-safer.m4: Likewise.
11696         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11697         * modules/dirent-safer-tests: New test.
11698         * tests/test-dirent-safer.c: New file.
11699         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11700
11701         fdopendir: optimize on mingw
11702         * lib/unistd.in.h (_gl_directory_name): New prototype.
11703         * lib/fchdir.c (_gl_directory_name): Implement it.
11704         (fchdir): Use it to simplify implementation.
11705         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11706         fchdir, when available, to avoid calling [f]chdir().
11707
11708         fdopendir: split into its own module
11709         * lib/openat.c (fdopendir): Move...
11710         * lib/fdopendir.c: ...into new file.
11711         * modules/fdopendir: New module.
11712         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11713         * modules/openat (Depends-on): Add fdopendir.
11714         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11715         fdopendir here.
11716         * modules/savedir (Depends-on): Only need fdopendir, not full
11717         openat.
11718         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11719         * lib/openat.h (fdopendir): Drop prototype.
11720         * lib/dirent.in.h (fdopendir): Provide prototype.
11721         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11722         * modules/dirent (Makefile.am): Substitute them.
11723         * MODULES.html.sh (File system functions): Mention it.
11724         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11725         * modules/fdopendir-tests: New file.
11726         * tests/test-fdopendir.c: Likewise.
11727
11728         fchdir: use more consistent macro convention
11729         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11730         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11731         REPLACE_FCHDIR, rather than relying on config.h macros.
11732         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11733         inside a single make-time REPLACE_FCHDIR block, rather than using
11734         the config.h FCHDIR_REPLACEMENT.
11735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11736         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11737         Manage fstat replacement.
11738         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11739         REPLACE_FCHDIR.
11740         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11741         (Makefile.am): Substitute REPLACE_FCHDIR.
11742         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11743         FCHDIR_REPLACEMENT.
11744         * lib/dup-safer.c (dup_safer): Likewise.
11745         * lib/dup2.c (rpl_dup2): Likewise.
11746         * lib/dup3.c (rpl_dup3): Likewise.
11747         * lib/open.c (rpl_open): Likewise.
11748
11749         fchdir: simplify error handling, and support dup3
11750         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11751         stdbool, malloc-posix, realloc-posix.
11752         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11753         (ensure_dirs_slot): Return false on allocation failure.
11754         (rpl_dup2): Delete.
11755         (_gl_register_dup): New function.
11756         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11757         (_gl_register_fd): Close fd on allocation failure.
11758         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11759         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11760         prototype.
11761         (rpl_dup2_fchdir): Delete prototype.
11762         * lib/open.c (open): Update caller.
11763         * lib/dup2.c (dup2): Track fchdir metadata.
11764         * lib/dup3.c (dup3): Likewise.
11765         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11766         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11767
11768 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11769
11770         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11771         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11772         don't pass arguments to AC_OUTPUT.
11773
11774 2009-09-02  Bruno Haible  <bruno@clisp.org>
11775
11776         * modules/mkdtemp (License): Relicense under LGPLv2+.
11777         Reported by Paolo Bonzini.
11778
11779 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11780
11781         Replace uses of obsolete autoconf macros in Jim's modules.
11782         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11783         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11784         can evoke a warning from autoconf when run with -Wobsolete
11785         enabled.  They were declared obsolete for good reasons (see
11786         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11787         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11788         should not continue using the deprecated macros.
11789         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11790         obsolete Autoconf macros with modern counterparts.
11791         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11792         * m4/dos.m4 (gl_AC_DOS): Likewise.
11793         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11794         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11795         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11796         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11797         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11798         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11799         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11800         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11801         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11802         Likewise.
11803         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11804         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11805         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11806         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11807         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11808         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11809
11810 2009-09-01  Eric Blake  <ebb9@byu.net>
11811
11812         fchdir: fix off-by-one bug in previous patch
11813         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11814         (_gl_unregister_fd): Delete useless if.
11815
11816 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11817
11818         maint.mk: sort the list of syntax-check rules
11819         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11820         easier to get a sense of progress when the rules are run sequentially
11821         and take a long time.
11822
11823 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11824
11825         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11826         * modules/netinet_in: Likewise.
11827         * modules/sys_file: Likewise.
11828         * modules/sys_ioctl: Likewise.
11829         * modules/sys_select: Likewise.
11830         * modules/sys_socket: Likewise.
11831         * modules/sys_stat: Likewise.
11832         * modules/sys_time: Likewise.
11833         * modules/sys_times: Likewise.
11834         * modules/sys_utsname: Likewise.
11835         * modules/sys_wait: Likewise.
11836
11837 2009-09-01  Jim Meyering  <meyering@redhat.com>
11838
11839         fts: help ensure that return values are not ignored
11840         * lib/fts_.h (__GNUC_PREREQ): Define.
11841         (__attribute_warn_unused_result__): Define.
11842         (fts_children, fts_close, fts_open, fts_read): Declare with
11843         __attribute_warn_unused_result__.
11844
11845         fts: fts_close now fails also when closing a dir file descriptor fails
11846         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11847         and propagate to caller, along with errno.
11848
11849         announce-gen: correct formatting in --help output
11850         * build-aux/announce-gen (usage): Move the one-line description in
11851         --help output "up", to where it belongs, just after Usage:.
11852
11853 2009-08-31  Eric Blake  <ebb9@byu.net>
11854
11855         fchdir: port to mingw
11856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11857         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11858         opened, then use a substitute.
11859         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11860         replacement.
11861         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11862         (_gl_register_fd): No need to check stat if open already filters
11863         all directories.
11864         (fchdir): Fix error condition to match POSIX.
11865         * modules/fchdir (Depends-on): Add sys_stat.
11866         * doc/posix-functions/open.texi (open): Document the limitation.
11867         * modules/fchdir-tests: New file.
11868         * tests/test-fchdir.c: Likewise.
11869
11870         canonicalize: allow cross-testing from cygwin to mingw
11871         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11872         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11873         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11874         Likewise.
11875         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11876         target does not support symlinks.
11877         * tests/test-canonicalize-lgpl.sh: Likewise.
11878
11879         chown: avoid compilation warning on mingw
11880         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11881         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11882         mingw.
11883         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11884         * modules/chown (Depends-on): Add errno.
11885
11886 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11887
11888         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11889         command.
11890
11891 2009-08-31  Jim Meyering  <meyering@redhat.com>
11892
11893         canonicalize: remove useless initialization
11894         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11895         initialization of local, "end".
11896
11897 2009-08-30  Bruno Haible  <bruno@clisp.org>
11898
11899         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11900         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11901         ENOSYS.
11902
11903 2009-08-30  Bruno Haible  <bruno@clisp.org>
11904
11905         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11906         /usr/xpg4/bin/tr when it exists.
11907         * tests/test-pipe-filter-gi1.sh: Likewise.
11908
11909 2009-08-30  Bruno Haible  <bruno@clisp.org>
11910
11911         Work around deficient /usr/bin/id program on Solaris.
11912         * tests/test-file-has-acl.sh (ID): New variable.
11913         * tests/test-set-mode-acl.sh (ID): Likewise.
11914         * tests/test-copy-acl.sh (ID): Likewise.
11915         * tests/test-copy-file.sh (ID): Likewise.
11916
11917 2009-08-30  Bruno Haible  <bruno@clisp.org>
11918
11919         New module 'xstriconveh'.
11920         * lib/xstriconveh.h: New file.
11921         * lib/xstriconveh.c: New file.
11922         * modules/xstriconveh: New file.
11923
11924 2009-08-30  Bruno Haible  <bruno@clisp.org>
11925
11926         Make it easier to use mem_cd_iconveh.
11927         * lib/striconveh.h (iconveh_t): New type.
11928         (iconveh_open, iconveh_close): New declarations.
11929         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11930         with a single 'const iconveh_t *' argument.
11931         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11932         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11933         with a single 'const iconveh_t *' argument.
11934         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11935         * tests/test-striconveh.c (main): Update.
11936         * NEWS: Mention the change.
11937
11938 2009-08-30  Bruno Haible  <bruno@clisp.org>
11939
11940         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11941         problem.
11942
11943 2009-08-30  Bruno Haible  <bruno@clisp.org>
11944
11945         Work around iconv_open problem on Solaris.
11946         * lib/iconv_open-solaris.gperf: New file.
11947         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11948         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11949         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11950         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11951         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11952         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11953
11954 2009-08-29  Jim Meyering  <meyering@redhat.com>
11955
11956         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11957         * top/maint.mk (cvs-check): Remove target; it was just an alias
11958         to the better-named vc-diff-check.
11959         (maintainer-distcheck): Remove rule.  It was used only from
11960         the (alpha/beta/major) target, and all of its commands but one
11961         were coreutils-specific.
11962         (vc-dist): Remove rule.
11963         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11964         Run vc-diff-check, not vc-dist.
11965         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11966
11967 2009-08-27  Bruno Haible  <bruno@clisp.org>
11968
11969         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11970         of 0.
11971
11972 2009-08-27  Bruno Haible  <bruno@clisp.org>
11973
11974         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11975         compilers.
11976         * doc/func.texi: Document the SunPRO C bug.
11977
11978 2009-08-27  Bruno Haible  <bruno@clisp.org>
11979
11980         Fix link error on Solaris.
11981         * tests/test-parse-duration.c (xstrdup): Remove function.
11982
11983 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11984
11985         ignore-value: handle pointer types, too
11986         * lib/ignore-value.h (__attribute__): Remove definition.
11987         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11988         of a more concise and more-often effective "(void) i" statement.
11989         (ignore_ptr): New function to suppress warnings from functions that
11990         return pointers, and to make it explicit that one function doesn't
11991         handle all cases.
11992
11993 2009-08-25  Bruno Haible  <bruno@clisp.org>
11994
11995         dup2: work around a Linux bug.
11996         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11997         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11998         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11999         Reported by Simon Josefsson.
12000
12001 2009-08-25  Jim Meyering  <meyering@redhat.com>
12002
12003         libguestfs uses gnulib
12004         * users.txt: Add libguestfs.
12005
12006 2009-08-24  Eric Blake  <ebb9@byu.net>
12007
12008         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
12009         * lib/pipe2.c (includes): Add binary-io.h.
12010         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
12011
12012 2009-08-24  Bruno Haible  <bruno@clisp.org>
12013
12014         Tolerate declared but missing accept4 syscall.
12015         * lib/accept4.c (accept4): Invoke original accept4 function first, if
12016         available.
12017         * lib/sys_socket.in.h (accept4): If the function is already present,
12018         override it.
12019         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
12020         * modules/accept4 (Makefile.am): Compile accept4.c always.
12021         Reported by Paolo Bonzini and Eric Blake.
12022
12023 2009-08-23  Bruno Haible  <bruno@clisp.org>
12024
12025         New module 'accept4'.
12026         * lib/sys_socket.in.h (accept4): New declaration.
12027         * lib/accept4.c: New file.
12028         * m4/accept4.m4: New file.
12029         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12030         GNULIB_ACCEPT4, HAVE_ACCEPT4.
12031         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
12032         HAVE_ACCEPT4.
12033         * modules/accept4: New file.
12034         * doc/glibc-functions/accept4.texi: Mention the new module.
12035
12036 2009-08-24  Jim Meyering  <meyering@redhat.com>
12037
12038         progname: also set global program_invocation_name, when possible
12039         Before this change, a libtool-enabled program that calls glibc's
12040         error function would report the program name as
12041         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
12042         * modules/progname (configure.ac): Check for a declaration of
12043         program_invocation_name.
12044         * lib/progname.c:  Include <errno.h>.
12045         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
12046         Set program_invocation_name.
12047
12048 2009-08-23  Bruno Haible  <bruno@clisp.org>
12049
12050         * lib/dup3.c: Include <string.h>.
12051
12052 2009-08-23  Bruno Haible  <bruno@clisp.org>
12053
12054         * lib/dup3.c (dup3): Test only once whether the system actually exists.
12055         * lib/pipe2.c (pipe2): Likewise.
12056         Suggested by Eric Blake.
12057
12058 2009-08-23  Bruno Haible  <bruno@clisp.org>
12059
12060         Tolerate declared but missing dup3 syscall.
12061         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
12062         * lib/unistd.in.h (dup3): If the function is already present,
12063         override it.
12064         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
12065         * modules/dup3 (Makefile.am): Compile dup3.c always.
12066         Reported by Paolo Bonzini.
12067
12068 2009-08-23  Bruno Haible  <bruno@clisp.org>
12069
12070         Tolerate declared but missing pipe2 syscall.
12071         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
12072         available.
12073         * lib/unistd.in.h (pipe2): If the function is already present,
12074         override it.
12075         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
12076         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
12077         Reported by Paolo Bonzini.
12078
12079 2009-08-23  Bruno Haible  <bruno@clisp.org>
12080
12081         * lib/pipe2.c (pipe2): Move #ifs inside function.
12082
12083 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12084
12085         quotearg: document limitations of quote_these_too
12086         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
12087         those limitations are created.
12088         * lib/quotearg.h (set_char_quoting): Document that digits and
12089         letters that are special after backslash are not permitted.
12090         (quotearg_char): Cross-reference set_char_quoting documentation.
12091
12092 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
12093
12094         quotearg: implement custom_quoting_style
12095         * lib/quotearg.c: (struct quoting_options): Add left_quote and
12096         right_quote fields.
12097         (set_custom_quoting): New public function.
12098         (quotearg_buffer_restyled): Add left_quote and right_quote
12099         arguments, handle them very much like locale quoting, and update
12100         all uses.
12101         (quotearg_n_custom): New public function.
12102         (quotearg_n_custom_mem): New public function.
12103         (quotearg_custom): New public function.
12104         (quotearg_custom_mem): New public function.
12105         * lib/quotearg.h: Prototype and document new public functions.
12106         (enum quoting_style): For escape_quoting_style and
12107         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
12108         ignored even though they're otherwise like c_quoting_style.
12109         Add custom_quoting_style member and document with comparison to
12110         clocale_quoting_style.
12111         * tests/test-quotearg.c (custom_quotes): New array.
12112         (custom_results): New array.
12113         (main): Extend to test custom quoting.
12114
12115 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12116
12117         quotearg: fix right quote escaping when it's in quote_these_too
12118         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
12119         quote, be sure to prepend only one backslash.
12120         * tests/test-quotearg.c (use_quote_double_quotes): New function.
12121         (main): Test it.
12122
12123 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12124
12125         quotearg-tests: test escaping of embedded locale quotes
12126         * tests/test-quotearg.c (struct result_strings): Add member for
12127         new input.
12128         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
12129         (inputs): Add new input.
12130         (results_g): Add expected results.
12131         (flag_results): Likewise.
12132         (locale_results): Likewise.
12133         (compare_strings): Check those.
12134
12135 2009-08-23  Bruno Haible  <bruno@clisp.org>
12136
12137         Tests for module 'dup3'.
12138         * modules/dup3-tests: New file.
12139         * tests/test-dup3.c: New file.
12140
12141         New module 'dup3'.
12142         * lib/unistd.in.h (dup3): New declaration.
12143         * lib/dup3.c: New file.
12144         * m4/dup3.m4: New file.
12145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
12146         HAVE_DUP3.
12147         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
12148         * modules/dup3: New file.
12149         * doc/glibc-functions/dup3.texi: Mention the new module.
12150
12151 2009-08-23  Bruno Haible  <bruno@clisp.org>
12152
12153         Tweak the dup2 test.
12154         * tests/test-dup2.c (main): Create the test file empty. Verify that an
12155         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
12156         the test file is still empty. Fix argument order of lseek.
12157
12158 2009-08-23  Bruno Haible  <bruno@clisp.org>
12159
12160         Avoid test link errors when the modules getopt-gnu, gettext are used.
12161         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
12162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12163
12164 2009-08-23  Bruno Haible  <bruno@clisp.org>
12165
12166         Fix getdtablesize() on mingw.
12167         * lib/getdtablesize.c (getdtablesize): Implement differently.
12168         * lib/unistd.in.h (getdtablesize): Improve comment.
12169
12170 2009-08-23  Bruno Haible  <bruno@clisp.org>
12171
12172         New module 'mkostemp'.
12173         Based on Ulrich Drepper's 2007-08-10 change in glibc.
12174         * lib/stdlib.in.h (mksotemp): New declaration.
12175         * lib/mkostemp.c: New file, from glibc with modifications.
12176         * lib/tempname.h (GT_FILE): Remove outdated comment.
12177         (gen_tempname): Add flags argument.
12178         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12179         (__GT_FILE): Map to 1.
12180         (small_open, large_open): Remove macros.
12181         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12182         * lib/mkstemp.c (mkstemp): Update.
12183         * lib/mkdtemp.c (mkdtemp): Likewise.
12184         * m4/mkostemp.m4: New file.
12185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12186         HAVE_MKOSTEMP.
12187         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12188         HAVE_MKOSTEMP.
12189         * modules/mkostemp: New file, based on modules/mkstemp.
12190         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12191         * NEWS: Mention the change.
12192
12193 2009-08-23  Bruno Haible  <bruno@clisp.org>
12194
12195         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12196         Reported by Eric Blake.
12197
12198 2009-08-23  Bruno Haible  <bruno@clisp.org>
12199
12200         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12201         Reported by Eric Blake.
12202
12203 2009-08-23  Bruno Haible  <bruno@clisp.org>
12204
12205         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12206         * modules/pipe2 (Depends-on): Likewise.
12207
12208 2009-08-23  Eric Blake  <ebb9@byu.net>
12209
12210         fcntl-h: add O_TTY_INIT support
12211         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12212         * tests/test-fcntl-h.c (o): Test it.
12213         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12214
12215         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12216         * modules/fcntl: Move <fcntl.h> header replacement...
12217         * modules/fcntl-h: ...to new name, so as not to collide with
12218         like-named function.
12219         * tests/test-fcntl.c: Rename...
12220         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12221         * modules/fcntl-tests: Rename...
12222         * modules/fcntl-h-tests: ...to this.  Update test file name.
12223         * modules/chdir-long (Depends-on): Update clients.
12224         * modules/chdir-safer (Depends-on): Likewise.
12225         * modules/fcntl-safer (Depends-on): Likewise.
12226         * modules/fts (Depends-on): Likewise.
12227         * modules/mkancesdirs (Depends-on): Likewise.
12228         * modules/mkdir-p (Depends-on): Likewise.
12229         * modules/open (Depends-on): Likewise.
12230         * modules/savewd (Depends-on): Likewise.
12231         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12232         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12233
12234 2009-08-22  Bruno Haible  <bruno@clisp.org>
12235
12236         * modules/binary-io (License): Relicense under LGPL.
12237         * modules/pipe2 (License): Likewise.
12238
12239 2009-08-22  Bruno Haible  <bruno@clisp.org>
12240
12241         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12242         return value.
12243         * lib/pipe-filter-gi.c (filter_init): Likewise.
12244         Reported by Eric Blake.
12245
12246 2009-08-22  Bruno Haible  <bruno@clisp.org>
12247
12248         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12249         * modules/pipe (Depends-on): Add pipe2.
12250
12251 2009-08-22  Bruno Haible  <bruno@clisp.org>
12252
12253         Tests for module 'pipe2'.
12254         * modules/pipe2-tests: New file.
12255         * tests/test-pipe2.c: New file.
12256
12257         New module 'pipe2'.
12258         * lib/unistd.in.h (pipe2): New declaration.
12259         * lib/pipe2.c: New file.
12260         * m4/pipe2.m4: New file.
12261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12262         HAVE_PIPE2.
12263         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12264         * modules/pipe2: New file.
12265         * doc/glibc-functions/pipe2.texi: Mention the new module.
12266
12267 2009-08-22  Bruno Haible  <bruno@clisp.org>
12268
12269         Reference some new glibc functions.
12270         * doc/glibc-functions/accept4.texi: New file.
12271         * doc/glibc-functions/dup3.texi: New file.
12272         * doc/glibc-functions/mkostemp.texi: New file.
12273         * doc/glibc-functions/pipe2.texi: New file.
12274         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12275         (Glibc sys/socket.h): Refer to accept4.
12276         (Glibc unistd.h): Refer to dup3, pipe2.
12277         Reported by Eric Blake.
12278
12279 2009-08-22  Jim Meyering  <meyering@redhat.com>
12280             Bruno Haible  <bruno@clisp.org>
12281
12282         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12283         This makes it so packages using automake-1.11's silent-rules option
12284         can print e.g., a single "GEN    configmake.h" line, rather than
12285         the 30+ statements that perform the job.  If you want to see the
12286         actual commands, you can still run "make V=1".
12287         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12288         so that make output is abbreviated when those variables are defined
12289         appropriately.
12290         * modules/argz: Likewise.
12291         * modules/arpa_inet: Likewise.
12292         * modules/byteswap: Likewise.
12293         * modules/configmake: Likewise.
12294         * modules/dirent: Likewise.
12295         * modules/errno: Likewise.
12296         * modules/fcntl: Likewise.
12297         * modules/float: Likewise.
12298         * modules/fnmatch: Likewise.
12299         * modules/getopt-posix: Likewise.
12300         * modules/glob: Likewise.
12301         * modules/iconv_open: Likewise.
12302         * modules/inttypes: Likewise.
12303         * modules/localcharset: Likewise.
12304         * modules/locale: Likewise.
12305         * modules/math: Likewise.
12306         * modules/netdb: Likewise.
12307         * modules/netinet_in: Likewise.
12308         * modules/poll: Likewise.
12309         * modules/posix_spawnp-tests: Likewise.
12310         * modules/sched: Likewise.
12311         * modules/search: Likewise.
12312         * modules/selinux-h: Likewise.
12313         * modules/signal: Likewise.
12314         * modules/spawn: Likewise.
12315         * modules/stdarg: Likewise.
12316         * modules/stdbool: Likewise.
12317         * modules/stddef: Likewise.
12318         * modules/stdint: Likewise.
12319         * modules/stdio: Likewise.
12320         * modules/stdlib: Likewise.
12321         * modules/string: Likewise.
12322         * modules/strings: Likewise.
12323         * modules/sys_file: Likewise.
12324         * modules/sys_ioctl: Likewise.
12325         * modules/sys_select: Likewise.
12326         * modules/sys_socket: Likewise.
12327         * modules/sys_stat: Likewise.
12328         * modules/sys_time: Likewise.
12329         * modules/sys_times: Likewise.
12330         * modules/sys_utsname: Likewise.
12331         * modules/sys_wait: Likewise.
12332         * modules/sysexits: Likewise.
12333         * modules/time: Likewise.
12334         * modules/unistd: Likewise.
12335         * modules/wchar: Likewise.
12336         * modules/wctype: Likewise.
12337
12338 2009-08-22  Jim Meyering  <meyering@redhat.com>
12339
12340         announce-gen: detect write failure
12341         * build-aux/announce-gen: Add Coda at end.
12342         Remove equivalent-but-more-verbose block at top.
12343
12344 2009-08-19  Akim Demaille  <demaille@gostai.com>
12345
12346         bootstrap: --help to stdout.
12347         * bootstrap (usage): Don't send --help to stderr.
12348         Use a here doc instead of a long string.
12349
12350 2009-08-21  Eric Blake  <ebb9@byu.net>
12351
12352         test-popen-safer: split from test-popen
12353         * tests/test-popen.c (main): Move...
12354         * tests/test-popen.h: ...into new file.
12355         * tests/test-popen-safer2.c: New file.
12356         * modules/popen-tests (Files): Add test-popen.h.
12357         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12358         Suggested by Bruno Haible.
12359
12360         test-fcntl-safer: split from test-open
12361         * tests/test-open.c (main): Move...
12362         * tests/test-open.h: ...into new file.
12363         * tests/test-fcntl-safer.c: New file.
12364         * modules/open-tests (Files): Add test-open.h.
12365         * modules/fcntl-safer-tests: New file.
12366         Suggested by Bruno Haible.
12367
12368         test-fopen-safer: split from test-fopen
12369         * tests/test-fopen.c (main): Move...
12370         * tests/test-fopen.h: ...into new file.
12371         * tests/test-fopen-safer.c: New file.
12372         * modules/fopen-tests (Files): Add test-fopen.h.
12373         * modules/fopen-safer-tests: New file.
12374         Suggested by Bruno Haible.
12375
12376 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12377
12378         popen-safer: test O_CLOEXEC at run-time.
12379         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12380
12381 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12382
12383         fcntl: move more flags to the header
12384         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12385         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12386         * lib/fcntl.in.h: Do both things here.
12387
12388 2009-08-21  Jim Meyering  <meyering@redhat.com>
12389
12390         consistently remove $@-t before redirecting to it
12391         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12392         * modules/alloca-opt: Likewise.
12393         * modules/byteswap: Likewise.
12394         * modules/fnmatch: Likewise.
12395         * modules/getopt-posix: Likewise.
12396         * modules/glob: Likewise.
12397         * modules/poll: Likewise.
12398         * modules/posix_spawnp-tests: Likewise.
12399         * modules/sys_socket: Likewise.
12400         * modules/sysexits: Likewise.
12401
12402 2009-08-21  Eric Blake  <ebb9@byu.net>
12403
12404         popen: simplify access to original popen
12405         * lib/popen.c (rpl_popen): No need to worry about popen being a
12406         macro.
12407         Reported by Bruno Haible.
12408
12409 2009-08-20  Eric Blake  <ebb9@byu.net>
12410
12411         build: avoid some compiler warnings
12412         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12413         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12414         type.
12415         (new_exclude_segment, excluded_file_pattern_p)
12416         (excluded_file_name_p): Reduce scope.
12417         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12418         old-style declaration.
12419
12420 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12421
12422         * tests/test-exclude1.sh: Handle Windows EOL.
12423         * tests/test-exclude2.sh: Likewise.
12424         * tests/test-exclude3.sh: Likewise.
12425         * tests/test-exclude4.sh: Likewise.
12426         * tests/test-exclude5.sh: Likewise.
12427         * tests/test-exclude6.sh: Likewise.
12428         * tests/test-exclude7.sh: Likewise.
12429
12430 2009-08-19  Akim Demaille  <demaille@gostai.com>
12431
12432         bootstrap: find sha1sum when named gsha1sum.
12433         * bootstrap (find_tool): New.
12434         ($SHA1SUM): New.
12435         Use it.
12436
12437 2009-08-20  Jim Meyering  <meyering@redhat.com>
12438
12439         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12440         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12441         expression that converts "." in a file name to "\." in the resulting
12442         regexp.  Start with a dummy statement, so that prior shell variable
12443         definitions are expanded portably.  Reported by Simon Josefsson.
12444
12445 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12446
12447         Fix polling for writeability of a screen buffer.
12448         * lib/poll.c: Distinguish input and screen buffers for the
12449         Win32 implementation.
12450         * lib/select.c: Likewise.
12451
12452 2009-08-19  Eric Blake  <ebb9@byu.net>
12453
12454         popen-safer: prevent popen from clobbering std descriptors
12455         * modules/popen-safer: New file.
12456         * lib/popen-safer.c: Likewise.
12457         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12458         * lib/stdio--.h (popen): Provide override.
12459         * lib/stdio-safer.h (popen_safer): Provide declaration.
12460         * tests/test-popen.c (includes): Partially test this.
12461         * modules/popen-safer-tests: New file, for more tests.
12462         * tests/test-popen-safer.c: Likewise.
12463         * MODULES.html.sh (file stream based Input/Output): Mention it.
12464
12465         tests: test some of the *-safer modules
12466         * modules/fopen-safer (Depends-on): Add fopen.
12467         * modules/fcntl-safer (Depends-on): Add fcntl.
12468         * modules/stdlib-safer (Depends-on): Add stdlib.
12469         (configure.ac): Set indicator.
12470         * modules/unistd-safer (configure.ac): Likewise.
12471         * modules/tmpfile-safer (configure.ac): Likewise.
12472         (Depends-on): Add tmpfile.
12473         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12474         active.
12475         * tests/test-fopen.c (includes): Test safer versions when they are
12476         in use.
12477         * tests/test-open.c (includes): Likewise.
12478
12479         popen: fix cygwin 1.5 bug when stdin closed
12480         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12481         * modules/popen: New file.
12482         * modules/popen-tests: Likewise.
12483         * tests/test-popen.c: Likewise.
12484         * m4/popen.m4: Likewise.
12485         * lib/popen.c: Likewise.
12486         * lib/stdio.in.h (popen): New declaration.
12487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12488         * modules/stdio (Makefile.am): Likewise.
12489         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12490
12491 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12492
12493         maint.mk: give full control over update-copyright exclusions
12494         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12495         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12496         (update-copyright): Don't force inclusion of top-level
12497         ChangeLog.  Don't force exclusion of all COPYING files, but make
12498         them the default exclusion instead.
12499
12500 2009-08-16  Bruno Haible  <bruno@clisp.org>
12501
12502         Fix test failures on Solaris 10.
12503         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12504         tests when Solaris iconv() is used.
12505         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12506         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12507         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12508         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12509         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12510
12511 2009-08-16  Bruno Haible  <bruno@clisp.org>
12512
12513         Fix test failures on Solaris 10.
12514         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12515         'tr' program and pass it as first argument.
12516         * tests/test-pipe-filter-gi1.sh: Likewise.
12517         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12518         program as first argument.
12519         * tests/test-pipe-filter-gi1.c (main): Likewise.
12520
12521 2009-08-16  Eric Blake  <ebb9@byu.net>
12522
12523         fpurge: fix previous commits
12524         * modules/fpurge (Makefile.am): Make replacement conditional,
12525         partially reverting 2007-04-29 change; missed in previous
12526         attempt.
12527         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12528         is missing.
12529
12530 2009-08-16  Bruno Haible  <bruno@clisp.org>
12531
12532         Clarify fpurge's effect on the file position.
12533         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12534         * tests/test-fpurge.c (main): Make a second pass for checking the file
12535         position.
12536
12537 2009-08-16  Bruno Haible  <bruno@clisp.org>
12538
12539         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12540         declaration of fpurge is missing.
12541         * tests/test-fpurge.c (main): Check that the file has not more contents
12542         than expected. Close the file before removing it.
12543
12544 2009-08-15  Eric Blake  <ebb9@byu.net>
12545
12546         fpurge: don't wrap working cygwin implementation
12547         * lib/fpurge.c (fpurge): Fix comment typo.
12548         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12549         1.7 to avoid replacement.
12550         * tests/test-fpurge.c (main): Enhance test.
12551
12552 2009-08-15  Eric Blake  <ebb9@byu.net>
12553         and Jim Meyering  <meyering@redhat.com>
12554
12555         test-update-copyright: skip if perl is insufficient
12556         * tests/test-update-copyright.sh: Failure to run maintainer tool
12557         should not cause testsuite failure on cygwin 1.5.
12558
12559 2009-08-14  Eric Blake  <ebb9@byu.net>
12560
12561         doc: mention more functions added in cygwin 1.7.0
12562         * doc/posix-headers/limits.texi (limits.h): Update for recent
12563         cygwin additions.
12564         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12565         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12566         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12567         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12568         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12569
12570 2009-08-14  Eric Blake  <ebb9@byu.net>
12571
12572         maint.mk: simplify update-copyright rule
12573         * top/maint.mk (update-copyright-local): Delete, and document how
12574         to do it in cfg.mk instead.
12575         (update-copyright-exclude-regexp): Delete, and document how to do
12576         it in .x-update-copyright instead.
12577         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12578         exclude ChangeLog.
12579
12580 2009-08-14  Bruno Haible  <bruno@clisp.org>
12581
12582         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12583
12584 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12585
12586         maint.mk: support update-copyright-env
12587         * top/maint.mk (update-copyright-env): Define place-holder.
12588         (update-copyright): Expand $(update-copyright-env) before
12589         invoking update-copyright.
12590
12591 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12592
12593         update-copyright: implement forced reformatting
12594         * build-aux/update-copyright: Implement and document
12595         UPDATE_COPYRIGHT_FORCE.
12596         * tests/test-update-copyright.sh: Test it.
12597
12598 2009-08-14  Eric Blake  <ebb9@byu.net>
12599         and Bruno Haible  <bruno@clisp.org>
12600
12601         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12602         * tests/test-locale.c: Revert previous patch related to NULL.
12603         * tests/test-stdio.c: Likewise.
12604         * tests/test-stdlib.c: Likewise.
12605         * tests/test-string.c: Likewise.
12606         * tests/test-unistd.c: Likewise.
12607         * modules/time-tests (Depends-on): Add verify.
12608         * modules/wchar-tests (Depends-on): Likewise.
12609         * tests/test-time.c: Test for NULL compliance.
12610         * tests/test-wchar.c: Likewise.
12611         * modules/locale (Depends-on): Add stddef.
12612         * modules/stdio (Depends-on): Likewise.
12613         * modules/stdlib (Depends-on): Likewise.
12614         * modules/string (Depends-on): Likewise.
12615         * modules/time (Depends-on): Likewise.
12616         * modules/unistd (Depends-on): Likewise.
12617         * modules/wchar (Depends-on): Likewise.
12618         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12619         * lib/stdlib.in.h (includes): Likewise.
12620         * lib/string.in.h (includes): Likewise.
12621         * lib/time.in.h (includes): Likewise.
12622         * lib/unistd.in.h (includes): Likewise.
12623         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12624         replaced.
12625         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12626         * m4/stddef_h.m4: New file.
12627         * modules/stddef: Likewise.
12628         * lib/stddef.in.h: Likewise.
12629         * modules/stddef-tests: Likewise.
12630         * tests/test-stddef.c: Likewise.
12631         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12632         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12633         * doc/posix-headers/locale.texi (locale.h): Likewise.
12634         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12635         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12636         * doc/posix-headers/string.texi (string.h): Likewise.
12637         * doc/posix-headers/time.texi (time.h): Likewise.
12638         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12639         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12640
12641 2009-08-14  Eric Blake  <ebb9@byu.net>
12642
12643         doc: improve git diff of texinfo files
12644         * .gitattributes: Add rule for *.texi files, with hint on how to
12645         use it.
12646         Copied from m4, and based on a report by Bruno Haible.
12647
12648 2009-08-14  Bruno Haible  <bruno@clisp.org>
12649
12650         Disable multithread support by default on Cygwin 1.5.x for real.
12651         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12652
12653 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12654
12655         update-copyright: much ado about intervals
12656         * build-aux/update-copyright: Implement and document
12657         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12658         of copyright year intervals.
12659         Also, document UPDATE_COPYRIGHT_YEAR.
12660         * tests/test-update-copyright.sh: Test it.
12661
12662         update-copyright: convert 2-digit to 4-digit years
12663         * build-aux/update-copyright: Implement and document.
12664         * tests/test-update-copyright.sh: Update.
12665
12666 2009-08-14  Jim Meyering  <meyering@redhat.com>
12667
12668         test-exclude: avoid coreutils "make check" failure
12669         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12670         just as in test-argmatch.c.
12671
12672 2009-08-13  Eric Blake  <ebb9@byu.net>
12673
12674         test-dup2: fix bad assumption
12675         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12676         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12677
12678         test-version-etc: fix CRLF portability issue
12679         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12680         recognize \r.
12681         * tests/test-argp-version-etc-1.sh: Likewise.
12682
12683         getopt: update client modules
12684         * modules/argp (Depends-on): Use getopt-gnu.
12685         * modules/git-merge-changelog (Depends-on): Likewise.
12686         * modules/long-options (Depends-on): Likewise.
12687         * modules/xstrtol (Depends-on): Likewise.
12688
12689 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12690
12691         * tests/test-version-etc.sh: Don't fail on different
12692         project/version.  Don't fail on CRLF differences.  Rewrite to use
12693         multiple -e instead of multiple sed forks, suggested by Eric Blake
12694         <ebb9@byu.net>.
12695         * tests/test-argp-version-etc-1.sh: Likewise.
12696
12697 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12698
12699         * tests/test-version-etc.sh: Don't fail on different
12700         project/version.
12701
12702 2009-08-12  Bruno Haible  <bruno@clisp.org>
12703
12704         Tests for modules 'getopt-posix', 'getopt-gnu'.
12705         * modules/getopt-posix-tests: New file.
12706         * tests/test-getopt.c: New file.
12707         * tests/test-getopt.h: New file.
12708         * tests/test-getopt_long.h: New file.
12709
12710         New modules 'getopt-posix', 'getopt-gnu'.
12711         * modules/getopt-gnu: New file, renamed from modules/getopt.
12712         * modules/getopt-posix: New file.
12713         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12714         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12715         (gl_GETOPT): Remove macro.
12716         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12717         Disable the test against BSD systems that declare optreset. Test
12718         against mingw bug. Test against lack of support of optional arguments
12719         on many platforms.
12720         * doc/glibc-headers/getopt.texi: Update module name and list of
12721         relevant platforms.
12722         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12723         'getopt-gnu' and more portability problems.
12724         * NEWS: Mention the changes.
12725
12726 2009-08-12  Bruno Haible  <bruno@clisp.org>
12727
12728         Ensure that optarg etc. get declared by <unistd.h>.
12729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12730         AC_USE_SYSTEM_EXTENSIONS.
12731         * modules/getopt (Depends-on): Add 'extensions'.
12732
12733 2009-08-12  Bruno Haible  <bruno@clisp.org>
12734
12735         Avoid test link errors.
12736         * modules/pipe-filter-ii-tests (Makefile.am): Define
12737         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12738         * modules/pipe-filter-gi-tests (Makefile.am): Define
12739         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12740         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12741
12742 2009-08-12  Bruno Haible  <bruno@clisp.org>
12743
12744         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12745         gl_GETOPT_SUBSTITUTE before.
12746         (gl_GETOPT): Use it.
12747         * m4/argp.m4 (gl_ARGP): Update.
12748         Reported by Sergey Poznyakoff.
12749
12750         * m4/getopt.m4: Reorder macros.
12751         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12752         (gl_GETOPT_SUBSTITUTE): Remove macro.
12753
12754 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12755
12756         Minor improvement in gitlog-to-changelog
12757
12758         * build-aux/gitlog-to-changelog: New option `--format' makes
12759         output format string configurable.
12760
12761 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12762
12763         Optimize exclude: use hash tables for non-wildcard patterns.
12764
12765         * lib/exclude.c: Include hash.h and mbuiter.h
12766         (struct exclude_pattern, exclude_segment): New data types.
12767         (struct exclude): Rewrite.
12768         (fnmatch_pattern_has_wildcards): New function.
12769         (new_exclude_segment, free_exclude_segment): New functions.
12770         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12771         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12772         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12773         * modules/exclude: Depend on hash and mbuiter.
12774
12775         * modules/exclude-tests: New file.
12776         * tests/test-exclude.c: New file.
12777         * tests/test-exclude1.sh: New file.
12778         * tests/test-exclude2.sh: New file.
12779         * tests/test-exclude3.sh: New file.
12780         * tests/test-exclude4.sh: New file.
12781         * tests/test-exclude5.sh: New file.
12782         * tests/test-exclude6.sh: New file.
12783         * tests/test-exclude7.sh: New file.
12784
12785 2009-08-12  Bruno Haible  <bruno@clisp.org>
12786
12787         Ensure that getopt() gets declared by <unistd.h>.
12788         * lib/unistd.in.h: Conditionally include getopt.h.
12789         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12790         Set GNULIB_UNISTD_H_GETOPT.
12791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12792         GNULIB_UNISTD_H_GETOPT.
12793         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12794
12795 2009-08-12  Bruno Haible  <bruno@clisp.org>
12796
12797         Clarify logic.
12798         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12799         gl_replace_getopt instead of GETOPT_H.
12800
12801 2009-08-12  Bruno Haible  <bruno@clisp.org>
12802
12803         * m4/getopt.m4: Add comments.
12804
12805 2009-08-12  Bruno Haible  <bruno@clisp.org>
12806
12807         Disable multithread support by default on Cygwin 1.5.x.
12808         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12809         set gl_use_threads=no if not specified otherwise.
12810
12811 2009-08-11  Bruno Haible  <bruno@clisp.org>
12812
12813         Avoid compilation error on NetBSD 5.0.
12814         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12815         * tests/test-stdio.c: Likewise.
12816         * tests/test-stdlib.c: Likewise.
12817         * tests/test-string.c: Likewise.
12818         * tests/test-unistd.c: Likewise.
12819         Reported by Greg Troxel <gdt@ir.bbn.com>
12820         at <https://savannah.gnu.org/support/?106973>.
12821
12822 2009-08-11  Bruno Haible  <bruno@clisp.org>
12823
12824         * modules/dup2-tests (Depends-on): Remove close.
12825
12826         Undo 2009-07-19 commit.
12827         * modules/acl-tests (Depends-on): Remove close.
12828         * modules/binary-io-tests (Depends-on): Likewise.
12829         * modules/closein-tests (Depends-on): Likewise.
12830         * modules/flock-tests (Depends-on): Likewise.
12831         * modules/fsync-tests (Depends-on): Likewise.
12832         * modules/lseek-tests (Depends-on): Likewise.
12833         * modules/pipe-tests (Depends-on): Likewise.
12834         * modules/posix_spawn-tests (Depends-on): Likewise.
12835         * modules/posix_spawnp-tests (Depends-on): Likewise.
12836         * modules/stat-time-tests (Depends-on): Likewise.
12837         * modules/yesno-tests (Depends-on): Likewise.
12838
12839 2009-08-10  Bruno Haible  <bruno@clisp.org>
12840
12841         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12842
12843 2009-08-10  Bruno Haible  <bruno@clisp.org>
12844
12845         Fix a gcc warning.
12846         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12847
12848 2009-08-10  Bruno Haible  <bruno@clisp.org>
12849
12850         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12851         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12852         not only the first time.
12853         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12854         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12855         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12856         is 1, not only the the first time.
12857
12858 2009-08-10  Bruno Haible  <bruno@clisp.org>
12859
12860         Make it possible to use module 'gethostname' without module 'close'.
12861         * lib/unistd.in.h (close): Evoke a link error only if
12862         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12864         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12865         * modules/unistd (Makefile.am): Substitute
12866         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12867         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12868         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12869         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12870         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12871         * modules/sys_ioctl (Makefile.am): Substitute
12872         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12873         * modules/socket (configure.ac): On native Windows, set
12874         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12875         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12876         Reported by Sam Steingold <sds@gnu.org>.
12877
12878 2009-08-10  Bruno Haible  <bruno@clisp.org>
12879
12880         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12881         * modules/ioctl (configure.ac): Likewise.
12882
12883 2009-08-10  Bruno Haible  <bruno@clisp.org>
12884
12885         Avoid collision between gnulib wrapper and libintl wrapper.
12886         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12887         already defined in intl/printf.c.
12888         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12889         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12890
12891 2009-08-09  Bruno Haible  <bruno@clisp.org>
12892
12893         Make <sys/select.h> really self-contained, also on Solaris 10.
12894         * lib/sys_select.in.h: Include <string.h>.
12895         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12896         Solaris 10 problem.
12897         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12898         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12899         Reported by Jim Meyering.
12900
12901 2009-08-09  Bruno Haible  <bruno@clisp.org>
12902
12903         Avoid warnings from 'aclocal' that are due to a use of macro name
12904         AM_XGETTEXT_OPTION that is not defined in automake.
12905         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12906         automake.
12907         * modules/error (configure.ac): Likewise.
12908         * modules/propername (configure.ac): Likewise.
12909         * modules/vasprintf (configure.ac): Likewise.
12910         * modules/verror (configure.ac): Likewise.
12911         * modules/xprintf (configure.ac): Likewise.
12912         * modules/xvasprintf (configure.ac): Likewise.
12913
12914 2009-08-08  Bruno Haible  <bruno@clisp.org>
12915
12916         Avoid compilation error in C++ mode.
12917         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12918         Reported by Sam Steingold <sds@gnu.org>.
12919
12920 2009-08-08  Bruno Haible  <bruno@clisp.org>
12921
12922         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12923         for the various Unix platforms.
12924         * doc/posix-headers/limits.texi: Update platforms list regarding
12925         HOST_NAME_MAX.
12926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12927
12928 2009-08-07  Jim Meyering  <meyering@redhat.com>
12929
12930         selinux-at: fix typo in a comment
12931         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12932         Spotted by Paolo Bonzini.
12933
12934         selinux-at: remove redundant m4 code, add documentation
12935         * modules/selinux-at (configure.ac): Remove redundant code.
12936         LIB_SELINUX is already set via the dependent module, selinux-h.
12937         (Include): Add quotes around selinux-at.h.
12938         * lib/selinux-at.h: Add documentation.
12939         Reported by Bruno Haible in
12940         http://marc.info/?l=gnulib-bug&m=124958988300749
12941
12942 2009-08-07  Bruno Haible  <bruno@clisp.org>
12943
12944         Avoid link error on MacOS X 10.3 and 10.4.
12945         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12946         on non-ELF systems.
12947         * lib/argp-pv.c (argp_program_version): Likewise.
12948         Reported by Simon Josefsson.
12949
12950 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12951
12952         * tests/test-version-etc.sh: Use $EXEEXT.
12953
12954 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12955
12956         update-copyright: update documentation to point to maint.mk
12957         * build-aux/update-copyright: Here.
12958
12959 2009-08-06  Jim Meyering  <meyering@redhat.com>
12960
12961         maint.mk: support update-copyright-local
12962         * top/maint.mk (update-copyright-local): Define place-holder.
12963         (update-copyright): Depend on $(update-copyright-local).
12964
12965 2009-08-06  Jim Meyering  <meyering@redhat.com>
12966
12967         selinux-at: new module
12968         Initially written for coreutils, this module will soon be
12969         used by findutils, too.
12970         * MODULES.html.sh [Misc]: Add selinux-at.
12971         * lib/selinux-at.h: New file, from coreutils.
12972         * lib/selinux-at.c: Likewise.
12973         * modules/selinux-at: Likewise.
12974         (License): Change from LGPL to GPL, since it depends
12975         on the GPL'd openat module.
12976
12977         doc: update README
12978         * README: Remove references to cogito.
12979         Remove cvs-repo-updating instructions from 2007.
12980         Don't imply that CVS is better if you have limited disk space.
12981
12982 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12983
12984         update-copyright: support C-style comments
12985         * build-aux/update-copyright: Implement and document.
12986         * tests/test-update-copyright.sh: Test.
12987
12988 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12989
12990         update-copyright: support omitted "(C)"
12991         * build-aux/update-copyright: Implement and document.  Also,
12992         allow variable whitespace before "(C)".
12993         * tests/test-update-copyright.sh: Test.
12994
12995 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12996
12997         update-copyright: don't trip on non-FSF copyright statements
12998         * build-aux/update-copyright: Fix so that the first correctly
12999         formatted FSF copyright statement is recognized no matter what
13000         appears before it.  Update documentation.
13001         * tests/test-update-copyright.sh: Test that.
13002
13003 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13004
13005         update-copyright: clean up code a little
13006         * build-aux/update-copyright: Append "_re" to the name of any
13007         variable holding a regular expression.
13008         Replace "old" and "new" with "stmt" in variable names.
13009         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
13010         handled correctly.
13011         Format code more consistently.
13012
13013 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13014
13015         update-copyright-tests: improve portability
13016         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
13017         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
13018
13019 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13020
13021         update-copyright: support @copyright{} and &copy;
13022         * build-aux/update-copyright: Implement and document.
13023         * tests/test-update-copyright.sh: Test.
13024
13025 2009-08-04  Jim Meyering  <meyering@redhat.com>
13026
13027         update-copyright-tests: correctly test EOL=\r\n handling
13028         * tests/test-update-copyright.sh: Put \r at the end of some lines
13029         for the dos-eol tests.  Based on a patch by Joel E. Denny.
13030
13031         maint.mk: make update-copyright exclusion list more configurable
13032         * top/maint.mk (update-copyright): Default to excluding COPYING,
13033         but allow an override, in case someone does want to update that file.
13034
13035         maint.mk: don't update copyright date in COPYING
13036         * top/maint.mk (update-copyright): Exclude COPYING.
13037
13038         maint.mk: add a copyright-updating rule
13039         * top/maint.mk (update-copyright): New rule.
13040         Derived from coreutils/Makefile.am.
13041
13042         update-copyright: rename some variables
13043         * build-aux/update-copyright: Rename a few variables for clarity.
13044         Tweak syntax.  List Joel E. Denny as coauthor.
13045
13046 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13047
13048         update-copyright: fix bug for 2-digit last year and add tests
13049         * build-aux/update-copyright: Fix bug.
13050         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
13051         specified.
13052         * modules/update-copyright-tests: New
13053         * tests/test-update-copyright.sh: New.
13054
13055 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13056
13057         update-copyright: handle leading tabs in line prefix
13058         * build-aux/update-copyright: Count leading tabs as 8 spaces
13059         when computing margin.  This helps with the formatting of
13060         ChangeLogs, for example.
13061         Fix documentation a little.
13062
13063 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13064
13065         update-copyright: support EOL=\r\n
13066         * build-aux/update-copyright: Implement that.
13067
13068 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13069
13070         update-copyright: automatically format copyright statements
13071         * build-aux/update-copyright: Implement that.
13072         Also, be a little more predictable and safer by always failing
13073         when the full copyright format is not perfectly recognized as an
13074         unbroken whole.  Discussed at
13075         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
13076         Rewrite documentation.
13077
13078 2009-08-03  Bruno Haible  <bruno@clisp.org>
13079
13080         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
13081
13082 2009-08-02  Bruno Haible  <bruno@clisp.org>
13083
13084         Tests for module 'uname'.
13085         * modules/uname-tests: New file.
13086         * tests/test-uname.c: New file.
13087
13088         New module 'uname'.
13089         * lib/uname.c: New file.
13090         * m4/uname.m4: New file.
13091         * modules/uname: New file.
13092         * doc/posix-functions/uname.texi: Mention the new module.
13093
13094 2009-08-02  Bruno Haible  <bruno@clisp.org>
13095
13096         Tests for module 'sys_utsname'.
13097         * modules/sys_utsname-tests: New file.
13098         * tests/test-sys_utsname.c: New file.
13099
13100         New module 'sys_utsname'.
13101         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
13102         * m4/sys_utsname_h.m4: New file.
13103         * modules/sys_utsname: New file.
13104         * doc/posix-headers/sys_utsname.texi: Mention the new module.
13105
13106 2009-08-02  Bruno Haible  <bruno@clisp.org>
13107
13108         Implicitly initialize the sockets library.
13109         * lib/gethostname.c: Include sockets.h.
13110         (rpl_gethostname): Invoke gl_sockets_startup.
13111         * lib/socket.c: Include sockets.h.
13112         (rpl_socket): Invoke gl_sockets_startup.
13113         * modules/gethostname (Depends-on): Add sockets.
13114         * modules/socket (Depends-on): Likewise.
13115         * tests/test-poll.c: Don't include sockets.h.
13116         (main): Don't invoke gl_sockets_startup.
13117         * tests/test-select.c: Don't include sockets.h.
13118         (main): Don't invoke gl_sockets_startup.
13119
13120 2009-08-02  Bruno Haible  <bruno@clisp.org>
13121
13122         Allow multiple calls to gl_sockets_startup.
13123         * lib/sockets.c (initialized_sockets_version): New variable.
13124         (gl_sockets_startup): Do nothing if already called for this or a higher
13125         version.
13126         (gl_sockets_cleanup): Reset initialized_sockets_version.
13127
13128 2009-08-03  Simon Josefsson  <simon@josefsson.org>
13129
13130         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
13131         different project/version.
13132
13133 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13134             Bruno Haible  <bruno@clisp.org>
13135
13136         Tests for module 'pipe-filter-gi'.
13137         * modules/pipe-filter-gi-tests: New file.
13138         * tests/test-pipe-filter-gi1.sh: New file.
13139         * tests/test-pipe-filter-gi1.c: New file.
13140         * tests/test-pipe-filter-gi2.sh: New file.
13141         * tests/test-pipe-filter-gi2-main.c: New file.
13142         * tests/test-pipe-filter-gi2-child.c: New file.
13143
13144         New module 'pipe-filter-gi'.
13145         * lib/pipe-filter-gi.c: New file.
13146         * modules/pipe-filter-gi: New file.
13147
13148 2009-08-02  Bruno Haible  <bruno@clisp.org>
13149             Paolo Bonzini  <bonzini@gnu.org>
13150
13151         Tests for module 'pipe-filter-ii'.
13152         * modules/pipe-filter-ii-tests: New file.
13153         * tests/test-pipe-filter-ii1.sh: New file.
13154         * tests/test-pipe-filter-ii1.c: New file.
13155         * tests/test-pipe-filter-ii2.sh: New file.
13156         * tests/test-pipe-filter-ii2-main.c: New file.
13157         * tests/test-pipe-filter-ii2-child.c: New file.
13158
13159         New module 'pipe-filter-ii'.
13160         * lib/pipe-filter.h: New file.
13161         * lib/pipe-filter-ii.c: New file.
13162         * lib/pipe-filter-aux.h: New file.
13163         * modules/pipe-filter-ii: New file.
13164
13165 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13166
13167         * lib/gc-libgcrypt.c: Change copyright to FSF.
13168         * lib/gc-gnulib.c: Likewise.
13169
13170 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
13171
13172         * lib/gethostname.c: Include limits.h.
13173
13174 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13175             Bruno Haible  <bruno@clisp.org>
13176
13177         Ensure HOST_NAME_MAX as part of the gethostname module.
13178         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13179         define also HOST_NAME_MAX.
13180         * tests/test-gethostname.c: Include <limits.h>.
13181         (main): Check also HOST_NAME_MAX.
13182         * doc/posix-headers/limits.texi: Document the mingw problem.
13183
13184 2009-08-02  Bruno Haible  <bruno@clisp.org>
13185
13186         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13187         Add comments.
13188
13189 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13190
13191         * lib/gethostname.c: Add Windows wrapper.
13192         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13193         * modules/gethostname: Depend on sys_socket & errno, for also
13194         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13195         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13196
13197 2009-07-31  Jim Meyering  <meyering@redhat.com>
13198
13199         getloadavg: fix symbol name in comment
13200         * lib/getloadavg.c: Correct a typo I introduced when adding
13201         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13202         Matt Kraai spotted the problem.
13203
13204 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13205
13206         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13207         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13208         code also if ! defined N_NAME_POINTER.
13209         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13210         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13211         but the n_name member is a 12-byte array.
13212
13213 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13214
13215         update-copyright: generalize comment handling
13216         * build-aux/update-copyright: Handle copyright statements
13217         within more comment styles.
13218         Document usage.
13219         Report any file with an external copyright holder or parse failure.
13220
13221 2009-07-29  Jim Meyering  <meyering@redhat.com>
13222
13223         mktime: correct setting of REPLACE_MKTIME
13224         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13225
13226         update-copyright: new module
13227         * modules/update-copyright: New file.
13228         * build-aux/update-copyright: New file.
13229         * MODULES.html.sh (maint+release support): Add update-copyright.
13230
13231 2009-07-27  Bruno Haible  <bruno@clisp.org>
13232
13233         Fix compilation error when <ctime> is used and mktime is replaced.
13234         * lib/time.in.h (mktime): New declaration.
13235         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13236         REPLACE_MKTIME instead of defining mktime in config.h.
13237         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13238         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13239         Reported by Ross McFarland <rwmcfa1@neces.com>.
13240
13241 2009-07-27  Bruno Haible  <bruno@clisp.org>
13242
13243         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13244         Reported by Matt Kraai <mkraai@beckman.com>.
13245
13246 2009-07-25  Jim Meyering  <meyering@redhat.com>
13247
13248         maint.mk: avoid warnings about missing files
13249         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13250         diagnostic when .prev-version does not exist.
13251         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13252         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13253         nonexistent cfg.mk.
13254         Suggestions from Simon Josefsson.
13255
13256 2009-07-25  Bruno Haible  <bruno@clisp.org>
13257
13258         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13259         defined as macros. Needed on QNX 6.4.1.
13260         Reported by Matt Kraai <mkraai@beckman.com>.
13261
13262 2009-07-23  Jim Meyering  <meyering@redhat.com>
13263
13264         maint.mk: invoke "make dist" with a working value of XZ_OPT
13265         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13266
13267 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13268
13269         Make fseeko.c compile on QNX.
13270         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13271
13272 2009-07-22  Peter Simons  <simons@cryp.to>
13273
13274         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13275         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13276         * lib/md4.h: Likewise.
13277         * lib/md5.h: Likewise.
13278         * lib/sha1.h: Likewise.
13279         * lib/sha256.h: Likewise.
13280         * lib/sha512.h: Likewise.
13281
13282         tests-sha1: don't assign literal string to 'char *' variable
13283         * tests/test-sha1.c (main): Declare locals with "const" to match
13284         attributes of the right hand side.
13285
13286 2009-07-21  Eric Blake  <ebb9@byu.net>
13287
13288         dup2: fix more mingw problems
13289         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13290         fd to itself.
13291         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13292         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13293         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13294         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13295         care of mingw bugs.
13296
13297 2009-07-21  Jim Meyering  <meyering@redhat.com>
13298
13299         vc-list-files: avoid failure when /bin/sh is dash
13300         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13301         On some Debian based systems, /bin/sh is a symlink to dash, and running
13302         this command would omit the "/" following each 'tests' prefix:
13303           dash -x build-aux/vc-list-files -C . tests
13304         That is because bash and dash work differently:
13305           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13306           bash ok
13307           dash odd
13308
13309 2009-07-21  Eric Blake  <ebb9@byu.net>
13310
13311         dup2-tests: test previous patch
13312         * modules/dup2-tests: New file.
13313         * tests/test-dup2.c: Likewise.
13314         * tests/test-open.c (main): Avoid unspecified behavior.
13315         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13316         test.
13317
13318         dup2: work around mingw and cygwin 1.5 bug
13319         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13321         * modules/unistd (Makefile.am): Substitute it.
13322         * lib/unistd.in.h (dup2): Declare the replacement.
13323         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13324         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13325         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13326         * modules/execute (Depends-on): Add dup2.
13327         * modules/fseterr (Depends-on): Likewise.
13328         * modules/pipe (Depends-on): Likewise.
13329         * modules/posix_spawn-internal (Depends-on): Likewise.
13330
13331 2009-07-21  Bruno Haible  <bruno@clisp.org>
13332
13333         * modules/.gitattributes: New file.
13334
13335 2009-07-20  Bruno Haible  <bruno@clisp.org>
13336
13337         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13338         (main): Use it.
13339
13340 2009-07-20  Eric Blake  <ebb9@byu.net>
13341
13342         test-pipe: make a bit more robust.
13343         * tests/test-pipe.c (myerr): Allow error messages regardless of
13344         what we do to stderr.
13345         (test_pipe): Rearrange to avoid deadlock.
13346         (child_main): Try a larger read, to ensure we avoided deadlock.
13347         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13348         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13349         if misused.
13350
13351 2009-07-19  Jim Meyering  <meyering@redhat.com>
13352
13353         fts: avoid false-positive cycle-detection
13354         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13355         for each new command line argument.
13356
13357 2009-07-19  Bruno Haible  <bruno@clisp.org>
13358
13359         Fix build error on mingw with the modules sys_select and unistd.
13360         * modules/acl-tests (Depends-on): Add close.
13361         * modules/binary-io-tests (Depends-on): Likewise.
13362         * modules/closein-tests (Depends-on): Likewise.
13363         * modules/flock-tests (Depends-on): Likewise.
13364         * modules/fsync-tests (Depends-on): Likewise.
13365         * modules/lseek-tests (Depends-on): Likewise.
13366         * modules/pipe-tests (Depends-on): Likewise.
13367         * modules/posix_spawn-tests (Depends-on): Likewise.
13368         * modules/posix_spawnp-tests (Depends-on): Likewise.
13369         * modules/stat-time-tests (Depends-on): Likewise.
13370         * modules/yesno-tests (Depends-on): Likewise.
13371
13372 2009-07-19  Bruno Haible  <bruno@clisp.org>
13373
13374         Unify conditionals.
13375         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13376         macros, not at the compiler macros.
13377         * lib/pipe.c: Likewise.
13378         * lib/execute.c: Likewise.
13379         * lib/spawni.c: Likewise.
13380
13381 2009-07-19  Bruno Haible  <bruno@clisp.org>
13382
13383         Fix handling of closed stdin/stdout/stderr on mingw.
13384         * lib/w32spawn.h: Include unistd.h.
13385         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13386         file descriptor with O_NOINHERIT flag.
13387         (fd_safer_noinherit): New function, based on fd-safer.c.
13388         (dup_safer_noinherit): New function, based on dup-safer.c.
13389         (undup_safer_noinherit): New function.
13390         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13391         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13392         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13393         instead of fd_safer.
13394         * tests/test-pipe.c: Include <windows.h>.
13395         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13396
13397         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13398         from main.
13399         (test_pipe): Pass an extra argument for disambiguation.
13400         (main): Invoke parent_main or child_main.
13401
13402         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13403         consistently.
13404
13405 2009-07-18  Eric Blake  <ebb9@byu.net>
13406
13407         test-pipe: fix mingw build
13408         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13409
13410 2009-07-18  Bruno Haible  <bruno@clisp.org>
13411
13412         * modules/pipe-tests (Makefile.am): Fix typo.
13413
13414 2009-07-18  Eric Blake  <ebb9@byu.net>
13415
13416         error: fix mingw build
13417         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13418         Reported by Bruno Haible.
13419
13420         error: avoid undefined use of stdout
13421         * lib/error.c (error, error_at_line): Check that fd 1 is open
13422         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13423         is handling faults and the close_stdout module wants to report the
13424         detection of closed stdout as an error.
13425
13426 2009-07-17  Eric Blake  <ebb9@byu.net>
13427
13428         pipe: be robust in face of closed fds
13429         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13430         should cause child to misbehave.
13431         * modules/pipe-tests: New module.
13432         * tests/test-pipe.c: New file.
13433         * tests/test-pipe.sh: New file.
13434         Reported by Akim Demaille.
13435
13436 2009-07-14  Bruno Haible  <bruno@clisp.org>
13437
13438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13439         Reported by anonymous kc.
13440
13441 2009-07-07  Jim Meyering  <meyering@redhat.com>
13442
13443         maint.mk: don't look for translatable strings in *.m4 or *.mk
13444         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13445         when searching for translatable strings.
13446
13447 2009-07-05  Jim Meyering  <meyering@redhat.com>
13448
13449         remove superfluous parentheses in STREQ definition
13450         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13451         * lib/getugroups.c (STREQ): Likewise.
13452         * lib/fnmatch.c (STREQ): Likewise.
13453         Spotted by Bruno Haible.
13454
13455 2009-07-04  Jim Meyering  <meyering@redhat.com>
13456
13457         argv-iter: new module
13458         * MODULES.html.sh: Add argv-iter.
13459         * lib/argv-iter.c, lib/argv-iter.h: New files.
13460         * modules/argv-iter: New file.
13461         * modules/argv-iter-tests: New file.
13462         * tests/test-argv-iter.c: Test it.
13463
13464 2009-07-04  Bruno Haible  <bruno@clisp.org>
13465
13466         Fix assertion.
13467         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13468         contains more exact copies of a given entry than file2, leave the extra
13469         copies unpaired rather than aborting.
13470         Reported by Eric Blake.
13471
13472 2009-07-02  Bruno Haible  <bruno@clisp.org>
13473
13474         Speedup git-merge-changelog for git cherry-pick.
13475         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13476         (entries_mapping_get): New function, extracted from compute_mapping.
13477         (entries_mapping_reverse_get): New function.
13478         (compute_mapping): Add a 'full' argument. Return the result in a
13479         'struct entries_mapping'.
13480         (main): Update. Access the mappings through entries_mapping_get.
13481         Reported by Eric Blake.
13482
13483 2009-07-02  Bruno Haible  <bruno@clisp.org>
13484
13485         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13486         best_i.
13487
13488 2009-07-02  Bruno Haible  <bruno@clisp.org>
13489
13490         Speed up approximate search for matching ChangeLog entries.
13491         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13492         argument. Call fstrcmp_bounded instead of fstrcmp.
13493         (compute_mapping, try_split_merged_entry, main): Update callers.
13494
13495 2009-07-02  Bruno Haible  <bruno@clisp.org>
13496
13497         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13498
13499 2009-06-30  Bruno Haible  <bruno@clisp.org>
13500
13501         Reduce the number of uc_is_cased calls.
13502         * lib/unicase.h (casing_suffix_context_t): Add
13503         'first_char_except_ignorable' field.
13504         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13505         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13506         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13507         Update initializer.
13508         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13509         case-ignorable characters.
13510         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13511         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13512         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13513         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13514         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13515
13516 2009-06-30  Bruno Haible  <bruno@clisp.org>
13517
13518         Tests for module 'unicase/ignorable'.
13519         * modules/unicase/ignorable-tests: New file.
13520         * tests/unicase/test-ignorable.c: New file, generated by
13521         gen-uni-tables.
13522
13523         Tests for module 'unicase/cased'.
13524         * modules/unicase/cased-tests: New file.
13525         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13526         * tests/unicase/test-predicate-part1.h: New file, derived from
13527         tests/unictype/test-predicate-part1.h.
13528         * tests/unicase/test-predicate-part2.h: New file, same as
13529         tests/unictype/test-predicate-part2.h.
13530
13531         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13532         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13533         (output_casing_properties): New function.
13534         (main): Call it.
13535         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13536         * lib/unicase/cased.c: Include unictype/bitmap.h.
13537         (uc_is_cased): Define through a bitmap lookup.
13538         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13539         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13540         (uc_is_case_ignorable): Define through a bitmap lookup.
13541         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13542         lib/unictype/bitmap.h.
13543         (Depends-on): Add inline. Clean up.
13544         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13545         lib/unictype/bitmap.h.
13546         (Depends-on): Add inline. Clean up.
13547         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13548         recognition.
13549         * tests/unicase/test-u16-tolower.c (main): Likewise.
13550         * tests/unicase/test-u32-tolower.c (main): Likewise.
13551
13552 2009-06-30  Bruno Haible  <bruno@clisp.org>
13553
13554         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13555         * lib/unicase/u16-casemap.c: Likewise.
13556         * lib/unicase/u32-casemap.c: Likewise.
13557
13558 2009-06-29  Bruno Haible  <bruno@clisp.org>
13559
13560         Define u32_casefold as a wrapper around u32_ct_casefold.
13561         * lib/unicase/u32-casefold.c: Update.
13562         * modules/unicase/u32-casefold (Depends-on): Add
13563         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13564         unicase/empty-suffix-context. Clean up.
13565
13566         Define u16_casefold as a wrapper around u16_ct_casefold.
13567         * lib/unicase/u16-casefold.c: Update.
13568         * modules/unicase/u16-casefold (Depends-on): Add
13569         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13570         unicase/empty-suffix-context. Clean up.
13571
13572         Define u8_casefold as a wrapper around u8_ct_casefold.
13573         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13574         * lib/unicase/u8-casefold.c: Update.
13575         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13576         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13577
13578         Define u32_totitle as a wrapper around u32_ct_totitle.
13579         * lib/unicase/u32-totitle.c: Update.
13580         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13581         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13582
13583         Define u16_totitle as a wrapper around u16_ct_totitle.
13584         * lib/unicase/u16-totitle.c: Update.
13585         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13586         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13587
13588         Define u8_totitle as a wrapper around u8_ct_totitle.
13589         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13590         functions.
13591         (FUNC): Delegate to U_CT_TOTITLE.
13592         * lib/unicase/u8-totitle.c: Update.
13593         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13594         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13595
13596         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13597         invocation.
13598         * modules/unicase/u32-tolower (Depends-on): Add
13599         unicase/empty-prefix-context, unicase/empty-suffix-context.
13600
13601         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13602         invocation.
13603         * modules/unicase/u16-tolower (Depends-on): Add
13604         unicase/empty-prefix-context, unicase/empty-suffix-context.
13605
13606         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13607         * modules/unicase/u8-tolower (Depends-on): Add
13608         unicase/empty-prefix-context, unicase/empty-suffix-context.
13609
13610         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13611         invocation.
13612         * modules/unicase/u32-toupper (Depends-on): Add
13613         unicase/empty-prefix-context, unicase/empty-suffix-context.
13614
13615         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13616         invocation.
13617         * modules/unicase/u16-toupper (Depends-on): Add
13618         unicase/empty-prefix-context, unicase/empty-suffix-context.
13619
13620         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13621         * modules/unicase/u8-toupper (Depends-on): Add
13622         unicase/empty-prefix-context, unicase/empty-suffix-context.
13623
13624         New module 'unicase/u32-ct-casefold'.
13625         * lib/unicase/u32-ct-casefold.c: New file.
13626         * modules/unicase/u32-ct-casefold: New file.
13627
13628         New module 'unicase/u16-ct-casefold'.
13629         * lib/unicase/u16-ct-casefold.c: New file.
13630         * modules/unicase/u16-ct-casefold: New file.
13631
13632         New module 'unicase/u8-ct-casefold'.
13633         * lib/unicase/u8-ct-casefold.c: New file.
13634         * lib/unicase/u-ct-casefold.h: New file, derived from
13635         lib/unicase/u-casefold.h.
13636         * modules/unicase/u8-ct-casefold: New file.
13637
13638         New module 'unicase/u32-ct-totitle'.
13639         * lib/unicase/u32-ct-totitle.c: New file.
13640         * modules/unicase/u32-ct-totitle: New file.
13641
13642         New module 'unicase/u16-ct-totitle'.
13643         * lib/unicase/u16-ct-totitle.c: New file.
13644         * modules/unicase/u16-ct-totitle: New file.
13645
13646         New module 'unicase/u8-ct-totitle'.
13647         * lib/unicase/u8-ct-totitle.c: New file.
13648         * lib/unicase/u-ct-totitle.h: New file, derived from
13649         lib/unicase/u-totitle.h.
13650         * modules/unicase/u8-ct-totitle: New file.
13651
13652         New module 'unicase/u32-ct-tolower'.
13653         * lib/unicase/u32-ct-tolower.c: New file.
13654         * modules/unicase/u32-ct-tolower: New file.
13655
13656         New module 'unicase/u16-ct-tolower'.
13657         * lib/unicase/u16-ct-tolower.c: New file.
13658         * modules/unicase/u16-ct-tolower: New file.
13659
13660         New module 'unicase/u8-ct-tolower'.
13661         * lib/unicase/u8-ct-tolower.c: New file.
13662         * modules/unicase/u8-ct-tolower: New file.
13663
13664         New module 'unicase/u32-ct-toupper'.
13665         * lib/unicase/u32-ct-toupper.c: New file.
13666         * modules/unicase/u32-ct-toupper: New file.
13667
13668         New module 'unicase/u16-ct-toupper'.
13669         * lib/unicase/u16-ct-toupper.c: New file.
13670         * modules/unicase/u16-ct-toupper: New file.
13671
13672         New module 'unicase/u8-ct-toupper'.
13673         * lib/unicase/u8-ct-toupper.c: New file.
13674         * modules/unicase/u8-ct-toupper: New file.
13675
13676         Add context arguments to u*_casemap functions.
13677         * lib/unicase/unicasemap.h: Include unicase.h.
13678         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13679         suffix_context arguments.
13680         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13681         functions.
13682         (FUNC): Add prefix_context and suffix_context arguments. Use
13683         uc_is_cased and uc_is_case_ignorable.
13684         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13685         * lib/unicase/u16-casemap.c: Likewise.
13686         * lib/unicase/u32-casemap.c: Likewise.
13687         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13688         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13689         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13690         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13691         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13692         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13693
13694         New module 'unicase/u32-suffix-context'.
13695         * lib/unicase/u32-suffix-context.c: New file.
13696         * modules/unicase/u32-suffix-context: New file.
13697
13698         New module 'unicase/u16-suffix-context'.
13699         * lib/unicase/u16-suffix-context.c: New file.
13700         * modules/unicase/u16-suffix-context: New file.
13701
13702         New module 'unicase/u8-suffix-context'.
13703         * lib/unicase/u8-suffix-context.c: New file.
13704         * lib/unicase/u-suffix-context.h: New file.
13705         * modules/unicase/u8-suffix-context: New file.
13706
13707         New module 'unicase/empty-suffix-context'.
13708         * lib/unicase/empty-suffix-context.c: New file.
13709         * modules/unicase/empty-suffix-context: New file.
13710
13711         New module 'unicase/u32-prefix-context'.
13712         * lib/unicase/u32-prefix-context.c: New file.
13713         * modules/unicase/u32-prefix-context: New file.
13714
13715         New module 'unicase/u16-prefix-context'.
13716         * lib/unicase/u16-prefix-context.c: New file.
13717         * modules/unicase/u16-prefix-context: New file.
13718
13719         New module 'unicase/u8-prefix-context'.
13720         * lib/unicase/u8-prefix-context.c: New file.
13721         * lib/unicase/u-prefix-context.h: New file.
13722         * lib/unicase/context.h: New file.
13723         * modules/unicase/u8-prefix-context: New file.
13724
13725         New module 'unicase/empty-prefix-context'.
13726         * lib/unicase/empty-prefix-context.c: New file.
13727         * modules/unicase/empty-prefix-context: New file.
13728
13729         New module 'unicase/ignorable'.
13730         * lib/unicase/ignorable.c: New file.
13731         * modules/unicase/ignorable: New file.
13732
13733         New module 'unicase/cased'.
13734         * lib/unicase/caseprop.h: New file.
13735         * lib/unicase/cased.c: New file.
13736         * modules/unicase/cased: New file.
13737
13738         New functions for case mapping of substrings.
13739         * lib/unicase.h (casing_prefix_context_t): New type.
13740         (unicase_empty_prefix_context): New variable.
13741         (u8_casing_prefix_context, u16_casing_prefix_context,
13742         u32_casing_prefix_context, u8_casing_prefixes_context,
13743         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13744         declarations.
13745         (casing_suffix_context_t): New type.
13746         (unicase_empty_suffix_context): New variable.
13747         (u8_casing_suffix_context, u16_casing_suffix_context,
13748         u32_casing_suffix_context, u8_casing_suffixes_context,
13749         u16_casing_suffixes_context, u32_casing_suffixes_context,
13750         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13751         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13752         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13753         declarations.
13754
13755 2009-06-28  Jim Meyering  <meyering@redhat.com>
13756
13757         boostrap: indent only with spaces
13758         * build-aux/bootstrap: Indent only with spaces, never TABs.
13759
13760         bootstrap: split long lines
13761         * build-aux/bootstrap: Keep line length < 80.
13762
13763         bootstrap: sync from coreutils
13764         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13765         just as autoreconf does.  Verify a list of prerequisite
13766         package-name,version-number pairs if defined in bootstrap.conf.
13767         Refer to README-prereq, if prerequisites are not satisfied.
13768
13769 2009-06-27  Eric Blake  <ebb9@byu.net>
13770
13771         tests: add test for bogus NULL definition
13772         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13773         * tests/test-stdlib.c: Likewise.
13774         * tests/test-string.c: Likewise.
13775         * tests/test-locale.c: Likewise.
13776         * tests/test-unistd.c: Likewise.
13777         * modules/stdio-tests (Depends-on): Add verify.
13778         * modules/stdlib-tests (Depends-on): Likewise.
13779         * modules/string-tests (Depends-on): Likewise.
13780         * modules/locale-tests (Depends-on): Likewise.
13781         * modules/unistd-tests (Depends-on): Likewise.
13782
13783 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13784
13785         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13786         self-explaining comment.
13787         * m4/selinux-selinux-h: Update serial.
13788         (gl_LIBSELINUX): New macro, adding a warning for missing development
13789         packages to code extracted from...
13790         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13791         Add warning for missing development packages here, too.
13792
13793 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13794
13795         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13796
13797 2009-06-25  Eric Blake  <ebb9@byu.net>
13798
13799         version-etc: fix regression
13800         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13801         gcc.
13802         (version_etc): Use it, to catch bugs with trailing NULL.
13803         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13804         (version_etc_va): Fix logic bug.
13805         * modules/version-etc-tests: Add test.
13806         * tests/test-version-etc.c: New file.
13807         * tests/test-version-etc.sh: Likewise.
13808
13809 2009-06-25  Sam Steingold  <sds@gnu.org>
13810
13811         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13812         mbtowc declaration.
13813
13814 2009-06-25  Eric Blake  <ebb9@byu.net>
13815
13816         fpurge: migrate into <stdio.h>
13817         * lib/fpurge.h: Delete...
13818         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13819         * lib/fpurge.c (fpurge): Change declaring header.
13820         * modules/fpurge (Files): Drop deleted file.
13821         (Depends-on): Add stdio.
13822         (configure.ac): Set witness.
13823         * modules/stdio (Makefile.am): Support fpurge macros.
13824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13825         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13826         * lib/fflush.c: Update client.
13827         * tests/test-fpurge.c: Likewise.
13828         * NEWS: Mention the change.
13829
13830 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13831
13832         * lib/argp-version-etc.c (program_authors): Add const
13833         qualifier.
13834         * lib/version-etc.c: Fix typos in the comments.
13835         * modules/argp-version-etc: Depends on version-etc.
13836
13837 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13838
13839         argp-version-etc: new module.
13840
13841         * lib/argp-version-etc.c: New file.
13842         * lib/argp-version-etc.h: New file.
13843         * modules/argp-version-etc: New file.
13844         * modules/argp-version-etc-tests: New file.
13845         * tests/test-argp-version-etc.c: New test.
13846         * tests/test-argp-version-etc-1.sh: New test.
13847
13848 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13849
13850         Provide additional interfaces and documentation for version-etc
13851         module.
13852
13853         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13854         interfaces.
13855         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13856         prototypes.
13857
13858 2009-06-24  Bruno Haible  <bruno@clisp.org>
13859
13860         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13861         HAVE_LIB${NAME} macro.
13862         Reported by Sam Steingold <sds@gnu.org>.
13863
13864 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13865
13866         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13867         needed.
13868
13869 2009-06-21  Bruno Haible  <bruno@clisp.org>
13870
13871         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13872         work.
13873         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13874         together with LIB${NAME}, LTLIB${NAME}.
13875         Reported by Sam Steingold <sds@gnu.org>.
13876
13877 2009-06-20  Jim Meyering  <meyering@redhat.com>
13878
13879         tests: make sc_require_test_exit_idiom more generic
13880         * top/maint.mk (Exit_witness_file): New overridable variable.
13881         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13882         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13883
13884 2009-06-19  Jim Meyering  <meyering@redhat.com>
13885
13886         hash: reverse order of src/dst parameters in an internal interface
13887         * lib/hash.c (transfer_entries): Reverse order of parameters to
13888         put DST before SRC.  Adjust callers.
13889
13890         tests: test-hash: avoid wholesale duplication
13891         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13892         Instead, use a loop and add a single conditional.
13893
13894         tests: test-hash: allow seed selection via a command line argument
13895         * tests/test-hash.c (get_seed): New function.
13896         (main): Use it.
13897
13898 2009-06-19  Eric Blake  <ebb9@byu.net>
13899
13900         hash: avoid memory leak on allocation failure
13901         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13902         failure.  Factor repeated algorithm...
13903         (transfer_entries): ...into new helper routine.
13904         (hash_delete): React to hash_rehash return value.
13905
13906         hash: reduce memory pressure in hash_rehash no-op case
13907         * lib/hash.c (next_prime): Avoid overflow.
13908         (hash_initialize): Factor bucket size computation...
13909         (compute_bucket_size): ...into new helper function.
13910         (hash_rehash): Use new function and open coding to reduce memory
13911         pressure, and avoid a memory leak in USE_OBSTACK code.
13912         Reported by Jim Meyering.
13913
13914 2009-06-18  Eric Blake  <ebb9@byu.net>
13915
13916         hash: make rotation more obvious
13917         * modules/hash (Depends-on): Add bitrotate and stdint.
13918         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13919         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13920         (SIZE_MAX): Rely on headers for definition.
13921         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13922         (raw_hasher): Use rotr_sz.
13923         Suggested by Jim Meyering.
13924
13925         hash: fix memory leak in last patch
13926         * lib/hash.c (hash_rehash): Avoid memory leak.
13927
13928         hash: avoid no-op rehashing
13929         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13930
13931         hash: provide default callback functions
13932         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13933         (hash_initialize): Use them as defaults.
13934         * tests/test-hash.c (main): Test this.
13935
13936         hash: minor optimization
13937         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13938         when possible.
13939         (hash_initialize): Document this promise.
13940         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13941         * tests/test-hash.c (hash_compare_strings): Test this.
13942
13943 2009-06-18  Bruno Haible  <bruno@clisp.org>
13944
13945         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13946         going to be replaced anyway.
13947
13948 2009-06-18  Bruno Haible  <bruno@clisp.org>
13949
13950         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13951         in one place.
13952         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13953         be replaced anyway.
13954
13955 2009-06-18  Eric Blake  <ebb9@byu.net>
13956
13957         hash: check for resize before insertion
13958         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13959         threshold before insertion, so that a pathological hash_rehash
13960         that fills every bucket can still trigger another rehash.
13961
13962 2009-06-18  Jim Meyering  <meyering@redhat.com>
13963
13964         hash-tests: add a loop around the small tests
13965         * tests/test-hash.c (main): Repeat small tests with selected
13966         small initial table sizes.
13967
13968 2009-06-17  Eric Blake  <ebb9@byu.net>
13969
13970         hash: minor cleanups
13971         * lib/hash.h (hash_entry): Make opaque, by moving...
13972         * lib/hash.c (hash_entry): ...here.
13973         (hash_insert): Clarify restrictions on what can be inserted.
13974         (hash_get_next): Clarify when it is safe to remove an element
13975         during traversal.
13976         (check_tuning): Skip verification when tuning is known safe.
13977         (hash_initialize): Clarify restrictions on tuning.
13978
13979 2009-06-17  Jim Meyering  <jim@meyering.net>
13980         and Eric Blake  <ebb9@byu.net>
13981
13982         hash-tests: new module
13983         * modules/hash-tests: New file.
13984         * tests/test-hash.c: New file.
13985
13986 2009-06-17  Eric Blake  <ebb9@byu.net>
13987
13988         strstr-simple: document new module
13989         * MODULES.html.sh: Document new module.
13990
13991         strstr, strcasestr: replace on platforms with broken memchr
13992         * modules/strstr: Split into...
13993         * modules/strstr-simple: ...new module that does not care about
13994         performance, but does care about glibc bug.
13995         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13996         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13997         if platform memchr is broken, per Debian bug 521737.
13998         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13999         memchr.
14000         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
14001         * doc/posix-functions/strstr.texi (strstr): Document the fix.
14002         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14003         * modules/mountlist (Depends-on): Add strstr-simple.
14004         * modules/gen-uni-tables (Depends-on): Likewise.
14005         * modules/argz (Depends-on): Add strstr.
14006
14007 2009-06-17  Bruno Haible  <bruno@clisp.org>
14008
14009         * modules/posix_spawn-internal (Depends-on): Add errno.
14010
14011 2009-06-17  Bruno Haible  <bruno@clisp.org>
14012
14013         Define missing ESTALE on Interix 3.5.
14014         * lib/errno.in.h (ESTALE): Assign a value if missing.
14015         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
14016         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
14017         missing.
14018         * doc/posix-headers/errno.texi: Mention the Interix bug.
14019         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
14020
14021 2009-06-15  Eric Blake  <ebb9@byu.net>
14022
14023         memchr, memchr2: add valgrind exception
14024         * lib/memchr.valgrind: New file.
14025         * lib/memchr2.valgrind: New file.
14026         * modules/memchr (Files): Distribute valgrind file.
14027         * modules/memchr2 (Files): Likewise.
14028
14029         docs: memchr is no longer obsolete
14030         * MODULES.html.sh: Move memchr from obsolete to string.h section.
14031         * lib/string.in.h (memchr): Simplify logic.
14032
14033 2009-06-14  Jim Meyering  <meyering@redhat.com>
14034
14035         link-follow: fix the "checking..." message to not mention trailing slash
14036         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
14037         never considered trailing slashes.
14038
14039 2009-06-14  Bruno Haible  <bruno@clisp.org>
14040
14041         * m4/memchr.m4: Mention also the bug on IA-64.
14042         * doc/posix-functions/memchr.texi: Likewise.
14043
14044 2009-06-12  Eric Blake  <ebb9@byu.net>
14045
14046         memchr: detect broken x86_64 and alpha implementations
14047         * modules/memchr-tests (Depends-on): Move mmap detection...
14048         * modules/memchr (Depends-on): ...here.
14049         (configure.ac): Set indicator.
14050         * lib/string.in.h (memchr): Declare replacement.
14051         * modules/string (Makefile.am): Trigger replacement.
14052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
14053         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
14054         bugs.
14055         * doc/posix-functions/memchr.texi (memchr): Document the bug.
14056         * modules/getpagesize (License): Relax license.
14057
14058 2009-06-11  Bruno Haible  <bruno@clisp.org>
14059
14060         * lib/idpriv.h: Add more references.
14061
14062 2009-06-08  Bruno Haible  <bruno@clisp.org>
14063
14064         Tests for module 'idpriv-droptemp'.
14065         * modules/idpriv-droptemp-tests: New file.
14066         * tests/test-idpriv-droptemp.sh: New file.
14067         * tests/test-idpriv-droptemp.su.sh: New file.
14068         * tests/test-idpriv-droptemp.c: New file.
14069
14070         New module 'idpriv-droptemp'.
14071         * lib/idpriv-droptemp.c: New file.
14072         * modules/idpriv-droptemp: New file.
14073
14074 2009-06-08  Bruno Haible  <bruno@clisp.org>
14075
14076         Tests for module 'idpriv-drop'.
14077         * modules/idpriv-drop-tests: New file.
14078         * tests/test-idpriv-drop.sh: New file.
14079         * tests/test-idpriv-drop.su.sh: New file.
14080         * tests/test-idpriv-drop.c: New file.
14081
14082         New module 'idpriv-drop'.
14083         * lib/idpriv.h: New file.
14084         * lib-idpriv-drop.c: New file.
14085         * m4/idpriv.m4: New file.
14086         * modules/idpriv-drop: New file.
14087
14088 2009-06-08  Bruno Haible  <bruno@clisp.org>
14089
14090         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
14091         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14092         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14093         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14094         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14095         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14096         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14097
14098 2009-06-08  Eric Blake  <ebb9@byu.net>
14099
14100         test-strstr: use memory fence, when possible
14101         * tests/test-strstr.c (main): Use memory fence, in order to be
14102         more likely to trigger Debian bug 521737.
14103         * modules/strstr-tests (Files): Pull in additional files.
14104
14105         memchr: no longer obsolete, for wider field testing
14106         * modules/memchr (Status, Notice): Delete, this module is no
14107         longer obsolete.
14108         * modules/vasnprintf (Depends-on): Add memchr.
14109
14110 2009-06-07  Jim Meyering  <meyering@redhat.com>
14111
14112         hash: declare some functions with the warn_unused_result attribute
14113         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
14114
14115 2009-06-07  Bruno Haible  <bruno@clisp.org>
14116
14117         * tests/test-alignof.c: Don't test int64_t if it does not exist.
14118         Reported by Eric Blake.
14119
14120 2009-06-06  Eric Blake  <ebb9@byu.net>
14121
14122         test-alignof: fix typo with long double
14123         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
14124         compiler error.
14125
14126 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
14127
14128         Escape non-texinfo { and }s.
14129         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
14130         markup error.
14131
14132 2009-06-04  Jim Meyering  <meyering@redhat.com>
14133
14134         gitlog-to-changelog: don't infloop on an empty commit log
14135         * build-aux/gitlog-to-changelog: Warn about an empty log message.
14136         Reported by Boris Petersen <transacid@centerim.org>.
14137
14138 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
14139
14140         version-etc: extend for packagers
14141         Add three new configure options, intended for packagers:
14142           --with-packager="packager name"
14143           --with-packager-version="packager-specific version"
14144           --with-packager-bug-reports="packager bug reporting"
14145         An example with coreutils:
14146           $ ./configure \
14147             --with-packager=Gentoo \
14148             --with-packager-bug-report=http://bugs.gentoo.org/ \
14149             --with-packager-version="patchset 1.6"
14150           $ ./src/ls --version | head -n2
14151           ls (GNU coreutils) 7.1-dirty
14152           Packaged by Gentoo (patchset 1.6)
14153         Note that the bug reporting info via --help doesn't show up because
14154         coreutils uses its own custom emit_bug_reporting_address() implementation
14155         in src/system.h.  If it didn't, it'd look like:
14156           $ ./src/ls --help | tail -n4
14157           Report bugs to <bug-coreutils@gnu.org>.
14158           Report Gentoo bugs to <http://bugs.gentoo.org/>.
14159           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
14160           General help using GNU software: <http://www.gnu.org/gethelp/>.
14161         * lib/version-etc.c: Print new information, if provided.
14162         * m4/version-etc.m4: New file.
14163         * modules/version-etc (Files): Add m4/version-etc.m4.
14164         (configure.ac): Add gl_VERSION_ETC.
14165
14166 2009-05-31  Bruno Haible  <bruno@clisp.org>
14167
14168         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
14169         and 'int64_t'.
14170         * modules/alignof-tests (Dependencies): Add stdint.
14171         Reported by Eric Blake.
14172
14173 2009-05-31  Bruno Haible  <bruno@clisp.org>
14174
14175         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
14176         restriction due to compiler bugs.
14177         Reported by Eric Blake.
14178
14179 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14180             Bruno Haible  <bruno@clisp.org>
14181
14182         Fix test-alignof failure.
14183         * lib/alignof.h (alignof_slot): New macro.
14184         (alignof_type): New macro, with the same semantics as the previous
14185         'alignof'.
14186         (alignof): Alias to alignof_slot.
14187         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14188         check that the results are usable as constant expressions.
14189
14190 2009-05-31  Bruno Haible  <bruno@clisp.org>
14191
14192         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14193         * tests/test-memchr.c (main): Check that memchr does not read past the
14194         first occurrence of the byte.
14195         * tests/test-strstr.c (main): Update comment.
14196         Suggested by Eric Blake.
14197
14198 2009-05-30  Bruno Haible  <bruno@clisp.org>
14199
14200         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14201         detail how to use dumpbin.
14202         Reported by David Byron <dbyron@dbyron.com>.
14203
14204 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14205
14206         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14207
14208 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14209
14210         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14211
14212 2009-05-28  Bruno Haible  <bruno@clisp.org>
14213
14214         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14215         build-aux/ files.
14216
14217 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14218
14219         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14220
14221 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14222
14223         * gnulib-tool (sed_transform_main_lib_file)
14224         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14225         regexps.
14226
14227 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14228
14229         * tests/test-strstr.c: Add another self-test.
14230         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14231         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14232
14233 2009-05-23  Bruno Haible  <bruno@clisp.org>
14234
14235         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14236         change.
14237
14238 2009-05-21  Bruno Haible  <bruno@clisp.org>
14239
14240         Simplify use of mode_t varargs.
14241         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14242         uses 'mode_t' or 'int'.
14243         * lib/openat.c (openat): Likewise.
14244         * lib/open-safer.c (open_safer): Likewise.
14245         * m4/mode_t.m4: New file.
14246         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14247         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14248         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14249         * modules/open (Files): Add m4/mode_t.m4.
14250         * modules/openat (Files): Likewise.
14251         * modules/fcntl-safer (Files): Likewise.
14252         Suggested by Eric Blake.
14253
14254 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14255
14256         * doc/glibc-functions/fallocate.texi: New file.
14257         * doc/gnulib.texi: Include it.
14258
14259 2009-05-21  Eric Blake  <ebb9@byu.net>
14260             Bruno Haible  <bruno@clisp.org>
14261
14262         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14263         invocations.
14264         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14265
14266 2009-05-21  Eric Blake  <ebb9@byu.net>
14267             Bruno Haible  <bruno@clisp.org>
14268
14269         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14270         include_next. Fix of 2008-11-20 commit.
14271         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14272         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14273         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14274         NEXT_MATH_H.
14275         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14276         instead of NEXT_MATH_H.
14277
14278 2009-05-21  Bruno Haible  <bruno@clisp.org>
14279
14280         Avoid redefinition warnings for SIZE_MAX.
14281         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14282         Reported by Simon Josefsson.
14283
14284 2009-05-21  Bruno Haible  <bruno@clisp.org>
14285
14286         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14287         AC_CACHE_VAL.
14288
14289 2009-05-20  Bruno Haible  <bruno@clisp.org>
14290
14291         Make zeroptr.h work on mingw.
14292         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14293         mprotect.
14294         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14295         * modules/memchr2-tests (configure.ac): Likewise.
14296         * modules/memcmp-tests (configure.ac): Likewise.
14297         * modules/memmem-tests (configure.ac): Likewise.
14298         * modules/memrchr-tests (configure.ac): Likewise.
14299         Reported by Simon Josefsson.
14300
14301 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14302
14303         * tests/test-glob.c: Include string.h for strcmp prototype.
14304
14305 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14306
14307         * modules/getdelim (Depends-on): Add explicit stdint, although it
14308         was implicitly already pulled in via realloc-posix.
14309         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14310
14311 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14312
14313         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14314         G. Christensen" <tgc@jupiterrise.com>.
14315         * m4/sys_socket_h.m4: Check for sa_family_t.
14316         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14317         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14318         * tests/test-sys_socket.c: Check that sa_family_t works.
14319
14320 2009-05-18  Eric Blake  <ebb9@byu.net>
14321
14322         maint.mk: allow gnulib_dir in VPATH build
14323         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14324
14325 2009-05-15  Jim Meyering  <meyering@redhat.com>
14326
14327         maint.mk: Give gnulib_dir a default definition.
14328         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14329         Thus, most packages no longer need to specify this variable in cfg.mk
14330
14331 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14332
14333         rename.m4: fix typos that would make non-mingw cross-configure fail
14334         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14335
14336 2009-05-13  Eric Blake  <ebb9@byu.net>
14337
14338         mmap-anon: avoid out-of-order autoconf expansion
14339         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14340         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14341         * modules/memchr-tests (Depends-on): Add extensions.
14342         * modules/memchr2-tests (Depends-on): Add extensions.
14343         * modules/memcmp-tests (Depends-on): Add extensions.
14344         * modules/memmem-tests (Depends-on): Add extensions.
14345         * modules/memrchr-tests (Depends-on): Add extensions.
14346
14347 2009-05-13  Bruno Haible  <bruno@clisp.org>
14348
14349         Make some tests ISO C 99 compliant.
14350         * tests/zerosize-ptr.h: New file.
14351         * tests/test-memchr.c: Include zerosize-ptr.h.
14352         (main): Use a zero-size object pointer instead of NULL.
14353         * tests/test-memchr2.c: Include zerosize-ptr.h.
14354         (main): Use a zero-size object pointer instead of NULL.
14355         * tests/test-memcmp.c: Include zerosize-ptr.h.
14356         (main): Use a zero-size object pointer instead of NULL.
14357         * tests/test-memmem.c: Include zerosize-ptr.h.
14358         (main): Use a zero-size object pointer instead of NULL.
14359         * tests/test-memrchr.c: Include zerosize-ptr.h.
14360         (main): Use a zero-size object pointer instead of NULL.
14361         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14362         m4/mmap-anon.m4.
14363         (Depends-on): Add getpagesize.
14364         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14365         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14366         m4/mmap-anon.m4.
14367         (Depends-on): Add getpagesize.
14368         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14369         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14370         m4/mmap-anon.m4.
14371         (Depends-on): Add getpagesize.
14372         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14373         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14374         m4/mmap-anon.m4.
14375         (Depends-on): Add getpagesize.
14376         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14377         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14378         m4/mmap-anon.m4.
14379         (Depends-on): Add getpagesize.
14380         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14381
14382 2009-05-12  Bruno Haible  <bruno@clisp.org>
14383
14384         Tests for module 'alignof'.
14385         * modules/alignof-tests: New file.
14386         * tests/test-alignof.c: New file.
14387
14388 2009-05-12  Bruno Haible  <bruno@clisp.org>
14389
14390         Fix alignof macro.
14391         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14392         vendor compilers that are always correct.
14393
14394 2009-05-12  Bruno Haible  <bruno@clisp.org>
14395
14396         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14397         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14398         not whether its fully works.
14399
14400 2009-05-12  Bruno Haible  <bruno@clisp.org>
14401
14402         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14403
14404 2009-05-12  Jim Meyering  <meyering@redhat.com>
14405
14406         * top/maint.mk: Adjust backslash alignment.
14407
14408 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14409
14410         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14411
14412 2009-05-11  Eric Blake  <ebb9@byu.net>
14413
14414         argp: avoid undefined behavior
14415         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14416         macros.
14417
14418 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14419
14420         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14421         user.name to prevent git commit from complaining.
14422
14423 2009-05-10  Bruno Haible  <bruno@clisp.org>
14424
14425         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14426         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14427         it rewrites every file name only once.
14428         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14429
14430 2009-05-08  Bruno Haible  <bruno@clisp.org>
14431
14432         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14433         instead of 'max'.
14434
14435 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14436
14437         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14438         sockaddr_storage test.
14439
14440 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14441
14442         * modules/sys_socket (Makefile.am): Substitute
14443         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14444         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14445         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14446         * tests/test-sys_socket.c: Check sockaddr_storage.
14447
14448 2009-05-08  Bruno Haible  <bruno@clisp.org>
14449
14450         New module 'alignof'.
14451         * lib/alignof.h: New file.
14452         * modules/alignof: New file.
14453
14454 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14455             Bruno Haible  <bruno@clisp.org>
14456
14457         Fix test-file-has-acl on FreeBSD.
14458         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14459         mask is implicitly added.
14460         * tests/test-file-has-acl.c: Include <signal.h>.
14461         (main): Terminate the test after 5 seconds.
14462         * modules/acl-tests (configure.ac): Check for alarm function.
14463
14464 2009-05-04  Bruno Haible  <bruno@clisp.org>
14465
14466         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14467         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14468         * modules/errno (configure.ac): Drop AC_REQUIRE.
14469         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14470         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14471
14472 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14473
14474         * modules/glob-tests: New module.
14475         * tests/test-glob.c: Add.
14476
14477 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14478
14479         * modules/fnmatch-tests: New module.
14480         * tests/test-fnmatch.c: Add.
14481
14482 2009-05-04  Eric Blake  <ebb9@byu.net>
14483
14484         maint: make the new no-submodule-changes rule VPATH-safe
14485         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14486
14487 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14488             Bruno Haible  <bruno@clisp.org>
14489
14490         acl: Fix infinite loop on FreeBSD.
14491         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14492         of return value from acl_get_entry.
14493         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14494         Likewise.
14495
14496 2009-05-03  Bruno Haible  <bruno@clisp.org>
14497
14498         * lib/acl-internal.h (acl_entries): Clarify return value.
14499         * lib/acl_entries.c (acl_entries): Likewise.
14500
14501 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14502
14503         Bug fix in acl module.
14504         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14505
14506 2009-05-03  Bruno Haible  <bruno@clisp.org>
14507
14508         Create gperf-generated file in the source dir, not in the build dir.
14509         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14510         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14511         * modules/unicase/locale-language (unicase/locale-languages.h):
14512         Likewise.
14513         * modules/unicase/special-casing (unicase/special-casing-table.h):
14514         Likewise.
14515         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14516         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14517         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14518         Reported by Ralf Wildenhues.
14519
14520 2009-05-03  Bruno Haible  <bruno@clisp.org>
14521
14522         * modules/fnmatch (Description, configure.ac): Taken from
14523         fnmatch-posix.
14524         * modules/fnmatch-posix: Turn into a symbolic reference to the
14525         'fnmatch' module, and deprecate.
14526         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14527
14528 2009-05-03  Bruno Haible  <bruno@clisp.org>
14529
14530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14531         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14532         Reported by Ralf Wildenhues.
14533
14534 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14535
14536         * m4/fnmatch.m4: Fix fnmatch re-define.
14537
14538 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14539
14540         priv-set: new module and tests; adapt write-any-file
14541         * lib/priv-set.c: New file.
14542         * lib/priv-set.h: New file.
14543         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14544         * lib/write-any-file.c: Simplify by using priv-set module.
14545         * m4/priv-set.m4: New file.
14546         * modules/priv-set: New file.
14547         * modules/unlinkdir: Add dependency on priv-set module.
14548         * modules/write-any-file: Likewise.
14549
14550         Tests for module 'priv-set'.
14551         * modules/priv-set-tests: New file.
14552         * tests/test-priv-set.c: New file.
14553
14554 2009-05-03  Jim Meyering  <meyering@redhat.com>
14555             Bruno Haible  <bruno@clisp.org>
14556
14557         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14558         use the converted UTF-8 variant of the name instead.
14559
14560 2009-05-03  Jim Meyering  <meyering@redhat.com>
14561
14562         tests: tighten some getdate tests
14563         * tests/test-getdate.c (main): Tighten tests: require equality,
14564         not just greater than.  Set TZ envvar to UTC0.
14565
14566 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14567
14568         getdate: correctly interpret "next monday" when run on a Monday
14569         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14570         that e.g., "next tues" (when run on a tuesday) results in a date
14571         that is one week in the future, and not today's date.
14572         I.e., add a week when the wday is the same as the current one.
14573         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14574         and earlier by Martin Bernreuther and Jan Minář.
14575         * tests/test-getdate.c (main): Check that "next DAY" is always in
14576         the future and that "last DAY" is always in the past.
14577
14578 2009-05-02  Jim Meyering  <meyering@redhat.com>
14579
14580         build: ensure that a release build fails when a submodule is unclean
14581         * top/maint.mk (no-submodule-changes): New rule.
14582         (alpha beta major): Depend on it.
14583
14584 2009-05-02  Bruno Haible  <bruno@clisp.org>
14585
14586         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14587         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14588         shell variable gl_fnmatch_required to detect which variant is
14589         requested.
14590         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14591         gl_FUNC_FNMATCH_POSIX.
14592         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14593         exclude fnmatch-posix.
14594
14595 2009-05-02  Bruno Haible  <bruno@clisp.org>
14596
14597         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14598         * modules/mbsrtowcs (License): Change to LGPLv2+.
14599         * modules/strnlen1 (License): Likewise.
14600         Reported by Simon Josefsson.
14601
14602 2009-05-02  Bruno Haible  <bruno@clisp.org>
14603
14604         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14605         "cross".
14606         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14607         gnulib-tool was called with option --source-base=lib.
14608
14609 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14610
14611         Use automake *-local hooks without commands, for extensibility.
14612         * modules/localcharset (Makefile.am): Rename install-exec-local
14613         rule to install-exec-localcharset, and make it a prerequisite of
14614         install-exec-local.  Likewise, rename the uninstall-local rule to
14615         uninstall-localcharset, and make it a prerequisite of the former.
14616
14617 2009-05-01  Bruno Haible  <bruno@clisp.org>
14618
14619         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14620         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14621         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14622         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14623         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14624         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14625         m4/locale-zh.m4, m4/codeset.m4.
14626
14627         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14628         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14629         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14630         m4/locale-zh.m4.
14631
14632         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14633         REPLACE_WCRTOMB if mbstate_t must be replaced.
14634         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14635         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14636
14637 2009-05-01  Bruno Haible  <bruno@clisp.org>
14638
14639         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14640         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14641         dngettext, dcngettext, textdomain, bindtextdomain,
14642         bind_textdomain_codeset): Undefine before redefining.
14643
14644 2009-04-30  Bruno Haible  <bruno@clisp.org>
14645
14646         Fix bug introduced on 2009-04-25.
14647         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14648         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14649         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14650         is defined.
14651         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14652         is defined.
14653         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14654         is defined.
14655         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14656
14657 2009-04-28  Bruno Haible  <bruno@clisp.org>
14658
14659         Comment tweaks.
14660         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14661         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14662         * lib/unicase.h (u*_casexfrm): Likewise.
14663         Reported by Paolo Bonzini.
14664
14665 2009-04-28  Bruno Haible  <bruno@clisp.org>
14666
14667         Fix a compilation error.
14668         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14669         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14670         Reported by Jim Meyering.
14671
14672 2009-04-27  Bruno Haible  <bruno@clisp.org>
14673
14674         New module 'libunistring'.
14675         * modules/libunistring: New file.
14676         * m4/libunistring.m4: New file.
14677         * MODULES.html.sh (Unicode string functions): Add it.
14678
14679 2009-04-27  Eric Blake  <ebb9@byu.net>
14680
14681         maint.mk: allow package-specific header to provide <config.h>
14682         * top/maint.mk (sc_require_config_h): New variable.
14683         (sc_require_config_h, sc_require_config_h_first): Use it.
14684
14685 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14686
14687         * top/maint.mk (sc_avoid_if_before_free): Except
14688         useless-if-before-free script.
14689
14690 2009-04-27  Eric Blake  <ebb9@byu.net>
14691
14692         maintainer-makefile: depend on all required helper scripts
14693         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14694         useless-if-before-free.
14695         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14696         version, rather than assuming gnulib checkout is available.
14697         Reported by Simen Josefsson.
14698
14699 2009-04-26  Bruno Haible  <bruno@clisp.org>
14700
14701         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14702         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14703         "../" or "..".
14704
14705 2009-04-26  Bruno Haible  <bruno@clisp.org>
14706
14707         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14708         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14709         AC_LIB_HAVE_LINKFLAGS.
14710
14711 2009-04-26  Bruno Haible  <bruno@clisp.org>
14712
14713         Simplify calling convention of u*_conv_from_encoding.
14714         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14715         u32_conv_from_encoding): Expect a resultbuf argument and return the
14716         result directly as a pointer.
14717         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14718         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14719         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14720         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14721         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14722         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14723         Update.
14724         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14725         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14726         * lib/vasnprintf.c (VASNPRINTF): Update.
14727         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14728         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14729         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14730         * NEWS: Mention the change.
14731
14732 2009-04-26  Bruno Haible  <bruno@clisp.org>
14733
14734         Simplify calling convention of u*_conv_to_encoding.
14735         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14736         u32_conv_to_encoding): Expect a resultbuf argument and return the
14737         result directly as a pointer.
14738         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14739         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14740         freeing scaled_offsets if mem_iconveha failed.
14741         * lib/unicase/u-casexfrm.h (FUNC): Update.
14742         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14743         * lib/vasnprintf.c (VASNPRINTF): Update.
14744         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14745         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14746         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14747         * NEWS: Mention the change.
14748
14749 2009-04-26  Bruno Haible  <bruno@clisp.org>
14750
14751         Avoid test failures on AIX and OSF/1.
14752         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14753         malloc(0).
14754         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14755         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14756         Likewise.
14757         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14758         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14759         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14760         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14761         * doc/posix-functions/malloc.texi: Document the portability problem
14762         related to malloc(0).
14763
14764 2009-04-26  Bruno Haible  <bruno@clisp.org>
14765
14766         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14767         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14768         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14769
14770 2009-04-25  Bruno Haible  <bruno@clisp.org>
14771
14772         Avoid link error when creating a namespace clean library.
14773         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14774         as macro with arguments if already defined as an alias.
14775         * lib/signbitf.c (gl_signbitf): Don't undefine.
14776         * lib/signbitd.c (gl_signbitd): Don't undefine.
14777         * lib/signbitl.c (gl_signbitl): Don't undefine.
14778
14779 2009-04-25  Jim Meyering  <meyering@redhat.com>
14780
14781         vc-list-files: fix another quoting bug
14782         * build-aux/vc-list-files: Avoid sed backslash expansion
14783         of pathological directory names.
14784
14785 2009-04-25  Eric Blake  <ebb9@byu.net>
14786
14787         vc-list-files: fix shell quoting error
14788         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14789         timestamp.
14790
14791 2009-04-25  Jim Meyering  <meyering@redhat.com>
14792
14793         vc-list-files: restore lost functionality with subdir argument
14794         * build-aux/vc-list-files: When given a non-"." sub-directory
14795         argument, substitute the $dir/ prefix back onto each resulting name.
14796         Otherwise, coreutils' root_tests check would fail.
14797
14798 2009-04-24  Eric Blake  <ebb9@byu.net>
14799
14800         vc-list-files: ignore git symlinks
14801         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14802         than ls-files, to ignore git symlinks.
14803
14804         maint.mk: import improvements from m4
14805         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14806         (move_if_change): Delete unused macro.
14807         (news-date-check, vc-diff-check): Support VPATH builds.
14808         (announcement): Likewise.  Split --bootstrap-tools list...
14809         (boostrap-tools): ...into separate list, which can be overridden
14810         in cfg.mk.
14811         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14812         requiring dependency on useless-if-before-free module.
14813         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14814         Support VPATH builds.
14815
14816 2009-04-24  Jim Meyering  <meyering@redhat.com>
14817
14818         maint.mk: remove coreutils-specific rules and variables
14819         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14820         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14821         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14822
14823         maint.mk: remove obsolete rule
14824         * top/maint.mk (rel-check): Remove rule.
14825         (WGET, WGETFLAGS): Remove now-unused variables.
14826
14827 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14828
14829         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14830         consistency.
14831
14832         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14833         '$(PATH_SEPARATOR)' instead of ':'.
14834
14835 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14836
14837         * lib/getopt1.c (main): Use 'const' for static array.
14838
14839 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14840
14841         * top/maint.mk: Sync with coreutils.
14842         * NEWS: Explain incompatibilities.
14843
14844 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14845             Bruno Haible  <bruno@clisp.org>
14846
14847         Fix cross-compilation results.
14848         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14849         statement, as third argument of AC_TRY_RUN.
14850         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14851         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14852         Likewise.
14853         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14854         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14855         Likewise.
14856         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14857         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14858         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14859
14860 2009-04-20  Bruno Haible  <bruno@clisp.org>
14861
14862         Avoid test failure on mingw.
14863         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14864
14865 2009-04-20  Bruno Haible  <bruno@clisp.org>
14866
14867         Avoid compilation error on mingw.
14868         * modules/localename-tests (Depends-on): Add locale.
14869
14870 2009-04-19  Bruno Haible  <bruno@clisp.org>
14871
14872         Support for building a shared library on Windows platforms.
14873         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14874         (main): Test the presence of UNINORM_NFC here.
14875         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14876         (main): Test the presence of UNINORM_NFD here.
14877         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14878         (main): Test the presence of UNINORM_NFKC here.
14879         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14880         (main): Test the presence of UNINORM_NFKD here.
14881
14882 2009-04-19  Bruno Haible  <bruno@clisp.org>
14883
14884         Avoid a compiler warning.
14885         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14886         Change type of variable 'sequence'.
14887
14888 2009-04-19  Bruno Haible  <bruno@clisp.org>
14889
14890         * modules/configmake (Makefile.am): When the contents of configmake.h
14891         does not change, arrange to preserve its modification time.
14892
14893 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14894
14895         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14896         gettext domain.
14897
14898 2009-04-16  Jim Meyering  <meyering@redhat.com>
14899
14900         useless-if-before-free: improve conversion code
14901         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14902         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14903
14904 2009-04-14  Bruno Haible  <bruno@clisp.org>
14905
14906         * modules/fcntl (Depends-on): Add extensions.
14907         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14908
14909 2009-04-12  Ben Pfaff  <blp@gnu.org>
14910
14911         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14912         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14913
14914 2009-03-20  Ben Pfaff  <blp@gnu.org>
14915
14916         Make rename replace existing destinations on Windows.
14917         * m4/rename.m4: Add test for Mingw.
14918         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14919         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14920         * doc/posix-functions/rename.texi: Document.
14921
14922 2009-04-10  Bruno Haible  <bruno@clisp.org>
14923
14924         New include file "iconveh.h".
14925         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14926         * lib/striconveh.h: Include it.
14927         (enum iconv_ilseq_handler): Remove definition.
14928         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14929         striconveh.h.
14930         * lib/striconveha.c: Include striconveh.h.
14931         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14932         * modules/striconveh (Files): Add lib/iconveh.h.
14933         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14934         lib/striconveh.h.
14935
14936 2009-04-10  Bruno Haible  <bruno@clisp.org>
14937
14938         * lib/uniconv.h: Update comment.
14939
14940 2009-04-10  Bruno Haible  <bruno@clisp.org>
14941
14942         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14943         always.
14944         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14945         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14946         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14947         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14948         "unistring-notinline.h", so that the function gets defined always.
14949         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14950         * lib/unistr/u8-uctomb.c: Likewise.
14951         * lib/unistr/u16-mbtouc.c: Likewise.
14952         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14953         * lib/unistr/u16-uctomb.c: Likewise.
14954         * lib/unistr/u32-mbtouc.c: Likewise.
14955         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14956         * lib/unistr/u32-uctomb.c: Likewise.
14957
14958 2009-04-10  Bruno Haible  <bruno@clisp.org>
14959
14960         Mark 'utime' obsolete.
14961         * modules/utime (Status, Notice): New sections.
14962         Suggested by Jim Meyering.
14963
14964         Fix cross-compile guess for utime test.
14965         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14966         autoconf.
14967         * doc/posix-functions/utime.texi: Give more precisions.
14968         Reported by Jan <ipif@ymail.com>.
14969
14970 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14971
14972         filevercmp: correct today's change
14973         * lib/filevercmp.c: Also handle coreutils' test inputs.
14974         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14975
14976         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14977         for reporting it.
14978         * lib/filevercmp.c: Special handle for "", "." and "..".
14979         * tests/test-filevercmp.c: Enlarge the set suite.
14980
14981 2009-04-07  Jim Meyering  <meyering@redhat.com>
14982
14983         useless-if-before-free: show how to remove braced useless free, too
14984         * build-aux/useless-if-before-free: still only in a comment, though.
14985
14986 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14987
14988         maint.mk: import changes to syntax-check macros from coreutils
14989         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14990         Use them in the relevant macros.
14991
14992 2009-04-06  Bruno Haible  <bruno@clisp.org>
14993
14994         Fix unportable use of bit-fields.
14995         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14996         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14997         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14998
14999 2009-04-06  Bruno Haible  <bruno@clisp.org>
15000
15001         Avoid test failures on AIX and OSF/1.
15002         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
15003         that malloc(0) = NULL.
15004         * tests/unicase/test-u8-tolower.c (check): Likewise.
15005         * tests/unicase/test-u8-totitle.c (check): Likewise.
15006         * tests/unicase/test-u8-toupper.c (check): Likewise.
15007         * tests/unicase/test-u16-casefold.c (check): Likewise.
15008         * tests/unicase/test-u16-tolower.c (check): Likewise.
15009         * tests/unicase/test-u16-totitle.c (check): Likewise.
15010         * tests/unicase/test-u16-toupper.c (check): Likewise.
15011         * tests/unicase/test-u32-casefold.c (check): Likewise.
15012         * tests/unicase/test-u32-tolower.c (check): Likewise.
15013         * tests/unicase/test-u32-totitle.c (check): Likewise.
15014         * tests/unicase/test-u32-toupper.c (check): Likewise.
15015         * tests/uninorm/test-u8-nfc.c (check): Likewise.
15016         * tests/uninorm/test-u8-nfd.c (check): Likewise.
15017         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
15018         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
15019         * tests/uninorm/test-u16-nfc.c (check): Likewise.
15020         * tests/uninorm/test-u16-nfd.c (check): Likewise.
15021         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
15022         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
15023         * tests/uninorm/test-u32-nfc.c (check): Likewise.
15024         * tests/uninorm/test-u32-nfd.c (check): Likewise.
15025         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
15026         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
15027
15028 2009-04-05  Bruno Haible  <bruno@clisp.org>
15029
15030         Work around an autoconf limitation.
15031         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
15032         comment line if it would be longer than 3 KB.
15033
15034 2009-04-05  Bruno Haible  <bruno@clisp.org>
15035
15036         Avoid test failure with libiconv-1.13.
15037         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
15038         of the expected test results.
15039
15040 2009-04-05  Bruno Haible  <bruno@clisp.org>
15041
15042         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
15043         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
15044         that it should be installed.
15045
15046 2009-04-05  Bruno Haible  <bruno@clisp.org>
15047
15048         * gnulib-tool: New option --copy-file.
15049         (func_usage): Document it.
15050         (func_dest_tmpfilename): Moved out of func_import.
15051         (func_add_file, func_update_file): New functions, extracted from
15052         func_import.
15053         (func_import): Update.
15054
15055 2009-04-05  Karl Berry  <karl@gnu.org>
15056
15057         * README: prominently mention gnulib-tool.
15058         Rearrange sections so getting the code is near the top.
15059
15060 2009-04-05  Bruno Haible  <bruno@clisp.org>
15061
15062         * lib/unicase.h: Mention u*_cmp2.
15063         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15064         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
15065         * lib/unicase/ulc-casecmp.c: Likewise.
15066         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
15067         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
15068         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
15069         unistr/u8-cmp.
15070         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
15071         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
15072         unistr/u16-cmp.
15073         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
15074         unistr/u32-cmp.
15075
15076         * lib/uninorm.h: Mention u*_cmp2.
15077         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15078         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
15079         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
15080         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
15081         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
15082         unistr/u8-cmp.
15083         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
15084         unistr/u16-cmp.
15085         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
15086         unistr/u32-cmp.
15087
15088         New module 'unistr/u32-cmp2'.
15089         * lib/unistr/u32-cmp2.c: New file.
15090         * modules/unistr/u32-cmp2: New file.
15091
15092         New module 'unistr/u16-cmp2'.
15093         * lib/unistr/u16-cmp2.c: New file.
15094         * modules/unistr/u16-cmp2: New file.
15095
15096         New module 'unistr/u8-cmp2'.
15097         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
15098         * lib/unistr/u8-cmp2.c: New file.
15099         * lib/unistr/u-cmp2.h: New file.
15100         * modules/unistr/u8-cmp2: New file.
15101
15102 2009-04-05  Bruno Haible  <bruno@clisp.org>
15103
15104         * lib/unictype.h (uc_property_is_valid): New macro.
15105         * tests/unictype/test-pr_byname.c (main): Use it.
15106
15107         * lib/unistr.h: Doc fixes.
15108         * lib/uniconv.h: Doc fixes.
15109         * lib/unictype.h: Doc fixes.
15110
15111 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
15112
15113         Port coreutils 7.2 to Solaris 8.
15114
15115         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
15116         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
15117         for Solaris 8.  This is a bit of a hack, as it means it's the
15118         caller's responsibility to add -lnsl if needed, but most likely it
15119         won't be needed since only getaddrinfo uses this and getaddrinfo
15120         isn't needed on Solaris 8.
15121
15122         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
15123         problem to Solaris 8 encountered with coreutils 7.2, which
15124         resulted in a message "fnmatch.c:292: warning: passing argument 4
15125         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
15126         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
15127
15128 2009-04-03  Simon Josefsson  <simon@josefsson.org>
15129
15130         * m4/ld-version-script.m4: Add FIXME comment.
15131
15132 2009-04-02  Simon Josefsson  <simon@josefsson.org>
15133
15134         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
15135         SOVERSION variable.
15136
15137 2009-04-02  Bruno Haible  <bruno@clisp.org>
15138
15139         * Makefile (info, html, dvi, pdf): Combine the rules.
15140         Suggested by Jim Meyering.
15141
15142 2009-04-01  Bruno Haible  <bruno@clisp.org>
15143
15144         * Makefile (info, html, dvi, pdf): New targets.
15145         Reported by Reuben Thomas <rrt@sc3d.org>.
15146
15147 2009-04-01  Bruno Haible  <bruno@clisp.org>
15148
15149         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
15150         can be put into PATH.
15151         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
15152
15153 2009-04-01  Bruno Haible  <bruno@clisp.org>
15154
15155         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
15156
15157 2009-04-01  Bruno Haible  <bruno@clisp.org>
15158
15159         Rename module 'visibility'.
15160         * modules/lib-symbol-visibility: Renamed from modules/visibility.
15161         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
15162         * doc/gnulib.texi: Update.
15163         * MODULES.html.sh (Misc): Update.
15164         * NEWS: Mention the change.
15165
15166 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15167
15168         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
15169         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
15170         Eric Blake <ebb9@byu.net> for review.
15171         * MODULES.html.sh: Add lib-msvc-compat.
15172         * doc/gnulib.texi: Link to new section.
15173         * m4/ld-output-def.m4: New file.
15174         * doc/ld-output-def.texi: New file.
15175
15176 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15177
15178         Rename ld-version-script to lib-symbol-versions.  Suggested by
15179         Bruno Haible <bruno@clisp.org>.
15180         * modules/ld-version-script: Renamed to lib-symbol-versions.
15181         * doc/ld-version-script.texi: Fix module name.
15182         * MODULES.html.sh: Add lib-symbol-versions.
15183
15184 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15185
15186         * modules/u64-tests: New file.
15187         * tests/test-u64.c: New file.
15188
15189 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15190
15191         * MODULES.html.sh: Mention u64.
15192         * modules/u64: New module.
15193         * modules/crypto/sha512: Depend on u64 module instead of providing
15194         u64.h.
15195
15196 2009-03-27  Eric Blake  <ebb9@byu.net>
15197
15198         test-strerror: make debugging EAI_SYSTEM easier
15199         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15200         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15201         failure was EAI_SYSTEM.
15202
15203 2009-03-25  Bruno Haible  <bruno@clisp.org>
15204
15205         Fix a problem with --enable-relocatable on Solaris 7.
15206         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15207         since 2008-02-24.
15208
15209 2009-03-25  Eric Blake  <ebb9@byu.net>
15210
15211         test-sockets: avoid gcc warning
15212         * tests/test-sockets.c (main): Silence compiler warning.
15213
15214 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15215
15216         New modules nproc, pthread, contributed by Glen Lenker.
15217
15218         * MODULES.html.sh: Add pthread, nproc.
15219         * lib/nproc.c: New file.
15220         * lib/nproc.h: New file.
15221         * lib/pthread.in.h: New file.
15222         * m4/pthread.m4: New file.
15223         * modules/nproc: New file.
15224         * modules/pthread: New file.
15225
15226 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15227
15228         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15229         New variable.
15230
15231 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15232
15233         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15234         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15235         * tests/test-filevercmp.c: Add tests for backup suffixes.
15236
15237 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15238
15239         * modules/stdlib (Depends-on): Add stdint, needed when defining
15240         struct random_data on, for example, HP-UX 10.20.  Reported by
15241         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15242
15243 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15244
15245         * lib/readline.c (readline): Call fflush on stdout after printing
15246         prompt.
15247
15248 2009-03-20  Bruno Haible  <bruno@clisp.org>
15249
15250         Remove dependency from 'close' module to -lws2_32 on native Windows.
15251         * lib/close-hook.h: New file.
15252         * lib/close-hook.c: New file.
15253         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15254         w32sock.h.
15255         (_gl_close_fd_maybe_socket): Remove function.
15256         (rpl_close): Invoke execute_all_close_hooks instead of
15257         _gl_close_fd_maybe_socket.
15258         * lib/sockets.c: Include close-hook.h, w32sock.h.
15259         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15260         (close_sockets_hook): New variable.
15261         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15262         (gl_sockets_cleanup): Unregister it.
15263         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15264         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15265         * modules/close-hook: New file.
15266         * modules/close (Files): Remove lib/w32sock.h.
15267         (Depends-on): Add close-hook.
15268         (Link): Remove section.
15269         * modules/sockets (Files): Add lib/w32sock.h.
15270         (Depends-on): Add close-hook.
15271         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15272         invocation.
15273         * NEWS: Mention that LIB_CLOSE is gone.
15274
15275 2009-03-23  Eric Blake  <ebb9@byu.net>
15276
15277         signal-tests: test previous patch
15278         * tests/test-signal.c: New file.
15279         * modules/signal-tests: Likewise.
15280
15281         signal.h: always support 'volatile sig_atomic_t'
15282         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15283         (gl_SIGNAL_H_DEFAULTS): Add a default.
15284         * modules/signal (Makefile.am): Substitute if needed.
15285         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15286         users can blindly add volatile.
15287         * doc/posix-headers/signal.texi (signal.h): Document it.
15288         Reported by Matthew Woehlke.
15289
15290 2009-03-23  Jim Meyering  <meyering@redhat.com>
15291
15292         pathmax: PATH_MAX: use pathconf only when available
15293         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15294         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15295         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15296         This avoids a link failure in a PSP cross-compilation environment
15297         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15298
15299         * lib/vasnprintf.c (divide): Fix typo in comment.
15300
15301 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15302
15303         * gnulib-tool (func_filter_filelist): Fix comment.
15304
15305 2009-03-20  Bruno Haible  <bruno@clisp.org>
15306
15307         Make sockets.h self-contained.
15308         * lib/sockets.c: Include sockets.h first.
15309         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15310
15311 2009-03-19  Eric Blake  <ebb9@byu.net>
15312
15313         doc: mention more functions added in cygwin 1.7.0
15314         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15315         addition.
15316         * doc/posix-functions/log2f.texi: Likewise.
15317
15318 2009-03-19  Jim Meyering  <meyering@redhat.com>
15319
15320         fsusage: avoid syntax error due to statement-before-declaration
15321         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15322         after all declarations.  Reported by Matthew Woehlke in
15323         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15324
15325 2009-03-18  Eric Blake  <ebb9@byu.net>
15326
15327         build-aux/compile: sync from automake
15328         * build-aux/compile: New file, from automake.
15329         * config/srclist.txt: Mention build-aux/compile.
15330
15331 2009-03-17  Bruno Haible  <bruno@clisp.org>
15332
15333         * lib/git-merge-changelog.c: Fix typo in comment.
15334         Reported by Reuben Thomas <rrt@sc3d.org>.
15335
15336 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15337
15338         * m4/regex.m4: update and improve help for
15339         --without-included-regex.
15340
15341 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15342
15343         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15344         failure on missing include files.
15345
15346 2009-03-17  Eric Blake  <ebb9@byu.net>
15347
15348         doc: mention more functions added in cygwin 1.7.0
15349         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15350         addition.
15351         * doc/posix-functions/fwscanf.texi: Likewise.
15352         * doc/posix-functions/swprintf.texi: Likewise.
15353         * doc/posix-functions/swscanf.texi: Likewise.
15354         * doc/posix-functions/vfwprintf.texi: Likewise.
15355         * doc/posix-functions/vfwscanf.texi: Likewise.
15356         * doc/posix-functions/vswprintf.texi: Likewise.
15357         * doc/posix-functions/vswscanf.texi: Likewise.
15358         * doc/posix-functions/vwprintf.texi: Likewise.
15359         * doc/posix-functions/vwscanf.texi: Likewise.
15360         * doc/posix-functions/wcscasecmp.texi: Likewise.
15361         * doc/posix-functions/wcsdup.texi: Likewise.
15362         * doc/posix-functions/wcsftime.texi: Likewise.
15363         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15364         * doc/posix-functions/wprintf.texi: Likewise.
15365         * doc/posix-functions/wscanf.texi: Likewise.
15366         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15367
15368 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15369
15370         maint.mk: really add $(AM_MAKEFLAGS)
15371         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15372         was inadvertently omitted in the last commit.
15373         Spotted by Bruno Haible.
15374
15375         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15376         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15377         $(AM_MAKEFLAGS)' rather than plain `make'.
15378
15379         gnulib-tool: execute $MAKE not make
15380         * gnulib-tool: Default $MAKE to 'make'.
15381         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15382         than make.  Initialize $MAKE in the do-autobuild script.
15383
15384         gnulib-tool: use $MAKE not make in generated files
15385         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15386         make, in generated files.  Initialize $MAKE in the do-autobuild
15387         script.
15388
15389         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15390
15391         GNUmakefile: disable parallelism only for multiple, recursive targets
15392         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15393         additions in the Makefile.
15394         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15395         by Automake.
15396         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15397         are listed on the command line and at least one of them is
15398         listed in $(ALL_RECURSIVE_TARGETS).
15399
15400 2009-03-14  Bruno Haible  <bruno@clisp.org>
15401
15402         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15403         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15404         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15405         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15406         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15407         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15408         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15409         unistr/u8-uctomb.
15410         * modules/unistr/u8-strchr (Depends-on): Likewise.
15411         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15412         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15413         unistr/u16-uctomb.
15414         * modules/unistr/u16-strchr (Depends-on): Likewise.
15415         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15416
15417 2009-03-12  Bruno Haible  <bruno@clisp.org>
15418
15419         Work around select() bug on Interix 3.5.
15420         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15421         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15422         * m4/select.m4: New file.
15423         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15424         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15425         * modules/select (Files): Add m4/select.m4.
15426         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15427         * modules/nanosleep (Depends-on): Add select.
15428         * modules/poll (Depends-on): Likewise.
15429         * doc/posix-functions/select.texi: Mention the Interix bug.
15430         Reported by Markus Duft <mduft@gentoo.org>.
15431
15432         * lib/select.c: Renamed from lib/winsock-select.c.
15433         * modules/select (Files): Add lib/select.c, remove
15434         lib/winsock-select.c.
15435         (configure.ac): Update.
15436
15437 2009-03-12  Jim Meyering  <meyering@redhat.com>
15438
15439         avoid gcc warnings about unused macro definitions
15440         * lib/readtokens.c (STREQ): Remove unused definition.
15441         * lib/xmalloc.c (SIZE_MAX): Likewise.
15442         * lib/openat-die.c (N_): Likewise.
15443         * lib/mountlist.c (SIZE_MAX): Remove definition.
15444         Instead, include <stdint.h>.
15445         * lib/readutmp.c: Likewise.
15446         * modules/readutmp (Depends-on): Add stdint.
15447         * modules/mountlist (Depends-on): Add stdint.
15448         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15449
15450 2009-03-10  Bruno Haible  <bruno@clisp.org>
15451
15452         Tests for module 'mbmemcasecoll'.
15453         * modules/mbmemcasecoll-tests: New file.
15454         * tests/test-mbmemcasecoll1.sh: New file.
15455         * tests/test-mbmemcasecoll2.sh: New file.
15456         * tests/test-mbmemcasecoll3.sh: New file.
15457         * tests/test-mbmemcasecoll.c: New file.
15458
15459         New module 'mbmemcasecoll'.
15460         * lib/mbmemcasecoll.h: New file.
15461         * lib/mbmemcasecoll.c: New file.
15462         * modules/mbmemcasecoll: New file.
15463
15464         * tests/test-mbmemcasecmp.h: New file, extracted from
15465         tests/test-mbmemcasecmp.c.
15466         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15467         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15468         (main): Update.
15469         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15470
15471 2009-03-09  Bruno Haible  <bruno@clisp.org>
15472
15473         Tests for module 'mbmemcasecmp'.
15474         * modules/mbmemcasecmp-tests: New file.
15475         * tests/test-mbmemcasecmp1.sh: New file.
15476         * tests/test-mbmemcasecmp2.sh: New file.
15477         * tests/test-mbmemcasecmp3.sh: New file.
15478         * tests/test-mbmemcasecmp.c: New file.
15479
15480         New module 'mbmemcasecmp'.
15481         * lib/mbmemcasecmp.h: New file.
15482         * lib/mbmemcasecmp.c: New file.
15483         * modules/mbmemcasecmp: New file.
15484
15485 2009-03-09  Bruno Haible  <bruno@clisp.org>
15486
15487         Tests for module 'unicase/ulc-casecoll'.
15488         * modules/unicase/ulc-casecoll-tests: New file.
15489         * tests/unicase/test-ulc-casecoll1.sh: New file.
15490         * tests/unicase/test-ulc-casecoll2.sh: New file.
15491         * tests/unicase/test-ulc-casecoll.c: New file.
15492
15493         New module 'unicase/ulc-casecoll'.
15494         * lib/unicase.h (ulc_casecoll): New declaration.
15495         * lib/unicase/ulc-casecoll.c: New file.
15496         * modules/unicase/ulc-casecoll: New file.
15497
15498         New module 'unicase/ulc-casexfrm'.
15499         * lib/unicase.h (ulc_casexfrm): New declaration.
15500         * lib/unicase/ulc-casexfrm.c: New file.
15501         * modules/unicase/ulc-casexfrm: New file.
15502
15503 2009-03-09  Bruno Haible  <bruno@clisp.org>
15504
15505         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15506         invocations.
15507
15508         * m4/mbscasecmp.m4: Remove file.
15509         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15510         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15511
15512         * m4/mbscasestr.m4: Remove file.
15513         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15514         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15515
15516         * m4/mbschr.m4: Remove file.
15517         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15518         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15519
15520         * m4/mbscspn.m4: Remove file.
15521         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15522         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15523
15524         * m4/mbslen.m4: Remove file.
15525         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15526         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15527
15528         * m4/mbsncasecmp.m4: Remove file.
15529         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15530         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15531
15532         * m4/mbsnlen.m4: Remove file.
15533         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15534         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15535
15536         * m4/mbspbrk.m4: Remove file.
15537         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15538         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15539
15540         * m4/mbspcasecmp.m4: Remove file.
15541         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15542         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15543
15544         * m4/mbsrchr.m4: Remove file.
15545         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15546         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15547
15548         * m4/mbssep.m4: Remove file.
15549         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15550         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15551
15552         * m4/mbsspn.m4: Remove file.
15553         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15554         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15555
15556         * m4/mbsstr.m4: Remove file.
15557         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15558         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15559
15560         * m4/mbstok_r.m4: Remove file.
15561         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15562         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15563
15564         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15565
15566         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15567         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15568
15569         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15570
15571 2009-03-08  Bruno Haible  <bruno@clisp.org>
15572
15573         Tests for module 'unicase/ulc-casecmp'.
15574         * modules/unicase/ulc-casecmp-tests: New file.
15575         * tests/unicase/test-ulc-casecmp1.sh: New file.
15576         * tests/unicase/test-ulc-casecmp2.sh: New file.
15577         * tests/unicase/test-ulc-casecmp.c: New file.
15578
15579         New module 'unicase/ulc-casecmp'.
15580         * lib/unicase.h (ulc_casecmp): New declaration.
15581         * lib/unicase/ulc-casecmp.c: New file.
15582         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15583         'const SRC_UNIT *'.
15584         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15585         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15586         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15587         * modules/unicase/ulc-casecmp: New file.
15588
15589         Tests for module 'unicase/u32-is-cased'.
15590         * modules/unicase/u32-is-cased-tests: New file.
15591         * tests/unicase/test-u32-is-cased.c: New file.
15592
15593         Tests for module 'unicase/u16-is-cased'.
15594         * modules/unicase/u16-is-cased-tests: New file.
15595         * tests/unicase/test-u16-is-cased.c: New file.
15596
15597         Tests for module 'unicase/u8-is-cased'.
15598         * modules/unicase/u8-is-cased-tests: New file.
15599         * tests/unicase/test-u8-is-cased.c: New file.
15600         * tests/unicase/test-is-cased.h: New file.
15601
15602         New module 'unicase/u32-is-cased'.
15603         * lib/unicase/u32-is-cased.c: New file.
15604         * modules/unicase/u32-is-cased: New file.
15605
15606         New module 'unicase/u16-is-cased'.
15607         * lib/unicase/u16-is-cased.c: New file.
15608         * modules/unicase/u16-is-cased: New file.
15609
15610         New module 'unicase/u8-is-cased'.
15611         * lib/unicase/u8-is-cased.c: New file.
15612         * lib/unicase/u-is-cased.h: New file.
15613         * modules/unicase/u8-is-cased: New file.
15614
15615         Tests for module 'unicase/u32-is-casefolded'.
15616         * modules/unicase/u32-is-casefolded-tests: New file.
15617         * tests/unicase/test-u32-is-casefolded.c: New file.
15618
15619         Tests for module 'unicase/u16-is-casefolded'.
15620         * modules/unicase/u16-is-casefolded-tests: New file.
15621         * tests/unicase/test-u16-is-casefolded.c: New file.
15622
15623         Tests for module 'unicase/u8-is-casefolded'.
15624         * modules/unicase/u8-is-casefolded-tests: New file.
15625         * tests/unicase/test-u8-is-casefolded.c: New file.
15626         * tests/unicase/test-is-casefolded.h: New file.
15627
15628         New module 'unicase/u32-is-casefolded'.
15629         * lib/unicase/u32-is-casefolded.c: New file.
15630         * modules/unicase/u32-is-casefolded: New file.
15631
15632         New module 'unicase/u16-is-casefolded'.
15633         * lib/unicase/u16-is-casefolded.c: New file.
15634         * modules/unicase/u16-is-casefolded: New file.
15635
15636         New module 'unicase/u8-is-casefolded'.
15637         * lib/unicase/u8-is-casefolded.c: New file.
15638         * modules/unicase/u8-is-casefolded: New file.
15639
15640         Tests for module 'unicase/u32-is-titlecase'.
15641         * modules/unicase/u32-is-titlecase-tests: New file.
15642         * tests/unicase/test-u32-is-titlecase.c: New file.
15643
15644         Tests for module 'unicase/u16-is-titlecase'.
15645         * modules/unicase/u16-is-titlecase-tests: New file.
15646         * tests/unicase/test-u16-is-titlecase.c: New file.
15647
15648         Tests for module 'unicase/u8-is-titlecase'.
15649         * modules/unicase/u8-is-titlecase-tests: New file.
15650         * tests/unicase/test-u8-is-titlecase.c: New file.
15651         * tests/unicase/test-is-titlecase.h: New file.
15652
15653         New module 'unicase/u32-is-titlecase'.
15654         * lib/unicase/u32-is-titlecase.c: New file.
15655         * modules/unicase/u32-is-titlecase: New file.
15656
15657         New module 'unicase/u16-is-titlecase'.
15658         * lib/unicase/u16-is-titlecase.c: New file.
15659         * modules/unicase/u16-is-titlecase: New file.
15660
15661         New module 'unicase/u8-is-titlecase'.
15662         * lib/unicase/u8-is-titlecase.c: New file.
15663         * modules/unicase/u8-is-titlecase: New file.
15664
15665         Tests for module 'unicase/u32-is-lowercase'.
15666         * modules/unicase/u32-is-lowercase-tests: New file.
15667         * tests/unicase/test-u32-is-lowercase.c: New file.
15668
15669         Tests for module 'unicase/u16-is-lowercase'.
15670         * modules/unicase/u16-is-lowercase-tests: New file.
15671         * tests/unicase/test-u16-is-lowercase.c: New file.
15672
15673         Tests for module 'unicase/u8-is-lowercase'.
15674         * modules/unicase/u8-is-lowercase-tests: New file.
15675         * tests/unicase/test-u8-is-lowercase.c: New file.
15676         * tests/unicase/test-is-lowercase.h: New file.
15677
15678         New module 'unicase/u32-is-lowercase'.
15679         * lib/unicase/u32-is-lowercase.c: New file.
15680         * modules/unicase/u32-is-lowercase: New file.
15681
15682         New module 'unicase/u16-is-lowercase'.
15683         * lib/unicase/u16-is-lowercase.c: New file.
15684         * modules/unicase/u16-is-lowercase: New file.
15685
15686         New module 'unicase/u8-is-lowercase'.
15687         * lib/unicase/u8-is-lowercase.c: New file.
15688         * modules/unicase/u8-is-lowercase: New file.
15689
15690         Tests for module 'unicase/u32-is-uppercase'.
15691         * modules/unicase/u32-is-uppercase-tests: New file.
15692         * tests/unicase/test-u32-is-uppercase.c: New file.
15693
15694         Tests for module 'unicase/u16-is-uppercase'.
15695         * modules/unicase/u16-is-uppercase-tests: New file.
15696         * tests/unicase/test-u16-is-uppercase.c: New file.
15697
15698         Tests for module 'unicase/u8-is-uppercase'.
15699         * modules/unicase/u8-is-uppercase-tests: New file.
15700         * tests/unicase/test-u8-is-uppercase.c: New file.
15701         * tests/unicase/test-is-uppercase.h: New file.
15702
15703         New module 'unicase/u32-is-uppercase'.
15704         * lib/unicase/u32-is-uppercase.c: New file.
15705         * modules/unicase/u32-is-uppercase: New file.
15706
15707         New module 'unicase/u16-is-uppercase'.
15708         * lib/unicase/u16-is-uppercase.c: New file.
15709         * modules/unicase/u16-is-uppercase: New file.
15710
15711         New module 'unicase/u8-is-uppercase'.
15712         * lib/unicase/u8-is-uppercase.c: New file.
15713         * modules/unicase/u8-is-uppercase: New file.
15714
15715         New module 'unicase/u32-is-invariant'.
15716         * lib/unicase/u32-is-invariant.c: New file.
15717         * modules/unicase/u32-is-invariant: New file.
15718
15719         New module 'unicase/u16-is-invariant'.
15720         * lib/unicase/u16-is-invariant.c: New file.
15721         * modules/unicase/u16-is-invariant: New file.
15722
15723         New module 'unicase/u8-is-invariant'.
15724         * lib/unicase/u8-is-invariant.c: New file.
15725         * lib/unicase/invariant.h: New file.
15726         * lib/unicase/u-is-invariant.h: New file.
15727         * modules/unicase/u8-is-invariant: New file.
15728
15729         Tests for module 'unicase/u32-casecoll'.
15730         * modules/unicase/u32-casecoll-tests: New file.
15731         * tests/unicase/test-u32-casecoll.c: New file.
15732
15733         Tests for module 'unicase/u16-casecoll'.
15734         * modules/unicase/u16-casecoll-tests: New file.
15735         * tests/unicase/test-u16-casecoll.c: New file.
15736
15737         Tests for module 'unicase/u8-casecoll'.
15738         * modules/unicase/u8-casecoll-tests: New file.
15739         * tests/unicase/test-u8-casecoll.c: New file.
15740
15741         New module 'unicase/u32-casecoll'.
15742         * lib/unicase/u32-casecoll.c: New file.
15743         * modules/unicase/u32-casecoll: New file.
15744
15745         New module 'unicase/u16-casecoll'.
15746         * lib/unicase/u16-casecoll.c: New file.
15747         * modules/unicase/u16-casecoll: New file.
15748
15749         New module 'unicase/u8-casecoll'.
15750         * lib/unicase/u8-casecoll.c: New file.
15751         * lib/unicase/u-casecoll.h: New file.
15752         * modules/unicase/u8-casecoll: New file.
15753
15754         New module 'unicase/u32-casexfrm'.
15755         * lib/unicase/u32-casexfrm.c: New file.
15756         * modules/unicase/u32-casexfrm: New file.
15757
15758         New module 'unicase/u16-casexfrm'.
15759         * lib/unicase/u16-casexfrm.c: New file.
15760         * modules/unicase/u16-casexfrm: New file.
15761
15762         New module 'unicase/u8-casexfrm'.
15763         * lib/unicase/u8-casexfrm.c: New file.
15764         * lib/unicase/u-casexfrm.h: New file.
15765         * modules/unicase/u8-casexfrm: New file.
15766
15767         Tests for module 'unicase/u32-casecmp'.
15768         * modules/unicase/u32-casecmp-tests: New file.
15769         * tests/unicase/test-u32-casecmp.c: New file.
15770
15771         Tests for module 'unicase/u16-casecmp'.
15772         * modules/unicase/u16-casecmp-tests: New file.
15773         * tests/unicase/test-u16-casecmp.c: New file.
15774
15775         Tests for module 'unicase/u8-casecmp'.
15776         * modules/unicase/u8-casecmp-tests: New file.
15777         * tests/unicase/test-u8-casecmp.c: New file.
15778         * tests/unicase/test-casecmp.h: New file.
15779
15780         New module 'unicase/u32-casecmp'.
15781         * lib/unicase/u32-casecmp.c: New file.
15782         * modules/unicase/u32-casecmp: New file.
15783
15784         New module 'unicase/u16-casecmp'.
15785         * lib/unicase/u16-casecmp.c: New file.
15786         * modules/unicase/u16-casecmp: New file.
15787
15788         New module 'unicase/u8-casecmp'.
15789         * lib/unicase/u8-casecmp.c: New file.
15790         * lib/unicase/u-casecmp.h: New file.
15791         * modules/unicase/u8-casecmp: New file.
15792
15793         Tests for module 'unicase/u32-casefold'.
15794         * modules/unicase/u32-casefold-tests: New file.
15795         * tests/unicase/test-u32-casefold.c: New file.
15796
15797         Tests for module 'unicase/u16-casefold'.
15798         * modules/unicase/u16-casefold-tests: New file.
15799         * tests/unicase/test-u16-casefold.c: New file.
15800
15801         Tests for module 'unicase/u8-casefold'.
15802         * modules/unicase/u8-casefold-tests: New file.
15803         * tests/unicase/test-u8-casefold.c: New file.
15804
15805         New module 'unicase/u32-casefold'.
15806         * lib/unicase/u32-casefold.c: New file.
15807         * modules/unicase/u32-casefold: New file.
15808
15809         New module 'unicase/u16-casefold'.
15810         * lib/unicase/u16-casefold.c: New file.
15811         * modules/unicase/u16-casefold: New file.
15812
15813         New module 'unicase/u8-casefold'.
15814         * lib/unicase/u8-casefold.c: New file.
15815         * lib/unicase/u-casefold.h: New file.
15816         * modules/unicase/u8-casefold: New file.
15817
15818         New module 'unicase/tocasefold'.
15819         * lib/unicase/casefold.h: New file.
15820         * lib/unicase/tocasefold.c: New file.
15821         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15822         * modules/unicase/tocasefold: New file.
15823
15824         Tests for module 'unicase/u32-totitle'.
15825         * modules/unicase/u32-totitle-tests: New file.
15826         * tests/unicase/test-u32-totitle.c: New file.
15827
15828         Tests for module 'unicase/u16-totitle'.
15829         * modules/unicase/u16-totitle-tests: New file.
15830         * tests/unicase/test-u16-totitle.c: New file.
15831
15832         Tests for module 'unicase/u8-totitle'.
15833         * modules/unicase/u8-totitle-tests: New file.
15834         * tests/unicase/test-u8-totitle.c: New file.
15835
15836         New module 'unicase/u32-totitle'.
15837         * lib/unicase/u32-totitle.c: New file.
15838         * modules/unicase/u32-totitle: New file.
15839
15840         New module 'unicase/u16-totitle'.
15841         * lib/unicase/u16-totitle.c: New file.
15842         * modules/unicase/u16-totitle: New file.
15843
15844         New module 'unicase/u8-totitle'.
15845         * lib/unicase/u8-totitle.c: New file.
15846         * lib/unicase/u-totitle.h: New file.
15847         * modules/unicase/u8-totitle: New file.
15848
15849         Tests for module 'unicase/u32-tolower'.
15850         * modules/unicase/u32-tolower-tests: New file.
15851         * tests/unicase/test-u32-tolower.c: New file.
15852
15853         Tests for module 'unicase/u16-tolower'.
15854         * modules/unicase/u16-tolower-tests: New file.
15855         * tests/unicase/test-u16-tolower.c: New file.
15856
15857         Tests for module 'unicase/u8-tolower'.
15858         * modules/unicase/u8-tolower-tests: New file.
15859         * tests/unicase/test-u8-tolower.c: New file.
15860
15861         New module 'unicase/u32-tolower'.
15862         * lib/unicase/u32-tolower.c: New file.
15863         * modules/unicase/u32-tolower: New file.
15864
15865         New module 'unicase/u16-tolower'.
15866         * lib/unicase/u16-tolower.c: New file.
15867         * modules/unicase/u16-tolower: New file.
15868
15869         New module 'unicase/u8-tolower'.
15870         * lib/unicase/u8-tolower.c: New file.
15871         * modules/unicase/u8-tolower: New file.
15872
15873         Tests for module 'unicase/u32-toupper'.
15874         * modules/unicase/u32-toupper-tests: New file.
15875         * tests/unicase/test-u32-toupper.c: New file.
15876
15877         Tests for module 'unicase/u16-toupper'.
15878         * modules/unicase/u16-toupper-tests: New file.
15879         * tests/unicase/test-u16-toupper.c: New file.
15880
15881         Tests for module 'unicase/u8-toupper'.
15882         * modules/unicase/u8-toupper-tests: New file.
15883         * tests/unicase/test-u8-toupper.c: New file.
15884
15885         New module 'unicase/u32-toupper'.
15886         * lib/unicase/u32-toupper.c: New file.
15887         * modules/unicase/u32-toupper: New file.
15888
15889         New module 'unicase/u16-toupper'.
15890         * lib/unicase/u16-toupper.c: New file.
15891         * modules/unicase/u16-toupper: New file.
15892
15893         New module 'unicase/u8-toupper'.
15894         * lib/unicase/u8-toupper.c: New file.
15895         * modules/unicase/u8-toupper: New file.
15896
15897         New module 'unicase/u32-casemap'.
15898         * lib/unicase/u32-casemap.c: New file.
15899         * modules/unicase/u32-casemap: New file.
15900
15901         New module 'unicase/u16-casemap'.
15902         * lib/unicase/u16-casemap.c: New file.
15903         * modules/unicase/u16-casemap: New file.
15904
15905         New module 'unicase/u8-casemap'.
15906         * lib/unicase/unicasemap.h: New file.
15907         * lib/unicase/u8-casemap.c: New file.
15908         * lib/unicase/u-casemap.h: New file.
15909         * modules/unicase/u8-casemap: New file.
15910
15911         New module 'unicase/special-casing'.
15912         * lib/unicase/special-casing.h: New file.
15913         * lib/unicase/special-casing.c: New file.
15914         * lib/unicase/special-casing-table.gperf: New file, generated by
15915         gen-uni-tables.c.
15916         * modules/unicase/special-casing: New file.
15917
15918         Tests for module 'unicase/locale-language'.
15919         * modules/unicase/locale-language-tests: New file.
15920         * tests/unicase/test-locale-language.sh: New file.
15921         * tests/unicase/test-locale-language.c: New file.
15922
15923         New module 'unicase/locale-language'.
15924         * lib/unicase/locale-language.c: New file.
15925         * lib/unicase/locale-languages.gperf: New file.
15926         * modules/unicase/locale-language: New file.
15927
15928         Generate more tables for case conversion and case folding.
15929         * lib/gen-uni-tables.c (SCC_*): New enum items.
15930         (struct special_casing_rule): New type.
15931         (casing_rules, num_casing_rules, allocated_casing_rules): New
15932         variables.
15933         (add_casing_rule, fill_casing_rules): New functions.
15934         (struct casefold_rule): New type.
15935         (casefolding_rules, num_casefolding_rules,
15936         allocated_casefolding_rules): New variables.
15937         (fill_casefolding_rules): New function.
15938         (unicode_casefold): New variable.
15939         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15940         sort_casing_rules, output_casing_rules): New functions.
15941         (main): Accept to more arguments: SpecialCasing.txt and
15942         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15943         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15944         Output mapping for casefolding.
15945
15946         * lib/unicase.h: Include stdbool.h, uninorm.h.
15947         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15948         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15949         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15950         arguments.
15951         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15952         resultp arguments.
15953         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15954         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15955         resultp arguments.
15956         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15957         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15958         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15959         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15960         declarations.
15961         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15962
15963 2009-03-08  Bruno Haible  <bruno@clisp.org>
15964
15965         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15966         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15967         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15968         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15969
15970 2009-03-07  Bruno Haible  <bruno@clisp.org>
15971
15972         Adjust u*_normcmp, u*_normcoll API.
15973         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15974         u16_normcoll, u32_normcoll): Change failure conventions.
15975         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15976         errno and return -1.
15977         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15978
15979 2009-03-07  Bruno Haible  <bruno@clisp.org>
15980
15981         Tests for module 'uninorm/u32-normcoll'.
15982         * modules/uninorm/u32-normcoll-tests: New file.
15983         * tests/uninorm/test-u32-normcoll.c: New file.
15984
15985         Tests for module 'uninorm/u16-normcoll'.
15986         * modules/uninorm/u16-normcoll-tests: New file.
15987         * tests/uninorm/test-u16-normcoll.c: New file.
15988
15989         Tests for module 'uninorm/u8-normcoll'.
15990         * modules/uninorm/u8-normcoll-tests: New file.
15991         * tests/uninorm/test-u8-normcoll.c: New file.
15992
15993 2009-03-07  Bruno Haible  <bruno@clisp.org>
15994
15995         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15996         tests/uninorm/test-u32-normcmp.c.
15997         * tests/uninorm/test-u32-normcmp.c: Include it.
15998         (test_nonascii): New function, extracted from main. Add some more
15999         tests.
16000         (main): Invoke test_ascii and test_nonascii.
16001         * modules/uninorm/u32-normcmp-tests (Files): Add
16002         tests/uninorm/test-u32-normcmp.h.
16003         (Depends-on): Remove uninorm/u32-normcmp.
16004
16005         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
16006         tests/uninorm/test-u16-normcmp.c.
16007         * tests/uninorm/test-u16-normcmp.c: Include it.
16008         (test_nonascii): New function, extracted from main. Add some more
16009         tests.
16010         (main): Invoke test_ascii and test_nonascii.
16011         * modules/uninorm/u16-normcmp-tests (Files): Add
16012         tests/uninorm/test-u16-normcmp.h.
16013         (Depends-on): Remove uninorm/u16-normcmp.
16014
16015         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
16016         tests/uninorm/test-u8-normcmp.c.
16017         * tests/uninorm/test-u8-normcmp.c: Include it.
16018         (test_nonascii): New function, extracted from main. Add some more
16019         tests.
16020         (main): Invoke test_ascii and test_nonascii.
16021         * modules/uninorm/u8-normcmp-tests (Files): Add
16022         tests/uninorm/test-u8-normcmp.h.
16023         (Depends-on): Remove uninorm/u8-normcmp.
16024
16025 2009-03-07  Bruno Haible  <bruno@clisp.org>
16026
16027         New module 'uninorm/u32-normcoll'.
16028         * lib/uninorm/u32-normcoll.c: New file.
16029         * modules/uninorm/u32-normcoll: New file.
16030
16031         New module 'uninorm/u16-normcoll'.
16032         * lib/uninorm/u16-normcoll.c: New file.
16033         * modules/uninorm/u16-normcoll: New file.
16034
16035         New module 'uninorm/u8-normcoll'.
16036         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
16037         declarations.
16038         * lib/uninorm/u8-normcoll.c: New file.
16039         * lib/uninorm/u-normcoll.h: New file.
16040         * modules/uninorm/u8-normcoll: New file.
16041
16042         New module 'uninorm/u32-normxfrm'.
16043         * lib/uninorm/u32-normxfrm.c: New file.
16044         * modules/uninorm/u32-normxfrm: New file.
16045
16046         New module 'uninorm/u16-normxfrm'.
16047         * lib/uninorm/u16-normxfrm.c: New file.
16048         * modules/uninorm/u16-normxfrm: New file.
16049
16050         New module 'uninorm/u8-normxfrm'.
16051         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
16052         declarations.
16053         * lib/uninorm/u8-normxfrm.c: New file.
16054         * lib/uninorm/u-normxfrm.h: New file.
16055         * modules/uninorm/u8-normxfrm: New file.
16056
16057 2009-03-07  Bruno Haible  <bruno@clisp.org>
16058
16059         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
16060         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
16061         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
16062
16063 2009-03-07  Bruno Haible  <bruno@clisp.org>
16064
16065         New module 'memxfrm'.
16066         * lib/memxfrm.h: New file.
16067         * lib/memxfrm.c: New file.
16068         * modules/memxfrm: New file.
16069
16070 2009-03-07  Bruno Haible  <bruno@clisp.org>
16071
16072         New module 'memcmp2'.
16073         * lib/memcmp2.h: New file.
16074         * lib/memcmp2.c: New file.
16075         * modules/memcmp2: New file.
16076
16077 2009-03-07  Bruno Haible  <bruno@clisp.org>
16078
16079         Tests for module 'uninorm/decomposing-form'.
16080         * modules/uninorm/decomposing-form-tests: New file.
16081         * tests/uninorm/test-decomposing-form.c: New file.
16082
16083         New module 'uninorm/decomposing-form'.
16084         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
16085         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
16086         Add 'decomposing_variant' field.
16087         * lib/uninorm/decomposing-form.c: New file.
16088         * lib/uninorm/nfc.c (uninorm_nfc): Update.
16089         * lib/uninorm/nfd.c (uninorm_nfd): Update.
16090         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
16091         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
16092         * modules/uninorm/decomposing-form: New file.
16093         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
16094         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
16095
16096 2009-03-07  Bruno Haible  <bruno@clisp.org>
16097
16098         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
16099         strings.
16100
16101 2009-03-06  Bruno Haible  <bruno@clisp.org>
16102
16103         Tests for module 'uninorm/u32-normcmp'.
16104         * tests/uninorm/test-u32-normcmp.c: New file.
16105         * modules/uninorm/u32-normcmp-tests: New file.
16106
16107         Tests for module 'uninorm/u16-normcmp'.
16108         * tests/uninorm/test-u16-normcmp.c: New file.
16109         * modules/uninorm/u16-normcmp-tests: New file.
16110
16111         Tests for module 'uninorm/u8-normcmp'.
16112         * tests/uninorm/test-u8-normcmp.c: New file.
16113         * modules/uninorm/u8-normcmp-tests: New file.
16114
16115         New module 'uninorm/u32-normcmp'.
16116         * lib/uninorm/u32-normcmp.c: New file.
16117         * modules/uninorm/u32-normcmp: New file.
16118
16119         New module 'uninorm/u16-normcmp'.
16120         * lib/uninorm/u16-normcmp.c: New file.
16121         * modules/uninorm/u16-normcmp: New file.
16122
16123         New module 'uninorm/u8-normcmp'.
16124         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
16125         declarations.
16126         * lib/uninorm/u8-normcmp.c: New file.
16127         * lib/uninorm/u-normcmp.h: New file.
16128         * modules/uninorm/u8-normcmp: New file.
16129
16130 2009-03-06  Bruno Haible  <bruno@clisp.org>
16131
16132         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
16133         Reported by Eric Blake.
16134
16135 2009-03-06  Eric Blake  <ebb9@byu.net>
16136             Bruno Haible  <bruno@clisp.org>
16137
16138         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
16139         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
16140         condition.
16141         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16142         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
16143         condition.
16144         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16145
16146 2009-03-06  Eric Blake  <ebb9@byu.net>
16147
16148         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
16149         to avoid compiler warnings.
16150         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
16151
16152 2009-03-05  Bruno Haible  <bruno@clisp.org>
16153
16154         * tests/test-ftell.c (main): Disable test beyond end of file on
16155         FreeMiNT.
16156         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16157
16158 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
16159
16160         * lib/filevercmp.c: Move hidden files up in ordering.
16161         * tests/test-filevercmp.c: Add tests for hidden files.
16162
16163 2009-03-04  Bruno Haible  <bruno@clisp.org>
16164
16165         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
16166         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
16167         AM_CFLAGS.
16168         Reported by Simon Josefsson.
16169
16170 2009-03-03  Bruno Haible  <bruno@clisp.org>
16171
16172         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
16173         Reported by Simon Josefsson.
16174
16175         * doc/ld-version-script.texi: Update node reference.
16176
16177 2009-03-03  Bruno Haible  <bruno@clisp.org>
16178
16179         * modules/visibility (License): Change to 'unlimited'.
16180         Suggested by Simon Josefsson.
16181
16182 2009-03-03  Jim Meyering  <meyering@redhat.com>
16183
16184         unlinkdir: cannot_unlink_dir may modify process state
16185         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16186         it's neither thread-safe nor appropriate for use in a library.
16187
16188 2009-03-03  Eric Blake  <ebb9@byu.net>
16189
16190         test-closein: silence test under Darwin
16191         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16192         care if it dies from EPIPE or EBADF.
16193
16194 2009-03-03  Bruno Haible  <bruno@clisp.org>
16195
16196         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16197         earlier.
16198         * doc/visibility.texi: Fix @node and @section.
16199
16200 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16201
16202         * doc/gnulib.texi: Link to sections for ld version script and
16203         visibility.
16204         * doc/visibility.texi: Add @node and @section.
16205         * modules/ld-version-script: New module.
16206         * m4/ld-version-script.m4: New file.
16207         * doc/ld-version-script.texi: New file.
16208
16209 2009-03-02  David Lutterkort  <lutter@redhat.com>
16210
16211         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16213
16214 2009-03-02  Bruno Haible  <bruno@clisp.org>
16215
16216         * doc/visibility.texi: Mention libtool's -export-symbols option.
16217
16218 2009-03-02  Jim Meyering  <meyering@redhat.com>
16219
16220         announce-gen: new option: --no-print-checksums
16221         * build-aux/announce-gen (usage): Describe it.
16222         (print_checksums): Print a newline here, not in the [*] footnote.
16223         (main): Honor it.
16224
16225 2009-03-01  Bruno Haible  <bruno@clisp.org>
16226
16227         Use socklen_t in the native Windows replacements prototypes.
16228         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16229         instead of 'int'.
16230         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16231         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16232         * modules/getsockopt (Depends-on): Add socklen.
16233         * modules/setsockopt (Depends-on): Add socklen.
16234
16235 2009-03-01  Bruno Haible  <bruno@clisp.org>
16236
16237         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16238         least 4.2.
16239
16240 2009-03-01  Eric Blake  <ebb9@byu.net>
16241             Bruno Haible  <bruno@clisp.org>
16242
16243         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16244         error messages.
16245         * lib/wait-process.c (wait_subprocess): Omit error message about
16246         deadly signal sent to the child of termsigp != NULL.
16247
16248 2009-03-01  Eric Blake  <ebb9@byu.net>
16249
16250         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16251
16252 2009-03-01  Bruno Haible  <bruno@clisp.org>
16253
16254         Avoid a gcc warning.
16255         * tests/test-sched.c (b): Make global.
16256         Reported by Eric Blake.
16257
16258 2009-01-19  Martin Lambers  <marlam@marlam.de>
16259
16260         Provide POSIX semantics for socket timeout options on W32.
16261         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16262         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16263         * modules/setsockopt: Depend on sys_time module for struct timeval.
16264         * modules/getsockopt: Depend on sys_time module for struct timeval.
16265
16266 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16267
16268         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16269         __USE_GNU, for consistency with netdb.in.h.
16270         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16271
16272 2009-03-01  Bruno Haible  <bruno@clisp.org>
16273
16274         More support for FreeMiNT.
16275         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16276         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16277
16278 2009-03-01  Bruno Haible  <bruno@clisp.org>
16279
16280         More support for FreeMiNT.
16281         * lib/fpurge.c (fpurge): Correct last commit.
16282         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16283
16284 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16285
16286         Fix unportable awk script in vc-list-files.
16287         * build-aux/vc-list-files: In the replacement awk script, use
16288         substr with a second argument of 1, not zero.
16289         Report by Simon Josefsson.
16290
16291 2009-02-28  Bruno Haible  <bruno@clisp.org>
16292
16293         More support for FreeMiNT.
16294         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16295         to FreeMiNT today.
16296         * lib/fwriting.c (fwriting): Likewise.
16297         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16298
16299 2009-02-28  Bruno Haible  <bruno@clisp.org>
16300
16301         * tests/test-freadseek.c (main): Disable test beyond end of file on
16302         FreeMiNT.
16303         * tests/test-ftello.c (main): Likewise.
16304         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16305
16306 2009-02-28  Bruno Haible  <bruno@clisp.org>
16307
16308         Add tentative support for FreeMiNT.
16309         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16310         * lib/fpurge.c (fpurge): Likewise.
16311         * lib/freadable.c (freadable): Likewise.
16312         * lib/freading.c (freading): Likewise.
16313         * lib/freadptr.c (freadptr): Likewise.
16314         * lib/freadseek.c (freadptrinc): Likewise.
16315         * lib/fseeko.c (rpl_fseeko): Likewise.
16316         * lib/fseterr.c (fseterr): Likewise.
16317         * lib/fwritable.c (fwritable): Likewise.
16318         * lib/fwriting.c (fwriting): Likewise.
16319         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16320         Hourihane.
16321         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16322
16323 2009-02-28  Bruno Haible  <bruno@clisp.org>
16324
16325         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16326         SIGCHLD.
16327         Reported by Jim Meyering.
16328
16329 2009-02-28  Bruno Haible  <bruno@clisp.org>
16330
16331         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16332         Mention the results of these tests on various platforms.
16333         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16334         order.
16335         * doc/posix-functions/printf.texi: Likewise.
16336         * doc/posix-functions/snprintf.texi: Likewise.
16337         * doc/posix-functions/sprintf.texi: Likewise.
16338         * doc/posix-functions/vfprintf.texi: Likewise.
16339         * doc/posix-functions/vprintf.texi: Likewise.
16340         * doc/posix-functions/vsnprintf.texi: Likewise.
16341         * doc/posix-functions/vsprintf.texi: Likewise.
16342         * doc/glibc-functions/obstack_printf.texi: Likewise.
16343         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16344
16345 2009-02-28  Bruno Haible  <bruno@clisp.org>
16346
16347         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16348         Reported by Loïc Minier <lool@dooz.org>.
16349
16350 2009-02-27  Bruno Haible  <bruno@clisp.org>
16351
16352         * gnulib-tool (func_import): Make the sed expression used to create the
16353         sed script for updating the .gitignore file POSIX compliant.
16354         Reported by Eric Blake.
16355
16356 2009-02-27  Bruno Haible  <bruno@clisp.org>
16357
16358         * gnulib-tool (sed): Don't alias as "sed --posix".
16359         Reported by Eric Blake.
16360
16361 2009-02-27  Bruno Haible  <bruno@clisp.org>
16362
16363         Avoid test link errors.
16364         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16365         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16366         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16367         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16368         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16369
16370 2009-02-27  Bruno Haible  <bruno@clisp.org>
16371
16372         Avoid spurious "(cached)" in configure output.
16373         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16374         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16375         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16376         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16377         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16378         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16379         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16380         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16381         Reported by Eric Blake.
16382
16383 2009-02-27  Eric Blake  <ebb9@byu.net>
16384
16385         printf: fix regression in previous patch
16386         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16387
16388 2009-02-27  Bruno Haible  <bruno@clisp.org>
16389
16390         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16391         value.
16392         * lib/stdint.in.h: Likewise.
16393         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16394
16395 2009-02-27  Eric Blake  <ebb9@byu.net>
16396
16397         doc: mention more functions added in cygwin 1.7.0
16398         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16399         addition.
16400         * doc/posix-functions/open_wmemstream.texi: Likewise.
16401         * doc/posix-functions/wcsnlen.texi: Likewise.
16402         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16403         * doc/posix-functions/wcstod.texi: Likewise.
16404         * doc/posix-functions/wcstof.texi: Likewise.
16405         * doc/posix-functions/wcstoimax.texi: Likewise.
16406         * doc/posix-functions/wcstok.texi: Likewise.
16407         * doc/posix-functions/wcstoumax.texi: Likewise.
16408
16409         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16410         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16411         * doc/posix-functions/fprintf.texi: Update.
16412         * doc/posix-functions/printf.texi: Update.
16413         * doc/posix-functions/snprintf.texi: Update.
16414         * doc/posix-functions/sprintf.texi: Update.
16415         * doc/posix-functions/vfprintf.texi: Update.
16416         * doc/posix-functions/vprintf.texi: Update.
16417         * doc/posix-functions/vsnprintf.texi: Update.
16418         * doc/posix-functions/vsprintf.texi: Update.
16419         * doc/glibc-functions/obstack_printf.texi: Update.
16420         * doc/glibc-functions/obstack_vprintf.texi: Update.
16421
16422 2009-02-26  Eric Blake  <ebb9@byu.net>
16423
16424         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16425         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16426         compilation bug by using runtime conversion.
16427         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16428         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16429         * modules/ceill-tests (Files): Use nan.h.
16430         * modules/floorl-tests (Files): Likewise.
16431         * modules/frexpl-tests (Files): Likewise.
16432         * modules/isnanl-tests (Files): Likewise.
16433         * modules/ldexpl-tests (Files): Likewise.
16434         * modules/roundl-tests (Files): Likewise.
16435         * modules/truncl-tests (Files): Likewise.
16436         * tests/test-ceill.c (main): Use a working NaN.
16437         * tests/test-floorl.c (main): Likewise.
16438         * tests/test-frexpl.c (main): Likewise.
16439         * tests/test-isnan.c (test_long_double): Likewise.
16440         * tests/test-isnanl.h (main): Likewise.
16441         * tests/test-ldexpl.h (main): Likewise.
16442         * tests/test-roundl.h (main): Likewise.
16443         * tests/test-truncl.h (main): Likewise.
16444         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16445
16446 2009-02-26  Eric Blake  <ebb9@byu.net>
16447             Bruno Haible  <bruno@clisp.org>
16448
16449         Work around a *printf bug with %ls on Solaris.
16450         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16451         precision is specified, sprintf stops converting the wide string
16452         argument when the number of bytes that have been produced by this
16453         conversion equals or exceeds the precision.
16454         * doc/posix-functions/fprintf.texi: Update.
16455         * doc/posix-functions/printf.texi: Update.
16456         * doc/posix-functions/snprintf.texi: Update.
16457         * doc/posix-functions/sprintf.texi: Update.
16458         * doc/posix-functions/vfprintf.texi: Update.
16459         * doc/posix-functions/vprintf.texi: Update.
16460         * doc/posix-functions/vsnprintf.texi: Update.
16461         * doc/posix-functions/vsprintf.texi: Update.
16462         * doc/glibc-functions/obstack_printf.texi: Update.
16463         * doc/glibc-functions/obstack_vprintf.texi: Update.
16464
16465 2009-02-26  Eric Blake  <ebb9@byu.net>
16466
16467         stdlib: favor compiler check of random.h
16468         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16469         to avoid an ObjC random.h installed by Swarm.
16470
16471 2009-02-26  Bruno Haible  <bruno@clisp.org>
16472
16473         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16474         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16475         Reported by Gary V. Vaughan <gary@gnu.org>.
16476
16477 2009-02-26  Bruno Haible  <bruno@clisp.org>
16478
16479         Fix *printf behaviour regarding the %ls directive.
16480         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16481         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16482         NEED_PRINTF_DIRECTIVE_LS.
16483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16484         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16486         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16487         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16488         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16489         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16494         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16495         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16498         * doc/posix-functions/fprintf.texi: Update.
16499         * doc/posix-functions/printf.texi: Update.
16500         * doc/posix-functions/snprintf.texi: Update.
16501         * doc/posix-functions/sprintf.texi: Update.
16502         * doc/posix-functions/vfprintf.texi: Update.
16503         * doc/posix-functions/vprintf.texi: Update.
16504         * doc/posix-functions/vsnprintf.texi: Update.
16505         * doc/posix-functions/vsprintf.texi: Update.
16506         * doc/glibc-functions/obstack_printf.texi: Update.
16507         * doc/glibc-functions/obstack_vprintf.texi: Update.
16508         Reported by Eric Blake.
16509
16510 2009-02-25  Bruno Haible  <bruno@clisp.org>
16511
16512         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16513         with known value.
16514         Reported by Gary V. Vaughan <gary@gnu.org>.
16515
16516 2009-02-25  Bruno Haible  <bruno@clisp.org>
16517
16518         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16519         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16520         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16521         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16522         Reported by Gary V. Vaughan <gary@gnu.org>.
16523
16524 2009-02-25  Bruno Haible  <bruno@clisp.org>
16525
16526         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16527         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16528         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16529         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16530         Reported by Gary V. Vaughan <gary@gnu.org>.
16531
16532 2009-02-25  Eric Blake  <ebb9@byu.net>
16533
16534         tests: skip fseek/ftell tests if ungetc is broken
16535         * m4/ungetc.m4: New file.
16536         * modules/fseek-tests: Split test, so ungetc dependency is
16537         separate from rest of test.
16538         * modules/fseeko-tests: Likewise.
16539         * modules/ftell-tests: Likewise.
16540         * modules/ftello-tests: Likewise.
16541         * tests/test-fseek.c (main): Isolate ungetc dependency.
16542         * tests/test-fseeko.c (main): Likewise.
16543         * tests/test-ftell.c (main): Likewise.
16544         * tests/test-ftello.c (main): Likewise.
16545         * tests/test-fseek2.sh: New file.
16546         * tests/test-fseeko2.sh: Likewise.
16547         * tests/test-ftell2.sh: Likewise.
16548         * tests/test-ftello2.sh: Likewise.
16549
16550 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16551
16552         test-getaddrinfo: fix usage of skip return code 77
16553         * tests/test-gettaddrinfo.c: Return skip code 77 only
16554         for first occurance of skip (4x77 is not 77)
16555
16556 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16557
16558         strtod: avoid C99 decl-after-statement
16559         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16560
16561 2009-02-24  Eric Blake  <ebb9@byu.net>
16562
16563         strtod: detect HP-UX 11.31 bug
16564         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16565         Reported by Gary V. Vaughan.
16566
16567 2009-02-23  Bruno Haible  <bruno@clisp.org>
16568
16569         Fix invalid read past end of memory block.
16570         * lib/vasnprintf.c (DCHAR_SET): Define.
16571         (local_wcslen): Define only when needed.
16572         (local_strnlen, local_wcsnlen): New functions.
16573         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16574         directives that involve a conversion ourselves.
16575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16576         wcsnlen, mbrtowc, wcrtomb.
16577         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16578         * tests/test-vasprintf-posix.c (test_function): Likewise.
16579         * tests/test-snprintf-posix.h (test_function): Likewise.
16580         * tests/test-sprintf-posix.h (test_function): Likewise.
16581         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16582
16583 2009-02-22  Bruno Haible  <bruno@clisp.org>
16584
16585         Implement new clarified decomposition of Hangul syllables.
16586         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16587         of type LTV, return only a pairwise decomposition.
16588         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16589         Likewise.
16590         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16591         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16592         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16593
16594 2009-02-22  Bruno Haible  <bruno@clisp.org>
16595
16596         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16597         zero-length results and shrink excess allocated memory.
16598         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16599         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16600         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16601         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16602         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16603         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16604         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16605         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16606         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16607         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16608         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16609         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16610
16611 2009-02-21  Bruno Haible  <bruno@clisp.org>
16612
16613         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16614         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16615         spaces after a period. Put a space between a macro name and its
16616         argument list. Trivial rewordings.
16617         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16618         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16619         (main): Return 0 explicitly.
16620
16621 2009-02-21  Bruno Haible  <bruno@clisp.org>
16622
16623         Tests for module 'uninorm/filter'.
16624         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16625         * modules/uninorm/filter-tests: New file.
16626
16627         New module 'uninorm/filter'.
16628         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16629         uninorm_filter_flush, uninorm_filter_free): New declarations.
16630         * lib/uninorm/uninorm-filter.c: New file.
16631         * modules/uninorm/filter: New file.
16632
16633 2009-02-21  Bruno Haible  <bruno@clisp.org>
16634
16635         Tests for module 'uninorm/nfkc'.
16636         * tests/uninorm/test-nfkc.c: New file.
16637         * tests/uninorm/test-u8-nfkc.c: New file.
16638         * tests/uninorm/test-u16-nfkc.c: New file.
16639         * tests/uninorm/test-u32-nfkc.c: New file.
16640         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16641         * tests/uninorm/test-u32-nfkc-big.c: New file.
16642         * modules/uninorm/nfkc-tests: New file.
16643
16644         New module 'uninorm/nfkc'.
16645         * lib/uninorm/nfkc.c: New file.
16646         * modules/uninorm/nfkc: New file.
16647
16648         Tests for module 'uninorm/nfkd'.
16649         * tests/uninorm/test-nfkd.c: New file.
16650         * tests/uninorm/test-u8-nfkd.c: New file.
16651         * tests/uninorm/test-u16-nfkd.c: New file.
16652         * tests/uninorm/test-u32-nfkd.c: New file.
16653         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16654         * tests/uninorm/test-u32-nfkd-big.c: New file.
16655         * modules/uninorm/nfkd-tests: New file.
16656
16657         New module 'uninorm/nfkd'.
16658         * lib/uninorm/nfkd.c: New file.
16659         * modules/uninorm/nfkd: New file.
16660
16661         Tests for module 'uninorm/nfc'.
16662         * tests/uninorm/test-nfc.c: New file.
16663         * tests/uninorm/test-u8-nfc.c: New file.
16664         * tests/uninorm/test-u16-nfc.c: New file.
16665         * tests/uninorm/test-u32-nfc.c: New file.
16666         * tests/uninorm/test-u32-nfc-big.sh: New file.
16667         * tests/uninorm/test-u32-nfc-big.c: New file.
16668         * modules/uninorm/nfc-tests: New file.
16669
16670         New module 'uninorm/nfc'.
16671         * lib/uninorm/nfc.c: New file.
16672         * modules/uninorm/nfc: New file.
16673
16674         Tests for module 'uninorm/nfd'.
16675         * tests/uninorm/test-nfd.c: New file.
16676         * tests/uninorm/test-u8-nfd.c: New file.
16677         * tests/uninorm/test-u16-nfd.c: New file.
16678         * tests/uninorm/test-u32-nfd.c: New file.
16679         * tests/uninorm/test-u32-nfd-big.sh: New file.
16680         * tests/uninorm/test-u32-nfd-big.c: New file.
16681         * tests/uninorm/test-u32-normalize-big.h: New file.
16682         * tests/uninorm/test-u32-normalize-big.c: New file.
16683         * tests/uninorm/NormalizationTest.txt: New file, created from
16684         Unicode 5.1.0 NormalizationTest.txt.
16685         * modules/uninorm/nfd-tests: New file.
16686
16687         New module 'uninorm/nfd'.
16688         * lib/uninorm/nfd.c: New file.
16689         * modules/uninorm/nfd: New file.
16690
16691         New module 'uninorm/u32-normalize'.
16692         * lib/uninorm/u32-normalize.c: New file.
16693         * modules/uninorm/u32-normalize: New file.
16694
16695         New module 'uninorm/u16-normalize'.
16696         * lib/uninorm/u16-normalize.c: New file.
16697         * modules/uninorm/u16-normalize: New file.
16698
16699         New module 'uninorm/u8-normalize'.
16700         * lib/uninorm/u8-normalize.c: New file.
16701         * lib/uninorm/normalize-internal.h: New file.
16702         * lib/uninorm/u-normalize-internal.h: New file.
16703         * modules/uninorm/u8-normalize: New file.
16704
16705         New module 'uninorm/decompose-internal'.
16706         * lib/uninorm/decompose-internal.c: New file.
16707         * modules/uninorm/decompose-internal: New file.
16708
16709         Tests for module 'uninorm/composition'.
16710         * tests/uninorm/test-composition.c: New file.
16711         * modules/uninorm/composition-tests: New file.
16712
16713         New module 'uninorm/composition'.
16714         * lib/uninorm/composition.c: New file.
16715         * lib/uninorm/composition-table.gperf: New file, generated by
16716         gen-uni-tables.
16717         * modules/uninorm/composition: New file.
16718
16719         Tests for module 'uninorm/compat-decomposition'.
16720         * tests/uninorm/test-compat-decomposition.c: New file.
16721         * modules/uninorm/compat-decomposition-tests: New file.
16722
16723         New module 'uninorm/compat-decomposition'.
16724         * lib/uninorm/decompose-internal.h: New file.
16725         * lib/uninorm/compat-decomposition.c: New file.
16726         * modules/uninorm/compat-decomposition: New file.
16727
16728         Tests for module 'uninorm/canonical-decomposition'.
16729         * tests/uninorm/test-canonical-decomposition.c: New file.
16730         * modules/uninorm/canonical-decomposition-tests: New file.
16731
16732         New module 'uninorm/canonical-decomposition'.
16733         * lib/uninorm/canonical-decomposition.c: New file.
16734         * modules/uninorm/canonical-decomposition: New file.
16735
16736         Tests for module 'uninorm/decomposition'.
16737         * tests/uninorm/test-decomposition.c: New file.
16738         * modules/uninorm/decomposition-tests: New file.
16739
16740         New module 'uninorm/decomposition'.
16741         * lib/uninorm/decomposition.c: New file.
16742         * modules/uninorm/decomposition: New file.
16743
16744         New module 'uninorm/decomposition-table'.
16745         * lib/uninorm/decomposition-table.h: New file.
16746         * lib/uninorm/decomposition-table.c: New file.
16747         * lib/uninorm/decomposition-table1.h: New file, generated by
16748         gen-uni-tables.
16749         * lib/uninorm/decomposition-table2.h: New file, generated by
16750         gen-uni-tables.
16751         * modules/uninorm/decomposition-table: New file.
16752
16753         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16754         (UC_DECOMP_*): New enumeration items.
16755         (get_decomposition): New function.
16756         (struct decomp_table): New type.
16757         (output_decomposition, output_decomposition_tables): New functions.
16758         (unicode_composition_exclusions): New variable.
16759         (fill_composition_exclusions, debug_output_composition_tables): New
16760         functions.
16761         (main): Accept one more argument. Invoke fill_composition_exclusions.
16762         Output decomposition and composition tables.
16763
16764         New module 'uninorm/base'.
16765         * lib/uninorm.h: New file.
16766         * lib/unictype.h: Update comment.
16767         * modules/uninorm/base: New file.
16768
16769 2009-02-21  David Lutterkort  <lutter@redhat.com>
16770
16771         Tests for module 'safe-alloc'.
16772         * tests/test-safe-alloc.c: New file.
16773         * modules/safe-alloc-tests: New file.
16774
16775         New module 'safe-alloc'.
16776         * lib/safe-alloc.h: New file.
16777         * lib/safe-alloc.c: New file.
16778         * m4/safe-alloc.m4: New file.
16779         * modules/safe-alloc: New file.
16780         * doc/safe-alloc.texi: New file.
16781         * doc/gnulib.texi: Include it.
16782         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16783         safe-alloc.
16784
16785 2009-02-18  Bruno Haible  <bruno@clisp.org>
16786
16787         Fix link error on non-glibc systems.
16788         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16789         variable.
16790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16791
16792 2009-02-18  Jim Meyering  <meyering@redhat.com>
16793
16794         fts: avoid used-uninitialized error due to recent change
16795         * lib/fts.c (fts_read): Guard uses of the new member,
16796         parent->fts_n_dirs_remaining, since it's not relevant for
16797         the parent of a directory specified on the command-line.
16798
16799 2009-02-17  James Youngman  <jay@gnu.org>
16800             Bruno Haible  <bruno@clisp.org>
16801
16802         * m4/include_next.m4: Reformulate comment.
16803
16804 2009-02-16  Jim Meyering  <meyering@redhat.com>
16805
16806         fts: add #if guards so that the fts_lgpl module still builds
16807         * lib/fts.c: Guard just-added hash-table-using parts with
16808         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16809         Reported by Simon Josefsson.
16810
16811 2009-02-15  Bruno Haible  <bruno@clisp.org>
16812
16813         * modules/array-mergesort-tests: New file.
16814         * tests/test-array-mergesort.c: New file.
16815
16816         New module 'array-mergesort'.
16817         * modules/array-mergesort: New file.
16818         * lib/array-mergesort.h: New file.
16819
16820 2009-02-15  Bruno Haible  <bruno@clisp.org>
16821
16822         Fix 2009-02-07 commit.
16823         * lib/gen-uni-tables.c (output_predicate, output_category,
16824         output_combclass, output_bidi_category, output_decimal_digit,
16825         output_digit, output_numeric, output_mirror, output_scripts,
16826         output_ident_category, output_simple_mapping): Fix format directives.
16827         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16828
16829 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16830
16831         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16832         fixes are available from IBM.
16833
16834 2009-02-13  Jim Meyering  <meyering@redhat.com>
16835
16836         fts: arrange not to stat non-directories in more cases
16837         This makes GNU find (when it doesn't need to stat each file)
16838         *much* more efficient at traversing reiserfs file systems.
16839         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16840         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16841         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16842         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16843         (leaf_optimization_applies): New function.
16844         (LCO_hash, LCO_compare): New helper functions.
16845         (link_count_optimize_ok): New function.
16846         (fts_stat): Initialize new member (if dir).
16847         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16848         we've just stat'ed a directory.  Skip the stat call when possible.
16849         ---
16850         Note this AFS-related exchange:
16851         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16852         and note find's pioctl call in find/fstype.c.
16853         But that is necessary only if you want to enable the
16854         optimization for AFS, and for now, I don't.
16855
16856         fts: move a function definition "up" (no semantic change)
16857         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16858         "up" to precede upcoming use of a related function.
16859
16860 2009-02-11  Jim Meyering  <meyering@redhat.com>
16861
16862         fts: correct internal computation of nlinks (optimization-related)
16863         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16864         whether the current entry is a directory, so don't test it.
16865
16866 2009-02-10  Bruno Haible  <bruno@clisp.org>
16867
16868         Tests for module 'uniwbrk/ulc-wordbreaks'.
16869         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16870         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16871         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16872
16873         Tests for module 'uniwbrk/u32-wordbreaks'.
16874         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16875         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16876
16877         Tests for module 'uniwbrk/u16-wordbreaks'.
16878         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16879         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16880
16881         Tests for module 'uniwbrk/u8-wordbreaks'.
16882         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16883         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16884
16885 2009-02-10  Bruno Haible  <bruno@clisp.org>
16886
16887         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16888         property.
16889         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16890         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16891         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16892
16893 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16894
16895         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16896         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16897
16898 2009-02-10  Bruno Haible  <bruno@clisp.org>
16899
16900         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16901         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16902         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16903         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16904         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16905         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16906
16907 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16908
16909         * lib/sockets.h (gl_fd_to_handle): New function.
16910
16911         * tests/test-sockets.c: Call gl_fd_to_handle.
16912
16913 2009-02-09  Bruno Haible  <bruno@clisp.org>
16914
16915         * doc/havelib.texi: Document the conventions on bi-arch systems.
16916
16917 2009-02-08  Bruno Haible  <bruno@clisp.org>
16918
16919         Document the AC_LIB_LINKFLAGS macro.
16920         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16921         * doc/gnulib.texi: Include it.
16922
16923 2009-02-08  Bruno Haible  <bruno@clisp.org>
16924
16925         Fix wrong order of sections, compared to TOC.
16926         * doc/gnulib.texi: Include relocatable-maint.texi after the
16927         "Regular expressions" node, not before.
16928
16929 2009-02-08  Bruno Haible  <bruno@clisp.org>
16930
16931         Tests for module 'unicase/totitle'.
16932         * modules/unicase/totitle-tests: New file.
16933
16934         Tests for module 'unicase/tolower'.
16935         * modules/unicase/tolower-tests: New file.
16936
16937         Tests for module 'unicase/toupper'.
16938         * modules/unicase/toupper-tests: New file.
16939         * tests/unicase/test-mapping-part1.h: New file.
16940         * tests/unicase/test-mapping-part2.h: New file.
16941
16942         New module 'unicase/totitle'.
16943         * modules/unicase/totitle: New file.
16944         * lib/unicase/totitle.c: New file.
16945
16946         New module 'unicase/tolower'.
16947         * modules/unicase/tolower: New file.
16948         * lib/unicase/tolower.c: New file.
16949
16950         New module 'unicase/toupper'.
16951         * modules/unicase/toupper: New file.
16952         * lib/unicase/toupper.c: New file.
16953         * lib/unicase/simple-mapping.h: New file.
16954
16955         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16956         (mapping_table): New structure.
16957         (output_simple_mapping): New function.
16958         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16959         * modules/gen-uni-tables (Description): Update.
16960         * lib/unicase/toupper.h: New file, automatically generated by
16961         gen-uni-tables.
16962         * lib/unicase/tolower.h: New file, automatically generated by
16963         gen-uni-tables.
16964         * lib/unicase/totitle.h: New file, automatically generated by
16965         gen-uni-tables.
16966         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16967         gen-uni-tables.
16968         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16969         gen-uni-tables.
16970         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16971         gen-uni-tables.
16972
16973         New module 'unicase/base'.
16974         * modules/unicase/base: New file.
16975         * lib/unicase.h: New file.
16976
16977 2009-02-08  Bruno Haible  <bruno@clisp.org>
16978
16979         New module 'uniwbrk/ulc-wordbreaks'.
16980         * modules/uniwbrk/ulc-wordbreaks: New file.
16981         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16982
16983         New module 'uniwbrk/u32-wordbreaks'.
16984         * modules/uniwbrk/u32-wordbreaks: New file.
16985         * lib/uniwbrk/u32-wordbreaks.c: New file.
16986
16987         New module 'uniwbrk/u16-wordbreaks'.
16988         * modules/uniwbrk/u16-wordbreaks: New file.
16989         * lib/uniwbrk/u16-wordbreaks.c: New file.
16990
16991         New module 'uniwbrk/u8-wordbreaks'.
16992         * modules/uniwbrk/u8-wordbreaks: New file.
16993         * lib/uniwbrk/u8-wordbreaks.c: New file.
16994         * lib/uniwbrk/u-wordbreaks.h: New file.
16995
16996         New module 'uniwbrk/table'.
16997         * modules/uniwbrk/table: New file.
16998         * lib/uniwbrk/wbrktable.h: New file.
16999         * lib/uniwbrk/wbrktable.c: New file.
17000
17001         New module 'uniwbrk/wordbreak-property'.
17002         * modules/uniwbrk/wordbreak-property: New file.
17003         * lib/uniwbrk/wordbreak-property.c: New file.
17004
17005         * lib/gen-uni-tables.c (WBP_*): New enum items.
17006         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
17007         (unicode_org_wbp): New variable.
17008         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
17009         New functions.
17010         (wbp_table): New structure.
17011         (output_wbp, output_wbrk_tables): New functions.
17012         (main): Accept additional argument. Invoke fill_org_wbp,
17013         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
17014         output_wbrk_tables.
17015         * modules/gen-uni-tables (Description): Update.
17016         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
17017         gen-uni-tables.
17018
17019         New module 'uniwbrk/base'.
17020         * modules/uniwbrk/base: New file.
17021         * lib/uniwbrk.h: New file.
17022
17023 2009-02-08  Bruno Haible  <bruno@clisp.org>
17024
17025         Update to Unicode 5.1.0.
17026         * lib/gen-uni-tables.c (is_property_alphabetic): Include
17027         U+2185..U+2188.
17028         (is_property_default_ignorable_code_point): Don't include characters
17029         of category Cc or Cs and not-a-characters.
17030         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
17031         U+0D79, U+109E, U+109F, U+A60C.
17032         * lib/unictype/bidi_of.h: Regenerated.
17033         * lib/unictype/blocks.h: Regenerated.
17034         * lib/unictype/categ_C.h: Regenerated.
17035         * lib/unictype/categ_Cf.h: Regenerated.
17036         * lib/unictype/categ_Cn.h: Regenerated.
17037         * lib/unictype/categ_L.h: Regenerated.
17038         * lib/unictype/categ_Ll.h: Regenerated.
17039         * lib/unictype/categ_Lm.h: Regenerated.
17040         * lib/unictype/categ_Lo.h: Regenerated.
17041         * lib/unictype/categ_Lu.h: Regenerated.
17042         * lib/unictype/categ_M.h: Regenerated.
17043         * lib/unictype/categ_Mc.h: Regenerated.
17044         * lib/unictype/categ_Me.h: Regenerated.
17045         * lib/unictype/categ_Mn.h: Regenerated.
17046         * lib/unictype/categ_N.h: Regenerated.
17047         * lib/unictype/categ_Nd.h: Regenerated.
17048         * lib/unictype/categ_Nl.h: Regenerated.
17049         * lib/unictype/categ_No.h: Regenerated.
17050         * lib/unictype/categ_P.h: Regenerated.
17051         * lib/unictype/categ_Pd.h: Regenerated.
17052         * lib/unictype/categ_Pe.h: Regenerated.
17053         * lib/unictype/categ_Pf.h: Regenerated.
17054         * lib/unictype/categ_Pi.h: Regenerated.
17055         * lib/unictype/categ_Po.h: Regenerated.
17056         * lib/unictype/categ_Ps.h: Regenerated.
17057         * lib/unictype/categ_S.h: Regenerated.
17058         * lib/unictype/categ_Sk.h: Regenerated.
17059         * lib/unictype/categ_Sm.h: Regenerated.
17060         * lib/unictype/categ_So.h: Regenerated.
17061         * lib/unictype/categ_of.h: Regenerated.
17062         * lib/unictype/combining.h: Regenerated.
17063         * lib/unictype/ctype_alnum.h: Regenerated.
17064         * lib/unictype/ctype_alpha.h: Regenerated.
17065         * lib/unictype/ctype_graph.h: Regenerated.
17066         * lib/unictype/ctype_lower.h: Regenerated.
17067         * lib/unictype/ctype_print.h: Regenerated.
17068         * lib/unictype/ctype_punct.h: Regenerated.
17069         * lib/unictype/ctype_upper.h: Regenerated.
17070         * lib/unictype/decdigit.h: Regenerated.
17071         * lib/unictype/digit.h: Regenerated.
17072         * lib/unictype/mirror.h: Regenerated.
17073         * lib/unictype/numeric.h: Regenerated.
17074         * lib/unictype/pr_alphabetic.h: Regenerated.
17075         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
17076         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
17077         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
17078         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
17079         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
17080         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
17081         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
17082         * lib/unictype/pr_combining.h: Regenerated.
17083         * lib/unictype/pr_dash.h: Regenerated.
17084         * lib/unictype/pr_decimal_digit.h: Regenerated.
17085         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
17086         * lib/unictype/pr_deprecated.h: Regenerated.
17087         * lib/unictype/pr_diacritic.h: Regenerated.
17088         * lib/unictype/pr_extender.h: Regenerated.
17089         * lib/unictype/pr_format_control.h: Regenerated.
17090         * lib/unictype/pr_grapheme_base.h: Regenerated.
17091         * lib/unictype/pr_grapheme_extend.h: Regenerated.
17092         * lib/unictype/pr_grapheme_link.h: Regenerated.
17093         * lib/unictype/pr_id_continue.h: Regenerated.
17094         * lib/unictype/pr_id_start.h: Regenerated.
17095         * lib/unictype/pr_ideographic.h: Regenerated.
17096         * lib/unictype/pr_ignorable_control.h: Regenerated.
17097         * lib/unictype/pr_lowercase.h: Regenerated.
17098         * lib/unictype/pr_math.h: Regenerated.
17099         * lib/unictype/pr_numeric.h: Regenerated.
17100         * lib/unictype/pr_other_alphabetic.h: Regenerated.
17101         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
17102         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
17103         * lib/unictype/pr_other_id_continue.h: Regenerated.
17104         * lib/unictype/pr_other_lowercase.h: Regenerated.
17105         * lib/unictype/pr_other_math.h: Regenerated.
17106         * lib/unictype/pr_punctuation.h: Regenerated.
17107         * lib/unictype/pr_sentence_terminal.h: Regenerated.
17108         * lib/unictype/pr_soft_dotted.h: Regenerated.
17109         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
17110         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
17111         * lib/unictype/pr_unified_ideograph.h: Regenerated.
17112         * lib/unictype/pr_uppercase.h: Regenerated.
17113         * lib/unictype/pr_xid_continue.h: Regenerated.
17114         * lib/unictype/pr_xid_start.h: Regenerated.
17115         * lib/unictype/pr_zero_width.h: Regenerated.
17116         * lib/unictype/scripts.h: Regenerated.
17117         * lib/unictype/scripts_byname.gperf: Regenerated.
17118         * lib/unictype/sy_java_ident.h: Regenerated.
17119         * lib/unilbrk/lbrkprop1.h: Regenerated.
17120         * lib/unilbrk/lbrkprop2.h: Regenerated.
17121         * tests/unictype/test-categ_C.c: Regenerated.
17122         * tests/unictype/test-categ_Cf.c: Regenerated.
17123         * tests/unictype/test-categ_Cn.c: Regenerated.
17124         * tests/unictype/test-categ_L.c: Regenerated.
17125         * tests/unictype/test-categ_Ll.c: Regenerated.
17126         * tests/unictype/test-categ_Lm.c: Regenerated.
17127         * tests/unictype/test-categ_Lo.c: Regenerated.
17128         * tests/unictype/test-categ_Lu.c: Regenerated.
17129         * tests/unictype/test-categ_M.c: Regenerated.
17130         * tests/unictype/test-categ_Mc.c: Regenerated.
17131         * tests/unictype/test-categ_Me.c: Regenerated.
17132         * tests/unictype/test-categ_Mn.c: Regenerated.
17133         * tests/unictype/test-categ_N.c: Regenerated.
17134         * tests/unictype/test-categ_Nd.c: Regenerated.
17135         * tests/unictype/test-categ_Nl.c: Regenerated.
17136         * tests/unictype/test-categ_No.c: Regenerated.
17137         * tests/unictype/test-categ_P.c: Regenerated.
17138         * tests/unictype/test-categ_Pd.c: Regenerated.
17139         * tests/unictype/test-categ_Pe.c: Regenerated.
17140         * tests/unictype/test-categ_Pf.c: Regenerated.
17141         * tests/unictype/test-categ_Pi.c: Regenerated.
17142         * tests/unictype/test-categ_Po.c: Regenerated.
17143         * tests/unictype/test-categ_Ps.c: Regenerated.
17144         * tests/unictype/test-categ_S.c: Regenerated.
17145         * tests/unictype/test-categ_Sk.c: Regenerated.
17146         * tests/unictype/test-categ_Sm.c: Regenerated.
17147         * tests/unictype/test-categ_So.c: Regenerated.
17148         * tests/unictype/test-ctype_alnum.c: Regenerated.
17149         * tests/unictype/test-ctype_alpha.c: Regenerated.
17150         * tests/unictype/test-ctype_graph.c: Regenerated.
17151         * tests/unictype/test-ctype_lower.c: Regenerated.
17152         * tests/unictype/test-ctype_print.c: Regenerated.
17153         * tests/unictype/test-ctype_punct.c: Regenerated.
17154         * tests/unictype/test-ctype_upper.c: Regenerated.
17155         * tests/unictype/test-decdigit.h: Regenerated.
17156         * tests/unictype/test-digit.h: Regenerated.
17157         * tests/unictype/test-numeric.h: Regenerated.
17158         * tests/unictype/test-pr_alphabetic.c: Regenerated.
17159         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
17160         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
17161         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
17162         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
17163         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
17164         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
17165         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
17166         * tests/unictype/test-pr_combining.c: Regenerated.
17167         * tests/unictype/test-pr_dash.c: Regenerated.
17168         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
17169         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
17170         * tests/unictype/test-pr_deprecated.c: Regenerated.
17171         * tests/unictype/test-pr_diacritic.c: Regenerated.
17172         * tests/unictype/test-pr_extender.c: Regenerated.
17173         * tests/unictype/test-pr_format_control.c: Regenerated.
17174         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
17175         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
17176         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17177         * tests/unictype/test-pr_id_continue.c: Regenerated.
17178         * tests/unictype/test-pr_id_start.c: Regenerated.
17179         * tests/unictype/test-pr_ideographic.c: Regenerated.
17180         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17181         * tests/unictype/test-pr_lowercase.c: Regenerated.
17182         * tests/unictype/test-pr_math.c: Regenerated.
17183         * tests/unictype/test-pr_numeric.c: Regenerated.
17184         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17185         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17186         Regenerated.
17187         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17188         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17189         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17190         * tests/unictype/test-pr_other_math.c: Regenerated.
17191         * tests/unictype/test-pr_punctuation.c: Regenerated.
17192         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17193         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17194         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17195         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17196         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17197         * tests/unictype/test-pr_uppercase.c: Regenerated.
17198         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17199         * tests/unictype/test-pr_xid_start.c: Regenerated.
17200         * tests/unictype/test-pr_zero_width.c: Regenerated.
17201
17202         Update to Unicode 5.1.0.
17203         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17204         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17205         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17206         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17207         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17208         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17209         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17210         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17211         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17212         (nonspacing_table_ind): Update.
17213         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17214
17215         Update to Unicode 5.1.0.
17216         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17217         code transform.
17218         * lib/uniname/uniname.c (unicode_character_name,
17219         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17220         * lib/uniname/uninames.h: Regenerated.
17221         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17222
17223 2009-02-07  Bruno Haible  <bruno@clisp.org>
17224
17225         Merge gen-ctype and gen-lbrk into a single program.
17226         * lib/gen-uni-tables.c: New file, incorporating
17227         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17228         Add directory prefixes to the names of the generated files.
17229         * lib/unictype/gen-ctype.c: Remove file.
17230         * lib/unilbrk/gen-lbrk.c: Remove file.
17231         * modules/gen-uni-tables: New file.
17232         * modules/unictype/gen-ctype: Remove file.
17233         * modules/unilbrk/gen-lbrk: Remove file.
17234
17235 2009-02-07  Bruno Haible  <bruno@clisp.org>
17236
17237         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17238
17239         New module 'unistr/u32-strcoll'.
17240         * modules/unistr/u32-strcoll: New file.
17241         * lib/unistr/u32-strcoll.c: New file.
17242
17243         New module 'unistr/u16-strcoll'.
17244         * modules/unistr/u16-strcoll: New file.
17245         * lib/unistr/u16-strcoll.c: New file.
17246
17247         New module 'unistr/u8-strcoll'.
17248         * modules/unistr/u8-strcoll: New file.
17249         * lib/unistr/u8-strcoll.c: New file.
17250         * lib/unistr/u-strcoll.h: New file.
17251
17252 2009-02-07  Bruno Haible  <bruno@clisp.org>
17253
17254         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17255         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17256         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17257         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17258         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17259         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17260
17261 2009-02-07  Bruno Haible  <bruno@clisp.org>
17262
17263         Make 64-bit clean.
17264         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17265         output_combclass, output_bidi_category, output_decimal_digit,
17266         output_digit, output_numeric, output_mirror, output_scripts,
17267         output_ident_category): Use proper width specifier in format strings.
17268
17269 2009-02-07  Bruno Haible  <bruno@clisp.org>
17270
17271         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17272         failure behaviour.
17273
17274 2009-02-07  Jim Meyering  <meyering@redhat.com>
17275
17276         regex: avoid compilation failure with upcoming gcc-4.4
17277         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17278         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17279         "... error: integer overflow in preprocessor expression".
17280
17281 2009-02-05  Ben Pfaff  <blp@gnu.org>
17282
17283         Fix link errors on Windows when close module is used.
17284         * modules/close: Add $(LIB_CLOSE) to Link section.
17285         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17286         $(LIB_CLOSE) on Windows.
17287
17288 2009-02-05  Jim Meyering  <meyering@redhat.com>
17289
17290         still avoid unused-parameter warnings, but do it cleanly
17291         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17292         (get_fs_usage): Cast to void instead.
17293         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17294         (dev_from_mount_options, read_file_system_list): Cast to void.
17295         Prompted by Bruno Haible.
17296
17297 2009-02-04  Jim Meyering  <meyering@redhat.com>
17298
17299         fsusage.c: correct copyright year
17300         * lib/fsusage.c: Reflect year in which the change is pushed into
17301
17302         avoid misc. warnings
17303         * lib/fsusage.c (UNUSED_PARAM): Define.
17304         (get_fs_usage): Mark parameter "disk" as unused.
17305         * lib/getugroups.c (getgrent): Use "void" in prototype.
17306         * lib/mountlist.c: Mark unused parameters.
17307         (read_file_system_list): Declare a local with "const".
17308         * lib/nanosleep.c (getnow): Declare static.
17309         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17310
17311         dirfd: set errno upon failure
17312         * lib/dirfd.c: Include <errno.h>.
17313         Set errno to ENOTSUP when returning -1.
17314         * modules/dirfd (Depends-on): Add errno.
17315         Suggested by John Kodis <kodis@comcast.net>.
17316
17317 2009-02-01  Bruno Haible  <bruno@clisp.org>
17318
17319         Don't assume sizeof (long) >= sizeof (void *).
17320         * lib/memcmp.c: Include stdint.h.
17321         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17322         srcp2 to 'const byte *'.
17323         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17324         types to uintptr_t.
17325         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17326         * modules/memcmp (Depends-on): Add stdint.
17327         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17328
17329 2009-01-30  Eric Blake  <ebb9@byu.net>
17330
17331         fix more require-before-expand issues
17332         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17333         expand, AC_PROG_AWK.
17334         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17335
17336 2009-01-28  Eric Blake  <ebb9@byu.net>
17337
17338         version-etc: use consistent URL formatting
17339         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17340         Improve formatting.  Use fputs for string without %.
17341
17342 2009-01-28  Jim Meyering  <meyering@redhat.com>
17343
17344         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17345         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17346         "underquoted definition of NAME" from autoconf-2.59.
17347
17348 2009-01-28  Bruno Haible  <bruno@clisp.org>
17349
17350         * doc/gnulib.texi: Add "Obsolete modules" to index.
17351
17352 2009-01-28  Jim Meyering  <meyering@redhat.com>
17353
17354         useless-if-before-free: recognize more variants
17355         * build-aux/useless-if-before-free: Also recognize e.g.,
17356         if (NULL != p) free (p);
17357
17358 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17359
17360         test-getaddrinfo: skip (don't fail) this test when there's no network
17361         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17362         on the presumption that it means you lack network access.
17363
17364 2009-01-26  Jim Meyering  <meyering@redhat.com>
17365
17366         fflush: avoid warnings on modern systems
17367         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17368         pos and result, into scopes where they're used.
17369
17370 2009-01-26  Eric Blake  <ebb9@byu.net>
17371
17372         Silence warning reintroduced by recent extensions patch.
17373         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17374         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17375         autoconf.
17376
17377         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17378         * m4/00gnulib.m4: New file.
17379         * gnulib-tool (func_get_filelist): Always use it.
17380         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17381         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17382
17383 2009-01-25  Bruno Haible  <bruno@clisp.org>
17384
17385         Make test-quotearg work on MacOS X and AIX.
17386         * tests/test-quotearg.sh: New file.
17387         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17388         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17389         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17390         include <libintl.h>.
17391         (fake_locale): Remove variable.
17392         (gettext, dgettext, dcgettext): Remove functions.
17393         (main): Instead of setting a fake locale, set a real locale. Call
17394         textdomain and bindtextdomain.
17395         * modules/quotearg-tests (Files): Add the new files.
17396         (Depends-on): Add gettext, setenv, unsetenv.
17397         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17398         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17399         Augment TESTS_ENVIRONMENT.
17400
17401 2009-01-25  Bruno Haible  <bruno@clisp.org>
17402
17403         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17404         fr_FR.ISO8859-1 locale on MacOS X.
17405         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17406         ja_JP.eucJP locale on MacOS X.
17407         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17408         zh_CN.GB18030 locale on MacOS X.
17409
17410 2009-01-25  Bruno Haible  <bruno@clisp.org>
17411
17412         Avoid link errors on MacOS X 10.3.
17413         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17414         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17415
17416 2009-01-25  Bruno Haible  <bruno@clisp.org>
17417
17418         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17419         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17420         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17421         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17422         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17423         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17424         posix_spawnattr_init, posix_spawnattr_setsigmask,
17425         posix_spawnattr_setflags, posix_spawnattr_destroy.
17426
17427         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17428         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17429         * modules/execute (Files): Remove m4/posix_spawn.m4.
17430         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17431         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17432         posix_spawnattr_init, posix_spawnattr_setsigmask,
17433         posix_spawnattr_setflags, posix_spawnattr_destroy.
17434
17435 2009-01-25  Bruno Haible  <bruno@clisp.org>
17436
17437         * lib/glthread/threadlib.c: Include <stdlib.h>.
17438
17439 2009-01-25  Bruno Haible  <bruno@clisp.org>
17440
17441         * lib/glthread/threadlib.c (dummy): New declaration.
17442
17443 2009-01-25  Bruno Haible  <bruno@clisp.org>
17444
17445         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17446         multibyte characters also for the GB18030 encoding. Don't crash when
17447         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17448
17449 2009-01-25  Bruno Haible  <bruno@clisp.org>
17450
17451         Avoid redefining 'struct random_data' on OSF/1 5.1.
17452         * lib/stdlib.in.h: Include <random.h> if it exists.
17453         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17454         HAVE_RANDOM_H. Include <random.h> when testing whether
17455         'struct random_data' exists.
17456         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17457
17458 2009-01-25  Bruno Haible  <bruno@clisp.org>
17459
17460         Don't install charset.alias on MacOS X >= 10.3.
17461         * lib/localcharset.c (DARWIN7): New macro.
17462         (get_charset_aliases): Hardcode the result for Darwin7.
17463         * modules/localcharset (install-exec-local): Don't install
17464         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17465
17466 2009-01-25  Bruno Haible  <bruno@clisp.org>
17467
17468         Don't install charset.alias on mingw and Cygwin.
17469         * modules/localcharset (install-exec-local): Don't install
17470         charset.alias on mingw and Cygwin, if the file does not yet exist.
17471         The result for these platforms is hardcoded in localcharset.c.
17472
17473 2009-01-25  Bruno Haible  <bruno@clisp.org>
17474
17475         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17476         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17477         before requiring AC_USE_SYSTEM_EXTENSIONS.
17478
17479 2009-01-25  Jim Meyering  <meyering@redhat.com>
17480
17481         c-strtod: avoid warnings
17482         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17483         "assignment discards qualifiers from pointer target type" warnings.
17484
17485 2009-01-24  Bruno Haible  <bruno@clisp.org>
17486
17487         Add support for non-UTF-8 locales on MacOS X.
17488         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17489         canonical encodings. For Darwin 7 and newer, don't map traditional
17490         encodings to UTF-8.
17491         Reported by Vincent Lefevre <vincent@vinc17.org>
17492         at <http://savannah.gnu.org/bugs/?25235>.
17493
17494 2009-01-24  Bruno Haible  <bruno@clisp.org>
17495
17496         * doc/gnulib.texi (Obsolete modules): New section.
17497         Reported by Mike Frysinger <vapier@gentoo.org>.
17498
17499 2009-01-24  Bruno Haible  <bruno@clisp.org>
17500
17501         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17502         (%.dvi): New rule.
17503
17504 2009-01-24  Bruno Haible  <bruno@clisp.org>
17505
17506         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17507         Reported by Eric Blake.
17508
17509 2009-01-24  Bruno Haible  <bruno@clisp.org>
17510
17511         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17512         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17513         Reported by Gary V. Vaughan <gary@gnu.org>.
17514
17515 2009-01-24  Bruno Haible  <bruno@clisp.org>
17516
17517         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17518
17519 2009-01-23  Bruno Haible  <bruno@clisp.org>
17520
17521         Make c-strtod, c-strtold usable in libraries.
17522         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17523         (C_STRTOD): Call strdup instead of xstrdup.
17524         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17525         * modules/c-strtold (Depends-on): Likewise.
17526         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17527         * NEWS: Mention the change.
17528         Reported by Michael Gold <mgold@ncf.ca>.
17529
17530 2009-01-23  Jim Meyering  <meyering@redhat.com>
17531
17532         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17533         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17534         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17535
17536 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17537
17538         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17539         GNU CoreUtils.
17540         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17541         * modules/version-etc (Description): Update.
17542
17543 2009-01-22  Bruno Haible  <bruno@clisp.org>
17544
17545         Cache the C locale object.
17546         * lib/c-strtod.c (c_locale_cache): New variable.
17547         (c_locale): New function.
17548         (C_STRTOD): Use it, and don't call freelocale.
17549         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17550         Suggested by Paolo Bonzini.
17551
17552 2009-01-21  Bruno Haible  <bruno@clisp.org>
17553
17554         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17555         conditions other than overflow.
17556
17557 2009-01-21  Bruno Haible  <bruno@clisp.org>
17558
17559         * lib/c-strtod.c: Include errno.h.
17560         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17561         value from STRTOD_L and STRTOD.
17562
17563 2009-01-21  Bruno Haible  <bruno@clisp.org>
17564         and Jim Meyering  <meyering@redhat.com>
17565
17566         nanosleep: skip configure test (fail it) for apple universal builds
17567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17568         universal builds, assume that nanosleep does not work.
17569         * modules/nanosleep (Depends-on): Add multiarch.
17570
17571         mktime: skip configure test (fail it) for apple universal builds
17572         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17573         universal builds, assume that mktime does not work.
17574         * modules/mktime (Depends-on): Add multiarch.
17575
17576 2009-01-21  Eric Blake  <ebb9@byu.net>
17577
17578         multiarch: avoid expand-before-require warning
17579         * modules/multiarch (configure.ac): Require, rather than expand,
17580         gl_MULTIARCH.
17581         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17582         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17583         enforce that all clients require it.  Partial reversion of
17584         2008-12-29 patch.
17585
17586         error: avoid expand-before-require warning
17587         * modules/errno (configure.ac): Require, rather than expand,
17588         gl_HEADER_ERRNO_H.
17589         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17590         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17591         enforce that all clients require it.
17592
17593         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17594         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17595         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17596         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17597
17598 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17599
17600         Revert:
17601         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17602
17603         regex: do not depend on obsolete modules.
17604         * modules/regex: Remove memcmp and memmove.
17605
17606 2009-01-20  Bruno Haible  <bruno@clisp.org>
17607
17608         Make the 'link' module link on Windows NT 4.
17609         * lib/link.c (_WIN32_WINNT): Don't define.
17610         (CreateHardLinkFuncType): New type.
17611         (CreateHardLinkFunc, initialized): New variables.
17612         (initialize): New function.
17613         (link): Invoke CreateHardLink indirectly through the function pointer.
17614
17615 2009-01-20  Bruno Haible  <bruno@clisp.org>
17616
17617         Fix compilation failure on mingw.
17618         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17619
17620 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17621
17622         * doc/c-strtod.texi: Mention a couple of restrictions.
17623
17624 2009-01-20  Jim Meyering  <meyering@redhat.com>
17625
17626         gettimeofday: move more declarations out of functions
17627         * lib/gettimeofday.c: Move extern declarations of tzset and
17628         gmtime out of containing functions.  Prompted by Bruno Haible.
17629
17630 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17631
17632         regex: do not depend on obsolete modules.
17633         * modules/regex: Remove memcmp and memmove.
17634
17635 2009-01-19  Bruno Haible  <bruno@clisp.org>
17636
17637         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17638         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17639         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17640         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17641         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17642
17643 2009-01-19  Bruno Haible  <bruno@clisp.org>
17644
17645         * tests/test-link.c: Include <errno.h>.
17646         (main): Exit with code 77 when a hard link cannot be created due to
17647         the file system.
17648         * tests/test-link.sh: Skip test when a hard link cannot be created due
17649         to the file system.
17650         Suggested by Eric Blake.
17651
17652 2009-01-19  Martin Lambers  <marlam@marlam.de>
17653
17654         * modules/link-tests: New file.
17655         * tests/test-link.sh: New file.
17656         * tests/test-link.c: New file.
17657
17658 2009-01-19  Eric Blake  <ebb9@byu.net>
17659
17660         doc: mention another function added in cygwin 1.7.0
17661         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17662         Another new function in cygwin 1.7.
17663
17664 2009-01-19  Bruno Haible  <bruno@clisp.org>
17665
17666         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17667         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17668         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17669         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17670         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17671         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17672         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17673         * m4/md4.m4 (gl_MD4): Likewise.
17674         * m4/md5.m4 (gl_MD5): Likewise.
17675         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17676         * m4/sha1.m4 (gl_SHA1): Likewise.
17677         * m4/sha256.m4 (gl_SHA256): Likewise.
17678         * m4/sha512.m4 (gl_SHA512): Likewise.
17679
17680 2009-01-19  Bruno Haible  <bruno@clisp.org>
17681
17682         * modules/uniname/uniname-tests (Depends-on): Add progname.
17683         * tests/uniname/test-uninames.c: Include progname.h.
17684         (main): Call set_program_name.
17685
17686         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17687         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17688         (main): Call set_program_name.
17689
17690         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17691         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17692         (main): Call set_program_name.
17693
17694         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17695         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17696         (main): Call set_program_name.
17697
17698         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17699         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17700         (main): Call set_program_name.
17701
17702         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17703         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17704         (main): Call set_program_name.
17705
17706         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17707         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17708         (main): Call set_program_name.
17709
17710         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17711         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17712         (main): Call set_program_name.
17713
17714         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17715         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17716         (main): Call set_program_name.
17717
17718 2009-01-19  Eric Blake  <ebb9@byu.net>
17719
17720         test-unistd: test previous patch
17721         * tests/test-unistd.c: Test *_FILENO macros.
17722
17723         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17724         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17725         Guarantee a definition.
17726         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17727         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17728         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17729         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17730         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17731         Likewise.
17732         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17733         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17734         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17735         Likewise.
17736         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17737         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17738         (STDERR_FILENO): Likewise.
17739         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17740         (STDERR_FILENO): Likewise.
17741         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17742         (STDERR_FILENO): Likewise.
17743         Reported by Elbert Pol.
17744
17745 2009-01-19  Eric Blake  <ebb9@byu.net>
17746
17747         doc: mention more functions added in cygwin 1.7.0
17748         * doc/posix-functions/abort.texi (abort): Update wording related
17749         to cygwin.
17750         * doc/posix-functions/daylight.texi (daylight): Likewise.
17751         * doc/posix-functions/optarg.texi (optarg): Likewise.
17752         * doc/posix-functions/optarg.texi (opterr): Likewise.
17753         * doc/posix-functions/optarg.texi (optind): Likewise.
17754         * doc/posix-functions/optarg.texi (optopt): Likewise.
17755         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17756         worked in 1.5.x, and was withdrawn in 1.7.
17757         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17758         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17759         cygwin versions.
17760         * doc/posix-functions/perror.texi (perror): Likewise.
17761         * doc/posix-functions/printf.texi (printf): Likewise.
17762         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17763         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17764         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17765         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17766         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17767         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17768         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17769         Likewise.
17770         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17771         Likewise.
17772         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17773         this function.
17774         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17775         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17776         Likewise.
17777         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17778         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17779         * doc/posix-functions/confstr.texi (confstr): Likewise.
17780         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17781         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17782         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17783         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17784         * doc/posix-functions/fputws.texi (fputws): Likewise.
17785         * doc/posix-functions/fwide.texi (fwide): Likewise.
17786         * doc/posix-functions/getwc.texi (getwc): Likewise.
17787         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17788         * doc/posix-functions/putwc.texi (putwc): Likewise.
17789         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17790         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17791         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17792         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17793         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17794         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17795         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17796         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17797         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17798         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17799         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17800
17801 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17802
17803         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17804         * lib/ioctl.c: Include <sys/ioctl.h>.
17805
17806 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17807
17808         * modules/getdate-tests (Depends-on): Add progname.
17809         * tests/test-getdate.c: Use progname module, to avoid link errors
17810         on non-glibc systems.
17811
17812 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17813
17814         * modules/filenamecat-tests (Depends-on): Add progname.
17815         * modules/fstrcmp-tests (Depends-on): Likewise.
17816
17817         * tests/test-filenamecat.c: Use progname module, to avoid link
17818         errors on non-glibc systems.
17819         * tests/test-fstrcmp.c: Likewise.
17820
17821 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17822
17823         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17824         * lib/gettimeofday.c: Move extern declaration out of function.
17825
17826 2009-01-18  Bruno Haible  <bruno@clisp.org>
17827
17828         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17829         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17830         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17831
17832 2009-01-18  Bruno Haible  <bruno@clisp.org>
17833
17834         * lib/strftime.c (MEMPCPY): Remove unused macro.
17835         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17836
17837 2009-01-18  Martin Lambers  <marlam@marlam.de>
17838
17839         New module 'link'.
17840         * lib/unistd.in.h (link): New declaration.
17841         * lib/link.c: New file.
17842         * m4/link.m4: New file.
17843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17844         HAVE_LINK.
17845         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17846         * modules/link: New file.
17847         * doc/posix-functions/link.texi: Mention the new module.
17848
17849 2009-01-18  Bruno Haible  <bruno@clisp.org>
17850
17851         * tests/test-avltree_list.c (main): Call set_program_name.
17852         * tests/test-avltree_oset.c (main): Likewise.
17853         * tests/test-obstack-printf.c: Include progname.h.
17854         (main): Call set_program_name.
17855         * tests/test-quotearg.c: Include progname.h.
17856         (main): Call set_program_name.
17857         * tests/test-xmemdup0.c: Include progname.h.
17858         (main): Call set_program_name.
17859
17860 2009-01-18  Bruno Haible  <bruno@clisp.org>
17861
17862         New module 'alphasort'.
17863         * lib/dirent.in.h (alphasort): New declaration.
17864         * lib/alphasort.c: New file, from glibc with modifications.
17865         * m4/alphasort.m4: New file.
17866         * modules/alphasort: New file.
17867         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17868         HAVE_ALPHASORT.
17869         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17870         HAVE_ALPHASORT.
17871         * doc/posix-functions/alphasort.texi: Mention the new module and the
17872         portability problems.
17873
17874 2009-01-18  Bruno Haible  <bruno@clisp.org>
17875
17876         New module 'scandir'.
17877         * lib/dirent.in.h (scandir): New declaration.
17878         * lib/scandir.c: New file, from glibc with modifications.
17879         * m4/scandir.m4: New file.
17880         * modules/scandir: New file.
17881         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17882         HAVE_SCANDIR.
17883         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17884         HAVE_SCANDIR.
17885         * doc/posix-functions/scandir.texi: Mention the new module and the
17886         portability problems.
17887
17888 2009-01-17  Bruno Haible  <bruno@clisp.org>
17889
17890         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17891         Update documentation.
17892         (func_remove_suffix): Escape all dots in the suffix. Update
17893         documentation.
17894         (func_filter_filelist): Update documentation.
17895         Reported by Ralf Wildenhues.
17896
17897 2009-01-17  Bruno Haible  <bruno@clisp.org>
17898
17899         * modules/dprintf-posix-tests: New file.
17900         * tests/test-dprintf-posix.sh: New file.
17901         * tests/test-dprintf-posix.c: New file.
17902
17903         New modules 'dprintf', 'dprintf-posix'.
17904         * lib/stdio.in.h (dprintf): New declaration.
17905         * lib/dprintf.c: New file.
17906         * m4/dprintf.m4: New file.
17907         * m4/dprintf-posix.m4: New file.
17908         * modules/dprintf: New file.
17909         * modules/dprintf-posix: New file.
17910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17911         HAVE_DPRINTF, REPLACE_DPRINTF.
17912         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17913         HAVE_DPRINTF, REPLACE_DPRINTF.
17914         * doc/posix-functions/dprintf.texi: Mention the new modules.
17915
17916 2009-01-17  Bruno Haible  <bruno@clisp.org>
17917
17918         * modules/vdprintf-posix-tests: New file.
17919         * tests/test-vdprintf-posix.sh: New file.
17920         * tests/test-vdprintf-posix.c: New file.
17921
17922         New modules 'vdprintf', 'vdprintf-posix'.
17923         * lib/stdio.in.h (vdprintf): New declaration.
17924         * lib/vdprintf.c: New file.
17925         * m4/vdprintf.m4: New file.
17926         * m4/vdprintf-posix.m4: New file.
17927         * modules/vdprintf: New file.
17928         * modules/vdprintf-posix: New file.
17929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17930         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17931         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17932         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17933         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17934
17935 2009-01-17  Bruno Haible  <bruno@clisp.org>
17936
17937         Fix replacement of fopen on mingw.
17938         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17939         mingw.
17940
17941 2009-01-17  Bruno Haible  <bruno@clisp.org>
17942
17943         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17944         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17945
17946 2009-01-17  Bruno Haible  <bruno@clisp.org>
17947
17948         Avoid test-fflush2.sh failure on mingw.
17949         * tests/test-fflush2.c: Include binary-io.h.
17950         (main): Put standard input into binary mode.
17951         * modules/fflush-tests (Depends-on): Add binary-io.
17952
17953 2009-01-17  Bruno Haible  <bruno@clisp.org>
17954
17955         * lib/wchar.in.h: In another particular situation, include only the
17956         system's <wchar.h> file.
17957         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17958         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17959         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17960
17961 2009-01-17  Bruno Haible  <bruno@clisp.org>
17962
17963         Support for stripping executables in --enable-relocatable.
17964         * build-aux/install-reloc: Expect one more argument, or an environment
17965         variable RELOC_STRIP_PROG. If set, strip the destination program and
17966         its wrapper.
17967         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17968         RELOC_STRIP_PROG.
17969         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17970         to set RELOCATABLE_STRIP.
17971         * NEWS: Mention the new Makefile requirement.
17972
17973 2009-01-17  Bruno Haible  <bruno@clisp.org>
17974
17975         * build-aux/install-reloc: Remove debugging information left over by
17976         C compiler on MacOS X.
17977
17978 2009-01-17  Bruno Haible  <bruno@clisp.org>
17979
17980         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17981         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17982         _NSGetExecutablePath.
17983
17984 2009-01-16  Jim Meyering  <meyering@redhat.com>
17985
17986         strerror: avoid warnings about discarding "const"
17987         * lib/strerror.c (rpl_strerror): Instead of returning a const
17988         string from each and every "case", use a variable, and add a single
17989         cast after the switch.
17990
17991 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17992
17993         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17994
17995 2009-01-16  Bruno Haible  <bruno@clisp.org>
17996
17997         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17998         array initializer syntax that also works in C++ mode.
17999         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18000
18001 2009-01-16  Jim Meyering  <meyering@redhat.com>
18002
18003         poll: suppress a warning
18004         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
18005         to ignore "...unsigned expression < 0 is always false" warnings.
18006
18007 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
18008
18009         poll: remove declarations of unused variables
18010         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
18011         sockbuf and optlen.
18012
18013 2009-01-15  Bruno Haible  <bruno@clisp.org>
18014
18015         Make fflush-after-ungetc POSIX compliant on BSD systems.
18016         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
18017         (clear_ungetc_buffer): Implement also for other systems.
18018         (rpl_fflush): On glibc systems, invoke
18019         clear_ungetc_buffer_preserving_position. Otherwise, invoke
18020         clear_ungetc_buffer after fetching the stream's position, not before.
18021
18022 2009-01-15  Bruno Haible  <bruno@clisp.org>
18023
18024         Make fflush-after-ungetc POSIX compliant on glibc systems.
18025         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
18026         after ungetc.
18027         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
18028         (rpl_fflush): On glibc systems, simply call the system's fflush
18029         function after clearing the ungetc buffer.
18030         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
18031         Instead, lseek only to the end of file, then use the system's fseeko
18032         for the rest. On glibc systems, reset the EOF indicator bit.
18033
18034 2009-01-15  Jim Meyering  <meyering@redhat.com>
18035
18036         openmp.m4: revert quote-adding change, for portability to older autoconf
18037         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
18038         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
18039         Simon Josefsson noticed the problem when using autoconf-2.61.
18040
18041 2009-01-15  Bruno Haible  <bruno@clisp.org>
18042
18043         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
18044         * tests/test-fflush2.c (ASSERT): Always fail.
18045         (main): Add two tests for fflush() after ungetc(), taking into account
18046         the Austin Group's clarification.
18047         Suggested by Eric Blake.
18048
18049 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
18050
18051         mktime.m4: remove K&R-style function prototypes
18052         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
18053         for the Sun C++ compiler.
18054
18055 2009-01-14  Bruno Haible  <bruno@clisp.org>
18056
18057         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
18058         while including <wchar.h>.
18059         * lib/wchar.in.h: In two particular situations on HP-UX, include only
18060         the system's <wchar.h> file.
18061         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18062
18063 2009-01-14  Bruno Haible  <bruno@clisp.org>
18064
18065         * m4/csharp.m4: Don't mention gettext on the serial number line.
18066         * m4/csharpexec.m4: Likewise.
18067         * m4/eaccess.m4: Likewise.
18068         * m4/javaexec.m4: Likewise.
18069         * m4/sig_atomic_t.m4: Likewise.
18070         * m4/tmpdir.m4: Likewise.
18071         * m4/intldir.m4: Bump gettext version.
18072         * m4/lib-ld.m4: Likewise.
18073
18074 2009-01-14  Bruno Haible  <bruno@clisp.org>
18075
18076         * lib/progname.c (set_program_name): Add more comments.
18077         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18078
18079 2009-01-14  Simon Josefsson  <simon@josefsson.org>
18080
18081         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
18082         were sys/stat.h does not define it.
18083
18084 2009-01-14  Jim Meyering  <meyering@redhat.com>
18085
18086         many *.m4 files: improve m4 quoting
18087         99% of this change was performed by running the following commands:
18088         git ls-files | grep '\.m4$' | xargs perl -pi \
18089           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
18090           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18091           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18092           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
18093         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
18094         The remainder were to add Copyright dates, increment serial numbers,
18095         undo some changes in comments, exclude m4/intl.m4, and add quotes
18096         around the "1" in ",1" where the unusual spacing prohibited the
18097         above regexps from doing the job.  For more details, see
18098         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
18099         * m4/acl.m4: Modified.
18100         * m4/afs.m4: Likewise.
18101         * m4/alloca.m4: Likewise.
18102         * m4/argp.m4: Likewise.
18103         * m4/argz.m4: Likewise.
18104         * m4/atexit.m4: Likewise.
18105         * m4/bison-i18n.m4: Likewise.
18106         * m4/bison.m4: Likewise.
18107         * m4/byteswap.m4: Likewise.
18108         * m4/c-stack.m4: Likewise.
18109         * m4/c-strtod.m4: Likewise.
18110         * m4/calloc.m4: Likewise.
18111         * m4/canonicalize-lgpl.m4: Likewise.
18112         * m4/chown.m4: Likewise.
18113         * m4/clock_time.m4: Likewise.
18114         * m4/codeset.m4: Likewise.
18115         * m4/copy-file.m4: Likewise.
18116         * m4/csharp.m4: Likewise.
18117         * m4/csharpcomp.m4: Likewise.
18118         * m4/csharpexec.m4: Likewise.
18119         * m4/d-ino.m4: Likewise.
18120         * m4/d-type.m4: Likewise.
18121         * m4/dirfd.m4: Likewise.
18122         * m4/double-slash-root.m4: Likewise.
18123         * m4/eaccess.m4: Likewise.
18124         * m4/eealloc.m4: Likewise.
18125         * m4/environ.m4: Likewise.
18126         * m4/errno_h.m4: Likewise.
18127         * m4/euidaccess.m4: Likewise.
18128         * m4/execute.m4: Likewise.
18129         * m4/fatal-signal.m4: Likewise.
18130         * m4/fchdir.m4: Likewise.
18131         * m4/fcntl_h.m4: Likewise.
18132         * m4/fileblocks.m4: Likewise.
18133         * m4/filenamecat.m4: Likewise.
18134         * m4/findprog.m4: Likewise.
18135         * m4/flexmember.m4: Likewise.
18136         * m4/fnmatch.m4: Likewise.
18137         * m4/fopen.m4: Likewise.
18138         * m4/fpending.m4: Likewise.
18139         * m4/fprintf-posix.m4: Likewise.
18140         * m4/free.m4: Likewise.
18141         * m4/frexp.m4: Likewise.
18142         * m4/frexpl.m4: Likewise.
18143         * m4/fsusage.m4: Likewise.
18144         * m4/ftruncate.m4: Likewise.
18145         * m4/gc-camellia.m4: Likewise.
18146         * m4/gc-random.m4: Likewise.
18147         * m4/gc.m4: Likewise.
18148         * m4/getaddrinfo.m4: Likewise.
18149         * m4/getcwd-abort-bug.m4: Likewise.
18150         * m4/getcwd-path-max.m4: Likewise.
18151         * m4/getdate.m4: Likewise.
18152         * m4/getdomainname.m4: Likewise.
18153         * m4/getgroups.m4: Likewise.
18154         * m4/gethostname.m4: Likewise.
18155         * m4/gethrxtime.m4: Likewise.
18156         * m4/getline.m4: Likewise.
18157         * m4/getloadavg.m4: Likewise.
18158         * m4/getndelim2.m4: Likewise.
18159         * m4/getpass.m4: Likewise.
18160         * m4/gettext.m4: Likewise.
18161         * m4/gettime.m4: Likewise.
18162         * m4/gettimeofday.m4: Likewise.
18163         * m4/gnulib-common.m4: Likewise.
18164         * m4/group-member.m4: Likewise.
18165         * m4/host-os.m4: Likewise.
18166         * m4/iconv.m4: Likewise.
18167         * m4/iconv_open.m4: Likewise.
18168         * m4/inet_ntop.m4: Likewise.
18169         * m4/inet_pton.m4: Likewise.
18170         * m4/inline.m4: Likewise.
18171         * m4/intldir.m4: Likewise.
18172         * m4/intlmacosx.m4: Likewise.
18173         * m4/intmax.m4: Likewise.
18174         * m4/intmax_t.m4: Likewise.
18175         * m4/inttypes.m4: Likewise.
18176         * m4/inttypes_h.m4: Likewise.
18177         * m4/inttypes-pri.m4: Likewise.
18178         * m4/isapipe.m4: Likewise.
18179         * m4/isnand.m4: Likewise.
18180         * m4/isnanf.m4: Likewise.
18181         * m4/isnanl.m4: Likewise.
18182         * m4/javacomp.m4: Likewise.
18183         * m4/javaexec.m4: Likewise.
18184         * m4/jm-winsz1.m4: Likewise.
18185         * m4/jm-winsz2.m4: Likewise.
18186         * m4/lchown.m4: Likewise.
18187         * m4/lcmessage.m4: Likewise.
18188         * m4/ldexpl.m4: Likewise.
18189         * m4/lib-ld.m4: Likewise.
18190         * m4/lib-link.m4: Likewise.
18191         * m4/libsigsegv.m4: Likewise.
18192         * m4/link-follow.m4: Likewise.
18193         * m4/localcharset.m4: Likewise.
18194         * m4/locale-fr.m4: Likewise.
18195         * m4/locale-ja.m4: Likewise.
18196         * m4/locale-tr.m4: Likewise.
18197         * m4/locale-zh.m4: Likewise.
18198         * m4/lock.m4: Likewise.
18199         * m4/longlong.m4: Likewise.
18200         * m4/ls-mntd-fs.m4: Likewise.
18201         * m4/lstat.m4: Likewise.
18202         * m4/malloc.m4: Likewise.
18203         * m4/mathl.m4: Likewise.
18204         * m4/mbrtowc.m4: Likewise.
18205         * m4/mbstate_t.m4: Likewise.
18206         * m4/mbswidth.m4: Likewise.
18207         * m4/memchr.m4: Likewise.
18208         * m4/memcmp.m4: Likewise.
18209         * m4/memcpy.m4: Likewise.
18210         * m4/memmem.m4: Likewise.
18211         * m4/memmove.m4: Likewise.
18212         * m4/mempcpy.m4: Likewise.
18213         * m4/memrchr.m4: Likewise.
18214         * m4/memset.m4: Likewise.
18215         * m4/minmax.m4: Likewise.
18216         * m4/mkdir-slash.m4: Likewise.
18217         * m4/mkdtemp.m4: Likewise.
18218         * m4/mktime.m4: Likewise.
18219         * m4/mmap-anon.m4: Likewise.
18220         * m4/mountlist.m4: Likewise.
18221         * m4/nanosleep.m4: Likewise.
18222         * m4/nls.m4: Likewise.
18223         * m4/nocrash.m4: Likewise.
18224         * m4/open.m4: Likewise.
18225         * m4/openat.m4: Likewise.
18226         * m4/openmp.m4: Likewise.
18227         * m4/pathmax.m4: Likewise.
18228         * m4/perl.m4: Likewise.
18229         * m4/physmem.m4: Likewise.
18230         * m4/pipe.m4: Likewise.
18231         * m4/po.m4: Likewise.
18232         * m4/poll.m4: Likewise.
18233         * m4/posixtm.m4: Likewise.
18234         * m4/posixver.m4: Likewise.
18235         * m4/printf-frexp.m4: Likewise.
18236         * m4/printf-frexpl.m4: Likewise.
18237         * m4/printf-posix.m4: Likewise.
18238         * m4/printf-posix-rpl.m4: Likewise.
18239         * m4/printf.m4: Likewise.
18240         * m4/progtest.m4: Likewise.
18241         * m4/putenv.m4: Likewise.
18242         * m4/readline.m4: Likewise.
18243         * m4/readlink.m4: Likewise.
18244         * m4/readutmp.m4: Likewise.
18245         * m4/realloc.m4: Likewise.
18246         * m4/regex.m4: Likewise.
18247         * m4/relocatable.m4: Likewise.
18248         * m4/relocatable-lib.m4: Likewise.
18249         * m4/rename-dest-slash.m4: Likewise.
18250         * m4/rename.m4: Likewise.
18251         * m4/rmdir-errno.m4: Likewise.
18252         * m4/rmdir.m4: Likewise.
18253         * m4/roundf.m4: Likewise.
18254         * m4/roundl.m4: Likewise.
18255         * m4/rpmatch.m4: Likewise.
18256         * m4/save-cwd.m4: Likewise.
18257         * m4/selinux-selinux-h.m4: Likewise.
18258         * m4/setenv.m4: Likewise.
18259         * m4/settime.m4: Likewise.
18260         * m4/sig2str.m4: Likewise.
18261         * m4/sig_atomic_t.m4: Likewise.
18262         * m4/signalblocking.m4: Likewise.
18263         * m4/signbit.m4: Likewise.
18264         * m4/sigpipe.m4: Likewise.
18265         * m4/sockets.m4: Likewise.
18266         * m4/sockpfaf.m4: Likewise.
18267         * m4/st_dm_mode.m4: Likewise.
18268         * m4/stat-time.m4: Likewise.
18269         * m4/stdbool.m4: Likewise.
18270         * m4/stdint.m4: Likewise.
18271         * m4/stdint_h.m4: Likewise.
18272         * m4/stpcpy.m4: Likewise.
18273         * m4/stpncpy.m4: Likewise.
18274         * m4/strcase.m4: Likewise.
18275         * m4/strchrnul.m4: Likewise.
18276         * m4/strcspn.m4: Likewise.
18277         * m4/strdup.m4: Likewise.
18278         * m4/strftime.m4: Likewise.
18279         * m4/strndup.m4: Likewise.
18280         * m4/strnlen.m4: Likewise.
18281         * m4/strpbrk.m4: Likewise.
18282         * m4/strptime.m4: Likewise.
18283         * m4/strsep.m4: Likewise.
18284         * m4/strtod.m4: Likewise.
18285         * m4/strtoimax.m4: Likewise.
18286         * m4/strtok_r.m4: Likewise.
18287         * m4/strtol.m4: Likewise.
18288         * m4/strtoll.m4: Likewise.
18289         * m4/strtoul.m4: Likewise.
18290         * m4/strtoull.m4: Likewise.
18291         * m4/strtoumax.m4: Likewise.
18292         * m4/strverscmp.m4: Likewise.
18293         * m4/threadlib.m4: Likewise.
18294         * m4/timegm.m4: Likewise.
18295         * m4/tm_gmtoff.m4: Likewise.
18296         * m4/tmpdir.m4: Likewise.
18297         * m4/tmpfile.m4: Likewise.
18298         * m4/tzset.m4: Likewise.
18299         * m4/uintmax_t.m4: Likewise.
18300         * m4/unlinkdir.m4: Likewise.
18301         * m4/unlocked-io.m4: Likewise.
18302         * m4/uptime.m4: Likewise.
18303         * m4/userspec.m4: Likewise.
18304         * m4/utimbuf.m4: Likewise.
18305         * m4/utime.m4: Likewise.
18306         * m4/utimes-null.m4: Likewise.
18307         * m4/utimes.m4: Likewise.
18308         * m4/vararrays.m4: Likewise.
18309         * m4/vasnprintf.m4: Likewise.
18310         * m4/vfprintf-posix.m4: Likewise.
18311         * m4/vprintf-posix.m4: Likewise.
18312         * m4/wait-process.m4: Likewise.
18313         * m4/wchar_t.m4: Likewise.
18314         * m4/wint_t.m4: Likewise.
18315         * m4/write-any-file.m4: Likewise.
18316         * m4/yield.m4: Likewise.
18317
18318 2009-01-13  Bruno Haible  <bruno@clisp.org>
18319
18320         Avoid test-copy-file.sh failures when ACL support insufficient.
18321         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18322         TESTS_ENVIRONMENT.
18323         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18324         Reported by Jim Meyering.
18325
18326 2009-01-13  Bruno Haible  <bruno@clisp.org>
18327
18328         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18329         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18330         * modules/unistdio/u8-printf-parse (Files): Likewise.
18331         * modules/unistdio/u32-printf-parse (Files): Likewise.
18332         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18333
18334 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18335
18336         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18337         and m4/inttypes_h.m4 too.
18338
18339 2009-01-12  Eric Blake  <ebb9@byu.net>
18340
18341         tests: IRIX 6.2 cc can't compile -0.0 into .data
18342         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18343         rather than at compile-time.
18344         * tests/test-floorl.c (minus_zero): Likewise.
18345         * tests/test-frexpl.c (minus_zero): Likewise.
18346         * tests/test-isnan.c (minus_zerol): Likewise.
18347         * tests/test-isnanl.h (minus_zero): Likewise.
18348         * tests/test-ldexpl.c (minus_zero): Likewise.
18349         * tests/test-roundl.c (minus_zero): Likewise.
18350         * tests/test-signbit.c (minus_zerol): Likewise.
18351         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18352         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18353         * tests/test-truncl.c (minus_zero): Likewise.
18354         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18355         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18356         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18357
18358 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18359
18360         regex: fix glibc bug 9697
18361         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18362         handling.
18363
18364 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18365
18366         regex: fix glibc bug 697
18367         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18368         being NULL also if there are no backreferences.
18369
18370 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18371
18372         regex: merge glibc changes
18373         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18374         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18375         re_string_skip_chars, re_string_reconstruct): Likewise.
18376         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18377
18378 2009-01-07  Jim Meyering  <meyering@redhat.com>
18379
18380         poll: filter through cppi
18381         * lib/poll.c: Indent cpp directives to reflect nesting.
18382
18383 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18384
18385         poll: don't return uninitialized
18386         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18387
18388 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18389
18390         avoid compile failure on AIX 6.1
18391         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18392         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18393
18394 2009-01-04  Jim Meyering  <meyering@redhat.com>
18395
18396         remove duplicate inclusion of <stdio.h>
18397         * tests/test-fprintf-posix.c: Likewise.
18398         * tests/test-printf-posix.c: Likewise.
18399         * tests/test-snprintf-posix.c: Likewise.
18400         * tests/test-sprintf-posix.c: Likewise.
18401         * tests/test-vasprintf-posix.c: Likewise.
18402         * tests/test-vfprintf-posix.c: Likewise.
18403         * tests/test-vprintf-posix.c: Likewise.
18404         * tests/test-vsnprintf-posix.c: Likewise.
18405         * tests/test-vsprintf-posix.c: Likewise.
18406
18407 2009-01-03  Jim Meyering  <meyering@redhat.com>
18408
18409         gnulib-tool: fix sed-based filtering
18410         * gnulib-tool (func_filter_filelist): Remove extra backslash
18411         in sed_fff_filter definition.
18412
18413 2009-01-02  Jim Meyering  <meyering@redhat.com>
18414
18415         strftime: avoid compilation failure on Solaris 2.6
18416         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18417         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18418         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18419         be available.  Reported by Tom G. Christensen.  Details in
18420         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18421
18422 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18423             Bruno Haible  <bruno@clisp.org>
18424
18425         Speed up gnulib-tool by doing more string processing through shell
18426         built-ins.
18427         * gnulib-tool (fast_func_append): New variable.
18428         (func_remove_prefix, func_remove_suffix): New functions.
18429         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18430         (func_filter_filelist): New function.
18431         (func_get_dependencies): Use func_remove_suffix instead of sed.
18432         (func_get_automake_snippet): Use func_filter_filelist instead of a
18433         subshell and sed invocation.
18434
18435 2009-01-01  Bruno Haible  <bruno@clisp.org>
18436
18437         Fix a security bug.
18438         * gnulib-tool (func_import, import, update): Don't allow the characters
18439         '"', '$', '`', '\' in macro arguments that become part of commands that
18440         are evaluated.
18441
18442 2009-01-01  Bruno Haible  <bruno@clisp.org>
18443
18444         * gnulib-tool (func_reset_sigpipe): Add more comments.
18445
18446 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18447
18448         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18449         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18450         already know the answer.
18451
18452 2009-01-01  Jim Meyering  <meyering@redhat.com>
18453
18454         * lib/version-etc.c (version_etc_va): Update copyright year.
18455
18456 2008-12-30  Bruno Haible  <bruno@clisp.org>
18457
18458         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18459         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18460         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18461
18462 2008-12-29  Eric Blake  <ebb9@byu.net>
18463
18464         multiarch: avoid autoconf AC_REQUIRE bug
18465         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18466         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18467         2.63 and older.
18468         Reported by Bruno Haible, and analyzed in
18469         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18470
18471 2008-12-29  Bruno Haible  <bruno@clisp.org>
18472
18473         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18474         files in subdirectories correctly.
18475         Reported by Ralf Wildenhues.
18476
18477 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18478
18479         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18480         rather than 'join FILE -', for Solaris join.
18481
18482 2008-12-29  Bruno Haible  <bruno@clisp.org>
18483
18484         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18485         quoting.
18486         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18487         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18488         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18489         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18490         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18491         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18492         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18493         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18494         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18495         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18496         * m4/nls.m4 (AM_NLS): Likewise.
18497         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18498         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18499         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18500         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18501         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18502         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18503         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18504         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18505         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18506         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18507         * m4/xsize.m4 (gl_XSIZE): Likewise.
18508         Suggested by Jim Meyering.
18509
18510 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18511
18512         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18513         * lib/parse-duration.c: use a switch instead of cascading if's.
18514
18515 2008-12-29  Eric Blake  <ebb9@byu.net>
18516
18517         wchar.h: supply WEOF on Irix 5.3
18518         * lib/wchar.in.h (wint_t): Also supply WEOF.
18519         * lib/wctype.in.h (wint_t): Likewise.
18520         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18521         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18522         Reported by Tom G. Christensen.
18523
18524 2008-12-26  Bruno Haible  <bruno@clisp.org>
18525
18526         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18527         i486, i586, i686.
18528
18529 2008-12-26  Bruno Haible  <bruno@clisp.org>
18530
18531         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18532
18533 2008-12-26  Bruno Haible  <bruno@clisp.org>
18534
18535         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18536         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18537         not __STDC_CONSTANT_MACROS.
18538         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18539
18540 2008-12-25  Bruno Haible  <bruno@clisp.org>
18541
18542         Add support for universal builds to vasnprintf.
18543         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18544         universal builds, guess no.
18545         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18546         * modules/vasprintf-posix (Depends-on): Likewise.
18547         * modules/fprintf-posix (Depends-on): Likewise.
18548         * modules/vfprintf-posix (Depends-on): Likewise.
18549         * modules/snprintf-posix (Depends-on): Likewise.
18550         * modules/vsnprintf-posix (Depends-on): Likewise.
18551         * modules/sprintf-posix (Depends-on): Likewise.
18552         * modules/vsprintf-posix (Depends-on): Likewise.
18553         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18554         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18555         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18556         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18557         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18558         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18559         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18560
18561         Add support for universal builds to <inttypes.h>.
18562         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18563         _SCNu64_PREFIX): In Apple
18564         universal builds, define directly, using _LP64.
18565         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18566         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18567         * modules/inttypes (Depends-on): Add multiarch.
18568         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18569
18570         Add support for universal builds to <stdint.h>.
18571         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18572         universal builds, define directly, using _LP64.
18573         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18574         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18575         and size_t.
18576         * modules/stdint (Depends-on): Add multiarch.
18577         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18578
18579         New module 'multiarch'.
18580         * modules/multiarch: New file.
18581         * m4/multiarch.m4: New file.
18582
18583 2008-12-25  Bruno Haible  <bruno@clisp.org>
18584
18585         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18586
18587 2008-12-25  Bruno Haible  <bruno@clisp.org>
18588
18589         * modules/btowc (License): Relicense under LGPLv2+.
18590         * modules/mbsinit (License): Likewise.
18591         * modules/mbrtowc (License): Likewise.
18592         * modules/wcrtomb (License): Likewise.
18593         * modules/streq (License): Likewise.
18594         Reported by David Lutterkort <lutter@redhat.com>.
18595
18596 2008-12-23  Bruno Haible  <bruno@clisp.org>
18597
18598         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18599
18600 2008-12-23  Bruno Haible  <bruno@clisp.org>
18601
18602         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18603         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18604         GETADDRINFO_LIB, not in LIBS.
18605         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18606         * modules/canon-host (Link): Likewise.
18607         * NEWS: Mention the change.
18608         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18609         GETADDRINFO_LIB.
18610
18611 2008-12-22  Bruno Haible  <bruno@clisp.org>
18612
18613         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18614         * doc/posix-functions/iswalpha_l.texi: Likewise.
18615         * doc/posix-functions/iswblank_l.texi: Likewise.
18616         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18617         * doc/posix-functions/iswctype_l.texi: Likewise.
18618         * doc/posix-functions/iswdigit_l.texi: Likewise.
18619         * doc/posix-functions/iswgraph_l.texi: Likewise.
18620         * doc/posix-functions/iswlower_l.texi: Likewise.
18621         * doc/posix-functions/iswprint_l.texi: Likewise.
18622         * doc/posix-functions/iswpunct_l.texi: Likewise.
18623         * doc/posix-functions/iswspace_l.texi: Likewise.
18624         * doc/posix-functions/iswupper_l.texi: Likewise.
18625         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18626         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18627         * doc/posix-functions/open_wmemstream.texi: Likewise.
18628         * doc/posix-functions/swscanf.texi: Likewise.
18629         * doc/posix-functions/towctrans_l.texi: Likewise.
18630         * doc/posix-functions/towlower.texi: Likewise.
18631         * doc/posix-functions/towlower_l.texi: Likewise.
18632         * doc/posix-functions/towupper.texi: Likewise.
18633         * doc/posix-functions/towupper_l.texi: Likewise.
18634         * doc/posix-functions/vfwprintf.texi: Likewise.
18635         * doc/posix-functions/vfwscanf.texi: Likewise.
18636         * doc/posix-functions/vswscanf.texi: Likewise.
18637         * doc/posix-functions/vwprintf.texi: Likewise.
18638         * doc/posix-functions/vwscanf.texi: Likewise.
18639         * doc/posix-functions/wcpcpy.texi: Likewise.
18640         * doc/posix-functions/wcpncpy.texi: Likewise.
18641         * doc/posix-functions/wcscasecmp.texi: Likewise.
18642         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18643         * doc/posix-functions/wcscoll_l.texi: Likewise.
18644         * doc/posix-functions/wcsdup.texi: Likewise.
18645         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18646         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18647         * doc/posix-functions/wcsnlen.texi: Likewise.
18648         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18649         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18650         * doc/posix-functions/wctrans_l.texi: Likewise.
18651         * doc/posix-functions/wctype_l.texi: Likewise.
18652         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18653         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18654         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18655         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18656         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18657         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18658         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18659         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18660         * doc/glibc-functions/wcschrnul.texi: Likewise.
18661         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18662         * doc/glibc-functions/wcstod_l.texi: Likewise.
18663         * doc/glibc-functions/wcstof_l.texi: Likewise.
18664         * doc/glibc-functions/wcstol_l.texi: Likewise.
18665         * doc/glibc-functions/wcstold_l.texi: Likewise.
18666         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18667         * doc/glibc-functions/wcstoq.texi: Likewise.
18668         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18669         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18670         * doc/glibc-functions/wcstouq.texi: Likewise.
18671         * doc/glibc-functions/wmempcpy.texi: Likewise.
18672
18673 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18674             Eric Blake  <ebb9@byu.net>
18675             Paolo Bonzini  <bonzini@gnu.org>
18676             Bruno Haible  <bruno@clisp.org>
18677
18678         Make c-stack work on Haiku.
18679         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18680         (c_stack_action): Use SA_ONSTACK flag.
18681
18682 2008-12-22  Bruno Haible  <bruno@clisp.org>
18683
18684         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18685
18686 2008-12-22  Bruno Haible  <bruno@clisp.org>
18687
18688         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18689         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18690         being overridden.
18691         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18692         New macros.
18693         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18694         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18695         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18696         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18697
18698 2008-12-22  Bruno Haible  <bruno@clisp.org>
18699
18700         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18701         from test code.
18702
18703 2008-12-22  Eric Blake  <ebb9@byu.net>
18704
18705         Avoid gcc warnings on cygwin.
18706         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18707         Avoid unused variable.
18708         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18709         Likewise.
18710
18711 2008-12-22  Bruno Haible  <bruno@clisp.org>
18712
18713         Remove HAVE_MBRTOWC conditionals.
18714         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18715         (mbscasecmp): Assume mbrtowc function.
18716         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18717         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18718         * lib/mbschr.c: Include mbuiter.h unconditionally.
18719         (mbschr): Assume mbrtowc function.
18720         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18721         (mbscspn): Assume mbrtowc function.
18722         * lib/mbslen.c: Include mbuiter.h unconditionally.
18723         (mbslen): Assume mbrtowc function.
18724         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18725         (mbsncasecmp): Assume mbrtowc function.
18726         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18727         (mbsnlen): Assume mbrtowc function.
18728         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18729         (mbspbrk): Assume mbrtowc function.
18730         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18731         (mbspcasecmp): Assume mbrtowc function.
18732         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18733         (mbsrchr): Assume mbrtowc function.
18734         * lib/mbssep.c: Include mbuiter.h unconditionally.
18735         (mbssep): Assume mbrtowc function.
18736         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18737         (mbsspn): Assume mbrtowc function.
18738         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18739         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18740         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18741         (mbstok_r): Assume mbrtowc function.
18742         * lib/propername.c: Include mbuiter.h unconditionally.
18743         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18744         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18745         (trim2): Assume mbrtowc function.
18746         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18747         (mbsnwidth): Assume mbrtowc function.
18748         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18749         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18750         fallback definitions.
18751         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18752
18753 2008-12-22  Bruno Haible  <bruno@clisp.org>
18754
18755         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18756
18757 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18758
18759         * modules/regex: Request emulations for the mb*/wc* functions we need.
18760         * m4/regex.m4: Don't look for those functions here.
18761         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18762
18763 2008-12-22  Bruno Haible  <bruno@clisp.org>
18764
18765         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18766
18767 2008-12-21  Bruno Haible  <bruno@clisp.org>
18768
18769         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18770         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18771         (Include): Remove conditionalization.
18772         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18773         (Include): Remove conditionalization.
18774         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18775         (Include): Remove conditionalization.
18776         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18777         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18778         * NEWS: Mention the change.
18779         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18780         via Sergey Poznyakoff <gray@gnu.org.ua>.
18781
18782 2008-12-21  Bruno Haible  <bruno@clisp.org>
18783
18784         * MODULES.html.sh (Extended multibyte and wide character utilities
18785         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18786         wcrtomb, wcsrtombs.
18787         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18788         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18789         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18790         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18791
18792 2008-12-21  Bruno Haible  <bruno@clisp.org>
18793
18794         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18795
18796 2008-12-21  Bruno Haible  <bruno@clisp.org>
18797
18798         * modules/wcsnrtombs-tests: New file.
18799         * tests/test-wcsnrtombs1.sh: New file.
18800         * tests/test-wcsnrtombs2.sh: New file.
18801         * tests/test-wcsnrtombs3.sh: New file.
18802         * tests/test-wcsnrtombs4.sh: New file.
18803         * tests/test-wcsnrtombs.c: New file.
18804
18805         New module 'wcsnrtombs'.
18806         * lib/wchar.in.h (wcsnrtombs): New declaration.
18807         * lib/wcsnrtombs.c: New file.
18808         * lib/wcsrtombs-state.c: New file.
18809         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18810         (internal_state): Remove variable.
18811         * m4/wcsnrtombs.m4: New file.
18812         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18813         compilation units.
18814         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18815         HAVE_WCSNRTOMBS.
18816         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18817         HAVE_WCSNRTOMBS.
18818         * modules/wcsnrtombs: New file.
18819         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18820         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18821
18822 2008-12-21  Bruno Haible  <bruno@clisp.org>
18823
18824         * modules/wcsrtombs-tests: New file.
18825         * tests/test-wcsrtombs1.sh: New file.
18826         * tests/test-wcsrtombs2.sh: New file.
18827         * tests/test-wcsrtombs3.sh: New file.
18828         * tests/test-wcsrtombs4.sh: New file.
18829         * tests/test-wcsrtombs.c: New file.
18830
18831         New module 'wcsrtombs'.
18832         * lib/wchar.in.h (wcsrtombs): New declaration.
18833         * lib/wcsrtombs.c: New file.
18834         * m4/wcsrtombs.m4: New file.
18835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18836         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18837         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18838         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18839         * modules/wcsrtombs: New file.
18840         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18841         bugs.
18842
18843 2008-12-21  Bruno Haible  <bruno@clisp.org>
18844
18845         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18846         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18847         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18848         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18849         if not correct.
18850         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18851         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18852         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18853         m4/locale-zh.m4, m4/codeset.m4.
18854         * doc/posix-functions/wcrtomb.texi: Document the bug.
18855
18856 2008-12-21  Bruno Haible  <bruno@clisp.org>
18857
18858         Work around a btowc() bug on IRIX 6.5.
18859         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18860         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18861         REPLACE_WTOBC if not.
18862         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18863         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18864         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18865
18866 2008-12-21  Bruno Haible  <bruno@clisp.org>
18867
18868         * modules/wcrtomb-tests: New file.
18869         * tests/test-wcrtomb.sh: New file.
18870         * tests/test-wcrtomb.c: New file.
18871
18872         New module 'wcrtomb'.
18873         * lib/wchar.in.h (wcrtomb): New declaration.
18874         * lib/wcrtomb.c: New file.
18875         * m4/wcrtomb.m4: New file.
18876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18877         HAVE_WCRTOMB.
18878         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18879         HAVE_WCRTOMB.
18880         * modules/wcrtomb: New file.
18881         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18882
18883 2008-12-21  Bruno Haible  <bruno@clisp.org>
18884
18885         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18886         * modules/mbsrtowcs (Files): Likewise.
18887         * modules/wctob (Files): Likewise.
18888         * modules/c-strcase-tests (Files): Likewise.
18889         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18890         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18891         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18892         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18893         * modules/vasnprintf-posix-tests (Files): Likewise.
18894
18895 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18896
18897         gitlog-to-changelog: pass all command-line arguments to git-log
18898         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18899         it is sometimes convenient to filter the commits in various ways.
18900         gitlog-to-changelog only allows --since to specify a start date,
18901         but git-log itself supports many other filtering mechanisms.
18902         At the moment, I want to filter by branch name.  Rather than
18903         adding a --branch option to gitlog-to-changelog, it seems more
18904         flexible to simply pass all options directly to git-log and let
18905         git do the work.  Notice that this effectively makes --since a
18906         redundant option for gitlog-to-changelog, but removing it would
18907         require current usage to change since calls would then require
18908         an additional '--'.
18909
18910 2008-12-21  Bruno Haible  <bruno@clisp.org>
18911
18912         * modules/mbsnrtowcs-tests: New file.
18913         * tests/test-mbsnrtowcs1.sh: New file.
18914         * tests/test-mbsnrtowcs2.sh: New file.
18915         * tests/test-mbsnrtowcs3.sh: New file.
18916         * tests/test-mbsnrtowcs4.sh: New file.
18917         * tests/test-mbsnrtowcs.c: New file.
18918
18919         New module 'mbsnrtowcs'.
18920         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18921         * lib/mbsnrtowcs.c: New file.
18922         * lib/mbsrtowcs-state.c: New file.
18923         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18924         (internal_state): Remove variable.
18925         * m4/mbsnrtowcs.m4: New file.
18926         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18927         compilation units.
18928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18929         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18930         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18931         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18932         * modules/mbsnrtowcs: New file.
18933         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18934         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18935         portability problem.
18936
18937 2008-12-21  Bruno Haible  <bruno@clisp.org>
18938
18939         Work around mbsrtowcs bug.
18940         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18941         (gl_FUNC_MBSRTOWCS): Invoke it.
18942         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18943         m4/locale-zh.m4.
18944         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18945
18946 2008-12-21  Bruno Haible  <bruno@clisp.org>
18947
18948         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18949
18950 2008-12-21  Bruno Haible  <bruno@clisp.org>
18951
18952         Update doc for AIX.
18953         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18954         16-bit wchar_t type.
18955         * doc/posix-functions/btowc.texi: Likewise.
18956         * doc/posix-functions/fgetwc.texi: Likewise.
18957         * doc/posix-functions/fgetws.texi: Likewise.
18958         * doc/posix-functions/fputwc.texi: Likewise.
18959         * doc/posix-functions/fputws.texi: Likewise.
18960         * doc/posix-functions/fwide.texi: Likewise.
18961         * doc/posix-functions/fwprintf.texi: Likewise.
18962         * doc/posix-functions/fwscanf.texi: Likewise.
18963         * doc/posix-functions/getwchar.texi: Likewise.
18964         * doc/posix-functions/getwc.texi: Likewise.
18965         * doc/posix-functions/iswalnum.texi: Likewise.
18966         * doc/posix-functions/iswalpha.texi: Likewise.
18967         * doc/posix-functions/iswblank.texi: Likewise.
18968         * doc/posix-functions/iswcntrl.texi: Likewise.
18969         * doc/posix-functions/iswctype.texi: Likewise.
18970         * doc/posix-functions/iswdigit.texi: Likewise.
18971         * doc/posix-functions/iswgraph.texi: Likewise.
18972         * doc/posix-functions/iswlower.texi: Likewise.
18973         * doc/posix-functions/iswprint.texi: Likewise.
18974         * doc/posix-functions/iswpunct.texi: Likewise.
18975         * doc/posix-functions/iswspace.texi: Likewise.
18976         * doc/posix-functions/iswupper.texi: Likewise.
18977         * doc/posix-functions/iswxdigit.texi: Likewise.
18978         * doc/posix-functions/mbrtowc.texi: Likewise.
18979         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18980         * doc/posix-functions/mbstowcs.texi: Likewise.
18981         * doc/posix-functions/mbtowc.texi: Likewise.
18982         * doc/posix-functions/putwchar.texi: Likewise.
18983         * doc/posix-functions/putwc.texi: Likewise.
18984         * doc/posix-functions/swprintf.texi: Likewise.
18985         * doc/posix-functions/tolower.texi: Likewise.
18986         * doc/posix-functions/toupper.texi: Likewise.
18987         * doc/posix-functions/towctrans.texi: Likewise.
18988         * doc/posix-functions/ungetwc.texi: Likewise.
18989         * doc/posix-functions/vswprintf.texi: Likewise.
18990         * doc/posix-functions/wcrtomb.texi: Likewise.
18991         * doc/posix-functions/wcscat.texi: Likewise.
18992         * doc/posix-functions/wcschr.texi: Likewise.
18993         * doc/posix-functions/wcscmp.texi: Likewise.
18994         * doc/posix-functions/wcscoll.texi: Likewise.
18995         * doc/posix-functions/wcscpy.texi: Likewise.
18996         * doc/posix-functions/wcscspn.texi: Likewise.
18997         * doc/posix-functions/wcsftime.texi: Likewise.
18998         * doc/posix-functions/wcslen.texi: Likewise.
18999         * doc/posix-functions/wcsncat.texi: Likewise.
19000         * doc/posix-functions/wcsncmp.texi: Likewise.
19001         * doc/posix-functions/wcsncpy.texi: Likewise.
19002         * doc/posix-functions/wcspbrk.texi: Likewise.
19003         * doc/posix-functions/wcsrchr.texi: Likewise.
19004         * doc/posix-functions/wcsrtombs.texi: Likewise.
19005         * doc/posix-functions/wcsspn.texi: Likewise.
19006         * doc/posix-functions/wcsstr.texi: Likewise.
19007         * doc/posix-functions/wcstod.texi: Likewise.
19008         * doc/posix-functions/wcstof.texi: Likewise.
19009         * doc/posix-functions/wcstoimax.texi: Likewise.
19010         * doc/posix-functions/wcstok.texi: Likewise.
19011         * doc/posix-functions/wcstold.texi: Likewise.
19012         * doc/posix-functions/wcstoll.texi: Likewise.
19013         * doc/posix-functions/wcstol.texi: Likewise.
19014         * doc/posix-functions/wcstombs.texi: Likewise.
19015         * doc/posix-functions/wcstoull.texi: Likewise.
19016         * doc/posix-functions/wcstoul.texi: Likewise.
19017         * doc/posix-functions/wcstoumax.texi: Likewise.
19018         * doc/posix-functions/wcswidth.texi: Likewise.
19019         * doc/posix-functions/wcsxfrm.texi: Likewise.
19020         * doc/posix-functions/wctob.texi: Likewise.
19021         * doc/posix-functions/wctomb.texi: Likewise.
19022         * doc/posix-functions/wctrans.texi: Likewise.
19023         * doc/posix-functions/wctype.texi: Likewise.
19024         * doc/posix-functions/wcwidth.texi: Likewise.
19025         * doc/posix-functions/wmemchr.texi: Likewise.
19026         * doc/posix-functions/wmemcmp.texi: Likewise.
19027         * doc/posix-functions/wmemcpy.texi: Likewise.
19028         * doc/posix-functions/wmemmove.texi: Likewise.
19029         * doc/posix-functions/wmemset.texi: Likewise.
19030         * doc/posix-functions/wprintf.texi: Likewise.
19031         * doc/posix-functions/wscanf.texi: Likewise.
19032
19033 2008-12-21  Bruno Haible  <bruno@clisp.org>
19034
19035         Update doc for HP-UX 11.11.
19036         * doc/posix-functions/btowc.texi: Clarify that the function is missing
19037         in HP-UX version 11.00, not in all versions of HP-UX 11.
19038         * doc/posix-functions/fwide.texi: Likewise.
19039         * doc/posix-functions/fwprintf.texi: Likewise.
19040         * doc/posix-functions/fwscanf.texi: Likewise.
19041         * doc/posix-functions/inet_ntop.texi: Likewise.
19042         * doc/posix-functions/inet_pton.texi: Likewise.
19043         * doc/posix-functions/mbrlen.texi: Likewise.
19044         * doc/posix-functions/mbrtowc.texi: Likewise.
19045         * doc/posix-functions/mbsinit.texi: Likewise.
19046         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19047         * doc/posix-functions/swprintf.texi: Likewise.
19048         * doc/posix-functions/swscanf.texi: Likewise.
19049         * doc/posix-functions/towctrans.texi: Likewise.
19050         * doc/posix-functions/vfwprintf.texi: Likewise.
19051         * doc/posix-functions/vswprintf.texi: Likewise.
19052         * doc/posix-functions/vwprintf.texi: Likewise.
19053         * doc/posix-functions/wcrtomb.texi: Likewise.
19054         * doc/posix-functions/wcsrtombs.texi: Likewise.
19055         * doc/posix-functions/wcsstr.texi: Likewise.
19056         * doc/posix-functions/wctob.texi: Likewise.
19057         * doc/posix-functions/wctrans.texi: Likewise.
19058         * doc/posix-functions/wmemchr.texi: Likewise.
19059         * doc/posix-functions/wmemcmp.texi: Likewise.
19060         * doc/posix-functions/wmemcpy.texi: Likewise.
19061         * doc/posix-functions/wmemmove.texi: Likewise.
19062         * doc/posix-functions/wmemset.texi: Likewise.
19063         * doc/posix-functions/wprintf.texi: Likewise.
19064         * doc/posix-functions/wscanf.texi: Likewise.
19065
19066 2008-12-21  Bruno Haible  <bruno@clisp.org>
19067
19068         Work around a portability problem.
19069         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
19070         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
19071
19072 2008-12-20  Bruno Haible  <bruno@clisp.org>
19073
19074         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
19075         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
19076         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
19077         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
19078         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
19079
19080         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
19081         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
19082         set.
19083         (GNULIB_defined_mbstate_t): New macro.
19084         (mbsinit): Redefine if REPLACE_MBSINIT is set.
19085         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
19086         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
19087         reuses the system's mbrtowc function but works around the bugs.
19088         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
19089         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
19090         macros.
19091         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
19092         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
19093         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
19094         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
19095         REPLACE_MBSINIT if mbsinit needs to be overridden.
19096         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
19097         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19098         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
19099         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19100         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19101         m4/locale-zh.m4.
19102         (Depends): Add mbsinit.
19103         * modules/mbsinit (Depends): Add mbrtowc.
19104         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
19105
19106 2008-12-20  Bruno Haible  <bruno@clisp.org>
19107
19108         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
19109         so that there are no conversion errors on AIX.
19110         * tests/test-mbsrtowcs.c (main): LIkewise.
19111
19112 2008-12-20  Bruno Haible  <bruno@clisp.org>
19113
19114         Work around wctob bug on Solaris <= 9.
19115         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
19116         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
19117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
19118         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
19119         * modules/wctob (Files): Add m4/locale-fr.m4.
19120         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
19121
19122 2008-12-20  Bruno Haible  <bruno@clisp.org>
19123
19124         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
19125         /dev/null.
19126         * tests/test-select-in.sh: Likewise.
19127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19128
19129 2008-12-20  Bruno Haible  <bruno@clisp.org>
19130
19131         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
19132         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
19133         Cygwin 1.5.x.
19134
19135 2008-12-20  Bruno Haible  <bruno@clisp.org>
19136
19137         Ensure mbstate_t is defined on HP-UX 11.11.
19138         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
19139         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
19140         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
19141         AC_USE_SYSTEM_EXTENSIONS.
19142         * modules/fnmatch (Depends-on): Add extensions.
19143         * modules/mbrlen (Depends-on): Likewise.
19144         * modules/mbrtowc (Depends-on): Likewise.
19145         * modules/mbsinit (Depends-on): Likewise.
19146         * modules/mbsrtowcs (Depends-on): Likewise.
19147         * modules/mbswidth (Depends-on): Likewise.
19148         * modules/quotearg (Depends-on): Likewise.
19149         * modules/strftime (Depends-on): Likewise.
19150
19151 2008-12-20  Bruno Haible  <bruno@clisp.org>
19152
19153         Ensure wctob is declared on IRIX 6.5.
19154         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
19155         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
19156         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
19157         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
19158         of HAVE_WCTOB.
19159         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
19160         HAVE_WCTOB.
19161         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
19162
19163 2008-12-19  Bruno Haible  <bruno@clisp.org>
19164
19165         * modules/mbsrtowcs-tests: New file.
19166         * tests/test-mbsrtowcs1.sh: New file.
19167         * tests/test-mbsrtowcs2.sh: New file.
19168         * tests/test-mbsrtowcs3.sh: New file.
19169         * tests/test-mbsrtowcs4.sh: New file.
19170         * tests/test-mbsrtowcs.c: New file.
19171
19172         New module 'mbsrtowcs'.
19173         * lib/wchar.in.h (mbsrtowcs): New declaration.
19174         * lib/mbsrtowcs.c: New file.
19175         * m4/mbsrtowcs.m4: New file.
19176         * modules/mbsrtowcs: New file.
19177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19178         HAVE_MBSRTOWCS.
19179         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19180         HAVE_MBSRTOWCS.
19181         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19182
19183 2008-12-19  Bruno Haible  <bruno@clisp.org>
19184
19185         New module 'mbrlen'.
19186         * lib/wchar.in.h (mbrlen): New declaration.
19187         * lib/mbrlen.c: New file.
19188         * m4/mbrlen.m4: New file.
19189         * modules/mbrlen: New file.
19190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19191         HAVE_MBRLEN.
19192         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19193         HAVE_MBRLEN.
19194         * doc/posix-functions/mbrlen.texi: Document the new module.
19195
19196 2008-12-19  Bruno Haible  <bruno@clisp.org>
19197
19198         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19199         * modules/mbrtowc (Depends-on): Add verify.
19200         Suggested by Paul Eggert.
19201
19202 2008-12-18  Bruno Haible  <bruno@clisp.org>
19203
19204         * modules/mbsinit-tests: New file.
19205         * tests/test-mbsinit.sh: New file.
19206         * tests/test-mbsinit.c: New file.
19207
19208 2008-12-18  Bruno Haible  <bruno@clisp.org>
19209
19210         * modules/mbrtowc-tests: New file.
19211         * tests/test-mbrtowc1.sh: New file.
19212         * tests/test-mbrtowc2.sh: New file.
19213         * tests/test-mbrtowc3.sh: New file.
19214         * tests/test-mbrtowc4.sh: New file.
19215         * tests/test-mbrtowc.c: New file.
19216
19217         New module 'mbrtowc'.
19218         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19219         mbsinit and mbrtowc.
19220         (mbrtowc): New declaration.
19221         * lib/mbrtowc.c: New file.
19222         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19223         * modules/mbrtowc: New file.
19224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19225         HAVE_MBRTOWC.
19226         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19227         HAVE_MBRTOWC.
19228         * doc/posix-functions/mbrtowc.texi: Document the new module.
19229
19230 2008-12-18  Bruno Haible  <bruno@clisp.org>
19231
19232         New module 'wctob'.
19233         * lib/wchar.in.h (wctob): New declaration.
19234         * lib/wctob.c: New file.
19235         * m4/wctob.m4: New file.
19236         * modules/wctob: New file.
19237         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19238         HAVE_WCTOB.
19239         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19240         * doc/posix-functions/wctob.texi: Document the new module.
19241
19242 2008-12-18  Bruno Haible  <bruno@clisp.org>
19243
19244         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19245         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19246
19247 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19248
19249         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19250         G. Christensen" <tgc@jupiterrise.com>.
19251
19252         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19253         G. Christensen" <tgc@jupiterrise.com>.
19254
19255         * lib/flock.c: Need to include string.h.  Reported by "Tom
19256         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19257         <ebb9@byu.net>.
19258
19259 2008-12-18  Bruno Haible  <bruno@clisp.org>
19260
19261         * m4/locale-ja.m4: New file, from GNU gettext.
19262
19263 2008-12-17  Bruno Haible  <bruno@clisp.org>
19264
19265         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19266         Suggested by Eric Blake.
19267
19268 2008-12-17  Bruno Haible  <bruno@clisp.org>
19269
19270         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19271
19272 2008-12-17  Bruno Haible  <bruno@clisp.org>
19273
19274         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19275         * modules/mbsinit (Depends-on): Add verify.
19276         Suggested by Paul Eggert.
19277
19278 2008-12-17  Bruno Haible  <bruno@clisp.org>
19279
19280         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19281         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19282         gl_FUNC_MBRTOWC.
19283         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19284         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19285         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19286         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19287         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19288         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19289         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19290         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19291         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19292         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19293         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19294         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19295         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19296         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19297         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19298         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19299         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19300         * modules/trim (configure.ac): Likewise.
19301
19302 2008-12-17  Bruno Haible  <bruno@clisp.org>
19303
19304         * modules/btowc-tests: New file.
19305         * tests/test-btowc1.sh: New file.
19306         * tests/test-btowc2.sh: New file.
19307         * tests/test-btowc.c: New file.
19308
19309         New module 'btowc'.
19310         * lib/wchar.in.h (btowc): New declaration.
19311         * lib/btowc.c: New file.
19312         * m4/btowc.m4: New file.
19313         * modules/btowc: New file.
19314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19315         HAVE_BTOWC.
19316         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19317         * doc/posix-functions/btowc.texi: Document the new module.
19318
19319 2008-12-17  Bruno Haible  <bruno@clisp.org>
19320
19321         New module 'mbsinit'.
19322         * lib/wchar.in.h (mbsinit): New declaration.
19323         * lib/mbsinit.c: New file.
19324         * m4/mbsinit.m4: New file.
19325         * modules/mbsinit: New file.
19326         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19327         HAVE_MBSINIT.
19328         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19329         HAVE_MBSINIT.
19330         * doc/posix-functions/mbsinit.texi: Document the new module.
19331
19332 2008-12-16  Bruno Haible  <bruno@clisp.org>
19333
19334         * lib/unistd.in.h: Add comment.
19335         * tests/test-environ.c: Don't include <stdlib.h>.
19336
19337 2008-12-16  Bruno Haible  <bruno@clisp.org>
19338
19339         * lib/parse-duration.h (parse_duration): Document return value
19340         convention.
19341         * lib/parse-duration.c: Include specification header first. Add
19342         comments.
19343         (_): Remove macro.
19344         (parse_year_month_day, parse_hour_minute_second): Move side effects
19345         outside of strchr call.
19346         (parse_non_iso8601): Move side effects outside of isspace call.
19347         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19348         call.
19349
19350 2008-12-16  Bruno Haible  <bruno@clisp.org>
19351
19352         * tests/test-parse-duration.sh: Produce no output when the test
19353         succeeds.
19354
19355 2008-12-16  Bruno Haible  <bruno@clisp.org>
19356
19357         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19358         expressions.
19359
19360 2008-12-15  Bruno Haible  <bruno@clisp.org>
19361
19362         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19363         * doc/glibc-functions/flistxattr.texi: Likewise.
19364         * doc/glibc-functions/fopencookie.texi: Likewise.
19365         * doc/glibc-functions/fremovexattr.texi: Likewise.
19366         * doc/glibc-functions/fsetxattr.texi: Likewise.
19367         * doc/glibc-functions/getxattr.texi: Likewise.
19368         * doc/glibc-functions/lgetxattr.texi: Likewise.
19369         * doc/glibc-functions/listxattr.texi: Likewise.
19370         * doc/glibc-functions/llistxattr.texi: Likewise.
19371         * doc/glibc-functions/lremovexattr.texi: Likewise.
19372         * doc/glibc-functions/lsetxattr.texi: Likewise.
19373         * doc/glibc-functions/removexattr.texi: Likewise.
19374         * doc/glibc-functions/setxattr.texi: Likewise.
19375         * doc/posix-functions/open_memstream.texi: Likewise.
19376
19377 2008-12-15  Eric Blake  <ebb9@byu.net>
19378
19379         Update doc for cygwin 1.7.
19380         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19381         functions.
19382         * doc/posix-functions/fchmodat.texi: Likewise.
19383         * doc/posix-functions/fchownat.texi: Likewise.
19384         * doc/posix-functions/fdopendir.texi: Likewise.
19385         * doc/posix-functions/fmemopen.texi: Likewise.
19386         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19387         * doc/posix-functions/fstatat.texi: Likewise.
19388         * doc/posix-functions/futimens.texi: Likewise.
19389         * doc/posix-functions/gai_strerror.texi: Likewise.
19390         * doc/posix-functions/getaddrinfo.texi: Likewise.
19391         * doc/posix-functions/getnameinfo.texi: Likewise.
19392         * doc/posix-functions/if_freenameindex.texi: Likewise.
19393         * doc/posix-functions/if_indextoname.texi: Likewise.
19394         * doc/posix-functions/if_nameindex.texi: Likewise.
19395         * doc/posix-functions/if_nametoindex.texi: Likewise.
19396         * doc/posix-functions/insque.texi: Likewise.
19397         * doc/posix-functions/linkat.texi: Likewise.
19398         * doc/posix-functions/llrint.texi: Likewise.
19399         * doc/posix-functions/llrintf.texi: Likewise.
19400         * doc/posix-functions/llrintl.texi: Likewise.
19401         * doc/posix-functions/lockf.texi: Likewise.
19402         * doc/posix-functions/lrintl.texi: Likewise.
19403         * doc/posix-functions/mkdirat.texi: Likewise.
19404         * doc/posix-functions/mkfifoat.texi: Likewise.
19405         * doc/posix-functions/mknodat.texi: Likewise.
19406         * doc/posix-functions/mq_close.texi: Likewise.
19407         * doc/posix-functions/mq_getattr.texi: Likewise.
19408         * doc/posix-functions/mq_notify.texi: Likewise.
19409         * doc/posix-functions/mq_open.texi: Likewise.
19410         * doc/posix-functions/mq_receive.texi: Likewise.
19411         * doc/posix-functions/mq_send.texi: Likewise.
19412         * doc/posix-functions/mq_setattr.texi: Likewise.
19413         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19414         * doc/posix-functions/mq_timedsend.texi: Likewise.
19415         * doc/posix-functions/mq_unlink.texi: Likewise.
19416         * doc/posix-functions/open_memstream.texi: Likewise.
19417         * doc/posix-functions/openat.texi: Likewise.
19418         * doc/posix-functions/posix_fadvise.texi: Likewise.
19419         * doc/posix-functions/posix_fallocate.texi: Likewise.
19420         * doc/posix-functions/posix_madvise.texi: Likewise.
19421         * doc/posix-functions/posix_memalign.texi: Likewise.
19422         * doc/posix-functions/posix_openpt.texi: Likewise.
19423         * doc/posix-functions/readlinkat.texi: Likewise.
19424         * doc/posix-functions/remque.texi: Likewise.
19425         * doc/posix-functions/renameat.texi: Likewise.
19426         * doc/posix-functions/rintl.texi: Likewise.
19427         * doc/posix-functions/sem_unlink.texi: Likewise.
19428         * doc/posix-functions/shm_open.texi: Likewise.
19429         * doc/posix-functions/shm_unlink.texi: Likewise.
19430         * doc/posix-functions/signgam.texi: Likewise.
19431         * doc/posix-functions/sigset.texi: Likewise.
19432         * doc/posix-functions/stpcpy.texi: Likewise.
19433         * doc/posix-functions/stpncpy.texi: Likewise.
19434         * doc/posix-functions/strerror.texi: Likewise.
19435         * doc/posix-functions/strtod.texi: Likewise.
19436         * doc/posix-functions/symlinkat.texi: Likewise.
19437         * doc/posix-functions/unlinkat.texi: Likewise.
19438         * doc/posix-functions/utimensat.texi: Likewise.
19439         * doc/glibc-functions/bindresvport.texi: Likewise.
19440         * doc/glibc-functions/dn_expand.texi: Likewise.
19441         * doc/glibc-functions/exp10.texi: Likewise.
19442         * doc/glibc-functions/exp10f.texi: Likewise.
19443         * doc/glibc-functions/fgetxattr.texi: Likewise.
19444         * doc/glibc-functions/flistxattr.texi: Likewise.
19445         * doc/glibc-functions/fopencookie.texi: Likewise.
19446         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19447         * doc/glibc-functions/fremovexattr.texi: Likewise.
19448         * doc/glibc-functions/fsetxattr.texi: Likewise.
19449         * doc/glibc-functions/getifaddrs.texi: Likewise.
19450         * doc/glibc-functions/getxattr.texi: Likewise.
19451         * doc/glibc-functions/lgetxattr.texi: Likewise.
19452         * doc/glibc-functions/listxattr.texi: Likewise.
19453         * doc/glibc-functions/llistxattr.texi: Likewise.
19454         * doc/glibc-functions/lremovexattr.texi: Likewise.
19455         * doc/glibc-functions/lsetxattr.texi: Likewise.
19456         * doc/glibc-functions/pow10.texi: Likewise.
19457         * doc/glibc-functions/pow10f.texi: Likewise.
19458         * doc/glibc-functions/rcmd_af.texi: Likewise.
19459         * doc/glibc-functions/removexattr.texi: Likewise.
19460         * doc/glibc-functions/res_init.texi: Likewise.
19461         * doc/glibc-functions/res_mkquery.texi: Likewise.
19462         * doc/glibc-functions/res_query.texi: Likewise.
19463         * doc/glibc-functions/res_querydomain.texi: Likewise.
19464         * doc/glibc-functions/res_send.texi: Likewise.
19465         * doc/glibc-functions/rresvport_af.texi: Likewise.
19466         * doc/glibc-functions/setxattr.texi: Likewise.
19467         * doc/glibc-functions/strcasestr.texi: Likewise.
19468
19469 2008-12-15  Bruno Haible  <bruno@clisp.org>
19470
19471         Fix compilation error on OSF/1 4.0.
19472         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19473         <sys/time.h>, simply delegate to the system header.
19474         Reported by Daniel Richard G. <oss@teragram.com>.
19475
19476 2008-12-15  Bruno Haible  <bruno@clisp.org>
19477
19478         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19479         * doc/posix-functions/fchmodat.texi: Likewise.
19480         * doc/posix-functions/fchownat.texi: Likewise.
19481         * doc/posix-functions/fdopendir.texi: Likewise.
19482         * doc/posix-functions/fstatat.texi: Likewise.
19483         * doc/posix-functions/mkdirat.texi: Likewise.
19484         * doc/posix-functions/unlinkat.texi: Likewise.
19485
19486 2008-12-14  Bruno Haible  <bruno@clisp.org>
19487
19488         Update doc for POSIX:2008.
19489         * doc/posix-functions/faccessat.texi: New file.
19490         * doc/posix-functions/fchmodat.texi: New file.
19491         * doc/posix-functions/fchownat.texi: New file.
19492         * doc/posix-functions/fdopendir.texi: New file.
19493         * doc/posix-functions/fstatat.texi: New file.
19494         * doc/posix-functions/futimens.texi: New file.
19495         * doc/posix-functions/linkat.texi: New file.
19496         * doc/posix-functions/mkdirat.texi: New file.
19497         * doc/posix-functions/mkfifoat.texi: New file.
19498         * doc/posix-functions/mknodat.texi: New file.
19499         * doc/posix-functions/open_wmemstream.texi: New file.
19500         * doc/posix-functions/openat.texi: New file.
19501         * doc/posix-functions/psiginfo.texi: New file.
19502         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19503         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19504         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19505         * doc/posix-functions/readlinkat.texi: New file.
19506         * doc/posix-functions/renameat.texi: New file.
19507         * doc/posix-functions/strerror_l.texi: New file.
19508         * doc/posix-functions/symlinkat.texi: New file.
19509         * doc/posix-functions/unlinkat.texi: New file.
19510         * doc/posix-functions/utimensat.texi: New file.
19511         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19512
19513 2008-12-14  Bruno Haible  <bruno@clisp.org>
19514
19515         Update doc for POSIX:2008.
19516         * doc/posix-functions/alphasort.texi: Renamed from
19517         doc/glibc-functions/alphasort.texi.
19518         * doc/posix-functions/dirfd.texi: Renamed from
19519         doc/glibc-functions/dirfd.texi.
19520         * doc/posix-functions/dprintf.texi: Renamed from
19521         doc/glibc-functions/dprintf.texi.
19522         * doc/posix-functions/duplocale.texi: Renamed from
19523         doc/glibc-functions/duplocale.texi.
19524         * doc/posix-functions/fexecve.texi: Renamed from
19525         doc/glibc-functions/fexecve.texi.
19526         * doc/posix-functions/fmemopen.texi: Renamed from
19527         doc/glibc-functions/fmemopen.texi.
19528         * doc/posix-functions/freelocale.texi: Renamed from
19529         doc/glibc-functions/freelocale.texi.
19530         * doc/posix-functions/getdate_err.texi: Renamed from
19531         doc/glibc-functions/getdate_err.texi.
19532         * doc/posix-functions/isalnum_l.texi: Renamed from
19533         doc/glibc-functions/isalnum_l.texi.
19534         * doc/posix-functions/isalpha_l.texi: Renamed from
19535         doc/glibc-functions/isalpha_l.texi.
19536         * doc/posix-functions/isblank_l.texi: Renamed from
19537         doc/glibc-functions/isblank_l.texi.
19538         * doc/posix-functions/iscntrl_l.texi: Renamed from
19539         doc/glibc-functions/iscntrl_l.texi.
19540         * doc/posix-functions/isdigit_l.texi: Renamed from
19541         doc/glibc-functions/isdigit_l.texi.
19542         * doc/posix-functions/isgraph_l.texi: Renamed from
19543         doc/glibc-functions/isgraph_l.texi.
19544         * doc/posix-functions/islower_l.texi: Renamed from
19545         doc/glibc-functions/islower_l.texi.
19546         * doc/posix-functions/isprint_l.texi: Renamed from
19547         doc/glibc-functions/isprint_l.texi.
19548         * doc/posix-functions/ispunct_l.texi: Renamed from
19549         doc/glibc-functions/ispunct_l.texi.
19550         * doc/posix-functions/isspace_l.texi: Renamed from
19551         doc/glibc-functions/isspace_l.texi.
19552         * doc/posix-functions/isupper_l.texi: Renamed from
19553         doc/glibc-functions/isupper_l.texi.
19554         * doc/posix-functions/iswalnum_l.texi: Renamed from
19555         doc/glibc-functions/iswalnum_l.texi.
19556         * doc/posix-functions/iswalpha_l.texi: Renamed from
19557         doc/glibc-functions/iswalpha_l.texi.
19558         * doc/posix-functions/iswblank_l.texi: Renamed from
19559         doc/glibc-functions/iswblank_l.texi.
19560         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19561         doc/glibc-functions/iswcntrl_l.texi.
19562         * doc/posix-functions/iswctype_l.texi: Renamed from
19563         doc/glibc-functions/iswctype_l.texi.
19564         * doc/posix-functions/iswdigit_l.texi: Renamed from
19565         doc/glibc-functions/iswdigit_l.texi.
19566         * doc/posix-functions/iswgraph_l.texi: Renamed from
19567         doc/glibc-functions/iswgraph_l.texi.
19568         * doc/posix-functions/iswlower_l.texi: Renamed from
19569         doc/glibc-functions/iswlower_l.texi.
19570         * doc/posix-functions/iswprint_l.texi: Renamed from
19571         doc/glibc-functions/iswprint_l.texi.
19572         * doc/posix-functions/iswpunct_l.texi: Renamed from
19573         doc/glibc-functions/iswpunct_l.texi.
19574         * doc/posix-functions/iswspace_l.texi: Renamed from
19575         doc/glibc-functions/iswspace_l.texi.
19576         * doc/posix-functions/iswupper_l.texi: Renamed from
19577         doc/glibc-functions/iswupper_l.texi.
19578         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19579         doc/glibc-functions/iswxdigit_l.texi.
19580         * doc/posix-functions/isxdigit_l.texi: Renamed from
19581         doc/glibc-functions/isxdigit_l.texi.
19582         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19583         doc/glibc-functions/mbsnrtowcs.texi.
19584         * doc/posix-functions/mkdtemp.texi: Renamed from
19585         doc/glibc-functions/mkdtemp.texi.
19586         * doc/posix-functions/newlocale.texi: Renamed from
19587         doc/glibc-functions/newlocale.texi.
19588         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19589         doc/glibc-functions/nl_langinfo_l.texi.
19590         * doc/posix-functions/open_memstream.texi: Renamed from
19591         doc/glibc-functions/open_memstream.texi.
19592         * doc/posix-functions/opterr.texi: Renamed from
19593         doc/glibc-functions/opterr.texi.
19594         * doc/posix-functions/optind.texi: Renamed from
19595         doc/glibc-functions/optind.texi.
19596         * doc/posix-functions/optopt.texi: Renamed from
19597         doc/glibc-functions/optopt.texi.
19598         * doc/posix-functions/psignal.texi: Renamed from
19599         doc/glibc-functions/psignal.texi.
19600         * doc/posix-functions/scandir.texi: Renamed from
19601         doc/glibc-functions/scandir.texi.
19602         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19603         doc/glibc-functions/sched_get_priority_min.texi.
19604         * doc/posix-functions/signgam.texi: Renamed from
19605         doc/glibc-functions/signgam.texi.
19606         * doc/posix-functions/stpcpy.texi: Renamed from
19607         doc/glibc-functions/stpcpy.texi.
19608         * doc/posix-functions/stpncpy.texi: Renamed from
19609         doc/glibc-functions/stpncpy.texi.
19610         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19611         doc/glibc-functions/strcasecmp_l.texi.
19612         * doc/posix-functions/strcoll_l.texi: Renamed from
19613         doc/glibc-functions/strcoll_l.texi.
19614         * doc/posix-functions/strfmon_l.texi: Renamed from
19615         doc/glibc-functions/strfmon_l.texi.
19616         * doc/posix-functions/strftime_l.texi: Renamed from
19617         doc/glibc-functions/strftime_l.texi.
19618         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19619         doc/glibc-functions/strncasecmp_l.texi.
19620         * doc/posix-functions/strndup.texi: Renamed from
19621         doc/glibc-functions/strndup.texi.
19622         * doc/posix-functions/strnlen.texi: Renamed from
19623         doc/glibc-functions/strnlen.texi.
19624         * doc/posix-functions/strsignal.texi: Renamed from
19625         doc/glibc-functions/strsignal.texi.
19626         * doc/posix-functions/strxfrm_l.texi: Renamed from
19627         doc/glibc-functions/strxfrm_l.texi.
19628         * doc/posix-functions/timer_gettime.texi: Renamed from
19629         doc/glibc-functions/timer_gettime.texi.
19630         * doc/posix-functions/tolower_l.texi: Renamed from
19631         doc/glibc-functions/tolower_l.texi.
19632         * doc/posix-functions/toupper_l.texi: Renamed from
19633         doc/glibc-functions/toupper_l.texi.
19634         * doc/posix-functions/towctrans_l.texi: Renamed from
19635         doc/glibc-functions/towctrans_l.texi.
19636         * doc/posix-functions/towlower_l.texi: Renamed from
19637         doc/glibc-functions/towlower_l.texi.
19638         * doc/posix-functions/towupper_l.texi: Renamed from
19639         doc/glibc-functions/towupper_l.texi.
19640         * doc/posix-functions/uselocale.texi: Renamed from
19641         doc/glibc-functions/uselocale.texi.
19642         * doc/posix-functions/vdprintf.texi: Renamed from
19643         doc/glibc-functions/vdprintf.texi.
19644         * doc/posix-functions/wcpcpy.texi:
19645         Renamed from doc/glibc-functions/wcpcpy.texi.
19646         * doc/posix-functions/wcpncpy.texi: Renamed from
19647         doc/glibc-functions/wcpncpy.texi.
19648         * doc/posix-functions/wcscasecmp.texi: Renamed from
19649         doc/glibc-functions/wcscasecmp.texi.
19650         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19651         doc/glibc-functions/wcscasecmp_l.texi.
19652         * doc/posix-functions/wcscoll_l.texi: Renamed from
19653         doc/glibc-functions/wcscoll_l.texi.
19654         * doc/posix-functions/wcsdup.texi: Renamed from
19655         doc/glibc-functions/wcsdup.texi.
19656         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19657         doc/glibc-functions/wcsncasecmp.texi.
19658         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19659         doc/glibc-functions/wcsncasecmp_l.texi.
19660         * doc/posix-functions/wcsnlen.texi: Renamed from
19661         doc/glibc-functions/wcsnlen.texi.
19662         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19663         doc/glibc-functions/wcsnrtombs.texi.
19664         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19665         doc/glibc-functions/wcsxfrm_l.texi.
19666         * doc/posix-functions/wctrans_l.texi: Renamed from
19667         doc/glibc-functions/wctrans_l.texi.
19668         * doc/posix-functions/wctype_l.texi: Renamed from
19669         doc/glibc-functions/wctype_l.texi.
19670         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19671         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19672         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19673         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19674         these subsections.
19675         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19676         Remove sections.
19677
19678 2008-12-14  Bruno Haible  <bruno@clisp.org>
19679
19680         Update doc for POSIX:2008.
19681         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19682
19683 2008-12-14  Bruno Haible  <bruno@clisp.org>
19684
19685         Update doc for POSIX:2008.
19686         * doc/pastposix-functions/bcmp.texi: Renamed from
19687         doc/posix-functions/bcmp.texi.
19688         * doc/pastposix-functions/bcopy.texi: Renamed from
19689         doc/posix-functions/bcopy.texi.
19690         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19691         doc/posix-functions/bsd_signal.texi.
19692         * doc/pastposix-functions/bzero.texi: Renamed from
19693         doc/posix-functions/bzero.texi.
19694         * doc/pastposix-functions/ecvt.texi: Renamed from
19695         doc/posix-functions/ecvt.texi.
19696         * doc/pastposix-functions/fcvt.texi: Renamed from
19697         doc/posix-functions/fcvt.texi.
19698         * doc/pastposix-functions/ftime.texi: Renamed from
19699         doc/posix-functions/ftime.texi.
19700         * doc/pastposix-functions/gcvt.texi: Renamed from
19701         doc/posix-functions/gcvt.texi.
19702         * doc/pastposix-functions/getcontext.texi: Renamed from
19703         doc/posix-functions/getcontext.texi.
19704         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19705         doc/posix-functions/gethostbyaddr.texi.
19706         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19707         doc/posix-functions/gethostbyname.texi.
19708         * doc/pastposix-functions/getwd.texi: Renamed from
19709         doc/posix-functions/getwd.texi.
19710         * doc/pastposix-functions/h_errno.texi: Renamed from
19711         doc/posix-functions/h_errno.texi.
19712         * doc/pastposix-functions/index.texi: Renamed from
19713         doc/posix-functions/index.texi.
19714         * doc/pastposix-functions/makecontext.texi: Renamed from
19715         doc/posix-functions/makecontext.texi.
19716         * doc/pastposix-functions/mktemp.texi: Renamed from
19717         doc/posix-functions/mktemp.texi.
19718         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19719         doc/posix-functions/pthread_attr_getstackaddr.texi.
19720         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19721         doc/posix-functions/pthread_attr_setstackaddr.texi.
19722         * doc/pastposix-functions/rindex.texi: Renamed from
19723         doc/posix-functions/rindex.texi.
19724         * doc/pastposix-functions/scalb.texi: Renamed from
19725         doc/posix-functions/scalb.texi.
19726         * doc/pastposix-functions/setcontext.texi: Renamed from
19727         doc/posix-functions/setcontext.texi.
19728         * doc/pastposix-functions/swapcontext.texi: Renamed from
19729         doc/posix-functions/swapcontext.texi.
19730         * doc/pastposix-functions/ualarm.texi: Renamed from
19731         doc/posix-functions/ualarm.texi.
19732         * doc/pastposix-functions/usleep.texi: Renamed from
19733         doc/posix-functions/usleep.texi.
19734         * doc/pastposix-functions/vfork.texi: Renamed from
19735         doc/posix-functions/vfork.texi.
19736         * doc/pastposix-functions/wcswcs.texi: Renamed from
19737         doc/posix-functions/wcswcs.texi.
19738         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19739         (Function Substitutes): Update.
19740
19741 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19742
19743         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19744         m4/strerror.m4.
19745
19746 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19747             Bruno Haible  <bruno@clisp.org>
19748
19749         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19750
19751 2008-12-13  Bruno Haible  <bruno@clisp.org>
19752
19753         * modules/strtoull (Depends-on): Remove unistd.
19754
19755 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19756
19757         * modules/strtoull (Depends-on): Add stdlib.
19758
19759 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19760
19761         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19762
19763 2008-12-10  Jim Meyering  <meyering@redhat.com>
19764
19765         gl_ASSERT: don't say assertions are disabled when they're not
19766         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19767         "checking whether to enable assertions... no", when they are in
19768         fact enabled.  This is solely a bug in the output of configure.
19769         In spite of saying "no", NDEBUG was not defined in that case.
19770         Also, as noted by Eric Blake, leave assertions enabled upon
19771         --enable-assert=INVALID.
19772
19773 2008-12-10  Bruno Haible  <bruno@clisp.org>
19774
19775         Change MODULES.html to refer to POSIX:2008 where possible.
19776         * MODULES.html.sh (POSIX2008_URL): New variable.
19777         (posix_headers): Remove sys/timeb, ucontext.
19778         (posix2001_headers): New variable.
19779         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19780         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19781         index, makecontext, mktemp, pthread_attr_getstackaddr,
19782         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19783         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19784         (posix2001_functions): New variable.
19785         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19786         otherwise.
19787
19788 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19789
19790         add missing include to parse-duration.c
19791         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19792         * modules/parse-duration (Depends-on): Add xalloc.
19793
19794         fix sed script reading maint.mk
19795         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19796         (syntax-check-rules): Use it.
19797
19798 2008-12-09  Bruno Haible  <bruno@clisp.org>
19799
19800         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19801         MacOS X 10.4/PowerPC.
19802         Reported by Simon Josefsson.
19803
19804 2008-12-08  Jim Meyering  <meyering@redhat.com>
19805
19806         work around mingw's lack of some S_IF definitions
19807         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19808         Reported by Simon Josefsson.
19809
19810 2008-12-08  Bruno Haible  <bruno@clisp.org>
19811
19812         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19813         applied to variables. Needed on MacOS X 10.4/PowerPC.
19814         Reported by Simon Josefsson.
19815
19816 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19817         and Eric Blake  <ebb9@byu.net>
19818
19819         assert: honor --enable-assert
19820         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19821         order to honor --enable-assert, rather than treating it as a
19822         synonym for --disable-assert.
19823
19824 2008-12-08  Jim Meyering  <meyering@redhat.com>
19825
19826         * lib/posixtm.c: Remove now-useless declaration of mktime.
19827
19828         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19829
19830 2008-12-07  Bruno Haible  <bruno@clisp.org>
19831
19832         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19833         test_once): Mark functions as static.
19834         * tests/test-tls.c (test_tls): Likewise.
19835
19836 2008-12-07  Bruno Haible  <bruno@clisp.org>
19837
19838         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19839         iconv_register_autodetect.
19840
19841 2008-12-07  Jim Meyering  <meyering@redhat.com>
19842
19843         posixtm.c: avoid a warning
19844         * lib/posixtm.c (posixtime): Don't initialize tm0.
19845         It's no longer needed to placate gcc4's -Wuninitialized,
19846         and the attempt to placate would elicit a new warning.
19847
19848         unicodeio.c: mark unused parameters
19849         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19850         (fallback_failure_callback): Likewise.
19851
19852 2008-12-07  Bruno Haible  <bruno@clisp.org>
19853
19854         * gnulib-tool (func_create_testdir): When building the tests
19855         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19856         Reported by Simon Josefsson.
19857
19858 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19859
19860         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19861
19862 2008-12-06  Bruno Haible  <bruno@clisp.org>
19863
19864         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19865         Suggested by Eric Blake.
19866
19867 2008-12-06  Bruno Haible  <bruno@clisp.org>
19868
19869         Fix a c-stack test failure on MacOS X.
19870         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19871         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19872         handler for SIGBUS as well.
19873         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19874         install a signal handler for SIGBUS as well.
19875         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19876
19877 2008-12-06  Bruno Haible  <bruno@clisp.org>
19878
19879         Advocacy documentation.
19880         * doc/gnulib-intro.texi (Benefits): New section.
19881         * doc/gnulib.texi: Update.
19882
19883 2008-12-06  Bruno Haible  <bruno@clisp.org>
19884
19885         Document the 'manywarnings' module.
19886         * doc/manywarnings.texi: New file.
19887         * doc/gnulib.texi: Include it.
19888
19889 2008-12-05  Eric Blake  <ebb9@byu.net>
19890
19891         tests: silence some gcc warnings
19892         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19893         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19894         type mismatches.
19895
19896 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19897             Bruno Haible  <bruno@clisp.org>
19898
19899         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19900
19901 2008-11-29  Jim Meyering  <meyering@redhat.com>
19902
19903         unicodeio.c: mark unused parameters
19904         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19905         (fallback_failure_callback): Likewise.
19906
19907         fts: fix a thinko
19908         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19909         (set_stat_type): Return S_IF*-valued "type" directly.
19910         Prompted by James Youngman's spotting a related bug.
19911         Confirmed by further testing through find.
19912
19913         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19914         * lib/fts.c (D_TYPE): Define.
19915         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19916         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19917         (s_ifmt_shift_bits): New function.
19918         (set_stat_type): New function.
19919         (fts_build): When not calling fts_stat, call set_stat_type
19920         to propagate dirent.d_type info to fts_read caller.
19921         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19922         fts_statp->st_mode type information may be valid.
19923
19924 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19925
19926         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19927         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19928         <sds@gnu.org>.
19929
19930 2008-11-20  Bruno Haible  <bruno@clisp.org>
19931
19932         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19933         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19934         INCLUDE_NEXT.
19935         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19936         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19937         * modules/math (Makefile.am): Substitute
19938         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19939         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19940
19941 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19942             Bruno Haible  <bruno@clisp.org>
19943
19944         * lib/stdint.in.h: Define all type macros so that their expansion is
19945         a single typedef'ed token. Fixes a compilation failure in Boost which
19946         does "using ::int8_t;".
19947
19948 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19949
19950         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19951         gl_MANYWARN_ALL_GCC.
19952         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19953         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19954         * modules/manywarnings: New file.
19955         * MODULES.html.sh: Mention manywarnings module.
19956
19957 2008-11-18  Bruno Haible  <bruno@clisp.org>
19958
19959         * doc/gnulib-tool.texi (Unit tests): New section.
19960
19961 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19962
19963         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19964         paths like 'lib/po/foo.po'.
19965
19966 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19967
19968         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19969         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19970
19971 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19972
19973         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19974         parameter works.
19975
19976 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19977
19978         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19979
19980 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19981
19982         * modules/parse-duration-tests: New file.
19983         * tests/test-parse-duration.sh: New file.
19984         * tests/test-parse-duration.c: New file.
19985
19986         New module 'parse-duration'.
19987         * lib/parse-duration.h: New file.
19988         * lib/parse-duration.c: New file.
19989         * modules/parse-duration: New file.
19990
19991 2008-11-17  Bruno Haible  <bruno@clisp.org>
19992
19993         * tests/test-select-out.sh: Comment out the first pipe test.
19994         Reported by Simon Josefsson.
19995
19996 2008-11-17  Bruno Haible  <bruno@clisp.org>
19997
19998         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19999         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
20000         gl_HOSTENT.
20001
20002 2008-11-17  Bruno Haible  <bruno@clisp.org>
20003
20004         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
20005         -lnetwork and -lnet. Needed for Haiku and BeOS.
20006
20007 2008-11-16  Bruno Haible  <bruno@clisp.org>
20008
20009         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
20010
20011 2008-11-16  Bruno Haible  <bruno@clisp.org>
20012
20013         Avoid test failure on Haiku.
20014         * tests/test-fsync.c: Include <errno.h>.
20015         (main): Don't require that fsync (0) fails.
20016
20017 2008-11-15  Bruno Haible  <bruno@clisp.org>
20018
20019         New module 'hostent'.
20020         * modules/hostent: New file.
20021         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
20022
20023 2008-11-15  Bruno Haible  <bruno@clisp.org>
20024
20025         New module 'servent'.
20026         * modules/servent: New file.
20027         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
20028
20029 2008-11-15  Bruno Haible  <bruno@clisp.org>
20030
20031         Avoid generating same test program with two different rules.
20032         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
20033         test-frexp to test-frexp-nolibm.
20034         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
20035         test-frexpl to test-frexpl-nolibm.
20036
20037 2008-11-15  Bruno Haible  <bruno@clisp.org>
20038
20039         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
20040         $(FREXPL_LIBM).
20041
20042 2008-11-15  Bruno Haible  <bruno@clisp.org>
20043
20044         * lib/netdb.in.h: Activate the definitions also when the system's
20045         <netdb.h> has 'struct addrinfo'.
20046         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
20047         EAI_OVERFLOW or AI_NUMERICSERV.
20048         * doc/posix-headers/netdb.texi: Document the problem.
20049
20050 2008-11-15  Bruno Haible  <bruno@clisp.org>
20051
20052         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
20053
20054         Make the 'sched' module work on platforms where <sched.h> exists but
20055         is incomplete (such as Haiku).
20056         * lib/sched.in.h; Include the system's <sched.h> if it exists.
20057         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
20058         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
20059         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
20060         HAVE_STRUCT_SCHED_PARAM.
20061         * modules/sched (Depends-on): Add include_next.
20062         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
20063         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
20064         * doc/posix-headers/sched.texi: Document the issue.
20065
20066 2008-11-13  Jim Meyering  <meyering@redhat.com>
20067
20068         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
20069         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
20070         test would fail due to the difference in the Report bugs to ...
20071         line.  The expected address is empty, "<>", while the actual
20072         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
20073
20074 2008-11-12  Bruno Haible  <bruno@clisp.org>
20075
20076         lstat: don't compile lstat.c on systems lacking lstat
20077         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
20078         which don't have lstat; this is handled by lib/sys_stat.in.h already.
20079         Reported by Daniel P. Berrange via Jim Meyering.
20080
20081 2008-11-12  Jim Meyering  <meyering@redhat.com>
20082
20083         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
20084
20085 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20086
20087         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
20088         instead.
20089
20090 2008-11-12  Bruno Haible  <bruno@clisp.org>
20091
20092         * lib/unicodeio.c: Include unistr.h.
20093         (utf8_wctomb): Remove function.
20094         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
20095
20096 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20097
20098         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
20099         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
20100         <bruno@clisp.org>.
20101         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
20102
20103 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20104
20105         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
20106         * doc/gnulib.texi: Add section for warnings.
20107
20108 2008-11-11  Bruno Haible  <bruno@clisp.org>
20109
20110         * lib/sockets.h: Add a comment.
20111
20112 2008-11-11  Karl Berry  <karl@gnu.org>
20113
20114         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
20115
20116 2008-11-11  Eric Blake  <ebb9@byu.net>
20117
20118         fdl.texi: avoid git symlinks
20119         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
20120
20121 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20122
20123         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
20124
20125 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20126
20127         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
20128         (gl_WARN_ADD): Substitute $2 if literal.
20129
20130 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20131
20132         * m4/warning.m4: Remove.
20133
20134 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20135
20136         * m4/warnings.m4: Almost complete rewrite. :-)
20137
20138 2008-11-10  Simon Josefsson  <simon@josefsson.org>
20139
20140         * modules/warnings: New module.
20141         * m4/warnings.m4: New file.
20142         * MODULES.html.sh: Mention warnings module.
20143         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
20144         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20145
20146 2008-11-10  Eric Blake  <ebb9@byu.net>
20147
20148         fdl.texi: make a symlink to the latest version
20149         * doc/standards.texi: Revert today's earlier change.
20150         * doc/fdl-1.2.texi: Rename from old fdl.texi...
20151         * doc/fdl.texi: ...and replace this with a symlink to the newer
20152         fdl-1.3.texi.
20153
20154 2008-11-10  Bruno Haible  <bruno@clisp.org>
20155
20156         * tests/test-select-fd.c (main): Accept the result file name as fourth
20157         argument.
20158         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
20159         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
20160
20161 2008-11-10  Bruno Haible  <bruno@clisp.org>
20162
20163         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
20164         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
20165         as autoconf-substituted macros.
20166         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
20167         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
20168         gl_NETDB_H_DEFAULTS. Set these variables.
20169         * modules/netdb (Makefile.am): Substitute these variables.
20170
20171 2008-11-10  Eric Blake  <ebb9@byu.net>
20172
20173         standards.texi: include correct file for FDL 1.3
20174         * doc/standards.texi (GNU Free Documentation License): Change
20175         include file to pull in FDL 1.3, not 1.2.
20176
20177         fdl.texi: revert accidental change to license
20178         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20179
20180 2008-11-10  Bruno Haible  <bruno@clisp.org>
20181
20182         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20183         cross-compiling guesses also when the native compile gives no result.
20184
20185 2008-11-10  Bruno Haible  <bruno@clisp.org>
20186
20187         * lib/spawni.c (__spawni): Force variable into the stack.
20188
20189 2008-11-10  Bruno Haible  <bruno@clisp.org>
20190
20191         Add support for Haiku.
20192         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20193         glibc and BeOS, but also on Haiku.
20194         * lib/fpurge.c (fpurge): Likewise.
20195         * lib/freadable.c (freadable): Likewise.
20196         * lib/freadahead.c (freadahead): Likewise.
20197         * lib/freading.c (freading): Likewise.
20198         * lib/freadptr.c (freadptr): Likewise.
20199         * lib/freadseek.c (freadptrinc): Likewise.
20200         * lib/fseeko.c (rpl_fseeko): Likewise.
20201         * lib/fseterr.c (fseterr): Likewise.
20202         * lib/fwritable.c (fwritable): Likewise.
20203         * lib/fwriting.c (fwriting): Likewise.
20204         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20205
20206 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20207
20208         * lib/config.charset: Treat Haiku like BeOS.
20209
20210 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20211
20212         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20213         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20214
20215 2008-11-08  Bruno Haible  <bruno@clisp.org>
20216
20217         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20218         AC_CACHE_CHECK.
20219
20220 2008-11-08  Bruno Haible  <bruno@clisp.org>
20221
20222         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20223
20224 2008-11-08  Bruno Haible  <bruno@clisp.org>
20225
20226         * tests/test-select-fd.c: New file.
20227         * tests/test-select-in.sh: New file.
20228         * tests/test-select-out.sh: New file.
20229         * tests/test-select-stdin.c: New file.
20230         * modules/select-tests (Files): Add the new files.
20231         (Depends-on): Add gettimeofday.
20232         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20233         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20234         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20235
20236 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20237             Bruno Haible  <bruno@clisp.org>
20238
20239         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20240
20241 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20242
20243         * build-aux/pmccabe2html: Added support for C++ source files.
20244
20245 2008-11-05  Ben Pfaff  <blp@gnu.org>
20246
20247         Fix lib/close.c build on Windows.
20248         * modules/close (Files): Add lib/w32sock.h.
20249
20250 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20251
20252         Accept Bison's NEWS format.
20253         * build-aux/announce-gen (print_news_deltas): Tweak
20254         $re_prefix.
20255
20256 2008-11-04  Bruno Haible  <bruno@clisp.org>
20257
20258         * modules/random_r (Maintainer): Add glibc.
20259
20260 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20261
20262         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20263         by karl@freefriends.org (Karl Berry).
20264         * doc/alloca.texi: Likewise.
20265         * doc/c-ctype.texi: Likewise.
20266         * doc/c-strcase.texi: Likewise.
20267         * doc/c-strcaseeq.texi: Likewise.
20268         * doc/c-strcasestr.texi: Likewise.
20269         * doc/c-strstr.texi: Likewise.
20270         * doc/c-strtod.texi: Likewise.
20271         * doc/c-strtold.texi: Likewise.
20272         * doc/ctime.texi: Likewise.
20273         * doc/error.texi: Likewise.
20274         * doc/fdl.texi: Likewise.
20275         * doc/gcd.texi: Likewise.
20276         * doc/getdate.texi: Likewise.
20277         * doc/gnulib-intro.texi: Likewise.
20278         * doc/gnulib-tool.texi: Likewise.
20279         * doc/gnulib.texi: Likewise.
20280         * doc/inet_ntoa.texi: Likewise.
20281         * doc/maintain.texi: Likewise.
20282         * doc/make-stds.texi: Likewise.
20283         * doc/quote.texi: Likewise.
20284         * doc/regexprops-generic.texi: Likewise.
20285         * doc/standards.texi: Likewise.
20286         * doc/verify.texi: Likewise.
20287         * doc/visibility.texi: Likewise.
20288         * doc/gnulib.texi (GNU Free Documentation License): Include
20289         fdl-1.3.texi instead of fdl.texi.
20290
20291 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20292
20293         * doc/fdl-1.3.texi: New file, from
20294         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20295         * modules/fdl-1.3: Add.
20296         * MODULES.html.sh: Add fdl-1.3.
20297
20298 2008-11-03  Bruno Haible  <bruno@clisp.org>
20299
20300         Make determination of absolute name of header file work with AIX xlc.
20301         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20302         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20303         preprocessing.
20304         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20305         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20306
20307 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20308
20309         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20310         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20311         <ludo@gnu.org>.
20312
20313 2008-11-02  Bruno Haible  <bruno@clisp.org>
20314
20315         Mark 'strpbrk' obsolete.
20316         * modules/strpbrk (Status, Notice): New sections.
20317         * modules/strtok_r (Depends-on): Add strpbrk.
20318
20319 2008-11-02  Bruno Haible  <bruno@clisp.org>
20320
20321         Mark 'strdup' obsolete.
20322         * modules/strdup (Status, Notice): New sections.
20323         * modules/findprog (Depends-on): Add strdup.
20324         * modules/getaddrinfo (Depends-on): Likewise.
20325         * modules/localename (Depends-on): Likewise.
20326         * modules/relocatable-lib (Depends-on): Likewise.
20327         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20328         * modules/relocatable-prog (Depends-on): Likewise.
20329         * modules/trim (Depends-on): Likewise.
20330         * modules/unictype/gen-ctype (Depends-on): Likewise.
20331         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20332
20333 2008-11-02  Bruno Haible  <bruno@clisp.org>
20334
20335         Mark 'strcspn' obsolete.
20336         * modules/strcspn (Status, Notice): New sections.
20337
20338 2008-11-02  Bruno Haible  <bruno@clisp.org>
20339
20340         Mark 'rmdir' obsolete.
20341         * modules/rmdir (Status, Notice): New sections.
20342         * modules/clean-temp (Depends-on): Add rmdir.
20343         * modules/openat (Depends-on): Likewise.
20344
20345 2008-11-02  Bruno Haible  <bruno@clisp.org>
20346
20347         Mark 'raise' obsolete.
20348         * modules/raise (Status, Notice): New sections.
20349         (Include): Specify <signal.h>.
20350         * modules/stdio (Depends-on): Add raise.
20351         * modules/write (Depends-on): Likewise.
20352
20353 2008-11-02  Bruno Haible  <bruno@clisp.org>
20354
20355         Mark 'memset' obsolete.
20356         * modules/memset (Status, Notice): New sections.
20357
20358 2008-11-02  Bruno Haible  <bruno@clisp.org>
20359
20360         Mark 'memmove' obsolete.
20361         * modules/memmove (Status, Notice): New sections.
20362         * modules/argp (Depends-on): Add memmove.
20363         * modules/argz (Depends-on): Likewise.
20364         * modules/canonicalize (Depends-on): Likewise.
20365         * modules/canonicalize-lgpl (Depends-on): Likewise.
20366         * modules/fts (Depends-on): Likewise.
20367         * modules/getcwd (Depends-on): Likewise.
20368         * modules/human (Depends-on): Likewise.
20369         * modules/regex (Depends-on): Likewise.
20370         * modules/striconveh (Depends-on): Likewise.
20371         * modules/trim (Depends-on): Likewise.
20372         * modules/unistr/u8-move (Depends-on): Likewise.
20373         * modules/unistr/u16-move (Depends-on): Likewise.
20374         * modules/unistr/u32-move (Depends-on): Likewise.
20375
20376 2008-11-02  Bruno Haible  <bruno@clisp.org>
20377
20378         Mark 'memcpy' obsolete.
20379         * modules/memcpy (Status, Notice): New sections.
20380
20381 2008-11-02  Bruno Haible  <bruno@clisp.org>
20382
20383         Mark 'memcmp' obsolete.
20384         * modules/memcmp (Status, Notice): New sections.
20385         * modules/argmatch (Depends-on): Add memchr.
20386         * modules/backupfile (Depends-on): Likewise.
20387         * modules/c-strcasestr (Depends-on): Likewise.
20388         * modules/crypto/des (Depends-on): Likewise.
20389         * modules/csharpcomp (Depends-on): Likewise.
20390         * modules/fnmatch (Depends-on): Likewise.
20391         * modules/git-merge-changelog (Depends-on): Likewise.
20392         * modules/isnand (Depends-on): Likewise.
20393         * modules/isnand-nolibm (Depends-on): Likewise.
20394         * modules/isnanf (Depends-on): Likewise.
20395         * modules/isnanf-nolibm (Depends-on): Likewise.
20396         * modules/isnanl (Depends-on): Likewise.
20397         * modules/isnanl-nolibm (Depends-on): Likewise.
20398         * modules/mbchar (Depends-on): Likewise.
20399         * modules/memcoll (Depends-on): Likewise.
20400         * modules/quotearg (Depends-on): Likewise.
20401         * modules/regex (Depends-on): Likewise.
20402         * modules/relocatable-prog (Depends-on): Likewise.
20403         * modules/same (Depends-on): Likewise.
20404         * modules/signbit (Depends-on): Likewise.
20405         * modules/strcasestr-simple (Depends-on): Likewise.
20406         * modules/unictype/gen-ctype (Depends-on): Likewise.
20407         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20408         * modules/uniname/uniname (Depends-on): Likewise.
20409         * modules/unistr/u8-cmp (Depends-on): Likewise.
20410
20411 2008-11-02  Bruno Haible  <bruno@clisp.org>
20412
20413         Mark 'memchr' obsolete.
20414         * modules/memchr (Status, Notice): New sections.
20415         * modules/argp (Depends-on): Add memchr.
20416         * modules/base64 (Depends-on): Likewise.
20417         * modules/c-strcasestr (Depends-on): Likewise.
20418         * modules/chdir-long (Depends-on): Likewise.
20419         * modules/fnmatch (Depends-on): Likewise.
20420         * modules/getsubopt (Depends-on): Likewise.
20421         * modules/git-merge-changelog (Depends-on): Likewise.
20422         * modules/glob (Depends-on): Likewise.
20423         * modules/strcasestr-simple (Depends-on): Likewise.
20424         * modules/strnlen (Depends-on): Likewise.
20425
20426 2008-11-02  Bruno Haible  <bruno@clisp.org>
20427
20428         Mark 'atexit' obsolete.
20429         * modules/atexit (Status, Notice): New sections.
20430         * modules/chdir-long (Depends-on): Add atexit.
20431         * modules/wait-process (Depends-on): Likewise.
20432
20433 2008-11-02  Bruno Haible  <bruno@clisp.org>
20434
20435         * gnulib-tool: New option --with-obsolete.
20436         (func_usage): Document it.
20437         (func_modules_transitive_closure): Drop obsolete dependencies if
20438         incobsolete is not true.
20439         (func_import): Read and save the incobsolete variable to the cache.
20440
20441 2008-11-02  Bruno Haible  <bruno@clisp.org>
20442
20443         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20444         * gnulib-tool: New option --extract-status.
20445         (func_usage): Document it.
20446         (sed_extract_prog): Recognize it.
20447         (func_get_status): New function.
20448
20449 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20450
20451         * modules/sockets (License): Change from LGPL to LGPLv2+.
20452
20453 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20454
20455         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20456
20457 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20458
20459         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20460         Mention times and sys_times.
20461         * modules/sys_times, modules/sys_times-tests: New modules.
20462         * modules/times, modules/times-tests: Likewise
20463         * m4/sys_times_h.m4: New file.
20464         * lib/sys_times.in.h: Likewise
20465         * lib/times.c: Likewise.
20466         * tests/test-sys_times.c: Likewise.
20467         * tests/test-times.c: Likewise.
20468         * doc/posix-headers/sys_times.texi: Update.
20469         * doc/posix-functions/times.texi: Update.
20470
20471 2008-10-28  Jim Meyering  <meyering@redhat.com>
20472
20473         * modules/tempname (Depends-on): Add lstat.
20474
20475         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20476
20477 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20478
20479         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20480         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20481         using idiom used elsewhere in gnulib.
20482
20483 2008-10-27  Jim Meyering  <meyering@redhat.com>
20484
20485         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20486
20487 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20488
20489         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20490         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20491         programs.
20492         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20493
20494 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20495
20496         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20497
20498 2008-10-27  Bruno Haible  <bruno@clisp.org>
20499
20500         * tests/test-lstat.c: Include <stdio.h>.
20501
20502 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20503
20504         * modules/lstat-tests: New module.
20505         * tests/test-lstat.c: New file.
20506
20507 2008-10-26  Jim Meyering  <meyering@redhat.com>
20508
20509         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20510
20511 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20512             Bruno Haible  <bruno@clisp.org>
20513
20514         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20515         * modules/configmake (Include): Add a note that the include must come
20516         after all system headers.
20517         * lib/javaversion.c: Include configmake.h after all other includes.
20518
20519 2008-10-26  Bruno Haible  <bruno@clisp.org>
20520
20521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20522         HAVE_STRUCT_RANDOM_DATA to 1.
20523         (gl_STDLIB_H): Simplify.
20524
20525 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20526
20527         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20528         substitute HAVE_STRUCT_RANDOM_DATA.
20529         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20530         random_data.
20531         * modules/stdlib (Makefile.am): Substitute
20532         HAVE_STRUCT_RANDOM_DATA.
20533
20534 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20535
20536         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20537         * doc/gnulib-intro.texi (Copyright): Likewise.
20538
20539 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20540
20541         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20542         findings.
20543
20544 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20545             Bruno Haible  <bruno@clisp.org>
20546
20547         * lib/unistd.in.h: Include <winsock2.h>.
20548         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20549         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20550         Provide dummy declarations.
20551         (gethostname): Override.
20552         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20553         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20554         gl_PREREQ_SYS_H_WINSOCK2.
20555         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20556         * doc/posix-functions/gethostname.texi: More details.
20557
20558 2008-10-25  Bruno Haible  <bruno@clisp.org>
20559
20560         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20561         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20562         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20563
20564         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20565         here ...
20566         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20567         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20568         gl_UNISTD_H_DEFAULTS.
20569
20570 2008-10-25  Eric Blake  <ebb9@byu.net>
20571
20572         signbit: avoid spurious compiler failure
20573         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20574         declarations inside function.
20575
20576 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20577             Bruno Haible  <bruno@clisp.org>
20578
20579         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20580         * modules/random_r (Depends-on): Add stdint.
20581
20582 2008-10-24  Bruno Haible  <bruno@clisp.org>
20583
20584         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20585         Eggert.
20586         * modules/strerror (License): Likewise.
20587
20588 2008-10-24  Jim Meyering  <meyering@redhat.com>
20589
20590         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20591         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20592
20593 2008-10-24  Eric Blake  <ebb9@byu.net>
20594
20595         getgroups: fix compilation when getgroups is available
20596         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20597         but with <config.h> override of getgroups disabled.
20598
20599 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20600
20601         * doc/gnulib.texi (Header files): Add note about C++ problems.
20602         Explained by Bruno Haible <bruno@clisp.org>.
20603
20604 2008-10-23  Bruno Haible  <bruno@clisp.org>
20605
20606         Define a dummy SA_NODEFER macro on Interix.
20607         * lib/signal.in.h (SA_NODEFER): Define fallback.
20608         Reported by Aleksey Cheusov <cheusov@tut.by> via
20609         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20610
20611 2008-10-23  Bruno Haible  <bruno@clisp.org>
20612
20613         * modules/freadahead (License): Change to LGPLv2+.
20614         Suggested by Simon Josefsson.
20615
20616 2008-10-23  Jim Meyering  <meyering@redhat.com>
20617
20618         random_r: new module
20619         * modules/random_r: New file.
20620         * m4/random_r.m4: New file.
20621         * lib/random_r.c: New file, from glibc.
20622         * modules/random_r-tests: New file.
20623         * tests/test-random_r.c: New file.
20624         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20625          Declare.
20626         (RAND_MAX): Define.
20627         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20628         * modules/stdlib: Substitute them, too.
20629         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20630         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20631         * doc/glibc-functions/random_r.texi: Likewise.
20632         * doc/glibc-functions/setstate_r.texi: Likewise.
20633         * doc/glibc-functions/srandom_r.texi: Likewise.
20634         * config/srclist.txt: Mention it.
20635
20636 2008-10-23  David Lutterkort  <lutter@redhat.com>
20637
20638         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20639         link requirement
20640
20641 2008-10-23  Jim Meyering  <meyering@redhat.com>
20642
20643         selinux-h: mark parameters of stub functions as intentionally unused
20644         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20645         * lib/se-context.in.h: Likewise.
20646
20647 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20648
20649         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20650
20651 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20652
20653         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20654
20655 2008-10-22  Eric Blake  <ebb9@byu.net>
20656
20657         glthread/thread: avoid compiler warning
20658         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20659         Add unreachable abort to silence compiler.
20660
20661 2008-10-22  Eric Blake  <ebb9@byu.net>
20662
20663         netdb: also supply struct addrinfo for cygwin 1.5.x
20664         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20665         older cygwin.
20666         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20667         cygwin.
20668         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20669
20670 2008-10-22  Bruno Haible  <bruno@clisp.org>
20671
20672         * users.txt: Update entry about pspp.
20673
20674 2008-10-21  Bruno Haible  <bruno@clisp.org>
20675
20676         Simplification.
20677         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20678         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20679
20680         Simplification.
20681         * lib/ioctl.c (ioctl): Don't undefine.
20682         * lib/socket.c (socket): Don't undefine.
20683
20684         Remove unused module indicator macros.
20685         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20686         GNULIB_$1 as a C macro.
20687
20688         * doc/posix-functions/close.texi: Undo last change.
20689         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20690         Windows platforms.
20691
20692 2008-10-21  Bruno Haible  <bruno@clisp.org>
20693
20694         Add gethostname() declaration to <unistd.h>.
20695         * lib/unistd.in.h (gethostname): New declaration.
20696         * lib/gethostname.c: Include <unistd.h>.
20697         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20698         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20700         and HAVE_GETHOSTNAME.
20701         * modules/gethostname (Depends-on): Add unistd.
20702         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20703         (Include): Specify <unistd.h>.
20704         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20705         HAVE_GETHOSTNAME.
20706         * tests/test-gethostname.c: Include <unistd.h> first.
20707
20708 2008-10-21  Bruno Haible  <bruno@clisp.org>
20709
20710         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20711         * modules/select-tests (Depends-on): Likewise.
20712         Reported by Simon Josefsson.
20713
20714 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20715
20716         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20717         * lib/accept.c: New file, based on winsock.c.
20718         * lib/bind.c: New file, based on winsock.c.
20719         * lib/connect.c: New file, based on winsock.c.
20720         * lib/getpeername.c: New file, based on winsock.c.
20721         * lib/getsockname.c: New file, based on winsock.c.
20722         * lib/getsockopt.c: New file, based on winsock.c.
20723         * lib/ioctl.c: New file, based on winsock.c.
20724         * lib/listen.c: New file, based on winsock.c.
20725         * lib/recv.c: New file, based on winsock.c.
20726         * lib/recvfrom.c: New file, based on winsock.c.
20727         * lib/send.c: New file, based on winsock.c.
20728         * lib/sendto.c: New file, based on winsock.c.
20729         * lib/setsockopt.c: New file, based on winsock.c.
20730         * lib/shutdown.c: New file, based on winsock.c.
20731         * lib/socket.c: New file, based on winsock.c.
20732         * lib/w32sock.h: New file, based on winsock.c.
20733         * lib/winsock.c: Remove file.
20734         * modules/accept: Likewise.
20735         * modules/bind: Likewise.
20736         * modules/connect: Likewise.
20737         * modules/getpeername: Likewise.
20738         * modules/getsockname: Likewise.
20739         * modules/getsockopt: Likewise.
20740         * modules/ioctl: Likewise.
20741         * modules/listen: Likewise.
20742         * modules/recv: Likewise.
20743         * modules/recvfrom: Likewise.
20744         * modules/send: Likewise.
20745         * modules/sendto: Likewise.
20746         * modules/setsockopt: Likewise.
20747         * modules/shutdown: Likewise.
20748         * modules/socket: Use socket.c instead of winsock.c.
20749         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20750         * doc/posix-functions/accept.texi: Doc fix.
20751         * doc/posix-functions/bind.texi: Doc fix.
20752         * doc/posix-functions/close.texi: Doc fix.
20753         * doc/posix-functions/connect.texi: Doc fix.
20754         * doc/posix-functions/getpeername.texi: Doc fix.
20755         * doc/posix-functions/getsockname.texi: Doc fix.
20756         * doc/posix-functions/getsockopt.texi: Doc fix.
20757         * doc/posix-functions/ioctl.texi: Doc fix.
20758         * doc/posix-functions/listen.texi: Doc fix.
20759         * doc/posix-functions/recv.texi: Doc fix.
20760         * doc/posix-functions/recvfrom.texi: Doc fix.
20761         * doc/posix-functions/send.texi: Doc fix.
20762         * doc/posix-functions/sendto.texi: Doc fix.
20763         * doc/posix-functions/setsockopt.texi: Doc fix.
20764         * doc/posix-functions/shutdown.texi: Doc fix.
20765         * doc/posix-functions/socket.texi: Doc fix.
20766
20767 2008-10-20  Bruno Haible  <bruno@clisp.org>
20768
20769         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20770         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20771         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20772         as an alias for SIGABRT.
20773         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20774         (sigaction): Map it to SIGABRT.
20775         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20776
20777 2008-10-20  Bruno Haible  <bruno@clisp.org>
20778
20779         * lib/fts.c: Don't include lstat.h.
20780         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20781
20782         Move the lstat() declaration to <sys/stat.h>.
20783         * lib/lstat.h: Remove file.
20784         * lib/sys_stat.in.h: Add special invocation convention.
20785         (lstat): New declaration.
20786         * lib/lstat.c (orig_lstat): New function.
20787         (rpl_lstat): Use orig_lstat instead of lstat.
20788         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20789         AC_C_INLINE. Set REPLACE_LSTAT.
20790         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20791         and REPLACE_LSTAT.
20792         * modules/lstat (Files): Remove lib/lstat.h.
20793         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20794         (Include): Specify <sys/stat.h> instead of lstat.h.
20795         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20796         REPLACE_LSTAT.
20797         * NEWS: Mention the change.
20798
20799 2008-10-20  Bruno Haible  <bruno@clisp.org>
20800
20801         * modules/posix_spawn-tests: New file.
20802         * tests/test-posix_spawn3.c: New file.
20803
20804 2008-10-20  Bruno Haible  <bruno@clisp.org>
20805
20806         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20807         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20808         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20809         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20810         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20811
20812 2008-10-20  Bruno Haible  <bruno@clisp.org>
20813
20814         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20815         of posix_spawn on AIX 5.3.
20816
20817 2008-10-20  Bruno Haible  <bruno@clisp.org>
20818
20819         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20820
20821 2008-10-20  Bruno Haible  <bruno@clisp.org>
20822
20823         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20824         of AC_LANG_PROGRAM.
20825
20826 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20827
20828         * lib/netdb.in.h: Don't define GNU specific constants until they
20829         are supported or needed.  Reported by Bruno Haible
20830         <bruno@clisp.org>.
20831
20832 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20833
20834         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20835
20836 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20837
20838         * lib/getaddrinfo.h: Remove file.
20839         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20840         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20841         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20842         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20843         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20844         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20845         * tests/test-getaddrinfo.c: Likewise.
20846         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20847         * NEWS: Mention change.
20848
20849 2008-10-19  Bruno Haible  <bruno@clisp.org>
20850
20851         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20852
20853 2008-10-19  Bruno Haible  <bruno@clisp.org>
20854
20855         * lib/wait-process.c: Include simply <sys/wait.h>.
20856         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20857         WIFSTOPPED): Remove fallback definitions.
20858         * modules/wait-process (Depends-on): Add sys_wait.
20859
20860         New module 'sys_wait'.
20861         * modules/sys_wait: New file.
20862         * lib/sys_wait.in.h: New file, partially copied from
20863         lib/wait-process.c.
20864         * m4/sys_wait_h.m4: New file.
20865         * doc/posix-headers/sys_wait.texi: Mention the new module.
20866
20867 2008-10-19  Bruno Haible  <bruno@clisp.org>
20868
20869         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20870
20871 2008-10-19  Bruno Haible  <bruno@clisp.org>
20872
20873         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20874         * lib/wait-process.c (WAIT_T): Remove type.
20875         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20876         (wait_subprocess): Update.
20877
20878 2008-10-19  Bruno Haible  <bruno@clisp.org>
20879
20880         New module 'atoll'.
20881         * modules/atoll: New file.
20882         * lib/stdlib.in.h (atoll): New declaration.
20883         * lib/atoll.c: New file, from glibc with modifications.
20884         * m4/atoll.m4: New file.
20885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20886         HAVE_ATOLL.
20887         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20888         * doc/posix-functions/atoll.texi: Mention the new module.
20889
20890 2008-10-19  Bruno Haible  <bruno@clisp.org>
20891
20892         Add strtoull() declaration to <stdlib.h>.
20893         * lib/stdlib.in.h (strtoull): New declaration.
20894         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20895         Set HAVE_STRTOULL.
20896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20897         HAVE_STRTOULL.
20898         * modules/strtoull (Depends-on): Add stdlib.
20899         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20900         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20901         HAVE_STRTOULL.
20902
20903 2008-10-19  Bruno Haible  <bruno@clisp.org>
20904
20905         Add strtoll() declaration to <stdlib.h>.
20906         * lib/stdlib.in.h (strtoll): New declaration.
20907         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20908         Set HAVE_STRTOLL.
20909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20910         HAVE_STRTOLL.
20911         * modules/strtoll (Depends-on): Add stdlib.
20912         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20913         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20914
20915 2008-10-19  Bruno Haible  <bruno@clisp.org>
20916
20917         * modules/bcopy (Depends-on): Add strings.
20918         (Include): Specify <strings.h>.
20919
20920 2008-10-19  Bruno Haible  <bruno@clisp.org>
20921
20922         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20923
20924 2008-10-19  Bruno Haible  <bruno@clisp.org>
20925
20926         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20927         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20928         mingw.
20929
20930 2008-10-19  Bruno Haible  <bruno@clisp.org>
20931
20932         * lib/atanl.c: Don't include isnanl.h.
20933         * lib/cosl.c: Likewise.
20934         * lib/ldexpl.c: Likewise.
20935         * lib/logl.c: Likewise.
20936         * lib/sinl.c: Likewise.
20937         * lib/sqrtl.c: Likewise.
20938         * lib/tanl.c: Likewise.
20939
20940         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20941         * lib/isnanf.h: Remove file.
20942         * lib/isnand.h: Remove file.
20943         * lib/isnanl.h: Remove file.
20944         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20945         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20946         macros.
20947         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20948         HAVE_ISNANF, don't define it as a C macro.
20949         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20950         HAVE_ISNAND, don't define it as a C macro.
20951         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20952         HAVE_ISNANL, don't define it as a C macro.
20953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20954         HAVE_ISNAN[FDL].
20955         * modules/isnanf (Files): Remove lib/isnanf.h.
20956         (Depends-on): Add math.
20957         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20958         (Include): Specify <math.h> instead of isnanf.h.
20959         * modules/isnand (Files): Remove lib/isnand.h.
20960         (Depends-on): Add math.
20961         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20962         (Include): Specify <math.h> instead of isnand.h.
20963         * modules/isnanl (Files): Remove lib/isnanl.h.
20964         (Depends-on): Add math.
20965         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20966         (Include): Specify <math.h> instead of isnanl.h.
20967         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20968         HAVE_ISNAN[FDL].
20969         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20970         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20971         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20972         * NEWS: Mention the change.
20973
20974 2008-10-18  Bruno Haible  <bruno@clisp.org>
20975
20976         Add getusershell(), setusershell(), endusershell() declarations to
20977         <unistd.h>.
20978         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20979         declarations.
20980         * lib/getusershell.c: Include unistd.h.
20981         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20982         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20983         HAVE_GETUSERSHELL.
20984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20985         and HAVE_GETUSERSHELL.
20986         * modules/getusershell (Depends-on): Add unistd, extensions.
20987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20988         (Include): Specify <unistd.h>.
20989         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20990         HAVE_GETUSERSHELL.
20991
20992 2008-10-18  Bruno Haible  <bruno@clisp.org>
20993
20994         Add a getloadavg() declaration to <stdlib.h>.
20995         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20996         getloadavg declaration.
20997         (getloadavg): New declaration.
20998         * lib/getloadavg.c: Include <stdlib.h> first.
20999         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
21000         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
21001         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
21002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
21003         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21004         * modules/getloadavg (Depends-on): Add stdlib, extensions.
21005         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21006         (Include): Specify <stdlib.h>.
21007         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
21008         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21009
21010 2008-10-18  Bruno Haible  <bruno@clisp.org>
21011
21012         * lib/dirchownmod.c: Don't include lchmod.h.
21013
21014         Move the lchmod() declaration to <sys/stat.h>.
21015         * lib/lchmod.h: Remove file.
21016         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
21017         (lchmod): New declaration, moved here from lib/lchown.h.
21018         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
21019         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
21020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
21021         and HAVE_LCHMOD.
21022         * modules/lchmod (Files): Remove lib/lchmod.h.
21023         (Depends-on): Add sys_stat, extensions.
21024         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
21025         (Include): Specify <sys/stat.h> instead of lchmod.h.
21026         * modules/sys_stat (Depends-on): Add link-warning.
21027         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
21028         definition of GL_LINK_WARNING.
21029         * NEWS: Mention the change.
21030
21031 2008-10-18  Bruno Haible  <bruno@clisp.org>
21032
21033         * lib/fchdir.c: Don't include dirfd.h.
21034         * lib/fts.c: Likewise.
21035         * lib/getcwd.c: Likewise.
21036         * lib/glob.c: Likewise.
21037
21038         Move the dirfd() declaration to <dirent.h>.
21039         * lib/dirfd.h: Remove file.
21040         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
21041         (dirfd): New declaration.
21042         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
21043         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
21044         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
21045         HAVE_DECL_DIRFD.
21046         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
21047         HAVE_DECL_DIRFD.
21048         * modules/dirfd (Files): Remove lib/dirfd.h.
21049         (Depends-on): Add dirent, extensions.
21050         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
21051         (Include): Specify <dirent.h> instead of dirfd.h.
21052         * modules/dirent (Depends-on): Add link-warning.
21053         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
21054         definition of GL_LINK_WARNING.
21055         * NEWS: Mention the change.
21056
21057 2008-10-18  Bruno Haible  <bruno@clisp.org>
21058
21059         Move the euidaccess() declaration to <unistd.h>.
21060         * lib/euidaccess.h: Remove file.
21061         * lib/unistd.in.h (euidaccess): New declaration.
21062         * lib/euidaccess.c: Don't include euidaccess.h.
21063         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
21064         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
21065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
21066         and HAVE_EUIDACCESS.
21067         * modules/euidaccess (Files): Remove lib/euidaccess.h.
21068         (Depends-on): Add unistd.
21069         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21070         (Include): Specify <unistd.h> instead of euidaccess.h.
21071         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
21072         HAVE_EUIDACCESS.
21073         * NEWS: Mention the change.
21074
21075 2008-10-18  Bruno Haible  <bruno@clisp.org>
21076
21077         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
21078
21079         Move the getdomainname() declaration to <unistd.h>.
21080         * lib/getdomainname.h: Remove file.
21081         * lib/unistd.in.h (getdomainname): New declaration.
21082         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
21083         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21084         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21085         HAVE_GETDOMAINNAME.
21086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21087         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
21088         * modules/getdomainname (Files): Remove lib/getdomainname.h.
21089         (Depends-on): Add unistd, extensions.
21090         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21091         (Includes): Specify <unistd.h> instead of getdomainname.h.
21092         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
21093         HAVE_GETDOMAINNAME.
21094         * NEWS: Mention the change.
21095
21096 2008-10-18  Bruno Haible  <bruno@clisp.org>
21097
21098         * modules/dirent: New file.
21099         * m4/dirent_h.m4: New file.
21100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
21101         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
21102         * modules/fchdir (Files): Remove lib/dirent.in.h.
21103         (Depends-on): Add dirent.
21104         (Makefile.am): Move rules to modules/dirent.
21105         * doc/posix-headers/dirent.texi: Mention the new module.
21106
21107 2008-10-18  Bruno Haible  <bruno@clisp.org>
21108
21109         Avoid -Wunused-parameter warnings in public gnulib header files.
21110         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
21111         macro.
21112         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
21113
21114 2008-10-18  Bruno Haible  <bruno@clisp.org>
21115
21116         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
21117         * doc/glibc-functions/error.texi: Mention the module 'error'.
21118         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
21119         * doc/glibc-functions/getdomainname.texi: Mention the module
21120         'getdomainname'.
21121         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
21122         * doc/glibc-functions/getpagesize.texi: Mention the module
21123         'getpagesize'.
21124         * doc/glibc-functions/getusershell.texi: Mention the module
21125         'getusershell'.
21126         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
21127         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
21128         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
21129         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
21130         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
21131         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
21132         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
21133         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
21134         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
21135         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
21136         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
21137         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
21138         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
21139         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
21140
21141 2008-10-17  Bruno Haible  <bruno@clisp.org>
21142
21143         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
21144         HP-UX and IRIX, use -0.0L.
21145         * tests/test-ceill.c (minus_zero): Likewise.
21146         * tests/test-floorl.c (minus_zero): Likewise.
21147         * tests/test-frexpl.c (minus_zero): Likewise.
21148         * tests/test-isnan.c (minus_zerol): Likewise.
21149         * tests/test-isnanl.h (minus_zero): Likewise.
21150         * tests/test-ldexpl.c (minus_zero): Likewise.
21151         * tests/test-roundl.c (minus_zero): Likewise.
21152         * tests/test-signbit.c (minus_zerol): Likewise.
21153         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21154         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21155         * tests/test-truncl.c (minus_zero): Likewise.
21156         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21157         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21158         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
21159         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21160
21161 2008-10-17  Bruno Haible  <bruno@clisp.org>
21162
21163         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
21164         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
21165         that it gets activated only for gcc >= 3.0.
21166         * lib/dirent.in.h: Likewise.
21167         * lib/errno.in.h: Likewise.
21168         * lib/fcntl.in.h: Likewise.
21169         * lib/float.in.h: Likewise.
21170         * lib/iconv.in.h: Likewise.
21171         * lib/inttypes.in.h: Likewise.
21172         * lib/locale.in.h: Likewise.
21173         * lib/math.in.h: Likewise.
21174         * lib/netdb.in.h: Likewise.
21175         * lib/netinet_in.in.h: Likewise.
21176         * lib/search.in.h: Likewise.
21177         * lib/signal.in.h: Likewise.
21178         * lib/spawn.in.h: Likewise.
21179         * lib/stdarg.in.h: Likewise.
21180         * lib/stdint.in.h: Likewise.
21181         * lib/stdio.in.h: Likewise.
21182         * lib/stdlib.in.h: Likewise.
21183         * lib/string.in.h: Likewise.
21184         * lib/strings.in.h: Likewise.
21185         * lib/sys_file.in.h: Likewise.
21186         * lib/sys_ioctl.in.h: Likewise.
21187         * lib/sys_select.in.h: Likewise.
21188         * lib/sys_socket.in.h: Likewise.
21189         * lib/sys_stat.in.h: Likewise.
21190         * lib/sys_time.in.h: Likewise.
21191         * lib/sysexits.in.h: Likewise.
21192         * lib/time.in.h: Likewise.
21193         * lib/unistd.in.h: Likewise.
21194         * lib/wchar.in.h: Likewise.
21195         * lib/wctype.in.h: Likewise.
21196         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21197
21198 2008-10-17  Jim Meyering  <meyering@redhat.com>
21199
21200         ignore-value: don't depend on inline module
21201         * modules/ignore-value (Depends-on): Remove 'inline'.
21202         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21203         Suggestion from Bruno Haible.
21204
21205 2008-10-17  Bruno Haible  <bruno@clisp.org>
21206
21207         New implementation of condition variables for Win32.
21208         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21209         (gl_linked_waitqueue_t): New type.
21210         (gl_cond_t): Use it.
21211         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21212         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21213         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21214         (glthread_cond_init_func, glthread_cond_wait_func,
21215         glthread_cond_timedwait_func, glthread_cond_signal_func,
21216         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21217         Reimplemented on the basis of gl_linked_waitqueue_t.
21218         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21219         gl_waitqueue_t.
21220         (gl_rwlock_t): Update.
21221         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21222
21223 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21224
21225         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21226         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21227
21228 2008-10-17  Jim Meyering  <meyering@redhat.com>
21229
21230         ignore-value: new module
21231         * modules/ignore-value: New file.
21232         * lib/ignore-value.h: New file.
21233         * MODULES.html.sh (Compiler warning management): New section,
21234         just for this module.  More to come.
21235
21236 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21237
21238         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21239         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21240         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21241
21242 2008-10-16  Jim Meyering  <meyering@redhat.com>
21243
21244         openat-die.c: avoid 'no previous prototype' warning
21245         * lib/openat-die.c: Include "openat.h".
21246         Reported by Reuben Thomas <rrt@sc3d.org>.
21247
21248 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21249
21250         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21251         * lib/netdb.in.h: Fix typo.
21252         Reported by Bruno Haible  <bruno@clisp.org>
21253
21254         * lib/netdb.in.h: Include sys/socket.h for platforms without
21255         netdb.h, to get structures like hostent on MinGW.
21256         * modules/netdb (Depends-on): Add sys_socket.
21257
21258 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21259
21260         * modules/netdb, modules/netdb-tests: New file.
21261         * m4/netdb_h.m4: New file.
21262         * lib/netdb.in.h: Add, currently just an empty file pending
21263         definitions.
21264         * tests/test-netdb.c: New file.
21265         * doc/posix-headers/netdb.texi: Mention that we replace it if
21266         needed.
21267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21268         netdb.
21269
21270 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21271
21272         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21273         with code.
21274
21275 2008-10-13  Bruno Haible  <bruno@clisp.org>
21276
21277         * lib/glthread/cond.c (glthread_cond_wait_func,
21278         glthread_cond_timedwait_func): Add a comment.
21279
21280 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21281
21282         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21283         * tests/test-select.c: Likewise,
21284
21285 2008-10-13  Bruno Haible  <bruno@clisp.org>
21286
21287         * lib/glthread/cond.c (glthread_cond_wait_func,
21288         glthread_cond_timedwait_func): Fix variable name.
21289         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21290
21291 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21292
21293         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21294         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21295         struct sockaddr.sa_len.
21296         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21297
21298 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21299
21300         * build-aux/pmccabe2html: Add css and css_url parameters.
21301
21302 2008-10-12  Bruno Haible  <bruno@clisp.org>
21303
21304         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21305         calling aclx_get.
21306         Reported by Rainer Tammer <tammer@tammer.net>.
21307
21308 2008-10-12  Bruno Haible  <bruno@clisp.org>
21309
21310         Use msvcrt aware primitives for creation/termination of Win32 threads.
21311         * lib/glthread/thread.c: Include <process.h>.
21312         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21313         (wrapper_func): Update signature.
21314         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21315
21316 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21317             Bruno Haible  <bruno@clisp.org>
21318
21319         Provide a Win32 implementation of the 'cond' module.
21320         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21321         * lib/glthread/cond.c (glthread_cond_init_func,
21322         glthread_cond_wait_func, glthread_cond_timedwait_func,
21323         glthread_cond_signal_func, glthread_cond_broadcast_func,
21324         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21325         * modules/cond (Dependencies): Add gettimeofday.
21326
21327 2008-10-11  Bruno Haible  <bruno@clisp.org>
21328
21329         Make sleep work on older versions of mingw.
21330         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21331         only whether it exists.
21332         * doc/posix-functions/sleep.texi: Mention the problem with older
21333         versions of mingw.
21334
21335 2008-10-11  Bruno Haible  <bruno@clisp.org>
21336
21337         New module 'shutdown'.
21338         * modules/shutdown: New file.
21339         * lib/sys_socket.in.h (shutdown): New declaration.
21340         * lib/winsock.c (shutdown): New function.
21341         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21342         GNULIB_SHUTDOWN.
21343         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21344         * doc/posix-functions/shutdown.texi: Document the new module.
21345
21346 2008-10-11  Jim Meyering  <meyering@redhat.com>
21347
21348         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21349
21350 2008-10-11  Bruno Haible  <bruno@clisp.org>
21351
21352         New module 'fclose'.
21353         * modules/fclose: New file.
21354         * lib/stdio.in.h (fclose): New declaration.
21355         * lib/fclose.c: New file.
21356         * m4/fclose.m4: New file.
21357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21358         REPLACE_FCLOSE.
21359         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21360         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21361         REPLACE_FCLOSE.
21362         * modules/close (Depends-on): fclose.
21363         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21364
21365 2008-10-11  Bruno Haible  <bruno@clisp.org>
21366
21367         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21368         set errno and don't call _close.
21369
21370 2008-10-10  Bruno Haible  <bruno@clisp.org>
21371
21372         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21373         ACL, not afterwards. Fixes test failure on Cygwin.
21374
21375 2008-10-09  Ben Pfaff  <blp@gnu.org>
21376
21377         * build-aux/announce-gen: Fix gnulib version related part of usage
21378         message.  Die with a useful error message if no tarballs are
21379         found.
21380
21381 2008-10-10  Jim Meyering  <meyering@redhat.com>
21382
21383         bootstrap: use git's --depth=N option only if it's supported
21384         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21385         recognize the --depth option.  Reported by Pádraig Brady.
21386
21387 2008-10-09  Bruno Haible  <bruno@clisp.org>
21388
21389         New module 'ioctl'.
21390         * modules/ioctl: New file.
21391         * lib/sys_socket.in.h (ioctl): Remove declaration.
21392         * lib/winsock.c: Include <sys/ioctl.h>.
21393         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21394         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21395         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21396         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21397         * doc/posix-functions/ioctl.texi: Mention the new module.
21398
21399 2008-10-09  Bruno Haible  <bruno@clisp.org>
21400
21401         New module 'sys_ioctl'.
21402         * lib/sys_ioctl.in.h: New file.
21403         * m4/sys_ioctl_h.m4: New file.
21404         * modules/sys_ioctl: New file.
21405         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21406
21407 2008-10-09  Bruno Haible  <bruno@clisp.org>
21408
21409         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21410         * lib/winsock.c: Include <stdarg.h>.
21411         (rpl_ioctl): Change to second argument 'int' and then varargs.
21412
21413 2008-10-09  Bruno Haible  <bruno@clisp.org>
21414
21415         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21416         when the sys_socket module is present and the system has <winsock2.h>.
21417
21418 2008-10-09  Bruno Haible  <bruno@clisp.org>
21419
21420         * doc/posix-functions/close.texi: Mention module 'close' instead of
21421         module 'sys_socket'.
21422
21423 2008-10-09  Bruno Haible  <bruno@clisp.org>
21424
21425         * doc/glibc-headers/sys_ioctl.texi: New file.
21426         * doc/gnulib.texi: Include it.
21427
21428 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21429             Bruno Haible  <bruno@clisp.org>
21430
21431         Combine the two replacements of 'close'.
21432         * lib/sys_socket.in.h (close): Define to a reminder to include
21433         <unistd.h>.
21434         (_gl_close_fd_maybe_socket): New declaration.
21435         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21436         * lib/winsock.c (close): Remove undefinition.
21437         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21438         needed for the gnulib module 'close'.
21439         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21440         define to an error symbol or to a warning, if suitable.
21441         * lib/close.c: Include <sys/socket.h>.
21442         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21443         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21444         UNISTD_H_HAVE_WINSOCK2_H.
21445         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21447         UNISTD_H_HAVE_WINSOCK2_H.
21448         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21449         (configure.ac): Set a module indicator.
21450         (Makefile.am): Substitute GNULIB_CLOSE.
21451         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21452         * modules/poll-tests (Depends-on): Add close.
21453         * modules/select-tests (Depends-on): Likewise.
21454
21455 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21456             Bruno Haible  <bruno@clisp.org>
21457
21458         New module 'close'.
21459         * modules/close: New file.
21460         * lib/unistd.in.h (close): Move declaration out of the
21461         FCHDIR_REPLACEMENT scope.
21462         (_gl_unregister_fd): New declaration.
21463         * lib/close.c: New file.
21464         * lib/fchdir.c (rpl_close): Remove function.
21465         * m4/close.m4: New file.
21466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21467         close.
21468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21469         REPLACE_CLOSE.
21470         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21471         REPLACE_CLOSE.
21472         * modules/fchdir (Depends-on): Add close.
21473
21474 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21475             Bruno Haible  <bruno@clisp.org>
21476
21477         * lib/fcntl.in.h (open): Simplify conditionals.
21478         (_gl_register_fd): New declaration.
21479         * lib/fchdir.c (rpl_open): Remove function.
21480         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21481         also.
21482         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21484         open.
21485
21486 2008-10-09  Jim Meyering  <meyering@redhat.com>
21487
21488         GNUmakefile: use the more name-space-friendly "_version"
21489         * top/GNUmakefile (_dummy): Update.
21490         (_version): Rename from "version".
21491
21492 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21493             Bruno Haible  <bruno@clisp.org>
21494
21495         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21496         rpl_close.
21497         (_gl_register_fd): New function, extracted from rpl_open.
21498         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21499         (rpl_open, rpl_opendir): Use _gl_register_fd.
21500
21501 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21502
21503         Fix organization of 'open' replacement.
21504         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21505         (gl_FUNC_OPEN): Use it.
21506         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21507
21508 2008-10-08  Bruno Haible  <bruno@clisp.org>
21509
21510         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21511
21512 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21513
21514         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21515         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21516         listen).
21517
21518 2008-10-08  Eric Blake  <ebb9@byu.net>
21519
21520         GNUmakefile: add 'make version' target
21521         * top/GNUmakefile (_curr-ver): Split version update rules...
21522         (version): ...into a target.
21523
21524 2008-10-07  Bruno Haible  <bruno@clisp.org>
21525
21526         Use a more portable replacement expression for -0.0L.
21527         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21528         instead of -0.0L. Fix m4 quotation.
21529
21530         * tests/test-signbit.c: Include <float.h>.
21531         (minus_zero): New variable.
21532         (test_signbitl): Use minus_zero instead of -zero.
21533         * modules/signbit-tests (Depends-on): Add float.
21534
21535         * tests/test-ceill.c: Include <float.h>.
21536         (zero): Remove variable.
21537         (minus_zero): New variable.
21538         (main): Use minus_zero instead of -zero.
21539         * modules/ceill-tests (Depends-on): Add float.
21540
21541         * tests/test-floorl.c: Include <float.h>.
21542         (zero): Remove variable.
21543         (minus_zero): New variable.
21544         (main): Use minus_zero instead of -zero.
21545         * modules/floorl-tests (Depends-on): Add float.
21546
21547         * tests/test-roundl.c: Include <float.h>.
21548         (zero): Remove variable.
21549         (minus_zero): New variable.
21550         (main): Use minus_zero instead of -zero.
21551         * modules/roundl-tests (Depends-on): Add float.
21552
21553         * tests/test-truncl.c: Include <float.h>.
21554         (zero): Remove variable.
21555         (minus_zero): New variable.
21556         (main): Use minus_zero instead of -zero.
21557         * modules/truncl-tests (Depends-on): Add float.
21558
21559         * tests/test-frexpl.c (zero): Remove variable.
21560         (minus_zero): New variable.
21561         (main): Use minus_zero instead of -zero.
21562         * modules/frexpl-tests (Depends-on): Add float.
21563
21564         * tests/test-isnan.c (zerol): Remove variable.
21565         (minus_zerol): New variable.
21566         (test_long_double): Use minus_zerol instead of -zerol.
21567         * modules/isnan-tests (Depends-on): Add float.
21568
21569         * tests/test-isnanl.h (zero): Remove variable.
21570         (minus_zero): New variable.
21571         (main): Use minus_zero instead of -zero.
21572         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21573         * modules/isnanl-tests (Depends-on): Add float.
21574
21575         * tests/test-ldexpl.c (zero): Remove variable.
21576         (minus_zero): New variable.
21577         (main): Use minus_zero instead of -zero.
21578         * modules/ldexpl-tests (Depends-on): Add float.
21579
21580         * tests/test-snprintf-posix.h (zerol): Remove variable.
21581         (minus_zerol): New variable.
21582         (test_function): Use minus_zerol instead of -zerol.
21583         * modules/snprintf-posix-tests (Depends-on): Add float.
21584         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21585
21586         * tests/test-sprintf-posix.h (zerol): Remove variable.
21587         (minus_zerol): New variable.
21588         (test_function): Use minus_zerol instead of -zerol.
21589         * modules/sprintf-posix-tests (Depends-on): Add float.
21590         * modules/vsprintf-posix-tests (Depends-on): Add float.
21591
21592         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21593         (minus_zerol): New variable.
21594         (test_function): Use minus_zerol instead of -zerol.
21595         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21596
21597         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21598         (minus_zerol): New variable.
21599         (test_function): Use minus_zerol instead of -zerol.
21600         * modules/vasprintf-posix-tests (Depends-on): Add float.
21601
21602 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21603
21604         * MODULES.html.sh (Support for building documentation): Mention
21605         pmccabe2html.  Sort entries.
21606
21607         Add pmccabe2html module, from gnupdf.
21608         * build-aux/pmccabe.css: New file.
21609         * build-aux/pmccabe2html: New file.
21610         * m4/pmccabe2html.m4: New file.
21611         * modules/pmccabe2html: New file.
21612
21613 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21614
21615         flock: new module
21616         * MODULES.html.sh: Add to list of modules.
21617         * lib/flock.c: flock implementation for Windows and Unix systems
21618         which have fcntl.
21619         * doc/glibc-functions/flock.texi: Update documentation.
21620         * lib/sys_file.in.h: <sys/file.h> header file.
21621         * m4/flock.m4: M4 macros.
21622         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21623         * modules/flock: flock module.
21624         * modules/flock-tests: flock tests module.
21625         * modules/sys_file: sys/file.h module.
21626         * tests/test-flock.c: test suite for flock.
21627
21628 2008-10-06  Jim Meyering  <meyering@redhat.com>
21629
21630         bootstrap: check for LT_INIT more portably still ;-)
21631         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21632         Spotted by Bruno Haible.
21633
21634 2008-10-06  Eric Blake  <ebb9@byu.net>
21635
21636         test-signbit: avoid tripping Irix cc bug on -0.0L
21637         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21638         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21639         entire testsuite consistent and avoids an Irix 6.2 bug.
21640
21641 2008-10-05  Bruno Haible  <bruno@clisp.org>
21642             Jim Meyering  <jim@meyering.net>
21643
21644         Add an option for ignoring EPIPE during close_stdout.
21645         * lib/closeout.h: Include <stdbool.h>.
21646         (close_stdout_set_ignore_EPIPE): New declaration.
21647         * lib/closeout.c: Include <stdbool.h>.
21648         (ignore_EPIPE): New variable.
21649         (close_stdout_set_ignore_EPIPE): New function.
21650         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21651         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21652         failure.
21653         * modules/closeout (Depends-on): Add stdbool.
21654
21655 2008-10-05  Bruno Haible  <bruno@clisp.org>
21656
21657         * modules/accept: New file.
21658         * modules/bind: New file.
21659         * modules/connect: New file.
21660         * modules/getpeername: New file.
21661         * modules/getsockname: New file.
21662         * modules/getsockopt: New file.
21663         * modules/listen: New file.
21664         * modules/recv: New file.
21665         * modules/recvfrom: New file.
21666         * modules/send: New file.
21667         * modules/sendto: New file.
21668         * modules/setsockopt: New file.
21669         * modules/socket: New file.
21670         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21671         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21672         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21673         the particular module is requested. Add a link warning when the
21674         particular module is not requested.
21675         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21676         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21677         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21678         the particular module is requested.
21679         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21680         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21681         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21682         * modules/sys_socket (Depends-on): Add link-warning.
21683         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21684         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21685         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21686         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21687         GL_LINK_WARNING.
21688         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21689         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21690         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21691         * doc/posix-functions/getpeername.texi: Mention the new module
21692         'getpeername'.
21693         * doc/posix-functions/getsockname.texi: Mention the new module
21694         'getsockname'.
21695         * doc/posix-functions/getsockopt.texi: Mention the new module
21696         'getsockopt'.
21697         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21698         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21699         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21700         * doc/posix-functions/send.texi: Mention the new module 'send'.
21701         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21702         * doc/posix-functions/setsockopt.texi: Mention the new module
21703         'setsockopt'.
21704         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21705         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21706         listen, connect, accept.
21707         * modules/select-tests (Depends-on): Likewise.
21708
21709 2008-10-05  Bruno Haible  <bruno@clisp.org>
21710
21711         * lib/winsock.c (strerror): Remove unused #undef.
21712         (rpl_close): Remove unused local variable.
21713
21714         * modules/sys_socket (Depends-on); Add errno.
21715
21716 2008-10-05  Bruno Haible  <bruno@clisp.org>
21717
21718         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21719         (select): Add a link warning when the 'select' module is not used.
21720         * modules/sys_select (Depends-on): Add link-warning.
21721         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21722         Suggested by Paolo Bonzini.
21723
21724 2008-10-05  Jim Meyering  <meyering@redhat.com>
21725
21726         bootstrap: check for LT_INIT more portably
21727         * build-aux/bootstrap: Avoid using grep -E, since it's not
21728         portable enough.  Suggestion from Bruno Haible.
21729
21730 2008-10-05  Bruno Haible  <bruno@clisp.org>
21731
21732         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21733         as being fixed by gnulib.
21734
21735 2008-10-05  Bruno Haible  <bruno@clisp.org>
21736
21737         * modules/select-tests: New file, mostly copied from
21738         modules/sys_select-tests.
21739         * tests/test-select.c: New file, mostly copied from
21740         tests/test-sys_select.c.
21741         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21742         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21743         (Makefile.am): Remove test_sys_select_LDADD.
21744
21745         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21746         to an undefined symbol, for an error message.
21747         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21748         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21749         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21750         winsock-select.c here.
21751         * modules/sys_select (Files): Remove lib/winsock-select.c.
21752         (Depends-on): Remove alloca.
21753         (Makefile.am): Substitute GNULIB_SELECT.
21754         * modules/select: New file.
21755         * doc/posix-functions/select.texi: Update.
21756
21757 2008-10-05  Bruno Haible  <bruno@clisp.org>
21758
21759         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21760         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21761         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21762         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21763         getdtablesize.
21764         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21765         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21766
21767 2008-10-05  Bruno Haible  <bruno@clisp.org>
21768
21769         * modules/getdtablesize-tests: New file.
21770         * tests/test-getdtablesize.c: New file.
21771
21772         New module 'getdtablesize'.
21773         * lib/unistd.in.h (getdtablesize): New declaration.
21774         * lib/getdtablesize.c: New file.
21775         * m4/getdtablesize.m4: New file.
21776         * modules/getdtablesize: New file.
21777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21778         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21779         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21780         HAVE_GETDTABLESIZE.
21781         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21782
21783 2008-10-05  Bruno Haible  <bruno@clisp.org>
21784
21785         * modules/sched (Makefile.am): Fix typo.
21786         Reported by Simon Josefsson.
21787
21788 2008-10-05  Jim Meyering  <meyering@redhat.com>
21789
21790         bootstrap: check for LT_INIT, too
21791         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21792         are deprecated.  Suggestion from Ralf Wildenhues.
21793
21794 2008-10-05  Bruno Haible  <bruno@clisp.org>
21795
21796         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21797         overriding them by ours.
21798         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21799
21800 2008-10-05  Jim Meyering  <meyering@redhat.com>
21801
21802         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21803         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21804         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21805
21806 2008-10-04  Bruno Haible  <bruno@clisp.org>
21807
21808         * modules/dup2 (License): Change to LGPLv2+.
21809         * modules/sleep (License): Likewise.
21810         * modules/perror (License): Likewise.
21811         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21812         Blake.
21813         * modules/signal (License): Likewise.
21814         * modules/sigprocmask (License): Likewise.
21815         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21816         Meyering.
21817
21818 2008-10-04  Bruno Haible  <bruno@clisp.org>
21819
21820         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21821         Reported by Rainer Tammer <tammer@tammer.net>.
21822
21823 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21824             Bruno Haible  <bruno@clisp.org>
21825
21826         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21827         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21828         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21829
21830 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21831
21832         filevercmp: new module
21833         * lib/filevercmp.h: New function filevercmp comparing version strings.
21834         * lib/filevercmp.c: Implementation of filevercmp function.
21835         * modules/filevercmp: Module metadata.
21836         * tests/test-filevercmp.c: Unit test for new module.
21837         * modules/filevercmp-tests: Unit test metadata.
21838         * MODULES.html.sh: Add filevercmp module.
21839
21840 2008-10-03  Bruno Haible  <bruno@clisp.org>
21841
21842         * lib/c-ctype.h: Add comment.
21843         Reported by Jim Meyering.
21844
21845 2008-10-02  Bruno Haible  <bruno@clisp.org>
21846
21847         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21848
21849 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21850
21851         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21852         name of bootstrap.conf accordingly.
21853
21854 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21855
21856         * build-aux/bootstrap: Install git-merge-changelog configuration
21857         items into .gitconfig if needed.
21858
21859 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21860
21861         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21862         git repository, and initialize/update it accordingly.
21863
21864 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21865
21866         * modules/fsync-tests: New file.
21867         * tests/test-fsync.c: New file.
21868
21869         New module 'fsync'.
21870         * lib/fsync.c: New file.
21871         * m4/fsync.m4: New file.
21872         * modules/fsync: New file.
21873         * lib/unistd.in.h (fsync): New declaration.
21874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21875         GNULIB_FSYNC and HAVE_FSYNC.
21876         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21877         * MODULES.html.sh (posix_functions): Add fsync.
21878         * doc/posix-functions/fsync.texi: Mention the new module.
21879
21880 2008-10-02  Jim Meyering  <meyering@redhat.com>
21881
21882         fts.c: sync with similar code from coreutils' remove.c
21883         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21884         Guard also with "#if defined __linux__", since for now at least,
21885         this code is Linux-kernel-specific.
21886
21887 2008-10-02  Jim Meyering  <meyering@redhat.com>
21888
21889         fts: bug fixes
21890         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21891         Include <sys/vfs.h>, not <sys/statfs.h>.
21892
21893         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21894         Include <sys/vfs.h>, not <sys/statfs.h>.
21895
21896 2008-10-01  Bruno Haible  <bruno@clisp.org>
21897
21898         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21899         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21900         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21901         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21902         * doc/posix-functions/posix_spawnp.texi: Likewise.
21903         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21904         whether posix_spawn actually works.
21905         * m4/pipe.m4 (gl_PIPE): Likewise.
21906         * modules/execute (Files): Add m4/posix_spawn.m4.
21907         * modules/pipe (Files): Add m4/posix_spawn.m4.
21908         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21909
21910 2008-10-01  Jim Meyering  <meyering@redhat.com>
21911
21912         remove trailing spaces
21913         * NEWS: Likewise.
21914         * lib/poll.c (poll): Likewise.
21915         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21916         * lib/winsock.c (rpl_close): Likewise.
21917         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21918         * modules/yield: Likewise.
21919         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21920         * tests/test-sys_select.c (connect_to_socket): Likewise.
21921
21922         fts.c: adjust a new interface to be more generally useful
21923         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21924         (fts_build): Adjust caller.
21925
21926 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21927
21928         * modules/cond-tests: New file.
21929         * tests/test-cond.c: New file.
21930
21931 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21932             Bruno Haible  <bruno@clisp.org>
21933
21934         * modules/cond (Dependencies): Add errno, time.
21935         * lib/glthread/cond.h: Include <time.h>.
21936         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21937         across platforms.
21938
21939 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21940             Bruno Haible  <bruno@clisp.org>
21941
21942         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21943
21944 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21945             Bruno Haible  <bruno@clisp.org>
21946
21947         * modules/tls-tests (Depends-on): Add thread, yield.
21948         (configure.ac): Remove all checks.
21949         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21950         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21951         gl_thread_self): Remove definitions. Include glthread/thread.h and
21952         glthread/yield.h instead.
21953         (test_tls): Pass an additional NULL argument to gl_thread_join.
21954
21955 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21956             Bruno Haible  <bruno@clisp.org>
21957
21958         * modules/lock-tests (Depends-on): Add thread, yield.
21959         (configure.ac): Remove all checks.
21960         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21961         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21962         gl_thread_self): Remove definitions. Include glthread/thread.h and
21963         glthread/yield.h instead.
21964         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21965         additional NULL argument to gl_thread_join.
21966
21967 2008-09-30  Bruno Haible  <bruno@clisp.org>
21968
21969         Fix the Win32 implementation of the 'thread' module.
21970         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21971         pointer type.
21972         (gl_thread_self): Invoke gl_thread_self_func.
21973         (gl_thread_self_func): New declaration.
21974         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21975         (do_init_self_key, init_self_key): New functions.
21976         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21977         Remove some fields.
21978         (running_threads, running_lock): Remove variables.
21979         (get_current_thread_handle): New function.
21980         (gl_thread_self_func, wrapper_func, glthread_create_func,
21981         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21982         simplified.
21983
21984 2008-09-30  Bruno Haible  <bruno@clisp.org>
21985
21986         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21987         files.
21988
21989 2008-09-30  Jim Meyering  <meyering@redhat.com>
21990
21991         fts.m4: correct the test for statfs.f_type
21992         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21993         when checking for statfs.f_type.
21994
21995 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21996
21997         tests: avoid some compiler warnings
21998         * tests/test-memchr.c (main): Pass NULL indirectly.
21999         * tests/test-getdate.c (main): Remove unused variable 'ret'.
22000
22001 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
22002
22003         getdate.y: disallow countable dayshifts like "4 yesterday ago"
22004         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
22005         exactly specified dayshifts.
22006         (dayshift): New rule.
22007         (rel): Add dayshift.
22008         (relative_time_table) [tomorrow, yesterday, today, now]:
22009         Use tDAY_SHIFT in place of tDAY_UNIT.
22010         * tests/test-getdate.c: Add tests for now-disallowed countable
22011         dayshifts, e.g., "4 yesterday ago".
22012
22013 2008-09-29  Bruno Haible  <bruno@clisp.org>
22014
22015         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
22016         * tests/test-posix_spawn1.in.sh: Renamed from
22017         tests/test-posix_spawn.in.sh.
22018         * tests/test-posix_spawn2.c: New file.
22019         * tests/test-posix_spawn2.in.sh: New file.
22020         * modules/posix_spawnp-tests (Files): Update.
22021         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
22022
22023 2008-09-29  Bruno Haible  <bruno@clisp.org>
22024
22025         Propagate effects of putenv/setenv/unsetenv to child processes.
22026         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
22027         * lib/pipe.c (create_pipe): Likewise.
22028
22029 2008-09-29  Bruno Haible  <bruno@clisp.org>
22030
22031         Enable use of shell scripts as executables in mingw.
22032         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
22033         run the program as a shell script.
22034         * lib/pipe.c (create_pipe): Likewise.
22035         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
22036         resulting array.
22037
22038 2008-09-29  Eric Blake  <ebb9@byu.net>
22039
22040         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
22041
22042 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
22043
22044         * doc/posix-functions/accept.texi: Update mingw problems.
22045         * doc/posix-functions/bind.texi: Update mingw problems.
22046         * doc/posix-functions/close.texi: Update mingw problems.
22047         * doc/posix-functions/connect.texi: Update mingw problems.
22048         * doc/posix-functions/getpeername.texi: Update mingw problems.
22049         * doc/posix-functions/getsockname.texi: Update mingw problems.
22050         * doc/posix-functions/getsockopt.texi: Update mingw problems.
22051         * doc/posix-functions/ioctl.texi: Update mingw problems.
22052         * doc/posix-functions/listen.texi: Update mingw problems.
22053         * doc/posix-functions/recv.texi: Update mingw problems.
22054         * doc/posix-functions/recvfrom.texi: Update mingw problems.
22055         * doc/posix-functions/select.texi: Update mingw problems.
22056         * doc/posix-functions/send.texi: Update mingw problems.
22057         * doc/posix-functions/sendto.texi: Update mingw problems.
22058         * doc/posix-functions/setsockopt.texi: Update mingw problems.
22059         * doc/posix-functions/socket.texi: Update mingw problems.
22060
22061 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
22062             Bruno Haible  <bruno@clisp.org>
22063
22064         * lib/sys_select.in.h: Include sys/time.h.
22065         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
22066         * modules/sys_select: Depend on sys_time.
22067         * tests/test-sys_select.c: Test that sys/select.h defines struct
22068         timeval fully.
22069
22070 2008-09-29  Bruno Haible  <bruno@clisp.org>
22071
22072         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
22073         * lib/sys_select.in.h: Likewise.
22074
22075 2008-09-29  Bruno Haible  <bruno@clisp.org>
22076
22077         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
22078
22079 2008-09-29  Bruno Haible  <bruno@clisp.org>
22080
22081         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
22082         Set LIBSOCKET instead of augmenting LIBS.
22083         * modules/sockets (Link): New section.
22084         * modules/sockets-tests (test_sockets_LDADD): New variable.
22085         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
22086         * modules/poll-tests (test_poll_LDADD): New variable.
22087         * NEWS: Document the change.
22088
22089 2008-09-29  Bruno Haible  <bruno@clisp.org>
22090
22091         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
22092         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
22093         ARPA_INET_H directly.
22094         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22095
22096 2008-09-28  Bruno Haible  <bruno@clisp.org>
22097
22098         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
22099         from gl_HEADER_SYS_SOCKET.
22100         (gl_HEADER_SYS_SOCKET): Invoke it.
22101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22102
22103 2008-09-28  Bruno Haible  <bruno@clisp.org>
22104
22105         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
22106         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
22107         Needed on OSF/1 4.0.
22108
22109 2008-09-28  Bruno Haible  <bruno@clisp.org>
22110
22111         Override open more carefully.
22112         * lib/open.c (orig_open): New function.
22113         (rpl_open): Use orig_open instead of open.
22114         * lib/fcntl.in.h: Add special invocation convention.
22115         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
22116         (gl_FUNC_OPEN): Invoke it.
22117
22118         Override freopen more carefully.
22119         * lib/freopen.c (orig_freopen): New function.
22120         (rpl_freopen): Use orig_freopen instead of freopen.
22121         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
22122         (gl_FUNC_FREOPEN): Invoke it.
22123
22124         Override fopen more carefully.
22125         * lib/fopen.c (orig_fopen): New function.
22126         (rpl_fopen): Use orig_fopen instead of fopen.
22127         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
22128         (gl_FUNC_FOPEN): Invoke it.
22129         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
22130
22131 2008-09-28  Bruno Haible  <bruno@clisp.org>
22132
22133         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
22134         SIGPIPE.
22135
22136 2008-09-28  Bruno Haible  <bruno@clisp.org>
22137
22138         * tests/test-sigaction.c (handler, main): Disable the check whether
22139         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
22140         glibc systems with LinuxThreads.
22141
22142 2008-09-28  Bruno Haible  <bruno@clisp.org>
22143
22144         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
22145
22146         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
22147         with AIX xlc.
22148         * lib/fcntl.in.h (open): Likewise.
22149         Reported by Rainer Tammer <tammer@tammer.net>.
22150
22151 2008-09-28  Bruno Haible  <bruno@clisp.org>
22152
22153         * modules/posix_spawnp-tests: New file.
22154         * tests/test-posix_spawn.c: New file.
22155         * tests/test-posix_spawn.in.sh: New file.
22156
22157         New module 'posix_spawnp'.
22158         * modules/posix_spawnp: New file.
22159         * lib/spawnp.c: New file, from GNU libc with modifications.
22160         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
22161
22162         New module 'posix_spawn'.
22163         * modules/posix_spawn: New file.
22164         * lib/spawn.c: New file, from GNU libc with modifications.
22165         * doc/posix-functions/posix_spawn.texi: Mention the new module.
22166
22167         New module 'posix_spawnattr_destroy'.
22168         * modules/posix_spawnattr_destroy: New file.
22169         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
22170         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
22171         module.
22172
22173         New module 'posix_spawnattr_setsigmask'.
22174         * modules/posix_spawnattr_setsigmask: New file.
22175         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
22176         modifications.
22177         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22178         new module.
22179
22180         New module 'posix_spawnattr_getsigmask'.
22181         * modules/posix_spawnattr_getsigmask: New file.
22182         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22183         modifications.
22184         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22185         new module.
22186
22187         New module 'posix_spawnattr_setsigdefault'.
22188         * modules/posix_spawnattr_setsigdefault: New file.
22189         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22190         modifications.
22191         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22192         new module.
22193
22194         New module 'posix_spawnattr_getsigdefault'.
22195         * modules/posix_spawnattr_getsigdefault: New file.
22196         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22197         modifications.
22198         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22199         new module.
22200
22201         New module 'posix_spawnattr_setschedpolicy'.
22202         * modules/posix_spawnattr_setschedpolicy: New file.
22203         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22204         modifications.
22205         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22206         new module.
22207
22208         New module 'posix_spawnattr_getschedpolicy'.
22209         * modules/posix_spawnattr_getschedpolicy: New file.
22210         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22211         modifications.
22212         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22213         new module.
22214
22215         New module 'posix_spawnattr_setschedparam'.
22216         * modules/posix_spawnattr_setschedparam: New file.
22217         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22218         modifications.
22219         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22220         new module.
22221
22222         New module 'posix_spawnattr_getschedparam'.
22223         * modules/posix_spawnattr_getschedparam: New file.
22224         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22225         modifications.
22226         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22227         new module.
22228
22229         New module 'posix_spawnattr_setpgroup'.
22230         * modules/posix_spawnattr_setpgroup: New file.
22231         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22232         modifications.
22233         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22234         module.
22235
22236         New module 'posix_spawnattr_getpgroup'.
22237         * modules/posix_spawnattr_getpgroup: New file.
22238         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22239         modifications.
22240         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22241         module.
22242
22243         New module 'posix_spawnattr_setflags'.
22244         * modules/posix_spawnattr_setflags: New file.
22245         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22246         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22247         module.
22248
22249         New module 'posix_spawnattr_getflags'.
22250         * modules/posix_spawnattr_getflags: New file.
22251         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22252         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22253         module.
22254
22255         New module 'posix_spawnattr_init'.
22256         * modules/posix_spawnattr_init: New file.
22257         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22258         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22259         module.
22260
22261         New module 'posix_spawn_file_actions_destroy'.
22262         * modules/posix_spawn_file_actions_destroy: New file.
22263         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22264         modifications.
22265         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22266         the new module.
22267
22268         New module 'posix_spawn_file_actions_addopen'.
22269         * modules/posix_spawn_file_actions_addopen: New file.
22270         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22271         modifications.
22272         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22273         the new module.
22274
22275         New module 'posix_spawn_file_actions_adddup2'.
22276         * modules/posix_spawn_file_actions_adddup2: New file.
22277         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22278         modifications.
22279         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22280         the new module.
22281
22282         New module 'posix_spawn_file_actions_addclose'.
22283         * modules/posix_spawn_file_actions_addclose: New file.
22284         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22285         modifications.
22286         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22287         the new module.
22288
22289         New module 'posix_spawn_file_actions_init'.
22290         * modules/posix_spawn_file_actions_init: New file.
22291         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22292         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22293         new module.
22294
22295         New module 'posix_spawn-internal'.
22296         * modules/posix_spawn-internal: New file.
22297         * lib/spawn_int.h: New file, from GNU libc with modifications.
22298         * lib/spawni.c: New file, from GNU libc with modifications.
22299         * m4/posix_spawn.m4: New file.
22300
22301         New module 'spawn'.
22302         * modules/spawn: New file.
22303         * lib/spawn.in.h: New file, from GNU libc with modifications.
22304         * m4/spawn_h.m4: New file.
22305         * doc/posix-headers/spawn.texi: Mention the new module.
22306
22307 2008-09-28  Bruno Haible  <bruno@clisp.org>
22308
22309         * modules/sched-tests: New file.
22310         * tests/test-sched.c: New file.
22311
22312         New module 'sched'.
22313         * modules/sched: New file.
22314         * lib/sched.in.h: New file.
22315         * m4/sched_h.m4: New file.
22316         * doc/posix-headers/sched.texi: Mention the new module.
22317
22318 2008-09-27  Eric Blake  <ebb9@byu.net>
22319
22320         Fix previous patch, and tweak references to $0.
22321         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22322         (func_version, func_gnulib_dir): Don't call this program
22323         gnulib-tool.
22324         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22325         with using $0 in function.
22326         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22327         (func_fatal_error): Reuse the name the user invoked us with.
22328
22329 2008-09-27  Bruno Haible  <bruno@clisp.org>
22330
22331         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22332         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22333         (gl_ICONV_H): Not here.
22334         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22335         instead of assigning ICONV_H directly.
22336
22337         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22339         WCHAR_H directly.
22340
22341 2008-09-27  Bruno Haible  <bruno@clisp.org>
22342
22343         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22344         * modules/arpa_inet (Depends-on): Add link-warning.
22345         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22346         * modules/unistd (Makefile.am): Likewise.
22347
22348 2008-09-26  Bruno Haible  <bruno@clisp.org>
22349
22350         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22351         variables.
22352         (func_version): Essentially copied from gnulib-tool.
22353         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22354         func_readlink): Copied from gnulib-tool.
22355
22356 2008-09-26  Bruno Haible  <bruno@clisp.org>
22357
22358         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22359         invoking git-version-gen.
22360
22361 2008-09-26  Bruno Haible  <bruno@clisp.org>
22362
22363         * posix-modules: Update to directory names changed on 2008-01-19.
22364         Remove commas in output before splitting into words. No more need to
22365         avoid 'ftruncate' since 2007-02-19.
22366
22367 2008-09-26  Bruno Haible  <bruno@clisp.org>
22368
22369         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22370
22371 2008-09-26  Bruno Haible  <bruno@clisp.org>
22372
22373         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22374         * modules/fwriteerror (Depends-on): Add errno.
22375
22376 2008-09-26  Bruno Haible  <bruno@clisp.org>
22377
22378         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22379         * tests/test-vc-list-files-cvs.sh: Likewise.
22380
22381 2008-09-26  Bruno Haible  <bruno@clisp.org>
22382
22383         * doc/posix-headers/sys_resource.texi: Reorder items.
22384
22385 2008-09-26  Jim Meyering  <meyering@redhat.com>
22386
22387         fts: tweak inode comparison function
22388         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22389         inode numbers, as documented.
22390
22391         fts: sort dirent entries on inode number before traversing
22392         This avoids a quadratic, seek-related performance penalty when
22393         operating on a directory containing many entries (measurable at 10k;
22394         3.5 hours at 2 million entries with a cold cache) on certain types
22395         of file systems, including ext3 and ext4, but not tmpfs.
22396         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22397         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22398         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22399         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22400         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22401         (fts_build): Set the stat.st_ino member from D_INO.
22402         If it is likely to be useful, sort dirent entries on inode number.
22403
22404         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22405         and the struct statfs.f_type member.
22406         * modules/fts (Depends-on): Add d-ino.
22407
22408 2008-09-26  Bruno Haible  <bruno@clisp.org>
22409
22410         * modules/sigpipe-die (Depends-on): Add sigpipe.
22411
22412         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22413         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22414         and GNULIB_STDIO_H_SIGPIPE are set.
22415         * lib/stdio-write.c: New file.
22416         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22417         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22418         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22419         REPLACE_STDIO_WRITE_FUNCS.
22420         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22421         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22422         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22423         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22424         * modules/stdio (Files): Add lib/stdio-write.c.
22425         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22426         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22427         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22428         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22429         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22430         REPLACE_FPRINTF_POSIX.
22431         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22432         REPLACE_PRINTF_POSIX.
22433         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22434         REPLACE_VFPRINTF_POSIX.
22435         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22436         REPLACE_VPRINTF_POSIX.
22437         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22438         SIGPIPE issue.
22439         * doc/posix-functions/fputc.texi: Likewise.
22440         * doc/posix-functions/fputs.texi: Likewise.
22441         * doc/posix-functions/fwrite.texi: Likewise.
22442         * doc/posix-functions/printf.texi: Likewise.
22443         * doc/posix-functions/putc.texi: Likewise.
22444         * doc/posix-functions/putchar.texi: Likewise.
22445         * doc/posix-functions/puts.texi: Likewise.
22446         * doc/posix-functions/vfprintf.texi: Likewise.
22447         * doc/posix-functions/vprintf.texi: Likewise.
22448
22449         * modules/safe-write (Depends-on): Add write.
22450
22451         * modules/sigpipe-tests: New file.
22452         * tests/test-sigpipe.c: New file.
22453         * tests/test-sigpipe.sh: New file.
22454
22455         * modules/write: New file.
22456         * lib/unistd.in.h: Include <sys/types.h>.
22457         (write): New declaration.
22458         * lib/write.c: New file.
22459         * m4/write.m4: New file.
22460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22461         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22462         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22463         GNULIB_WRITE, REPLACE_WRITE.
22464         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22465         and the SIGPIPE issue.
22466
22467         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22468         (raise): New declaration.
22469         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22470         (ext_signal): New function.
22471         (rpl_raise): New function.
22472         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22473         GNULIB_SIGNAL_H_SIGPIPE.
22474         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22475         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22476
22477         * modules/sigpipe: New file.
22478         * m4/sigpipe.m4: New file.
22479
22480 2008-09-25  Derek Price  <derek@ximbiot.com>
22481             Bruno Haible  <bruno@clisp.org>
22482
22483         * gnulib-tool (func_import): Report all license incompatibilities, not
22484         just the first one.
22485
22486 2008-09-25  Bruno Haible  <bruno@clisp.org>
22487
22488         * gnulib-tool (func_import): When computing the edits, consider not
22489         only the Makefile.ams that exist but also those that will be generated.
22490
22491 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22492
22493         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22494         fixes gnulib-tool --test warning about duplicate dependency.
22495
22496 2008-09-25  Bruno Haible  <bruno@clisp.org>
22497
22498         * gnulib-tool: Don't ask the user to perform edits in the generated
22499         Makefile.ams.
22500         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22501         apply to the Makefile.am being generated.
22502         (func_emit_tests_Makefile_am): Execute edits that apply to the
22503         Makefile.am being generated.
22504         (func_import): Setup list of Makefile.am edits before emitting the
22505         Makefile.ams, not at the end.
22506         (func_create_testdir): Update.
22507         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22508
22509 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22510
22511         * gnulib-tool (func_import): Store the --tests-base option in the
22512         comment in gnulib-cache.m4.
22513
22514 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22515
22516         * NEWS: Document increased portability that sys_select now provides.
22517
22518         * lib/sys_select.in.h: Install select wrapper.
22519         * lib/sys_socket.in.h: Use more descriptive name when there is no
22520         select wrapper.
22521         * lib/winsock-select.c: New.
22522         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22523         Require gl_HEADER_SYS_SOCKET.
22524         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22525         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22526         * tests/test-sys_select.c: Add functional tests.
22527
22528 2008-09-24  Eric Blake  <ebb9@byu.net>
22529
22530         open, fopen: close fd leak in last patch
22531         * lib/open.c (rpl_open): Close fd before returning error.
22532         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22533         * doc/posix-functions/open.texi (open): Document that Irix also
22534         has the bug.
22535         * doc/posix-functions/fopen.texi (fopen): Likewise.
22536         Reported by Paolo Bonzini.
22537
22538 2008-09-24  Bruno Haible  <bruno@clisp.org>
22539
22540         Ensure that a filename ending in a slash cannot be used to access a
22541         non-directory.
22542         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22543         to check whether it's really a directory.
22544         * lib/fopen.c: Include fcntl.h, unistd.h.
22545         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22546         and fdopen().
22547         * modules/fopen (Depends-on): Add unistd.
22548         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22549         * tests/test-fopen.c (main): Likewise.
22550         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22551         * doc/posix-functions/fopen.texi: Likewise.
22552         Reported by Eric Blake.
22553
22554 2008-09-23  Eric Blake  <ebb9@byu.net>
22555
22556         c-stack: avoid compiler optimizations when provoking overflow
22557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22558         recursion harder to optimize, to ensure a stack overflow occurs.
22559         * tests/test-c-stack.c (recurse): Likewise.
22560         Borrowed from libsigsegv.
22561
22562         c-stack: work around Irix sigaltstack bug
22563         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22564         whether sigaltstack uses wrong end of stack_t (copied in part from
22565         libsigsegv).
22566         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22567         Irix bug, without requiring an over-allocation.
22568         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22569         bug.
22570
22571         fopen: document mingw bug on directories
22572         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22573         not allowing a stream visiting a directory, even though reading
22574         from such a stream is not portable.
22575
22576 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22577
22578         * lib/poll.c: Rewrite.
22579         * modules/poll: Depend on alloca.
22580
22581 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22582
22583         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22584         instead define prototypes for a full set of wrappers.  Ensure
22585         that Cygwin does not use the compatibility code, which is only
22586         for MinGW.
22587         * lib/winsock.c: New.
22588         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22589         * modules/sys_socket: Add lib/winsock.c.
22590
22591         * modules/poll-tests: Add errno and perror.
22592         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22593
22594 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22595
22596         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22597
22598 2008-09-23  Bruno Haible  <bruno@clisp.org>
22599
22600         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22601         * doc/glibc-functions/*: Likewise.
22602
22603 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22604
22605         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22606         success.
22607
22608 2008-09-22  Eric Blake  <ebb9@byu.net>
22609             Bruno Haible  <bruno@clisp.org>
22610
22611         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22612         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22613         supply %A but mishandle pseudo-NaN.
22614         Reported by Simon Josefsson.
22615
22616 2008-09-21  Bruno Haible  <bruno@clisp.org>
22617
22618         * tests/test-lock.c (main): Tweak skip message.
22619         * tests/test-tls.c (main): Likewise.
22620
22621 2008-09-21  Bruno Haible  <bruno@clisp.org>
22622
22623         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22624         whether 'struct sigaction' has sa_sigaction here...
22625         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22626         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22627
22628 2008-09-21  Bruno Haible  <bruno@clisp.org>
22629
22630         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22631         section.
22632         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22633         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22634         the new section.
22635         (Support for obsolete systems lacking POSIX:2001): New section.
22636         (String handling <string.h>): Move strdup to the new section.
22637         Suggested by Simon Josefsson and Paolo Bonzini.
22638
22639 2008-09-21  Bruno Haible  <bruno@clisp.org>
22640
22641         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22642         exponents in %e and %g results on 'long double'. Needed for mingw's
22643         improved *printf functions.
22644         * tests/test-vasprintf-posix.c (test_function): Likewise.
22645         * tests/test-snprintf-posix.h (test_function): Likewise.
22646         * tests/test-sprintf-posix.h (test_function): Likewise.
22647         Reported by Eric Blake.
22648
22649 2008-09-21  Bruno Haible  <bruno@clisp.org>
22650
22651         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22652         * tests/test-sprintf-posix.h (test_function): Likewise.
22653
22654 2008-09-21  Bruno Haible  <bruno@clisp.org>
22655
22656         * modules/getpass (Depends-on): Add strdup-posix.
22657
22658         New module 'strdup-posix'.
22659         * modules/strdup-posix: New file.
22660         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22661         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22663         REPLACE_STRDUP.
22664         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22665         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22667         strdup-posix.
22668
22669         * modules/strdup (Depends-on): Remove malloc-posix.
22670
22671 2008-09-20  Bruno Haible  <bruno@clisp.org>
22672
22673         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22674         Wildenhues.
22675
22676 2008-09-20  Bruno Haible  <bruno@clisp.org>
22677
22678         Ensure that wint_t gets defined on IRIX 5.3.
22679         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22680         * lib/wctype.in.h (wint_t): Likewise.
22681         (__wctype_wint_t): Remove type.
22682         (isw*): Use wint_t instead of __wctype_wint_t.
22683         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22684         * modules/wchar (Files): Add m4/wint_t.m4.
22685         (Makefile.am): Substitute HAVE_WINT_T.
22686         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22687         * tests/test-wctype.c: Check that wint_t is defined.
22688         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22689         * doc/posix-headers/wctype.texi: Likewise.
22690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22691
22692 2008-09-18  Bruno Haible  <bruno@clisp.org>
22693
22694         * gnulib-tool (func_exit): Update comment.
22695
22696 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22697
22698         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22699         assumes strdup exists and does not depend on strdup to return
22700         ENOMEM on out of memory conditions.
22701
22702 2008-09-18  Bruno Haible  <bruno@clisp.org>
22703
22704         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
22705         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22706         digits for the exponent.
22707
22708 2008-09-18  Jim Meyering  <meyering@redhat.com>
22709             Bruno Haible  <bruno@clisp.org>
22710
22711         * lib/vasnprintf.c (decimal_point_char): Define also if
22712         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22713
22714 2008-09-16  Bruno Haible  <bruno@clisp.org>
22715         and Eric Blake  <ebb9@byu.net>
22716
22717         vasnprintf: support Irix 5.3
22718         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22719         that mishandle long double infinity.
22720         Reported by Tom G. Christensen.
22721
22722 2008-09-16  Bruno Haible  <bruno@clisp.org>
22723
22724         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22725         Solaris 9.
22726         * doc/glibc-functions/alphasort.texi: Likewise.
22727         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22728
22729 2008-09-16  Jim Meyering  <meyering@redhat.com>
22730
22731         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22732         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22733         a umask modification leak out of a subshell.  Otherwise, the
22734         opensolaris /bin/sh would be accepted and thus cause unwarranted
22735         failures in the coreutils test suite.
22736
22737 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22738
22739         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22740         to succeed.
22741
22742 2008-09-16  Jim Meyering  <meyering@redhat.com>
22743
22744         avoid spurious test failure when library is built without ACL support
22745         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22746         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22747         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22748         * tests/test-copy-acl.sh: Likewise.
22749
22750 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22751
22752         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22753         based on character occurrence counts.
22754
22755 2008-09-15  Eric Blake  <ebb9@byu.net>
22756
22757         tests: avoid some compiler warnings
22758         * tests/test-memchr.c (main): Pass NULL indirectly.
22759         * tests/test-closein.c (main): Avoid unused variable.
22760
22761 2008-09-15  Bruno Haible  <bruno@clisp.org>
22762
22763         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22764         are missing on OpenBSD 4.0 individually.
22765         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22766
22767 2008-09-15  Bruno Haible  <bruno@clisp.org>
22768
22769         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22770         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22771         * doc/posix-functions/perror.texi: Likewise.
22772         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22773         is missing.
22774         Reported by Eric Blake.
22775
22776         * lib/errno.in.h: Use replacement values >= 2000.
22777         Reported by Eric Blake.
22778
22779 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22780
22781         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22782         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22783         limit.
22784         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22785         compareseq was aborted.
22786
22787 2008-09-14  Bruno Haible  <bruno@clisp.org>
22788
22789         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22790         yvec_edit_count.
22791         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22792         (fstrcmp_bounded): Simplify result computation accordingly.
22793
22794 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22795
22796         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22797         (fstrcmp): Define in terms of fstrcmp_bounded.
22798         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22799         lower_bound argument.
22800         Return quickly if the result is certainly < lower_bound.
22801         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22802
22803 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22804
22805         * lib/diffseq.h (EARLY_ABORT): New macro.
22806         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22807         evaluates to true.
22808
22809 2008-09-14  Bruno Haible  <bruno@clisp.org>
22810
22811         * modules/perror-tests: New file.
22812         * tests/test-perror.sh: New file.
22813         * tests/test-perror.c: New file.
22814
22815         New module 'perror'.
22816         * lib/stdio.in.h (perror): New declaration.
22817         * lib/perror.c: New file.
22818         * m4/perror.m4: New file.
22819         * modules/perror: New file.
22820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22821         * doc/posix-functions/perror.texi: Mention the perror module.
22822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22823         REPLACE_PERROR.
22824         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22825         REPLACE_PERROR.
22826
22827 2008-09-14  Bruno Haible  <bruno@clisp.org>
22828
22829         * modules/stdio (Makefile.am): Reorder to match the order in
22830         lib/stdio.in.h.
22831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22832
22833 2008-09-13  Bruno Haible  <bruno@clisp.org>
22834
22835         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22836
22837 2008-09-13  Bruno Haible  <bruno@clisp.org>
22838
22839         Extend strerror to cover the added errno values.
22840         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22841         (rpl_strerror): Provide error messages for the added errno values and
22842         for the WSA* values.
22843         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22844         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22845         strerror.
22846         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22847         * modules/strerror (Depends-on): Add errno.
22848         * doc/posix-functions/strerror.texi: Document the change.
22849         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22850         and EOVERFLOW.
22851
22852 2008-09-13  Bruno Haible  <bruno@clisp.org>
22853
22854         * modules/EOVERFLOW: Remove file.
22855         * m4/eoverflow.m4: Remove file.
22856         * modules/EOVERFLOW-tests: Remove file.
22857         * tests/test-EOVERFLOW.c: Remove file.
22858         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22859         * modules/ftell (Depends-on): Likewise.
22860         * modules/getdelim (Depends-on): Likewise.
22861         * modules/getugroups (Depends-on): Likewise.
22862         * modules/poll (Depends-on): Likewise.
22863         * modules/snprintf (Depends-on): Likewise.
22864         * modules/sprintf-posix (Depends-on): Likewise.
22865         * modules/vasnprintf (Depends-on): Likewise.
22866         * modules/vasprintf (Depends-on): Likewise.
22867         * modules/vfprintf-posix (Depends-on): Likewise.
22868         * modules/vsnprintf (Depends-on): Likewise.
22869         * modules/vsprintf-posix (Depends-on): Likewise.
22870         * modules/xvasprintf (Depends-on): Likewise.
22871         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22872         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22873         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22874         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22875         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22876         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22877         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22878         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22879         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22880         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22881         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22882         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22883         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22884         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22885         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22886         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22887         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22888         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22889         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22890         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22891         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22892         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22893         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22894         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22895         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22896         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22897         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22898         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22899         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22900         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22901         * MODULES.html.sh: Remove EOVERFLOW.
22902         * NEWS: Mention the change.
22903
22904 2008-09-13  Bruno Haible  <bruno@clisp.org>
22905
22906         * modules/errno-tests: New file.
22907         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22908
22909         * lib/errno.in.h: New file.
22910         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22911         * modules/errno: New file.
22912         * doc/posix-headers/errno.texi: Update documentation.
22913         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22914
22915 2008-09-13  Bruno Haible  <bruno@clisp.org>
22916
22917         * tests/test-poll.c: Use #if for native Windows, rather than testing
22918         __MSVCRT__.
22919
22920 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22921             Bruno Haible  <bruno@clisp.org>
22922
22923         * lib/glob.c: Don't include <pwd.h> on native Windows.
22924         (WINDOWS32): New macro.
22925         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22926
22927 2008-09-13  Bruno Haible  <bruno@clisp.org>
22928
22929         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22930         (ETIMEDOUT): Remove macro.
22931         (glthread_cond_timedwait_multithreaded): New declaration.
22932         (glthread_cond_timedwait): Use it.
22933         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22934         (glthread_cond_timedwait_multithreaded): New function.
22935
22936 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22937
22938         * modules/poll-tests: Do not check for io.h.
22939         * tests/test-poll.c: Check for __MSVCRT__ instead.
22940
22941 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22942
22943         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22944         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22945         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22946
22947 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22948
22949         * modules/poll-tests: New.
22950         * tests/test-poll.c: New.
22951
22952 2008-09-12  Eric Blake  <ebb9@byu.net>
22953
22954         frexp: test for NetBSD failure on -0.0
22955         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22956         not all, bugs from NetBSD 3.0 have been fixed.
22957         * doc/posix-functions/frexp.texi (frexp): Document bug.
22958         Reported by Thomas Klausner.
22959
22960         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22961         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22962         literal -0.0.
22963         Reported by Jonathan C. Patschke <jp@centtech.com>.
22964
22965 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22966
22967         * lib/glthread/cond.h: Use dummy implementation also if
22968         USE_WIN32_THREADS.
22969
22970 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22971
22972         * modules/fnmatch-posix (License): Change to LGPLv2+.
22973         * modules/fnmatch-gnu (License): Likewise.
22974
22975 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22976
22977         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22978
22979 2008-09-11  Jim Meyering  <meyering@redhat.com>
22980
22981         * users.txt: Add gtk-vnc.
22982
22983 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22984
22985         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22986         rotate amounts.
22987
22988         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22989         required for 16-bit and 8-bit rotates.
22990         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22991         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22992         UINT8_MAX instead of hard-coded constants.
22993         Suggested by Paul Eggert.
22994
22995 2008-09-07  Bruno Haible  <bruno@clisp.org>
22996
22997         * tests/test-striconveh.c (main): Check behaviour when converting from
22998         UTF-7.
22999
23000         Make striconveh work better with stateful encodings.
23001         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
23002         that iconv does not increment the inptr when returning -1/EINVAL.
23003
23004 2008-09-07  Bruno Haible  <bruno@clisp.org>
23005
23006         * build-aux/config.rpath: Update according to libtool-2.2.6.
23007         * build-aux/config.libpath: Likewise.
23008
23009 2008-09-06  Bruno Haible  <bruno@clisp.org>
23010
23011         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
23012         * lib/freadptr.c (freadptr): Likewise.
23013         * lib/freadseek.c (freadptrinc): Likewise.
23014         Reported by Simon Josefsson.
23015
23016 2008-09-06  Bruno Haible  <bruno@clisp.org>
23017
23018         * modules/freadptr (License): Change to LGPLv2+.
23019         * modules/freadseek (License): Likewise.
23020         Suggested by Eric Blake.
23021
23022         * modules/memchr2 (License): Change to LGPLv2+.
23023         Approved by Eric Blake.
23024
23025 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23026             Bruno Haible  <bruno@clisp.org>
23027
23028         Make gnulib-tool work with native 'sed' on AIX.
23029         * gnulib-tool (sed_noop): New variable.
23030         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
23031         func_add_or_update, func_create_testdir): Use it to initialize sed
23032         script variables.
23033         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23034
23035 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
23036             Bruno Haible  <bruno@clisp.org>
23037
23038         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
23039         also works after #include directives.
23040
23041 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
23042
23043         getdate.y: reject an out-of-range timezone value
23044         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
23045         the range [-24...+24].  When specified with only one or two digits,
23046         * tests/test-getdate.c: Tests for the fix.
23047         * doc/getdate.texi: Document this change.
23048
23049 2008-09-03  Bruno Haible  <bruno@clisp.org>
23050
23051         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
23052
23053 2008-09-02  Simon Josefsson  <simon@josefsson.org>
23054
23055         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
23056         <bruce.korb@gmail.com> with ideas from Ben Pfaff
23057         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
23058         Blake <ebb9@byu.net>.
23059
23060         * tests/test-bitrotate.c: Add more test vectors.
23061
23062 2008-09-02  Eric Blake  <ebb9@byu.net>
23063
23064         vasnprintf-posix: handle large precision via %.*d
23065         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
23066         when handling it ourselves.
23067         * tests/test-vasnprintf-posix.c (test_function): Add test.
23068         * tests/test-snprintf-posix.h (test_function): Likewise.
23069         * tests/test-sprintf-posix.h (test_function): Likewise.
23070         * tests/test-vasprintf-posix.c (test_function): Likewise.
23071         Reported by Alain Guibert.
23072
23073 2008-09-01  Eric Blake  <ebb9@byu.net>
23074
23075         c-stack: make configure-time check more robust
23076         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
23077         successful sigaction call.
23078         Reported by Tom G. Christensen.
23079
23080 2008-09-01  Bruno Haible  <bruno@clisp.org>
23081
23082         New module 'findprog-lgpl'.
23083         * modules/findprog-lgpl: New file.
23084         * lib/findprog-lgpl.c: New file.
23085         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
23086         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
23087         to decide whether to use strdup or xstrdup, concatenated_filename or
23088         xconcatenated_filename.
23089
23090 2008-09-01  Bruno Haible  <bruno@clisp.org>
23091
23092         Split module 'concat-filename' into 'concat-filename' (LGPL) and
23093         'xconcat-filename' (GPL).
23094         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
23095         (License): Change to LGPLv2+.
23096         * modules/xconcat-filename: New file.
23097         * lib/concat-filename.h (concatenated_filename): Change specification.
23098         (xconcatenated_filename): New declaration.
23099         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
23100         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
23101         memory situations.
23102         * lib/xconcat-filename.c: New file.
23103         * NEWS: Mention the change.
23104         * lib/findprog.c: Include concat-filename.h, not filename.h.
23105         (find_in_path): Use xconcatenated_filename instead of
23106         concatenated_filename.
23107         * lib/javacomp.c: Include concat-filename.h, not filename.h.
23108         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23109         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23110         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23111         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
23112         instead of concatenated_filename.
23113         * lib/javaexec.c: Include concat-filename.h, not filename.h.
23114         (execute_java_class): Use xconcatenated_filename instead of
23115         concatenated_filename.
23116         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
23117         * modules/javacomp (Depends-on): Likewise.
23118         * modules/javaexec (Depends-on): Likewise.
23119
23120 2008-09-01  Bruno Haible  <bruno@clisp.org>
23121
23122         Split module 'filename' into 'filename' and 'concat-filename'.
23123         * modules/filename: Keep only lib/filename.h.
23124         (License): Change to LGPLv2+.
23125         * modules/concat-filename: New file, extracted from modules/filename.
23126         * lib/filename.h (concatenated_filename): Remove declaration.
23127         * lib/concat-filename.h: New file, extracted from lib/filename.h.
23128         * lib/concat-filename.c: Include concat-filename.h.
23129         * NEWS: Mention the change.
23130
23131 2008-09-01  Simon Josefsson  <simon@josefsson.org>
23132
23133         * lib/bitrotate.h (rotl8, rotr8): Add.
23134
23135         * modules/bitrotate (configure.ac): Need
23136         AC_REQUIRE([AC_C_INLINE]).
23137         (Description): Mention stdint.h.  Reported by Bruno Haible
23138         <bruno@clisp.org>.
23139
23140         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
23141         Paolo Bonzini <bonzini@gnu.org>.
23142
23143 2008-08-31  Bruno Haible  <bruno@clisp.org>
23144
23145         Assume Solaris specific bi-arch conventions on Solaris systems.
23146         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
23147         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
23148         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
23149         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
23150         like acl_libdirstem.
23151         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
23152         acl_libdirstem.
23153         * NEWS: Mention the change.
23154         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
23155
23156 2008-08-31  Jim Meyering  <meyering@redhat.com>
23157
23158         * lib/strftime.h: Add comments describing the two added arguments.
23159
23160         remove duplicate #include directives
23161         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
23162         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
23163
23164 2008-08-31  Bruno Haible  <bruno@clisp.org>
23165
23166         New module 'sigpipe-die'.
23167         * modules/sigpipe-die: New file.
23168         * lib/sigpipe-die.h: New file.
23169         * lib/sigpipe-die.c: New file.
23170         * MODULES.html.sh (Signal handling): Add sigpipe-die.
23171
23172 2008-08-31  Bruno Haible  <bruno@clisp.org>
23173
23174         Don't override previously installed signal handlers.
23175         * lib/fatal-signal.c (saved_sigactions): New variable.
23176         (uninstall_handlers): Reset the signal to the saved handler, not
23177         to SIG_DFL (except when ignored).
23178         (install_handlers): Save the previous handlers.
23179
23180 2008-08-30  Bruno Haible  <bruno@clisp.org>
23181
23182         * gnulib-tool (func_reset_sigpipe): New function.
23183         (func_get_automake_snippet, func_modules_transitive_closure,
23184         func_import): Invoke it before a join command that reads from stdin,
23185         to avoid "echo: write error: Broken pipe" error messages on stderr.
23186         Reported by Sam Steingold <sds@gnu.org>.
23187
23188 2008-08-30  Bruno Haible  <bruno@clisp.org>
23189
23190         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23191         Code copied from m4/open.m4.
23192         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23193         access and the filename ends in a slash. Code copied from lib/open.c.
23194         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23195         * tests/test-fopen.c (main): Check against bug with trailing slash.
23196
23197 2008-08-29  Bruno Haible  <bruno@clisp.org>
23198
23199         Avoid some "gcc -pedantic" warnings.
23200         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23201         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23202         * lib/dirent.in.h: Likewise.
23203         * lib/fcntl.in.h: Likewise.
23204         * lib/float.in.h: Likewise.
23205         * lib/iconv.in.h: Likewise.
23206         * lib/inttypes.in.h: Likewise.
23207         * lib/locale.in.h: Likewise.
23208         * lib/math.in.h: Likewise.
23209         * lib/netinet_in.in.h: Likewise.
23210         * lib/search.in.h: Likewise.
23211         * lib/signal.in.h: Likewise.
23212         * lib/stdarg.in.h: Likewise.
23213         * lib/stdint.in.h: Likewise.
23214         * lib/stdio.in.h: Likewise.
23215         * lib/stdlib.in.h: Likewise.
23216         * lib/string.in.h: Likewise.
23217         * lib/strings.in.h: Likewise.
23218         * lib/sys_select.in.h: Likewise.
23219         * lib/sys_socket.in.h: Likewise.
23220         * lib/sys_stat.in.h: Likewise.
23221         * lib/sys_time.in.h: Likewise.
23222         * lib/sysexits.in.h: Likewise.
23223         * lib/time.in.h: Likewise.
23224         * lib/unistd.in.h: Likewise.
23225         * lib/wchar.in.h: Likewise.
23226         * lib/wctype.in.h: Likewise.
23227         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23228         * modules/fchdir (Makefile.am): Likewise.
23229         * modules/fcntl (Makefile.am): Likewise.
23230         * modules/float (Makefile.am): Likewise.
23231         * modules/iconv_open (Makefile.am): Likewise.
23232         * modules/inttypes (Makefile.am): Likewise.
23233         * modules/locale (Makefile.am): Likewise.
23234         * modules/math (Makefile.am): Likewise.
23235         * modules/netinet_in (Makefile.am): Likewise.
23236         * modules/search (Makefile.am): Likewise.
23237         * modules/signal (Makefile.am): Likewise.
23238         * modules/stdarg (Makefile.am): Likewise.
23239         * modules/stdint (Makefile.am): Likewise.
23240         * modules/stdio (Makefile.am): Likewise.
23241         * modules/stdlib (Makefile.am): Likewise.
23242         * modules/string (Makefile.am): Likewise.
23243         * modules/strings (Makefile.am): Likewise.
23244         * modules/sys_select (Makefile.am): Likewise.
23245         * modules/sys_socket (Makefile.am): Likewise.
23246         * modules/sys_stat (Makefile.am): Likewise.
23247         * modules/sys_time (Makefile.am): Likewise.
23248         * modules/sysexits (Makefile.am): Likewise.
23249         * modules/time (Makefile.am): Likewise.
23250         * modules/unistd (Makefile.am): Likewise.
23251         * modules/wchar (Makefile.am): Likewise.
23252         * modules/wctype (Makefile.am): Likewise.
23253         Reported by Reuben Thomas <rrt@sc3d.org>.
23254
23255 2008-08-29  Bruno Haible  <bruno@clisp.org>
23256
23257         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23258         any more.
23259
23260 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23261
23262         * MODULES.html.sh (Misc): Add bitrotate.
23263
23264         * modules/bitrotate: New file.
23265
23266         * lib/bitrotate.h: New file.
23267
23268         * modules/bitrotate-tests: New file.
23269
23270         * tests/test-bitrotate.c: New file.
23271
23272         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23273         on the bitrotate module.
23274
23275         * lib/arctwo.c: Use new bitrotate module.
23276
23277 2008-08-29  Jim Meyering  <meyering@redhat.com>
23278
23279         bootstrap: merge changes from coreutils
23280         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23281         of copied files.  Remove a kludge, now that this is fixed.
23282         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23283         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23284         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23285
23286 2008-08-29  Bruno Haible  <bruno@clisp.org>
23287
23288         * MODULES.html.sh: Remove --cvs-urls option.
23289
23290 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23291
23292         maint.mk: adjust to file name change
23293         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23294
23295 2008-08-28  Jim Meyering  <meyering@redhat.com>
23296
23297         * modules/getndelim2 (License): Relicense to LGPLv2+.
23298         Approved by Richard Stallman for the version of 1995, and by
23299         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23300
23301 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23302
23303         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23304         dummy if one is not available.  Do not touch them if
23305         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23306         (getc_maybe_unlocked): New.
23307         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23308
23309 2008-08-26  Eric Blake  <ebb9@byu.net>
23310
23311         doc/INSTALL: resync from autoconf
23312         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23313         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23314         moving...
23315         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23316         * INSTALL: Regenerate.
23317         * INSTALL.ISO: New file.
23318         * INSTALL.UTF-8: Likewise.
23319
23320 2008-08-26  Jim Meyering  <meyering@redhat.com>
23321
23322         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23323         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23324         these definitions conditional, so that they may be overridden, too.
23325
23326 2008-08-26  Bruno Haible  <bruno@clisp.org>
23327
23328         Generate INSTALL file variants with prettier quotes.
23329         * doc/Makefile (INSTALL_PRELUDE): New macro.
23330         (INSTALL): Use it.
23331         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23332
23333 2008-08-26  Bruno Haible  <bruno@clisp.org>
23334
23335         Run makeinfo in an English locale.
23336         * doc/Makefile (MAKEINFO): New variable.
23337
23338 2008-08-26  Bruno Haible  <bruno@clisp.org>
23339
23340         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23341         Suggested by Eric Blake.
23342
23343 2008-08-25  Bruno Haible  <bruno@clisp.org>
23344
23345         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23346
23347 2008-08-25  Eric Blake  <ebb9@byu.net>
23348
23349         c-stack: test that stack overflow can be caught
23350         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23351         that platform allows handling stack overflow; at least OS/2 EMX
23352         has sigaltstack, but crashes before transferring control to
23353         handler on stack overflow.
23354         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23355         check for HAVE_STACK_OVERFLOW_HANDLING.
23356         Reported by Elbert Pol.
23357
23358 2008-08-25  Bruno Haible  <bruno@clisp.org>
23359
23360         * doc/posix-functions/strftime.texi: Fix description of strftime
23361         module.
23362
23363 2008-08-24  Bruno Haible  <bruno@clisp.org>
23364
23365         * tests/uniwidth/test-uc_width2.c: New file.
23366         * tests/uniwidth/test-uc_width2.sh: New file.
23367         * modules/uniwidth/width-tests (Files): Add the new files.
23368         (TESTS): Add uniwidth/test-uc_width2.sh.
23369         (TESTS_ENVIRONMENT): New variable.
23370         (check_PROGRAMS): Add test-uc_width2.
23371         (test_uc_width2_SOURCES): New variable.
23372
23373         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23374         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23375         not 0x00AB.
23376         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23377
23378 2008-08-22  Eric Blake  <ebb9@byu.net>
23379
23380         test-lock, test-tls: mention why a test is skipped
23381         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23382         skipped.
23383         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23384
23385         count-one-bits: relax license
23386         * modules/count-one-bits (License): Relicense to LGPLv2+.
23387         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23388
23389 2008-08-22  Andreas Schwab  <schwab@suse.de>
23390
23391         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23392         Remove spurious space in assignment.
23393
23394 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23395
23396         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23397         Paul Eggert <eggert@CS.UCLA.EDU>.
23398
23399 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23400
23401         * modules/gettext: Add m4/threadlib.m4.
23402
23403 2008-08-19  Eric Blake  <ebb9@byu.net>
23404
23405         test-c-stack: fix compilation failure on FreeBSD 5.0
23406         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23407         headers before <sys/resource.h>.
23408         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23409         the bug.
23410         Reported by Nelson H. F. Beebe.
23411
23412         strverscmp: migrate from "strverscmp.h" to <string.h>
23413         * modules/string (Makefile.am): Add new hooks.
23414         * modules/strverscmp (Files): Remove strverscmp.h.
23415         (Depends-on): Add string.
23416         (configure.ac): Add indicator.
23417         (Include): Mention new header.
23418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23419         defaults.
23420         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23421         results.
23422         * lib/strverscmp.h: Delete.
23423         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23424         * tests/test-strverscmp.c (includes): Adjust client.
23425         * lib/check-version.c (includes): Likewise.
23426         * NEWS: Document the change.
23427
23428         strverscmp: add unit test
23429         * modules/strverscmp-tests: New file.
23430         * tests/test-strverscmp.c: Likewise.
23431
23432 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23433
23434         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23435         regarding Windows crypto stuff, from Mono.
23436
23437 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23438
23439         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23440         if present, for intel RND.  Return error on failures.
23441
23442 2008-08-18  Ben Pfaff  <blp@gnu.org>
23443
23444         gitlog-to-changelog: give better diagnostic for failed pipe-open
23445         * build-aux/gitlog-to-changelog: Improve error message: suggest
23446         that the version of Git may be too old.
23447
23448 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23449
23450         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23451         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23452
23453 2008-08-18  Bruno Haible  <bruno@clisp.org>
23454
23455         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23456         pthread_in_use().
23457
23458 2008-08-18  Bruno Haible  <bruno@clisp.org>
23459
23460         * lib/glthread/threadlib.c: Include <pthread.h>.
23461
23462 2008-08-18  Bruno Haible  <bruno@clisp.org>
23463
23464         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23465         glthread_recursive_lock_* macros.
23466         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23467         Fix syntax error.
23468
23469 2008-08-18  Bruno Haible  <bruno@clisp.org>
23470
23471         * lib/glthread/thread.c: Avoid forcing a context switch right after
23472         thread creation.
23473
23474 2008-08-17  Bruno Haible  <bruno@clisp.org>
23475
23476         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23477         * lib/glthread/thread.h: Provide Win32 specific implementation.
23478         * modules/thread (Files): Add lib/glthread/thread.c.
23479         (Depends-on): Add lock.
23480         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23481
23482 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23483
23484         New module 'yield'.
23485         * modules/yield: New file.
23486         * lib/glthread/yield.h: New file.
23487         * m4/yield.m4: New file.
23488         * MODULES.html.sh (Multithreading): Add yield.
23489
23490 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23491
23492         New module 'thread'.
23493         * modules/thread: New file.
23494         * lib/glthread/thread.h: New file.
23495         * m4/thread.m4: New file.
23496         * MODULES.html.sh (Multithreading): Add thread.
23497
23498 2008-08-17  Bruno Haible  <bruno@clisp.org>
23499
23500         * lib/glthread/lock.h: Include <stdlib.h> always.
23501         * lib/glthread/tls.h: Likewise.
23502         * lib/glthread/cond.h: Likewise.
23503
23504 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23505
23506         New module 'cond'.
23507         * modules/cond: New file.
23508         * lib/glthread/cond.h: New file.
23509         * lib/glthread/cond.c: New file.
23510         * m4/cond.m4: New file.
23511         * MODULES.html.sh (Multithreading): Add cond.
23512
23513 2008-08-16  Eric Blake  <ebb9@byu.net>
23514
23515         c-stack: fix regression on Irix 5.3 from 2008-06-21
23516         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23517         sa_sigaction...
23518         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23519         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23520         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23521         * modules/signal (Makefile.am): Use the value.
23522         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23523         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23524         * doc/posix-headers/signal.texi (signal.h): Document this
23525         portability issue.
23526         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23527         Reported by Tom G. Christensen.
23528
23529 2008-08-17  Bruno Haible  <bruno@clisp.org>
23530
23531         New module 'threadlib'.
23532         * modules/threadlib: New file.
23533         * lib/glthread/threadlib.c: New file, extracted from
23534         lib/glthread/lock.c.
23535         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23536         functions.
23537         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23538         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23539         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23540         macros.
23541         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23542         (gl_DISABLE_THREADS): Remove macro.
23543         * modules/lock (Files): Remove build-aux/config.rpath.
23544         (Depends-on): Remove havelib. Add threadlib.
23545         (configure.ac-early): Remove section.
23546         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23547         * modules/tls (Depends-on): Remove lock. Add threadlib.
23548         (Link): New section, copied from threadlib.
23549         * MODULES.html.sh (Multithreading): Add threadlib.
23550
23551 2008-08-14  Bruno Haible  <bruno@clisp.org>
23552
23553         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23554         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23555         glthread_rwlock_unlock, glthread_rwlock_destroy,
23556         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23557         glthread_recursive_lock_destroy): Define as macros always.
23558         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23559         glthread_lock_lock.
23560         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23561         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23562         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23563         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23564         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23565         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23566         (glthread_recursive_lock_lock_func): Renamed from
23567         glthread_recursive_lock_lock.
23568         (glthread_recursive_lock_unlock_func): Renamed from
23569         glthread_recursive_lock_unlock.
23570         (glthread_recursive_lock_destroy_func): Renamed from
23571         glthread_recursive_lock_destroy.
23572
23573 2008-08-14  Bruno Haible  <bruno@clisp.org>
23574
23575         * lib/glthread/lock.h: Renamed from lib/lock.h.
23576         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23577         * lib/glthread/tls.h: Renamed from lib/tls.h.
23578         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23579         * lib/fstrcmp.c: Update includes.
23580         * lib/strsignal.c: Update includes.
23581         * modules/lock (Files, Makefile.am): Update.
23582         (Include): Change to "glthread/lock.h".
23583         * modules/tls (Files, Makefile.am): Update.
23584         (Include): Change to "glthread/tls.h".
23585         * tests/test-lock.c: Update includes.
23586         * tests/test-tls.c: Update includes.
23587         * NEWS: Mention the renamed header files.
23588
23589 2008-08-11  Jim Meyering  <meyering@redhat.com>
23590
23591         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23592
23593 2008-08-11  Eric Blake  <ebb9@byu.net>
23594
23595         test-c-stack: avoid C99-ism
23596         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23597         before statement.
23598         Reported by Alain Guibert.
23599
23600 2008-08-10  Jim Meyering  <meyering@redhat.com>
23601
23602         ensure that return value of uinttostr et al are not ignored
23603         * lib/inttostr.h (__GNUC_PREREQ): Define.
23604         (__attribute_warn_unused_result__): Define.
23605         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23606
23607 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23608
23609         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23610         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23611
23612 2008-08-07  Jim Meyering  <meyering@redhat.com>
23613
23614         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23615
23616         * modules/mkstemp (License): Relicense under LGPLv2+.
23617         * modules/tempname (License): Likewise.
23618
23619 2008-08-06  Bruno Haible  <bruno@clisp.org>
23620
23621         * lib/poll.c (poll): Further micro-optimization.
23622
23623 2008-08-06  Jim Meyering  <meyering@redhat.com>
23624
23625         inet_pton.c: use locale-independent tolower
23626         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23627         (inet_pton6): Use c_tolower rather than tolower.
23628         * modules/inet_pton (Depends-on): Add c-ctype.
23629
23630 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23631
23632         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23633         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23634
23635 2008-08-06  Jim Meyering  <meyering@redhat.com>
23636
23637         * modules/inet_pton (License): Relicense under LGPLv2+.
23638
23639 2008-08-03  Bruno Haible  <bruno@clisp.org>
23640
23641         Additional non-aborting API for lock and tls.
23642         * lib/lock.h: Include <errno.h>.
23643         (glthread_lock_init): New macro/function.
23644         (gl_lock_init): Define as wrapper around glthread_lock_init.
23645         (glthread_lock_lock): New macro/function.
23646         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23647         (glthread_lock_unlock): New macro/function.
23648         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23649         (glthread_lock_destroy): New macro/function.
23650         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23651         (glthread_rwlock_init): New macro/function.
23652         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23653         (glthread_rwlock_rdlock): New macro/function.
23654         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23655         (glthread_rwlock_wrlock): New macro/function.
23656         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23657         (glthread_rwlock_unlock): New macro/function.
23658         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23659         (glthread_rwlock_destroy): New macro/function.
23660         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23661         (glthread_recursive_lock_init): New macro/function.
23662         (gl_recursive_lock_init): Define as wrapper around
23663         glthread_recursive_lock_init.
23664         (glthread_recursive_lock_lock): New macro/function.
23665         (gl_recursive_lock_lock): Define as wrapper around
23666         glthread_recursive_lock_lock.
23667         (glthread_recursive_lock_unlock): New macro/function.
23668         (gl_recursive_lock_unlock): Define as wrapper around
23669         glthread_recursive_lock_unlock.
23670         (glthread_recursive_lock_destroy): New macro/function.
23671         (gl_recursive_lock_destroy): Define as wrapper around
23672         glthread_recursive_lock_destroy.
23673         (glthread_once): New macro/function.
23674         (gl_once): Define as wrapper around glthread_once.
23675         Update function declarations.
23676         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23677         glthread_rwlock_init. Return error code.
23678         (glthread_rwlock_rdlock_multithreaded): Renamed from
23679         glthread_rwlock_rdlock. Return error code.
23680         (glthread_rwlock_wrlock_multithreaded): Renamed from
23681         glthread_rwlock_wrlock. Return error code.
23682         (glthread_rwlock_unlock_multithreaded): Renamed from
23683         glthread_rwlock_unlock. Return error code.
23684         (glthread_rwlock_destroy_multithreaded): Renamed from
23685         glthread_rwlock_destroy. Return error code.
23686         (glthread_recursive_lock_init_multithreaded): Renamed from
23687         glthread_recursive_lock_init. Return error code.
23688         (glthread_recursive_lock_lock_multithreaded): Renamed from
23689         glthread_recursive_lock_lock. Return error code.
23690         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23691         glthread_recursive_lock_unlock. Return error code.
23692         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23693         glthread_recursive_lock_destroy. Return error code.
23694         (glthread_once_call): Make static.
23695         (glthread_once_multithreaded): Renamed from glthread_once.
23696         * lib/tls.h: Include <errno.h>.
23697         (glthread_tls_key_init): New macro/function.
23698         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23699         (glthread_tls_set): New macro/function.
23700         (gl_tls_set): Define as wrapper around glthread_tls_set.
23701         (glthread_tls_key_destroy): New macro/function.
23702         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23703         Update function declarations.
23704         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23705         glthread_tls_get.
23706         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23707
23708 2008-08-04  Eric Blake  <ebb9@byu.net>
23709
23710         gnumakefile: use space, not TAB, outside of targets
23711         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23712
23713 2008-08-02  Jim Meyering  <meyering@redhat.com>
23714
23715         getdate.y: avoid locale-dependent date parsing failure
23716         In Turkish locales, getdate would fail to recognize keywords
23717         containing a lowercase "i".  The solution is not to rely on
23718         locale-sensitive case-conversion.
23719         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23720         (lookup_word): Use c_toupper in place of toupper.
23721         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23722         Reported by Vefa Bicakci <bicave@superonline.com> in
23723         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23724         * modules/getdate (Depends-on): Add c-ctype.
23725
23726 2008-08-02  Bruno Haible  <bruno@clisp.org>
23727
23728         * gnulib-tool (func_import): When updating or creating a .gitignore
23729         file, prepend each added line with a slash, and ignore leading slashes
23730         from the existing lines.
23731         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23732
23733 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23734
23735         Portability fix for GNU make 3.79.1.
23736         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23737         versions do not understand.
23738
23739 2008-08-01  Bruno Haible  <bruno@clisp.org>
23740
23741         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23742         * tests/test-isnanf.h (zero): New variable.
23743         (main): Avoid literal -0.0f.
23744         * tests/test-isnand.h (zero): New variable.
23745         (main): Avoid literal -0.0.
23746         * tests/test-isnanl.h (zero): New variable.
23747         (main): Avoid literal -0.0L.
23748         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23749         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23750         -0.0, -0.0L.
23751         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23752         (test_signbitd): Avoid literal -0.0.
23753         (test_signbitl): Avoid literal -0.0L.
23754         * tests/test-ceilf1.c (zero): New variable.
23755         (main): Avoid literal -0.0f.
23756         * tests/test-ceill.c (zero): New variable.
23757         (main): Avoid literal -0.0L.
23758         * tests/test-floorf1.c (zero): New variable.
23759         (main): Avoid literal -0.0f.
23760         * tests/test-floorl.c (zero): New variable.
23761         (main): Avoid literal -0.0L.
23762         * tests/test-roundf1.c (zero): New variable.
23763         (main): Avoid literal -0.0f.
23764         * tests/test-round1.c (zero): New variable.
23765         (main): Avoid literal -0.0.
23766         * tests/test-roundl.c (zero): New variable.
23767         (main): Avoid literal -0.0L.
23768         * tests/test-truncf1.c (zero): New variable.
23769         (main): Avoid literal -0.0f.
23770         * tests/test-trunc1.c (zero): New variable.
23771         (main): Avoid literal -0.0.
23772         * tests/test-truncl.c (zero): New variable.
23773         (main): Avoid literal -0.0L.
23774         * tests/test-frexp.c (zero): New variable.
23775         (main): Avoid literal -0.0.
23776         * tests/test-frexpl.c (zero): New variable.
23777         (main): Avoid literal -0.0L.
23778         * tests/test-ldexpl.c (zero): New variable.
23779         (main): Avoid literal -0.0L.
23780         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23781         (zerod, zerol): New variables.
23782         (test_function): Avoid literals -0.0, -0.0L.
23783         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23784         (zerod, zerol): New variables.
23785         (test_function): Avoid literals -0.0, -0.0L.
23786         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23787         (zerod, zerol): New variables.
23788         (test_function): Avoid literals -0.0, -0.0L.
23789         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23790         (zerod, zerol): New variables.
23791         (test_function): Avoid literals -0.0, -0.0L.
23792         * tests/test-strtod.c (zero): New variable.
23793         (main): Avoid literal -0.0.
23794         Reported by Jonathan C. Patschke <jp@centtech.com>.
23795
23796 2008-07-31  Jim Meyering  <meyering@redhat.com>
23797
23798         sha256.h: correct definition of SHA224_DIGEST_SIZE
23799         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23800         Reported by Paulie Pena IV <paulie4@gmail.com>.
23801         Define as 224 / 8, rather than as a literal.
23802         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23803         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23804         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23805
23806 2008-07-31  Bruno Haible  <bruno@clisp.org>
23807
23808         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23809         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23810         Reported by Jonathan Patschke <jp@centtech.com>.
23811
23812 2008-07-31  Bruno Haible  <bruno@clisp.org>
23813
23814         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23815         Reported by Paolo Bonzini <bonzini@gnu.org>.
23816
23817 2008-07-30  Eric Blake  <ebb9@byu.net>
23818
23819         test-strtod: allow compilation without -lm
23820         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23821         Reported by Dennis Clarke <blastwave@gmail.com>.
23822
23823 2008-07-28  Jim Meyering  <meyering@redhat.com>
23824
23825         bootstrap: work also when there are no .po files in po/
23826         * build-aux/bootstrap (update_po_files): Complete the change
23827         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23828
23829 2008-07-27  Jim Meyering  <meyering@redhat.com>
23830
23831         * users.txt: Add zile.
23832
23833 2008-07-26  Ben Pfaff  <blp@gnu.org>
23834
23835         Add missing dependencies on new m4/exponent[fdl].m4 files.
23836         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23837         * modules/isnand-nolibm: Add m4/exponentd.m4.
23838         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23839         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23840         m4/isnan[fdl].m4, because the macros actually used moved.
23841         Reported by Jim Meyering.
23842
23843 2008-07-14  Ben Pfaff  <blp@gnu.org>
23844
23845         Add isinf module.
23846         * lib/isinf.c: New file.
23847         * lib/math.in.h: Define isinf macro if we have decided to replace
23848         it.
23849         * m4/isinf.m4: New file.
23850         * m4/math_h.m4: Initialize and substitute variables for isinf
23851         module.
23852         * modules/isinf: New file.
23853         * modules/isinf-tests: New file.
23854         * modules/math: Add substitutions for new module.
23855         * tests/test-isinf.c: New file.
23856         * doc/posix-functions/isinf.texi: Mention new module.
23857         * MODULES.html.sh: Mention new module.
23858
23859 2008-07-14  Ben Pfaff  <blp@gnu.org>
23860
23861         Factor out some macros for use by additional modules.
23862         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23863         exponentf.m4.
23864         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23865         exponentd.m4.
23866         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23867         file exponentl.m4.
23868         * m4/exponentf.m4: New file.
23869         * m4/exponentd.m4: New file.
23870         * m4/exponentl.m4: New file.
23871         * modules/isnanf: Use new file m4/exponentf.m4.
23872         * modules/isnand: Use new file m4/exponentd.m4.
23873         * modules/isnanl: Use new file m4/exponentl.m4.
23874
23875 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23876
23877         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23878         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23879         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23880         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23881
23882         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23883         readlink on platforms without PATH_MAX.
23884
23885 2008-07-21  Eric Blake  <ebb9@byu.net>
23886
23887         Warn, not fail, on stale version.
23888         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23889
23890         Don't allow installation with stale devel version number.
23891         * top/GNUmakefile (_is-install-target): New macro.
23892         (_curr-ver): Forbid installation with stale version number.
23893
23894 2008-07-20  Bruno Haible  <bruno@clisp.org>
23895
23896         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23897         TESTS_ENVIRONMENT.
23898         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23899
23900 2008-07-20  Bruno Haible  <bruno@clisp.org>
23901
23902         * lib/c-stack.h (c_stack_action): Add documentation.
23903         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23904
23905 2008-07-20  Bruno Haible  <bruno@clisp.org>
23906
23907         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23908         * modules/readlink (License): Likewise.
23909
23910 2008-07-17  Eric Blake  <ebb9@byu.net>
23911
23912         * modules/c-stack (Link): Fix typo.
23913
23914         Make c-stack use libsigsegv, when available.
23915         * modules/c-stack (Depends-on): Add libsigsegv.
23916         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23917         needed.
23918         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23919         (segv_handler, overflow_handler, c_stack_action)
23920         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23921         implementation when libsigsegv is available, but only when using
23922         the library is necessary.
23923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23924         comment, explaining why XSI check fails on Linux.
23925         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23926         * tests/test-c-stack2.sh: Tweak skip message.
23927         * NEWS: Document new link-time requirements.
23928
23929 2008-07-16  Eric Blake  <ebb9@byu.net>
23930
23931         c-stack: Expose false positives when not using libsigsegv.
23932         * modules/c-stack-tests (Files): Expand test.
23933         * tests/test-c-stack.c (main): Add means to conditionally trigger
23934         non-overflow SIGSEGV.
23935         * tests/test-c-stack2.sh: New file.
23936
23937 2008-07-14  Bruno Haible  <bruno@clisp.org>
23938
23939         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23940         Reported by Eric Blake.
23941
23942 2008-07-14  Sam Steingold  <sds@gnu.org>
23943             Bruno Haible  <bruno@clisp.org>
23944
23945         New module libsigsegv.
23946         * modules/libsigsegv: New file.
23947         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23948         modifications.
23949         * MODULES.html.sh (Signal handling): New section.
23950
23951 2008-07-14  Bruno Haible  <bruno@clisp.org>
23952
23953         * modules/unictype/ctype-* (Description): Add the word "function".
23954         Improves the resulting doc in MODULES.html.
23955
23956 2008-07-12  Ben Pfaff  <blp@gnu.org>
23957
23958         Add longlong module.
23959         * modules/longlong: New file.
23960
23961 2008-07-12  Bruno Haible  <bruno@clisp.org>
23962
23963         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23964         to empty.
23965
23966 2008-07-10  Ben Pfaff  <blp@gnu.org>
23967
23968         Add isnan module.
23969         * doc/posix-functions/isnan.texi: Mention new module.
23970         * lib/math.in.h: Define isnan macro if we have decided to replace
23971         it.
23972         * m4/isnan.m4: New file.
23973         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23974         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23975         also.
23976         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23977         redundancy.
23978         * m4/math_h.m4: Initialize and substitute variables for isnan
23979         module.
23980         * modules/isnan: New file.
23981         * modules/isnan-tests: New file.
23982         * modules/math: Add substitutions for new module.
23983         * tests/test-isnan.c: New file.
23984         * MODULES.html.sh: Mention new module.
23985
23986 2008-07-10  Ben Pfaff  <blp@gnu.org>
23987
23988         Add isnanf module.
23989         * lib/isnanf.m4: New file.
23990         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23991         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23992         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23993         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23994         * modules/isnanf: New file.
23995         * modules/isnanf-tests: New file.
23996         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23997         files.
23998         * tests/test-isnanf-nolibm.c: factored most of its contents into
23999         new file tests/test-isnanf.h.
24000         * tests/test-isnanf.h: New file.
24001         * tests/test-isnanf.c: New file.
24002         * MODULES.html.sh: Mention new module.
24003         * doc/glibc-functions/isnanf.texi: Mention new module.
24004
24005 2008-07-10  Ben Pfaff  <blp@gnu.org>
24006
24007         Add isnand module.
24008         * lib/isnand.h: New file.
24009         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
24010         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
24011         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
24012         functionality also.
24013         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
24014         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
24015         (gl_HAVE_ISNAND_IN_LIBM): New macro.
24016         * modules/isnand: New file.
24017         * modules/isnand-tests: New file.
24018         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
24019         files.
24020         * tests/test-isnand-nolibm.c: factored most of its contents into
24021         new file tests/test-isnand.h.
24022         * tests/test-isnand.h: New file.
24023         * tests/test-isnand.c: New file.
24024         * MODULES.html.sh: Mention new module.
24025
24026 2008-07-10  Ben Pfaff  <blp@gnu.org>
24027
24028         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
24029         * lib/isnand.h: Rename lib/isnand-nolibm.h.
24030         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
24031         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
24032         * modules/isnanf-nolibm: Update references to renamed files.
24033         * modules/isnand-nolibm: Likewise.
24034         * modules/isnanf-nolibm-tests: Likewise.
24035         * modules/isnand-nolibm-tests: Likewise.
24036         * lib/frexp.c: Likewise.
24037         * lib/isfinite.c: Likewise.
24038         * lib/signbitd.c: Likewise.
24039         * lib/signbitf.c: Likewise.
24040         * lib/vasnprintf.c: Likewise.
24041         * tests/test-ceilf1.c: Likewise.
24042         * tests/test-ceilf2.c: Likewise.
24043         * tests/test-floorf1.c: Likewise.
24044         * tests/test-floorf2.c: Likewise.
24045         * tests/test-frexp.c: Likewise.
24046         * tests/test-round1.c: Likewise.
24047         * tests/test-round2.c: Likewise.
24048         * tests/test-roundf1.c: Likewise.
24049         * tests/test-strtod.c: Likewise.
24050         * tests/test-trunc1.c: Likewise.
24051         * tests/test-trunc2.c: Likewise.
24052         * tests/test-truncf1.c: Likewise.
24053         * tests/test-truncf2.c: Likewise.
24054         * NEWS: Mention the renamed header files.
24055
24056 2008-07-11  Jim Meyering  <meyering@redhat.com>
24057
24058         vc-list-files: make the last-resort awk code more portable
24059         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
24060         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
24061         does not support it.
24062
24063 2008-07-10  Eric Blake  <ebb9@byu.net>
24064
24065         Work with tar's bootstrap.
24066         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
24067         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
24068         an m4 comment.
24069
24070 2008-07-09  Jim Meyering  <meyering@redhat.com>
24071
24072         posix-shell.m4: fix typo that made this test malfunction
24073         * m4/posix-shell.m4: Remove capitalization in variable name.
24074
24075 2008-07-08  Bruno Haible  <bruno@clisp.org>
24076
24077         * m4/onceonly.m4: Update comments.
24078         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24079
24080 2008-07-04  Jim Meyering  <meyering@redhat.com>
24081
24082         * users.txt: Add vc-dwim.
24083         (bison, coreutils): Use the gitweb URL.
24084
24085 2008-07-03  Jim Meyering  <meyering@redhat.com>
24086
24087         * users.txt: Add libffcall.  From Sam Steingold.
24088
24089 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
24090
24091         getdate.y: do not ignore TZ with relative day, month or year offset
24092         * lib/getdate.y (get_date): Move the tz-handling block to follow the
24093         relative-date-handling, since otherwise, the latter would clobber the
24094         sole output (an updated Start value) of the tz-handling block.
24095         * tests/test-getdate.c: Tests for the fix
24096
24097 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24098
24099         Recognize 'foo_LIBRARIES += libgnu.a'.
24100         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
24101         makefile snippet has already specified an installation location,
24102         also using '+='.
24103
24104 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
24105
24106         getdate.y: factor out common actions
24107         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
24108         Use them in place of open-coded actions.
24109
24110 2008-07-01  Simon Josefsson  <simon@josefsson.org>
24111
24112         Add self-test for getdate module.
24113         * modules/getdate-tests: New file.
24114         * tests/test-getdate.c: New file.
24115
24116 2008-06-29  Bruno Haible  <bruno@clisp.org>
24117
24118         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
24119         .gitignore.
24120         Reported by Sylvain Beucler <beuc@beuc.net>.
24121
24122 2008-06-29  Bruno Haible  <bruno@clisp.org>
24123
24124         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
24125         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
24126
24127 2008-06-29  Bruno Haible  <bruno@clisp.org>
24128
24129         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
24130         EXTRA_DIST.
24131         Reported by Sylvain Beucler <beuc@beuc.net>.
24132
24133 2008-06-26  Jim Meyering  <meyering@redhat.com>
24134
24135         make several modules depend on the "open" module
24136         This provides slightly increased consistency when opening-for-write
24137         the name of a non-directory spelled with a trailing slash.
24138         * modules/chdir-safer: Likewise.
24139         * modules/chown: Likewise.
24140         * modules/clean-temp: Likewise.
24141         * modules/copy-file: Likewise.
24142         * modules/fchdir: Likewise.
24143         * modules/fcntl-safer: Likewise.
24144         * modules/pipe: Likewise.
24145         * modules/utime: Likewise.
24146         Prompted by Eric Blake and Bruno Haible.
24147
24148 2008-06-24  Andreas Schwab  <schwab@suse.de>
24149
24150         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
24151         literals can be used as initializers for global variables.
24152
24153 2008-06-23  Eric Blake  <ebb9@byu.net>
24154
24155         Make gnulib-cache.m4 easier to diff.
24156         * gnulib-tool (func_import): Allow newlines when reading cached
24157         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
24158
24159 2008-06-23  Bruno Haible  <bruno@clisp.org>
24160
24161         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
24162         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
24163         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
24164         m4/signalblocking.m4.
24165         (gl_PREREQ_SIGACTION): Don't invoke it.
24166         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
24167         gl_PREREQ_SIG_HANDLER_H.
24168         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24169         Don't check for sigaction here.
24170
24171 2008-06-23  Bruno Haible  <bruno@clisp.org>
24172
24173         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
24174         (install_handlers): Don't set the SA_RESETHAND flag.
24175
24176 2008-06-23  Bruno Haible  <bruno@clisp.org>
24177
24178         * m4/sigaction.m4: Comment fixes.
24179         * lib/signal.in.h: Likewise.
24180
24181 2008-06-23  Eric Blake  <ebb9@byu.net>
24182
24183         Fix typo.
24184         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24185
24186         Avoid SA_ namespace.
24187         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24188         Reported by Ralf Wildenhues.
24189
24190         Avoid test failure due to SA_RESTORER.
24191         * tests/test-sigaction.c (SA_MASK): New macro.
24192         (main): Avoid failing due to extension flags being set.
24193         Reported by Jim Meyering.
24194
24195         Revert use of sig-handler.h in sigprocmask.c.
24196         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24197         it requires the existence of struct sigaction.
24198         * lib/sigprocmask.c (handler_t): Restore typedef.
24199         (rpl_signal, old_handlers): Use local type.
24200
24201 2008-06-22  Bruno Haible  <bruno@clisp.org>
24202
24203         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24204         conditionally.
24205         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24206
24207 2008-06-22  Bruno Haible  <bruno@clisp.org>
24208
24209         * doc/posix-functions/siginterrupt.texi: Move note.
24210
24211         * lib/signal.in.h (SA_RESTART): New macro.
24212         * lib/sigaction.c: Update comment.
24213
24214         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24215
24216         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24217         (gl_PREREQ_SIGPROCMASK): Invoke it.
24218         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24219
24220         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24221
24222         * lib/sigprocmask.c: Update a comment.
24223
24224 2008-06-21  Eric Blake  <ebb9@byu.net>
24225
24226         Use sigaction module rather than signal().
24227         * modules/c-stack (Depends-on): Add sigaction.
24228         * modules/fatal-signal (Depends-on): Likewise.
24229         * modules/nanosleep (Depends-on): Likewise.
24230         * modules/sigprocmask (Files): Add sig-handler.h.
24231         * modules/sigaction (Files): Likewise.
24232         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24233         Eggert.
24234         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24235         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24236         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24237         (init_fatal_signals): Likewise.
24238         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24239         (siginterrupt): Delete fallback.
24240         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24241         instead.
24242         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24243         siginterrupt.
24244
24245         New module sigaction, for mingw.
24246         * modules/sigaction: New module...
24247         * modules/sigaction-tests: ...and its test.
24248         * m4/sigaction.m4: New file.
24249         * lib/sigaction.c: Likewise.
24250         * tests/test-sigaction.c: Likewise.
24251         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24252         * modules/signal (Makefile.am): Likewise.
24253         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24254         needed.
24255         * doc/posix-headers/signal.texi (signal.h): Mention provided
24256         types.
24257         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24258         that sigaction is preferable.
24259         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24260         module.
24261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24262         sigaction.
24263
24264         Improve robustness of sigprocmask by overriding signal.
24265         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24266         is in use.
24267         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24268         (SIGKILL, SIGSTOP): Provide fallbacks.
24269         (rpl_signal): Implement.
24270         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24271         signal can be called inside handlers.
24272
24273         Fix nanosleep module on mingw.
24274         * modules/nanosleep (Depends-on): Add sys_select.
24275         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24276
24277         Fix licensing of sigprocmask.
24278         * modules/raise (License): Relicense as LGPL.
24279
24280 2008-06-21  Bruno Haible  <bruno@clisp.org>
24281
24282         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24283         result if it contains question marks.
24284         Reported by Michael Geng <linux@michaelgeng.de>.
24285
24286 2008-06-19  Bruno Haible  <bruno@clisp.org>
24287
24288         Fix CVS-ism.
24289         * doc/gnulib.texi: Include updated-stamp.texi.
24290         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24291         (updated-stamp.texi): New rule.
24292         (gnulib.info): Depend on it.
24293         * doc/.gitignore: Add updated-stamp.texi.
24294         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24295
24296 2008-06-19  Bruno Haible  <bruno@clisp.org>
24297
24298         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24299         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24300
24301 2008-06-19  Eric Blake  <ebb9@byu.net>
24302
24303         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24304         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24305         Reported by Stepan Kasal.
24306
24307 2008-06-18  Bruno Haible  <bruno@clisp.org>
24308
24309         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24310         Reported by Eric Blake.
24311
24312 2008-06-18  Eric Blake  <ebb9@byu.net>
24313
24314         Work around cygwin 1.5.25 strsignal bug.
24315         * tests/test-strsignal.c: Allow for const char *.
24316         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24317
24318 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24319
24320         * users.txt: Update URL to article and add author/date
24321         information.
24322
24323 2008-06-17  Bruno Haible  <bruno@clisp.org>
24324
24325         New macro gl_DISABLE_THREADS.
24326         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24327         if the user did not pass --enable-threads or --disable-threads option.
24328         (gl_DISABLE_THREADS): New macro.
24329         Reported by Eric Blake <ebb9@byu.net>.
24330
24331 2008-06-17  Bruno Haible  <bruno@clisp.org>
24332
24333         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24334         when the macro ignores it.
24335         Based on a patch by Eric Blake <ebb9@byu.net>.
24336
24337 2008-06-17  Bruno Haible  <bruno@clisp.org>
24338
24339         * modules/tls (License): Change to LGPLv2+.
24340         Reported by Eric Blake.
24341
24342 2008-06-17  Eric Blake  <ebb9@byu.net>
24343
24344         Simplify c-stack prerequisites.
24345         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24346         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24347         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24348         check.
24349         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24350         <sys/resource.h>.
24351
24352         Move c-stack test into testsuite.
24353         * modules/c-stack-tests: New file.
24354         * lib/c-stack.c [DEBUG]: Move test program...
24355         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24356         fail test if sigaltstack is lacking.
24357         * tests/test-c-stack.sh: New driver file.
24358
24359 2008-06-16  Eric Blake  <ebb9@byu.net>
24360
24361         Use raise module consistently.
24362         * modules/fatal-signal (Depends-on): Add raise.
24363         * modules/sigprocmask (Depends-on): Likewise.
24364         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24365         * lib/sigprocmask.c (sigprocmask): Likewise.
24366         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24367         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24368
24369         Fix compliance bug in sigpending.
24370         * lib/sigprocmask.c (sigpending): Return pending array via
24371         parameter, not return value.
24372
24373 2008-06-14  Eric Blake  <ebb9@byu.net>
24374
24375         Improve obstack-printf test code.
24376         * tests/test-obstack-printf.c (test_function): Fix comment, and
24377         simplify usage of obstack_* in macros.  Add a test for coverage.
24378         Reported by Bruno Haible.
24379
24380 2008-06-14  Bruno Haible  <bruno@clisp.org>
24381
24382         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24383         array size as a constant, not as a const variable.
24384         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24385         AC_USE_SYSTEM_EXTENSIONS.
24386         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24387         Test whether the obstack_printf function actually exists.
24388         * modules/obstack-printf (Depends-on): Add extensions.
24389         (Include): Remove obstack.h.
24390         * modules/obstack-printf-posix (Depends-on): Add extensions.
24391         (Include): Remove obstack.h.
24392
24393 2008-06-13  Eric Blake  <ebb9@byu.net>
24394
24395         Add obstack-printf and obstack-printf-posix modules.
24396         * modules/obstack-printf: New file.
24397         * modules/obstack-printf-posix: Likewise.
24398         * MODULES.html.sh (Misc): Mention them.
24399         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24400         Likewise.
24401         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24402         Likewise.
24403         * modules/stdio (Makefile.am): Accomodate new modules.
24404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24405         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24406         Declare.
24407         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24408         functions.
24409         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24410         (gl_REPLACE_OBSTACK_PRINTF): New macros
24411         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24412         * tests/test-obstack-printf.c: New file.
24413         * modules/obstack-printf-tests: Likewise.
24414         * modules/obstack-printf-posix-tests: Likewise.
24415
24416 2008-06-11  Bruno Haible  <bruno@clisp.org>
24417
24418         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24419         * lib/open.c: Include errno.h.
24420         (open): Fail when attempting to write to a file that has a trailing
24421         slash.
24422         * tests/test-open.c (main): Test against trailing slash bug.
24423         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24424
24425 2008-06-10  Bruno Haible  <bruno@clisp.org>
24426
24427         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24428         for $? to work inside the trap command, with various /bin/sh-s.
24429         * tests/test-vc-list-files-cvs.sh: Likewise.
24430
24431 2008-06-10  Bruno Haible  <bruno@clisp.org>
24432
24433         * lib/acl-internal.h: Don't include gettext.h here.
24434         * lib/set-mode-acl.c: Include gettext.h here.
24435         * lib/copy-acl.c: Likewise.
24436
24437 2008-06-10  Bruno Haible  <bruno@clisp.org>
24438
24439         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24440         * lib/wait-process.c (wait_subprocess): Likewise.
24441         * lib/execute.h (execute): Add termsigp argument.
24442         * lib/execute.c (execute): Likewise.
24443         * lib/csharpcomp.c (compile_csharp_using_pnet,
24444         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24445         * lib/csharpexec.c (execute_csharp_using_pnet,
24446         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24447         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24448         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24449         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24450         is_jikes_present): Update.
24451         * lib/javaexec.c (execute_java_class): Update.
24452         * lib/javaversion.c (execute_and_read_line): Update.
24453         * NEWS: Document the changes.
24454         Reported by Eric Blake.
24455
24456 2008-06-10  Eric Blake  <ebb9@byu.net>
24457
24458         Add missing include.
24459         * tests/test-strstr.c (includes): Add <signal.h>.
24460         * tests/test-strcasestr.c (includes): Likewise.
24461         * tests/test-memmem.c (includes): Likewise.
24462
24463 2008-06-10  Bruno Haible  <bruno@clisp.org>
24464
24465         * lib/wait-process.c (wait_subprocess): Add an assertion.
24466
24467 2008-06-10  Bruno Haible  <bruno@clisp.org>
24468
24469         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24470
24471 2008-06-10  Bruno Haible  <bruno@clisp.org>
24472
24473         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24474         using alarm().
24475         * tests/test-strcasestr.c (main): Likewise.
24476         * tests/test-strstr.c (main): Likewise.
24477
24478 2008-06-09  Bruno Haible  <bruno@clisp.org>
24479
24480         Work around the Solaris 10 ACE ACLs ABI change.
24481         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24482         declare if ACL_NO_TRIVIAL is present.
24483         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24484         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24485         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24486         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24487         define if ACL_NO_TRIVIAL is present.
24488         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24489         and use the current ABI.
24490         (file_has_acl): Use same #if condition as elsewhere.
24491         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24492         in use, and use the current ABI.
24493         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24494         Reported by Jim Meyering.
24495
24496 2008-06-09  Eric Blake  <ebb9@byu.net>
24497
24498         Work around environments that (stupidly) ignore SIGALRM.
24499         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24500         before using alarm().
24501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24502         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24503         Reported by Ian Beckwith <ianb@erislabs.net>.
24504
24505         Produce autobuild blurb earlier in log.
24506         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24507
24508 2008-06-09  Jim Meyering  <meyering@redhat.com>
24509         and OndÅ™ej Vašík  <ovasik@redhat.com>
24510
24511         utimens.c: correct kernel bug work-around
24512         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24513         failure, not success, and the kernel bug we're trying to work
24514         around affects not just the utimensat call, but also the fallback
24515         futimens call.
24516         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24517         not success.
24518         [HAVE_FUTIMENS]: Use the same work-around, here.
24519
24520 2008-06-09  Jim Meyering  <meyering@redhat.com>
24521
24522         add more guards around definition of ACE_-related code
24523         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24524         ALLOW and ACE_OWNER are also defined.
24525
24526 2008-06-08  Bruno Haible  <bruno@clisp.org>
24527
24528         * lib/acl-internal.h: Add me as co-author.
24529         * lib/file-has-acl.c: Likewise.
24530         * lib/set-mode-acl.c: Likewise.
24531         * lib/copy-acl.c: Likewise.
24532
24533 2008-06-08  Bruno Haible  <bruno@clisp.org>
24534
24535         Add support for AIX ACLs.
24536         * lib/acl-internal.h (acl_nontrivial): New declaration.
24537         * lib/file-has-acl.c (acl_nontrivial): New function.
24538         (file_has_acl): Add implementation using AIX 4 ACL API.
24539         * lib/set-mode-acl.c (qset_acl): Likewise.
24540         * lib/copy-acl.c (qcopy_acl): Likewise.
24541
24542 2008-06-08  Bruno Haible  <bruno@clisp.org>
24543
24544         Add support for HP-UX ACLs.
24545         * lib/acl-internal.h (acl_nontrivial): New declaration.
24546         * lib/file-has-acl.c (acl_nontrivial): New function.
24547         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24548         * lib/set-mode-acl.c (qset_acl): Likewise.
24549         * lib/copy-acl.c (qcopy_acl): Likewise.
24550
24551 2008-06-08  Bruno Haible  <bruno@clisp.org>
24552
24553         Add support for Cygwin ACLs.
24554         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24555         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24556         the chmod_or_fchmod call.
24557         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24558
24559 2008-06-08  Bruno Haible  <bruno@clisp.org>
24560
24561         Fix bug with setuid modes in Solaris 10+ code.
24562         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24563         succeeded, when the mode contains some special bits.
24564
24565 2008-06-08  Bruno Haible  <bruno@clisp.org>
24566
24567         Add support for Solaris 7..10 ACLs.
24568         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24569         declarations.
24570         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24571         functions.
24572         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24573         * lib/set-mode-acl.c (qset_acl): Likewise.
24574         * lib/copy-acl.c (qcopy_acl): Likewise.
24575
24576 2008-06-08  Bruno Haible  <bruno@clisp.org>
24577
24578         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24579         declaration.
24580         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24581         (acl_access_nontrivial): Remove MacOS X case.
24582         (file_has_acl): Use acl_extended_nontrivial.
24583         * lib/copy-acl.c (qcopy_acl): Likewise.
24584
24585 2008-06-08  Bruno Haible  <bruno@clisp.org>
24586
24587         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24588
24589 2008-06-08  Jim Meyering  <meyering@redhat.com>
24590
24591         * modules/acl (Maintainer): Add Bruno Haible.
24592
24593 2008-06-07  Bruno Haible  <bruno@clisp.org>
24594
24595         Improve support for Tru64 ACLs.
24596         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24597         ACL on OSF/1.
24598
24599 2008-06-07  Bruno Haible  <bruno@clisp.org>
24600
24601         Add support for MacOS X ACLs.
24602         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24603         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24604         * lib/set-mode-acl.c (qset_acl): Likewise.
24605         * lib/copy-acl.c (qcopy_acl): Likewise.
24606
24607 2008-06-07  Bruno Haible  <bruno@clisp.org>
24608
24609         Fix memory leak introduced on 2008-05-22.
24610         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24611         use.
24612
24613 2008-06-07  Bruno Haible  <bruno@clisp.org>
24614
24615         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24616         to construct an empty ACL.
24617
24618 2008-06-07  Bruno Haible  <bruno@clisp.org>
24619
24620         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24621         precisely.
24622         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24623
24624 2008-06-07  Bruno Haible  <bruno@clisp.org>
24625
24626         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24627         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24628
24629 2008-06-07  Bruno Haible  <bruno@clisp.org>
24630
24631         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24632         regardless of POSIX.
24633         * doc/posix-functions/_longjmp.texi: Likewise.
24634         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24635         SystemV platform in this case.
24636
24637 2008-06-06  Eric Blake  <ebb9@byu.net>
24638
24639         Document abort() bugs.
24640         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24641
24642         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24643         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24644         sigsetjmp.
24645         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24646         siglongjmp, but only as a macro.
24647         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24648         is obsolete.
24649         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24650
24651         Tweak documentation to cover cygwin argz bugs.
24652         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24653         argz bug fix; no code change needed since no cygwin releases
24654         occurred between the last fix and the bug being tested.
24655         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24656         module and recently fixed cygwin bugs.
24657         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24658         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24659         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24660         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24661         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24662         Likewise.
24663         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24664         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24665         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24666         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24667         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24668         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24669         Likewise.
24670
24671         Avoid gcc warning on cygwin.
24672         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24673         !ACL_NO_TRIVIAL]: Avoid unused variable.
24674
24675 2008-06-05  Eric Blake  <ebb9@byu.net>
24676
24677         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24678         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24679         git-version-gen fails to come up with a version.
24680         Reported by Simon Josefsson.
24681
24682 2008-06-05  Jim Meyering  <meyering@redhat.com>
24683             Paul Eggert  <eggert@cs.ucla.edu>
24684
24685         utimens.c: work around a probable Linux kernel bug
24686         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24687         appears to be a kernel bug that causes utimensat to return 280
24688         instead of 0, indicating success.
24689
24690 2008-06-04  Bruno Haible  <bruno@clisp.org>
24691
24692         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24693         2008-06-01 commit.
24694
24695 2008-06-04  Bruno Haible  <bruno@clisp.org>
24696
24697         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24698         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24699         (file_has_acl): Use it. Save errno afterwards.
24700         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24701
24702 2008-06-03  Bruno Haible  <bruno@clisp.org>
24703
24704         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24705         draft code. Simplify #ifs.
24706         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24707         Put Solaris code after POSIX-draft code. Fix comments regarding
24708         Solaris 10, HP-UX. Mention Cygwin.
24709         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24710
24711 2008-06-03  Eric Blake  <ebb9@byu.net>
24712
24713         Provide fallback for older kernels.
24714         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24715         Provide runtime fallback if kernel lacks support.
24716         Reported by Mike Frysinger.
24717
24718 2008-06-02  Bruno Haible  <bruno@clisp.org>
24719
24720         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24721         it exists.
24722
24723 2008-06-02  Bruno Haible  <bruno@clisp.org>
24724
24725         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24726         * lib/copy-acl.c (qcopy_acl): Update comment.
24727
24728 2008-06-02  Bruno Haible  <bruno@clisp.org>
24729
24730         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24731         like ACL APIs.
24732
24733 2008-06-02  Bruno Haible  <bruno@clisp.org>
24734
24735         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24736         * tests/test-set-mode-acl.sh: Likewise.
24737         * tests/test-copy-acl.sh: Likewise.
24738         * tests/test-copy-file.sh: Likewise.
24739
24740 2008-06-02  Bruno Haible  <bruno@clisp.org>
24741
24742         * tests/test-file-has-acl.sh: Remove unused code.
24743
24744 2008-06-01  Bruno Haible  <bruno@clisp.org>
24745
24746         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24747         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24748         messages.
24749         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24750
24751 2008-06-01  Bruno Haible  <bruno@clisp.org>
24752
24753         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24754         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24755         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24756         APIs.
24757         * modules/acl-tests (configure.ac): Remove tests now contained in
24758         m4/acl.m4.
24759
24760 2008-06-02  Jim Meyering  <meyering@redhat.com>
24761
24762         announce-gen: use a better key-server host name
24763         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24764         it may be more consistently reliable.  Suggested by Werner Koch
24765         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24766
24767 2008-06-01  Bruno Haible  <bruno@clisp.org>
24768
24769         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24770         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24771
24772 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24773
24774         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24775
24776 2008-06-01  Bruno Haible  <bruno@clisp.org>
24777
24778         New ACL tests.
24779         * tests/test-file-has-acl.sh: New file.
24780         * tests/test-file-has-acl.c: New file.
24781         * tests/test-set-mode-acl.sh: New file.
24782         * tests/test-set-mode-acl.c: New file.
24783         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24784         * tests/test-copy-acl.c: New file.
24785         * modules/acl-tests: New file, based on modules/copy-file-tests.
24786         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24787         (Depends-on): Add acl-tests.
24788         (configure.ac): Remove checks.
24789         (Makefile.am): Don't create test-sameacls program here any more.
24790
24791 2008-06-01  Bruno Haible  <bruno@clisp.org>
24792
24793         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24794         * tests/test-sameacls.c: Include progname.h.
24795         (main): Invoke set_program_name. Portability fixes for MacOS X,
24796         Solaris, HP-UX.
24797
24798 2008-06-01  Bruno Haible  <bruno@clisp.org>
24799
24800         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24801         function.
24802         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24803
24804 2008-06-01  Bruno Haible  <bruno@clisp.org>
24805
24806         * modules/rpmatch (Depends-on): Add strdup.
24807
24808 2008-06-01  Bruno Haible  <bruno@clisp.org>
24809
24810         * lib/pipe.c: Include unistd-safer.h.
24811         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24812         * modules/pipe (Depends-on): Add unistd-safer.
24813
24814 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24815
24816         * modules/autobuild (configure.ac): Call AB_INIT.
24817
24818 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24819
24820         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24821         Suggested by Bruno Haible <bruno@clisp.org>.
24822
24823 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24824
24825         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24826         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24827         <bruno@clisp.org>.
24828
24829 2008-05-29  Eric Blake  <ebb9@byu.net>
24830
24831         Prefer new POSIX 200x interfaces over futimesat.
24832         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24833         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24834         when available.
24835         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24836
24837 2008-05-28  Bruno Haible  <bruno@clisp.org>
24838
24839         * modules/stpcpy (License): Change to LGPLv2+.
24840         Requested by David Lutterkort <dlutter@redhat.com>.
24841
24842 2008-05-27  Bruno Haible  <bruno@clisp.org>
24843
24844         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24845         current mingw.
24846         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24847
24848 2008-05-27  Bruno Haible  <bruno@clisp.org>
24849
24850         * modules/iconv_open (Link): New section, from module 'iconv'.
24851         * modules/striconv (Link): Likewise.
24852         * modules/striconveh (Link): Likewise.
24853         * modules/xstriconv (Link): Likewise.
24854         * modules/unicodeio (Link): Likewise.
24855         * modules/propername (Link): Likewise.
24856         Reported by Jim Meyering.
24857
24858 2008-05-26  Jim Meyering  <meyering@redhat.com>
24859
24860         sha256: do not artificially restrict buffer length to be < 2^32
24861         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24862         uint32_t to size_t.
24863         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24864         to match.
24865
24866         avoid unaligned access errors, e.g., on sparc
24867         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24868         direct access through a possibly-unaligned uint64* pointer.
24869         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24870         direct access through a possibly-unaligned uint32* pointer.
24871         Prompted by this patch from Tom "spot" Callaway:
24872         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24873
24874         sha512.c: fix typo in comment
24875         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24876
24877 2008-05-25  Bruno Haible  <bruno@clisp.org>
24878
24879         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24880         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24881         (Makefile.am): Update lib_SOURCES.
24882
24883 2008-05-25  Bruno Haible  <bruno@clisp.org>
24884
24885         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24886
24887 2008-05-25  Jim Meyering  <meyering@redhat.com>
24888
24889         useless-if-before-free: freed expr may have white-space differences
24890         * build-aux/useless-if-before-free: Recognize cases in which the
24891         freed expression differs from the tested one in embedded white
24892         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24893         $1 was used, so we can't make any regexp shy.  Improved tests now
24894         detect this.
24895
24896         useless-if-before-free: accept white space in the expression.
24897         * build-aux/useless-if-before-free: For now, any white space
24898         in the expression must be identical in the free argument.
24899
24900         useless-if-before-free: efficiency tweak
24901         * build-aux/useless-if-before-free: Make the expression-matching
24902         regexp "shy".
24903         Make the *outer* regexp shy, not the expr-matching one.
24904
24905         update code-in-comment to accept cast of free arg
24906         * build-aux/useless-if-before-free: Update regexp.
24907
24908 2008-05-25  Bruno Haible  <bruno@clisp.org>
24909
24910         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24911         * modules/copy-file-tests (Files, Makefile.am): Update.
24912         * tests/test-copy-file.c (func_test_copy): Update.
24913
24914 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24915
24916         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24917
24918 2008-05-23  Bruno Haible  <bruno@clisp.org>
24919
24920         Improve support for ACLs on OSF/1.
24921         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24922         Remove fallback for unknown flavors of ACLs.
24923
24924 2008-05-22  Bruno Haible  <bruno@clisp.org>
24925
24926         Add support for ACLs on OSF/1.
24927         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24928         replacements.
24929         (acl_free_text): New macro fallback.
24930         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24931         acl_free.
24932         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24933         acl_free_text function. Require AC_C_INLINE.
24934
24935 2008-05-22  Bruno Haible  <bruno@clisp.org>
24936
24937         Make copy_acl work on MacOS X 10.5.
24938         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24939         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24940         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24941         If MODE_INSIDE_ACL, don't assume that every system has the same text
24942         representation for ACLs as FreeBSD.
24943         * lib/copy-acl.c (copy_acl): Add support for platforms with
24944         !MODE_INSIDE_ACL.
24945         * lib/file-has-acl.c (file_has_acl): Likewise.
24946         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24947         FreeBSD, MacOS X, or IRIX, respectively.
24948
24949 2008-05-22  Bruno Haible  <bruno@clisp.org>
24950
24951         * lib/acl.h: Don't include <sys/acl.h>.
24952         (GETACLCNT): Move fallback to lib/acl-internal.h.
24953         * lib/acl-internal.h: Include <sys/acl.h> here.
24954         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24955
24956 2008-05-22  Bruno Haible  <bruno@clisp.org>
24957
24958         Split off copy_acl function to separate file.
24959         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24960         * lib/acl.c (copy_acl): Moved function to separate file.
24961         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24962         * modules/acl (Files): Add lib/copy-acl.c.
24963         (Makefiles.am): Augment lib_SOURCES.
24964
24965 2008-05-22  Bruno Haible  <bruno@clisp.org>
24966
24967         * modules/copy-file-tests: New file.
24968         * tests/test-copy-file.sh: New file.
24969         * tests/test-copy-file.c: New file.
24970         * tests/test-copy-file-sameacls.c: New file.
24971
24972 2008-05-22  Eric Blake  <ebb9@byu.net>
24973
24974         Avoid gcc warning.
24975         * tests/test-memcmp.c (main): Pass NULL indirectly.
24976
24977 2008-05-21  Bruno Haible  <bruno@clisp.org>
24978
24979         Add reference doc about ACLs.
24980         * doc/acl-resources.txt: New file.
24981         * doc/acl-cygwin.txt: New file.
24982
24983 2008-05-21  Bruno Haible  <bruno@clisp.org>
24984
24985         Avoid one more warning from gcc.
24986         * lib/vasnprintf.c (IF_LINT): Update comments.
24987         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24988
24989 2008-05-21  Jim Meyering  <meyering@redhat.com>
24990
24991         avoid a warning from gcc
24992         * lib/vasnprintf.c (IF_LINT): Define.
24993         (scale10_round_decimal_long_double):
24994         Use it to avoid a "may be used uninitialized" warning.
24995         (scale10_round_decimal_double): Likewise.
24996
24997 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24998
24999         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
25000         declared.
25001
25002 2008-05-20  Bruno Haible  <bruno@clisp.org>
25003
25004         * tests/test-memcmp.c (main): Test also the sign of the result. Test
25005         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
25006
25007 2008-05-20  Simon Josefsson  <simon@josefsson.org>
25008
25009         * modules/memcmp-tests: New file.
25010         * tests/test-memcmp.c: New file.
25011
25012 2008-05-19  Bruno Haible  <bruno@clisp.org>
25013
25014         * modules/propername (Notice, configure.ac): Put quoted "..." into
25015         --keyword option.
25016         * lib/propername.h: Update comments accordingly.
25017         Reported by Eric Blake.
25018
25019 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
25020
25021         * modules/getpass-gnu (Depends-on): Add fseeko.
25022
25023 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25024
25025         * modules/base64-tests: New file.
25026
25027 2008-05-19  Bo Borgerson <gigabo@gmail.com>
25028
25029         * lib/base64.c (base64_decode_ctx): If a decode context structure
25030         was passed in use it to ignore newlines.  If a context structure
25031         was _not_ passed in, continue to treat newlines as garbage (this
25032         is the historical behavior).  Formerly base64_decode.
25033         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25034         takes a decode context structure.
25035         * lib/base64.h (base64_decode): Macro for four-argument calls.
25036         (base64_decode_alloc): Likewise.
25037         * lib/base64.c (base64_decode_ctx): If a decode context structure
25038         was passed in use it to ignore newlines.  If a context structure
25039         was _not_ passed in, continue to treat newlines as garbage (this
25040         is the historical behavior).  Formerly base64_decode.
25041         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25042         takes a decode context structure.
25043         * lib/base64.h (base64_decode): Macro for four-argument calls.
25044         (base64_decode_alloc): Likewise.
25045
25046 2008-05-19  Jim Meyering  <meyering@redhat.com>
25047
25048         avoid a warning from gcc
25049         * lib/trim.c (IF_LINT): Define.
25050         (trim2): Use it to avoid a "may be used uninitialized" warning.
25051
25052         Fix doc typo.
25053         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
25054
25055 2008-05-19  Bruno Haible  <bruno@clisp.org>
25056
25057         * doc/glibc-functions/getpass.texi: Document limits of other
25058         implementations.
25059
25060 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25061             Bruno Haible <bruno@clisp.org>
25062
25063         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
25064
25065 2008-05-18  Bruno Haible  <bruno@clisp.org>
25066
25067         * modules/propername: New file, from GNU gettext.
25068         * lib/propername.h: New file, from GNU gettext.
25069         * lib/propername.c: New file, from GNU gettext.
25070         * MODULES.html.sh (Internationalization functions): Add propername.
25071
25072 2008-05-16  Jim Meyering  <meyering@redhat.com>
25073             Bruno Haible  <bruno@clisp.org>
25074
25075         Avoid some warnings from "gcc -Wshadow".
25076         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
25077
25078 2008-05-15  Eric Blake  <ebb9@byu.net>
25079
25080         Extend previous patch to cygwin 1.7.0.
25081         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
25082         fast implementation in cygwin >= 1.7.0.
25083         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25085
25086 2008-05-15  Bruno Haible  <bruno@clisp.org>
25087
25088         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
25089         implementation in glibc >= 2.9.
25090         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25092
25093 2008-05-15  Bruno Haible  <bruno@clisp.org>
25094
25095         * MODULES.html.sh (Internationalization functions): Remove linebreak.
25096         (Unicode string functions): Add unilbrk/*.
25097         Reported by Karl Berry.
25098
25099 2008-05-15  Eric Blake  <ebb9@byu.net>
25100
25101         Fix violation of <stdbool.h> replacement in regex.
25102         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
25103         * lib/regexec.c (re_search_internal): Likewise.
25104         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
25105
25106 2008-05-15  Jim Meyering  <meyering@redhat.com>
25107
25108         avoid distracting test output when git or cvs is not found
25109         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
25110         * tests/test-vc-list-files-git.sh: Likewise.
25111
25112 2008-05-15  Eric Blake  <ebb9@byu.net>
25113
25114         Glibc finally accepted the memmem speedup code, bugzilla #5514.
25115         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
25116         glibc version.
25117         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25118         * doc/posix-functions/strstr.texi (strstr): Likewise.
25119         * lib/str-two-way.h (MAX): Sychronize with glibc.
25120
25121 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
25122
25123         * lib/regcomp.c (optimize_utf8): Add a note on why we test
25124         opr.ctx_type.
25125         (calc_first): Initialize constraint field.
25126         (duplicate_node_closure): Use it instead of special casing ANCHORS.
25127         Fix grammar.
25128         (duplicate_node): Merge constraint field for all node types.
25129         (calc_eclosure_iter): Look at constraint field for all node types.
25130         * lib/regex_internal.c (create_cd_newstate): Don't look at
25131         opr.ctx_type.
25132
25133 2008-05-14  Bruno Haible  <bruno@clisp.org>
25134
25135         Help GCC to do better code generation.
25136         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
25137         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25138         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
25139         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
25140         Declare with attribute 'malloc' if supported.
25141
25142 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
25143
25144         use "echo STR|wc -c" rather than unportable "expr length STR"
25145         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
25146         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
25147
25148 2008-05-14  Jim Meyering  <meyering@redhat.com>
25149
25150         use dd ibs=$n count=1 ... rather than less-portable head -c$n
25151         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
25152         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
25153         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
25154         via Collin Lasse.
25155
25156 2008-05-14  Eric Blake  <ebb9@byu.net>
25157
25158         Avoid quadratic growth in gl_LIBSOURCES.
25159         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
25160         Suggested by Bruno Haible.
25161
25162         Test xmemdup0.
25163         * modules/xmemdup0-tests: New file.
25164         * tests/test-xmemdup0.c: Likewise.
25165
25166 2008-05-13  Eric Blake  <ebb9@byu.net>
25167
25168         Split xmemdup0 into its own module.
25169         * modules/xmemdup0: New file.
25170         * lib/xmemdup0.h: Likewise.
25171         * lib/xmemdup0.c: Likewise.
25172         * MODULES.html.sh (Memory management functions): Add xmemdup0.
25173         * lib/xalloc.h (xmemdup0): Remove.
25174         * lib/xmalloc.c (xmemdup0): Likewise.
25175
25176 2008-05-13  Eric Blake  <ebb9@byu.net>
25177             Bruno Haible  <bruno@clisp.org>
25178
25179         Reduce number of forks required during autoconf.
25180         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25181         and gl_LIBSOURCES_DIR.
25182         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25183         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25184         m4_syscmd per file.
25185         <m4_foreach_w>: Move...
25186         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25187
25188 2008-05-13  Eric Blake  <ebb9@byu.net>
25189
25190         * gnulib-tool: Fix various comment typos.
25191
25192 2008-05-12  Bruno Haible  <bruno@clisp.org>
25193
25194         Tailor the linebreaking algorithm.
25195         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25196
25197 2008-05-12  Bruno Haible  <bruno@clisp.org>
25198
25199         Update to Unicode 5.0.0.
25200         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25201         LBP_JV, LBP_JT. Redistribute values.
25202         (unilbrk_table): Change size.
25203         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25204         Unicode TR#14 rev. 22.
25205         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25206         LBP_JV, LBP_JT. Redistribute values.
25207         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25208         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25209         Update.
25210         * lib/unilbrk/lbrkprop1.h: Regenerated.
25211         * lib/unilbrk/lbrkprop2.h: Regenerated.
25212         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25213         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25214         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25215         Likewise.
25216         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25217         Likewise.
25218         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25219         result.
25220         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25221         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25222         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25223         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25224         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25225         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25226
25227 2008-05-11  Bruno Haible  <bruno@clisp.org>
25228
25229         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25230
25231 2008-05-11  Bruno Haible  <bruno@clisp.org>
25232
25233         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25234         * modules/unilbrk/gen-lbrk: New file.
25235
25236 2008-05-11  Bruno Haible  <bruno@clisp.org>
25237
25238         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25239         * m4/sha512.m4 (gl_SHA512): Likewise.
25240
25241 2008-05-11  Jim Meyering  <meyering@redhat.com>
25242
25243         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25244         * modules/crypto/sha256: New file.
25245         * modules/crypto/sha512: Likewise.
25246         * lib/sha256.c: Likewise.
25247         * lib/sha256.h: Likewise.
25248         * lib/sha512.c: Likewise.
25249         * lib/sha512.h: Likewise.
25250         * lib/u64.h: Likewise.
25251         * m4/sha256.m4: Likewise.
25252         * m4/sha512.m4: Likewise.
25253         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25254
25255 2008-05-10  Bruno Haible  <bruno@clisp.org>
25256
25257         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25258         (Input/Output <stdio.h>): Add xprintf.
25259         (Signal handling <signal.h>): Add strsignal.
25260         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25261         (Core language properties): Add func.
25262         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25263         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25264         strings.
25265         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25266         (Input/output): New section.
25267         (File system functions): Add openat-die, stat-macros.
25268         (Networking functions): Add sockets.
25269         (Unicode string functions): Add unictype/*.
25270         (Support for building libraries and executables): Add gperf.
25271         (Support for building documentation): Add agpl-3.0.
25272         (Misc): Add nocrash.
25273
25274 2008-05-10  Bruno Haible  <bruno@clisp.org>
25275
25276         * modules/unictype/gen-ctype: New file.
25277
25278 2008-05-10  Jim Meyering  <meyering@redhat.com>
25279
25280         Make chdir-safer.c more efficient on a system with no symlinks.
25281         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25282         also if ELOOP is zero.  Suggested by Bruno Haible.
25283
25284         Make chdir-safer.c slightly safer.
25285         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25286         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25287
25288         Avoid compile failure on systems without ELOOP (like mingw).
25289         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25290         Reported by Bruno Haible.
25291
25292 2008-05-10  Bruno Haible  <bruno@clisp.org>
25293
25294         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25295         (is_utf8_encoding): Use a case-insensitive comparison.
25296         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25297         streq.
25298
25299 2008-05-10  Bruno Haible  <bruno@clisp.org>
25300
25301         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25302         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25303         * lib/unilbrk/ulc-common.h (iconv_string_length,
25304         iconv_string_keeping_offsets): Remove declarations.
25305         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25306         Don't include <iconv.h>, streq.h, xsize.h.
25307         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25308         conversion.
25309         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25310         <iconv.h>, streq.h, xsize.h.
25311         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25312         conversion.
25313         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25314         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25315         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25316         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25317
25318 2008-05-10  Bruno Haible  <bruno@clisp.org>
25319
25320         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25321         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25322
25323         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25324         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25325
25326         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25327         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25328
25329         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25330         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25331
25332         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25333         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25334
25335         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25336         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25337
25338         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25339         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25340
25341         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25342         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25343
25344 2008-05-10  Bruno Haible  <bruno@clisp.org>
25345
25346         Split up 'linebreak' module.
25347         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25348         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25349         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25350         modifications.
25351         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25352         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25353         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25354         lib/linebreak.c.
25355         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25356         lib/linebreak.c.
25357         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25358         lib/linebreak.c.
25359         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25360         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25361         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25362         lib/linebreak.c.
25363         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25364         lib/linebreak.c.
25365         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25366         lib/linebreak.c.
25367         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25368         lib/linebreak.c.
25369         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25370         lib/linebreak.c.
25371         * modules/unilbrk/base: New file.
25372         * modules/unilbrk/tables: New file.
25373         * modules/unilbrk/u8-possible-linebreaks: New file.
25374         * modules/unilbrk/u16-possible-linebreaks: New file.
25375         * modules/unilbrk/u32-possible-linebreaks: New file.
25376         * modules/unilbrk/ulc-common: New file.
25377         * modules/unilbrk/ulc-possible-linebreaks: New file.
25378         * modules/unilbrk/u8-width-linebreaks: New file.
25379         * modules/unilbrk/u16-width-linebreaks: New file.
25380         * modules/unilbrk/u32-width-linebreaks: New file.
25381         * modules/unilbrk/ulc-width-linebreaks: New file.
25382         * lib/linebreak.h: Remove file.
25383         * lib/linebreak.c: Remove file.
25384         * m4/linebreak.m4: Remove file.
25385         * modules/linebreak: Remove file.
25386         * NEWS: Mention the changes.
25387
25388 2008-05-09  Eric Blake  <ebb9@byu.net>
25389
25390         Add xmemdup0.
25391         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25392         implementation.
25393         * lib/xmalloc.c (xmemdup0): New C implementation.
25394
25395 2008-05-08  Bruno Haible  <bruno@clisp.org>
25396
25397         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25398
25399 2008-05-07  Eric Blake  <ebb9@byu.net>
25400
25401         Support cross-compilation of <wctype.h>.
25402         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25403         AC_CACHE_CHECK.
25404
25405 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25406
25407         * build-aux/vc-list-files: Add support for bzr.
25408
25409 2008-05-03  Jim Meyering  <meyering@redhat.com>
25410
25411         avoid failed assertion with tight malloc
25412         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25413
25414 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25415
25416         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25417         are needed from arpa/inet.h.
25418         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25419         Reported by Bruno Haible.
25420
25421 2008-05-02  Jim Meyering  <meyering@redhat.com>
25422
25423         avoid compilation error on FreeBSD 6
25424         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25425
25426 2008-05-01  Jim Meyering  <meyering@redhat.com>
25427
25428         useless-if-before-free: correct --help's exit status description
25429         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25430         for one or more matches, etc.  Reported by Bruno Haible.
25431
25432         vc-list-files: make the stand-alone gnulib test work
25433         * modules/vc-list-files-tests (configure.ac):
25434         Define and AC_SUBST abs_aux_dir.
25435         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25436         $(abs_top_srcdir) to each script and having each of them
25437         duplicate the work of setting PATH, set PATH here, using
25438         the new variable, abs_aux_dir instead.
25439         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25440         * tests/test-vc-list-files-git.sh: Likewise.
25441         Reported by Bruno Haible.
25442
25443 2008-05-01  Bruno Haible  <bruno@clisp.org>
25444
25445         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25446         reallocation. Rename 'done' to 'found_delimiter'.
25447
25448 2008-05-01  Jim Meyering  <meyering@redhat.com>
25449
25450         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25451         * build-aux/vc-list-files: Use `...`, not $(...).
25452
25453 2008-04-30  Jim Meyering  <meyering@redhat.com>
25454
25455         add tests for vc-list-files
25456         * modules/vc-list-files-tests: New module.
25457         * tests/test-vc-list-files-cvs.sh: New file.
25458         * tests/test-vc-list-files-git.sh: New file.
25459
25460         avoid a warning from gcc
25461         * lib/getndelim2.c (IF_LINT): Define.
25462         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25463
25464         vc-list-files: work properly with build-aux/cvsu, too
25465         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25466         to all cvs-based clauses.
25467
25468         vc-list-files: work properly in the CVS+awk case, too
25469         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25470
25471         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25472         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25473         take more than one file argument, so .  Add quotes, just in case $dir
25474         ever contains a shell meta-character.  Prompted by Soren Hansen in
25475         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25476
25477 2008-04-29  Eric Blake  <ebb9@byu.net>
25478
25479         Optimize getndelim2 to use block operations when possible.
25480         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25481         freadseek, and memchr2.
25482         * lib/getndelim2.c (getndelim2): Use them for block reads.
25483
25484 2008-04-29  Bruno Haible  <bruno@clisp.org>
25485
25486         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25487         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25488         * modules/inet_ntop (Depends-on): Add extensions.
25489         * modules/inet_pton (Depends-on): Likewise.
25490         Reported by Simon Josefsson.
25491
25492 2008-04-29  Jim Meyering  <meyering@redhat.com>
25493
25494         When the is more than one match in a block, match all of them.
25495         * build-aux/useless-if-before-free: Iterate through each block
25496         until there are no more matches.
25497
25498         Fix broken useless-if-before-free script.
25499         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25500         the expression to match cast of argument to free-like function.
25501
25502 2008-04-29  Eric Blake  <ebb9@byu.net>
25503
25504         Use new header.
25505         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25506
25507 2008-04-29  Jim Meyering  <meyering@redhat.com>
25508
25509         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25510         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25511         by gnulib to exist and to declare e.g., inet_ntop.
25512         Don't include "inet_ntop.h", now removed.
25513
25514         * m4/arpa_inet_h.m4: Remove trailing blanks.
25515
25516 2008-04-29  Eric Blake  <ebb9@byu.net>
25517
25518         Silence valgrind on safe reads beyond potential array bounds.
25519         * lib/rawmemchr.valgrind: New file.
25520         * lib/strchrnul.valgrind: Likewise.
25521         * modules/rawmemchr (Files): Distribute new file.
25522         * modules/strchrnul (Files): Likewise.
25523         Suggested by Bruno Haible.
25524
25525 2008-04-29  Bruno Haible  <bruno@clisp.org>
25526
25527         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25528         (inet_ntop, inet_pton): Change portability warning's wording.
25529         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25530         Invoke gl_CHECK_NEXT_HEADERS.
25531         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25532         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25533         set ARPA_INET_H.
25534         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25535         * modules/arpa_inet (Description): No longer only for systems that
25536         lack it.
25537         (Depends-on): Add include_next.
25538         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25539         HAVE_ARPA_INET_H.
25540
25541 2008-04-29  Jim Meyering  <meyering@redhat.com>
25542
25543         * modules/mkdir (License): Re-license as LGPLv2+.
25544
25545 2008-04-29  Bruno Haible  <bruno@clisp.org>
25546
25547         * modules/rawmemchr (Maintainer): Set to Eric.
25548         * modules/strchrnul (Maintainer): Likewise.
25549
25550 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25551
25552         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25553         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25554
25555         * modules/arpa_inet (arpa/inet.h): Use them.
25556
25557 2008-04-28  Eric Blake  <ebb9@byu.net>
25558
25559         Test getndelim2.
25560         * modules/getndelim2-tests: New file.
25561         * tests/test-getndelim2.c: Likewise.
25562         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25563         stream.
25564         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25565
25566         * MODULES.html.sh: Document new module.
25567
25568 2008-04-20  Bruno Haible  <bruno@clisp.org>
25569
25570         * lib/c-stack.c (die): Use raise.
25571         * modules/c-stack (Depends-on): Add raise.
25572
25573 2008-04-28  Bruno Haible  <bruno@clisp.org>
25574
25575         Expect rpmatch to be declared.
25576         * lib/yesno.c (rpmatch): Remove declaration.
25577
25578         Declare rpmatch.
25579         * lib/stdlib.in.h (rpmatch): New declaration.
25580         * lib/rpmatch.c: Include <stdlib.h> first.
25581         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25582         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25584         HAVE_RPMATCH.
25585         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25586         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25587         (Include): Set to <stdlib.h>.
25588         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25589         HAVE_RPMATCH.
25590         * NEWS: Document the change.
25591
25592 2008-04-28  Bruno Haible  <bruno@clisp.org>
25593
25594         Change rpmatch to use nl_langinfo when appropriate.
25595         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25596         (N_): New macro.
25597         (localized_pattern): New function/macro.
25598         (try): Remove match, nomatch arguments. Copy the pattern into safe
25599         memory before caching it.
25600         (rpmatch): Use localized_pattern. Add translator comments.
25601         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25602         Suggested by Eric Blake.
25603         * modules/rpmatch (Depends-on): Add stdbool.
25604
25605 2008-04-28  Eric Blake  <ebb9@byu.net>
25606
25607         Add rawmemchr module, matching glibc.
25608         * modules/string (Makefile.am): New indicator.
25609         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25610         * lib/string.in.h (rawmemchr): Declare when appropriate.
25611         * modules/rawmemchr: New file.
25612         * m4/rawmemchr.m4: Likewise.
25613         * lib/rawmemchr.c: Likewise.
25614         * modules/rawmemchr-tests: Likewise.
25615         * tests/test-rawmemchr.c: Likewise.
25616         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25617         module.
25618         * modules/strchrnul (Depends-on): Add rawmemchr.
25619         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25620
25621         Whitespace cleanup.
25622         * tests/test-strchrnul.c: Reindent.
25623         * lib/strchrnul.c: Likewise.
25624
25625         Optimize and test strchrnul.
25626         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25627         * modules/strchrnul-tests: New file.
25628         * tests/test-strchrnul.c: Likewise.
25629
25630         Remove intprops dependency.
25631         * modules/memchr (Depends-on): Remove intprops.
25632         * modules/memrchr (Depends-on): Likewise.
25633         * modules/memchr2 (Depends-on): Likewise.
25634         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25635         * lib/memrchr.c (__memrchr): Likewise.
25636         * lib/memrchr2.c (memchr2): Likewise.
25637         Reported by Simon Josefsson.
25638
25639 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25640
25641         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25642         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25643
25644 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25645
25646         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25647
25648         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25649
25650         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25651
25652         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25653         declarations.
25654         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25655
25656         * m4/inet_pton.m4: Don't check for header files.
25657
25658         * m4/inet_ntop.m4: Don't check for header files.
25659
25660 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25661
25662         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25663         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25664         trigger for cygwin).
25665         Reported by Bruno Haible  <bruno@clisp.org>.
25666
25667 2008-04-28  Bruno Haible  <bruno@clisp.org>
25668
25669         * doc/posix-functions/strdup.texi: Mention mingw problem.
25670
25671 2008-04-27  Bruno Haible  <bruno@clisp.org>
25672
25673         * modules/stat-time-tests (Depends-on): Add sleep.
25674         * tests/test-stat-time.c (force_unlink): New function.
25675         (cleanup): Use it.
25676         (test_mtime): Remove the ctime related tests.
25677         (test_ctime): New function, containing the ctime related tests.
25678         (main): Call test_ctime, except on native Windows platforms.
25679
25680 2008-04-27  Bruno Haible  <bruno@clisp.org>
25681
25682         * lib/rpmatch.c (rpmatch): Add some comments.
25683         Reported by James Youngman <jay@gnu.org>.
25684
25685 2008-04-27  Bruno Haible  <bruno@clisp.org>
25686
25687         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25688         quiet NaNs.
25689
25690 2008-04-27  Bruno Haible  <bruno@clisp.org>
25691
25692         Make test-yesno.sh work on mingw.
25693         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25694         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25695         (main): Set stdin to binary mode.
25696         * modules/yesno-tests (Depends-on): Add binary-io.
25697
25698 2008-04-27  Bruno Haible  <bruno@clisp.org>
25699
25700         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25701         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25702         argument that lie outside the IEEE 854 domain.
25703         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25704         (gl_ISFINITE): Use it.
25705         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25706
25707 2008-04-27  Bruno Haible  <bruno@clisp.org>
25708
25709         Allow local renaming in config.h.
25710         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25711
25712 2008-04-27  Bruno Haible  <bruno@clisp.org>
25713
25714         * lib/memchr.c (__memchr): Change type of 'i'.
25715         * lib/memchr2.c (memchr2): Likewise.
25716
25717 2008-04-26  Eric Blake  <ebb9@byu.net>
25718         and Bruno Haible  <bruno@clisp.org>
25719
25720         Optimize and test memrchr.
25721         * modules/memrchr (Depends-on): Add intprops.
25722         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25723         * modules/memrchr-tests: New file.
25724         * tests/test-memrchr.c: New file.
25725
25726 2008-04-26  Bruno Haible  <bruno@clisp.org>
25727
25728         Add tentative support for DragonFly BSD.
25729         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25730         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25731         fp.
25732         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25733         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25734         * lib/fpurge.c (fpurge): Likewise.
25735         * lib/freadable.c (freaadable): Likewise.
25736         * lib/freadahead.c (freadahead): Likewise.
25737         * lib/freading.c (freading): Likewise.
25738         * lib/freadptr.c (freadptr): Likewise.
25739         * lib/freadseek.c (freadptrinc): Likewise.
25740         * lib/fseeko.c (fseeko): Likewise.
25741         * lib/fseterr.c (fseterr): Likewise.
25742         * lib/fwritable.c (fwritable): Likewise.
25743         * lib/fwriting.c (fwriting): Likewise.
25744
25745 2008-04-26  Bruno Haible  <bruno@clisp.org>
25746
25747         * lib/stdio-impl.h: New file.
25748         * lib/fbufmode.c: Include stdio-impl.h.
25749         (fbufmode): Use fp_, remove redundant #defines.
25750         * lib/fflush.c: Include stdio-impl.h.
25751         (clear_ungetc_buffer): Remove redundant #defines.
25752         * lib/fpurge.c: Include stdio-impl.h.
25753         (fpurge): Remove redundant #defines.
25754         * lib/freadable.c: Include stdio-impl.h.
25755         (freadable): Remove redundant #defines.
25756         * lib/freadahead.c: Include stdio-impl.h.
25757         (freadahead): Remove redundant #defines.
25758         * lib/freading.c: Include stdio-impl.h.
25759         (freading): Remove redundant #defines.
25760         * lib/freadptr.c: Include stdio-impl.h.
25761         (freadptr): Remove redundant #defines.
25762         * lib/freadseek.c: Include stdio-impl.h.
25763         (freadptrinc): Remove redundant #defines.
25764         * lib/fseeko.c: Include stdio-impl.h.
25765         (rpl_fseeko): Remove redundant #defines.
25766         * lib/fseterr.c: Include stdio-impl.h.
25767         (fseterr): Remove redundant #defines.
25768         * lib/fwritable.c: Include stdio-impl.h.
25769         (fwritable: Remove redundant #defines.
25770         * lib/fwriting.c: Include stdio-impl.h.
25771         (fwriting): Remove redundant #defines.
25772         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25773         * modules/fflush (Files): Likewise.
25774         * modules/fpurge (Files): Likewise.
25775         * modules/freadable (Files): Likewise.
25776         * modules/freadahead (Files): Likewise.
25777         * modules/freading (Files): Likewise.
25778         * modules/freadptr (Files): Likewise.
25779         * modules/freadseek (Files): Likewise.
25780         * modules/fseeko (Files): Likewise.
25781         * modules/fseterr (Files): Likewise.
25782         * modules/fwritable (Files): Likewise.
25783         * modules/fwriting (Files): Likewise.
25784
25785 2008-04-26  Bruno Haible  <bruno@clisp.org>
25786
25787         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25788         restore_seek_optimization, update_fpos_cache): New functions, extracted
25789         from rpl_fflush.
25790         (rpl_fflush): Use them.
25791         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25792         (gl_REPLACE_FFLUSH): Use it.
25793
25794 2008-04-26  Bruno Haible  <bruno@clisp.org>
25795
25796         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25797         on Solaris.
25798         * tests/test-xstrtoimax.sh: Likewise.
25799         * tests/test-xstrtoumax.sh: Likewise.
25800         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25801
25802 2008-04-26  Bruno Haible  <bruno@clisp.org>
25803
25804         * modules/memchr-tests: New file.
25805         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25806
25807 2008-04-26  Eric Blake  <ebb9@byu.net>
25808             Bruno Haible  <bruno@clisp.org>
25809
25810         * lib/memchr.c: Include intprops.h.
25811         (__memchr): Optimize parallel detection of matching bytes. Rename local
25812         variables. Add explanatory comments.
25813
25814 2008-04-26  Bruno Haible  <bruno@clisp.org>
25815
25816         Fix module 'memchr', broken since 2000-10-28.
25817         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25818
25819 2008-04-26  Bruno Haible  <bruno@clisp.org>
25820
25821         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25822         comments.
25823
25824 2008-04-25  Eric Blake  <ebb9@byu.net>
25825
25826         Use native fstatat on cygwin 1.7.0.
25827         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25828         first.
25829
25830 2008-04-23  Eric Blake  <ebb9@byu.net>
25831
25832         Improve memchr2 performance.
25833         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25834         NUL bytes.
25835         * modules/memchr2 (Depends-on): Use intprops.h.
25836
25837 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25838
25839         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25840         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25841         <blp@cs.stanford.edu>.
25842
25843 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25844
25845         * lib/arpa_inet.in.h: New file.
25846
25847         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25848         (Makefile.am): Sed in substitute header file.
25849
25850         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25851         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25852
25853         * modules/inet_ntop (configure.ac): Use
25854         gl_ARPA_INET_MODULE_INDICATOR.
25855
25856         * modules/inet_pton (configure.ac): Use
25857         gl_ARPA_INET_MODULE_INDICATOR.
25858
25859 2008-04-22  Jim Meyering  <meyering@redhat.com>
25860
25861         * modules/verify (License): Re-license as LGPLv2+.
25862
25863 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25864
25865         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25866         parameter to void* as per POSIX standard (MinGW uses char*).
25867
25868 2008-04-21  Bruno Haible  <bruno@clisp.org>
25869
25870         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25871         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25872         Define to replacements if REPLACE_ISWCNTRL is 1.
25873         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25874         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25875         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25876         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25877         what it fixes.
25878         * doc/posix-functions/iswalpha.texi: Likewise.
25879         * doc/posix-functions/iswblank.texi: Likewise.
25880         * doc/posix-functions/iswcntrl.texi: Likewise.
25881         * doc/posix-functions/iswdigit.texi: Likewise.
25882         * doc/posix-functions/iswgraph.texi: Likewise.
25883         * doc/posix-functions/iswlower.texi: Likewise.
25884         * doc/posix-functions/iswprint.texi: Likewise.
25885         * doc/posix-functions/iswpunct.texi: Likewise.
25886         * doc/posix-functions/iswspace.texi: Likewise.
25887         * doc/posix-functions/iswupper.texi: Likewise.
25888         * doc/posix-functions/iswxdigit.texi: Likewise.
25889         Reported by Alain Guibert.
25890
25891 2008-04-21  Bruno Haible  <bruno@clisp.org>
25892
25893         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25894         Patch by Alain Guibert.
25895
25896 2008-04-21  Bruno Haible  <bruno@clisp.org>
25897
25898         Fix test failures on mingw.
25899         * tests/test-xstrtol.c (print_no_progname): New function.
25900         (main): Install it in error_print_progname hook.
25901         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25902         * tests/test-xstrtoimax.sh: Likewise.
25903         * tests/test-xstrtoumax.sh: Likewise.
25904
25905 2008-04-21  Bruno Haible  <bruno@clisp.org>
25906
25907         Fix test failure on mingw.
25908         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25909
25910 2008-04-21  Bruno Haible  <bruno@clisp.org>
25911
25912         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25913         Actually assign a value.
25914
25915 2008-04-20  Bruno Haible  <bruno@clisp.org>
25916
25917         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25918         take 2.
25919         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25920         'canonicalize-lgpl' module is also used.
25921         * lib/canonicalize-lgpl.c: Undo last change.
25922         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25923
25924 2008-04-20  Bruno Haible  <bruno@clisp.org>
25925
25926         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25927         config.h. Provide _mkdir based fallback for mingw.
25928         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25929         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25930         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25931         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25932         rather than defining mkdir in config.h.
25933         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25934         (gl_SYS_STAT_H_DEFAULTS): New macro.
25935         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25936         HAVE_IO_H any more.
25937         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25938         HAVE_DECL_MKDIR and HAVE_IO_H.
25939
25940 2008-04-20  Bruno Haible  <bruno@clisp.org>
25941
25942         * lib/isapipe.c: Port to native Windows platforms.
25943
25944 2008-04-20  Bruno Haible  <bruno@clisp.org>
25945
25946         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25947
25948 2008-04-21  Eric Blake  <ebb9@byu.net>
25949
25950         Work around preprocessors that don't handle UINTMAX_MAX.
25951         * lib/memchr2.c (memchr2): Avoid embedded #if.
25952         Reported by Alain Guibert, fix suggested by Bruno Haible.
25953
25954 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25955
25956         * doc/posix-functions/strftime.texi (strftime): Explain better
25957         Windows incompatibility.  Suggested by Micah Cowan
25958         <micah@cowan.name>.
25959
25960 2008-04-20  Bruno Haible  <bruno@clisp.org>
25961
25962         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25963         unistr/u8-mblen.
25964
25965 2008-04-20  Bruno Haible  <bruno@clisp.org>
25966
25967         Fix test failure on platforms with non-GNU iconv.
25968         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25969         (U_TO_U8): Use it, rather than u16_to_u8.
25970         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25971         units at the end of the input string.
25972         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25973
25974 2008-04-20  Bruno Haible  <bruno@clisp.org>
25975
25976         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25977         when the resulting length is 0.
25978         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25979
25980 2008-04-20  Bruno Haible  <bruno@clisp.org>
25981
25982         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25983         works.
25984         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25985
25986 2008-04-20  Bruno Haible  <bruno@clisp.org>
25987
25988         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25989         * modules/tsearch-tests (configure.ac): Test for initstate function.
25990
25991 2008-04-20  Bruno Haible  <bruno@clisp.org>
25992
25993         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25994         for nlink_t if missing.
25995         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25996
25997 2008-04-19  Bruno Haible  <bruno@clisp.org>
25998
25999         Work around snprintf bug on Linux libc5.
26000         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
26001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26002         gl_SNPRINTF_SIZE1.
26003         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26004         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
26005         that test failed.
26006         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
26007         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
26008         * modules/snprintf (Files): Add m4/printf.m4.
26009         * modules/vsnprintf (Files): Likewise.
26010         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
26011         * doc/posix-functions/vsnprintf.texi: Likewise.
26012
26013 2008-04-19  Bruno Haible  <bruno@clisp.org>
26014
26015         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
26016         from 0.0058 to less than 10^-7.
26017
26018 2008-04-19  Bruno Haible  <bruno@clisp.org>
26019
26020         Fix rounding when a precision is given.
26021         * lib/vasnprintf.c (is_borderline): New function.
26022         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
26023         9...9x.
26024         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
26025         %e, %g.
26026         * tests/test-vasprintf-posix.c (test_function): Likewise.
26027         * tests/test-snprintf-posix.h (test_function): Likewise.
26028         * tests/test-sprintf-posix.h (test_function): Likewise.
26029         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
26030         * tests/test-printf-posix.h (test_function): Likewise.
26031         * tests/test-printf-posix.output: Update.
26032         Reported by John Darrington <john@darrington.wattle.id.au> via
26033         Ben Pfaff <blp@cs.stanford.edu>.
26034
26035 2008-04-18  Simon Josefsson  <simon@josefsson.org>
26036
26037         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
26038         Suggested by Bruno Haible <bruno@clisp.org>.
26039
26040 2008-04-17  Bruno Haible  <bruno@clisp.org>
26041
26042         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
26043         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
26044         implementation.
26045         Patch by Bruce Merry <bmerry@gmail.com>.
26046
26047 2008-04-17  Simon Josefsson  <simon@josefsson.org>
26048
26049         * doc/posix-functions/strftime.texi (strftime): Mention that %e
26050         doesn't work under Windows.
26051
26052 2008-04-16  Bruno Haible  <bruno@clisp.org>
26053
26054         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
26055         New macros.
26056         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
26057         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
26058         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
26059         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
26060         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
26061         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
26062         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
26063         macros.
26064         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
26065         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
26066         Northern Sotho, Uighur.
26067
26068 2008-04-16  Bruno Haible  <bruno@clisp.org>
26069
26070         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
26071         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
26072         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
26073         Reported by Daniel Bergström <daniel@octocode.com>.
26074
26075 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
26076             Bruno Haible  <bruno@clisp.org>
26077
26078         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
26079         function.
26080         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
26081         New functions, mostly extracted from gl_locale_name_default.
26082         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
26083
26084 2008-04-16  Eric Blake  <ebb9@byu.net>
26085
26086         Adjust strtod detection to catch glibc 2.7 bug.
26087         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
26088         Reported by John Gatewood Ham.
26089
26090 2008-04-16  Bruno Haible  <bruno@clisp.org>
26091
26092         Add tentative support for Linux libc5.
26093         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
26094         * lib/fpurge.c (fpurge): Likewise.
26095         * lib/freadable.c (freadable): Likewise.
26096         * lib/freadahead.c (freadahead): Likewise.
26097         * lib/freading.c (freading): Likewise.
26098         * lib/freadptr.c (freadptr): Likewise.
26099         * lib/freadseek.c (freadptrinc): Likewise.
26100         * lib/fseeko.c (rpl_fseeko): Likewise.
26101         * lib/fseterr.c (fseterr): Likewise.
26102         * lib/fwritable.c (fwritable): Likewise.
26103         * lib/fwriting.c (fwriting): Likewise.
26104         Reported by Alain Guibert <alguibert+bts@free.fr>.
26105
26106 2008-04-15  Bruno Haible  <bruno@clisp.org>
26107
26108         * modules/mathl (configure.ac): Define module indicator.
26109
26110 2008-04-15  Bruno Haible  <bruno@clisp.org>
26111
26112         * lib/logl.c (logl): Remove unused variables.
26113
26114 2008-04-15  Bruno Haible  <bruno@clisp.org>
26115
26116         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
26117         fails.
26118
26119 2008-04-15  Bruno Haible  <bruno@clisp.org>
26120
26121         * lib/trim.c (trim2): Fix argument of isspace() macro.
26122
26123 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
26124
26125         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
26126         to 0.
26127         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
26128
26129 2008-04-14  Bruno Haible  <bruno@clisp.org>
26130
26131         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
26132         AC_LANG_PROGRAM argument.
26133         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
26134         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
26135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26136         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26137         * m4/math_h.m4 (gl_MATH_H): Likewise.
26138         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26139         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26140         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26141         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
26142         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26143         * m4/regex.m4 (gl_REGEX): Likewise.
26144         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
26145         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
26146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26147         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
26148         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26149         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26150         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26152
26153 2008-04-14  Jim Meyering  <meyering@redhat.com>
26154
26155         test-strtod: fix typos: s/abs/fabs/
26156         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
26157
26158 2008-04-13  Bruno Haible  <bruno@clisp.org>
26159
26160         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
26161         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
26162         module is also used and while not building the reloc-wrapper.
26163
26164 2008-04-13  Bruno Haible  <bruno@clisp.org>
26165
26166         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
26167
26168 2008-04-13  Bruno Haible  <bruno@clisp.org>
26169
26170         Fix AIX compilation failure introduced on 2008-04-02.
26171         * tests/test-frexp.c (exp): Undefine before redefining.
26172         * tests/test-frexpl.c (exp): Likewise.
26173
26174 2008-04-13  Bruno Haible  <bruno@clisp.org>
26175
26176         Work around a HP-UX stdio bug.
26177         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26178         * tests/test-ftello.c (main): Likewise.
26179         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26180         * doc/posix-functions/ftello.texi: Likewise.
26181
26182 2008-04-13  Bruno Haible  <bruno@clisp.org>
26183
26184         Make test-signbit pass on HP-UX/hppa.
26185         * tests/test-signbit.c (minus_zerol): New variable.
26186         (test_signbitl): Use it.
26187
26188 2008-04-13  Bruno Haible  <bruno@clisp.org>
26189
26190         Make truncl work on OSF/1 4.0.
26191         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26192         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26193         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26195         HAVE_DECL_TRUNCL.
26196         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26197         HAVE_DECL_TRUNCL.
26198         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26199
26200 2008-04-13  Bruno Haible  <bruno@clisp.org>
26201
26202         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26203
26204 2008-04-13  Bruno Haible  <bruno@clisp.org>
26205
26206         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26207         expression, so as to avoid HP-UX 11 cc compiler bug.
26208
26209 2008-04-13  Bruno Haible  <bruno@clisp.org>
26210
26211         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26212
26213 2008-04-13  Bruno Haible  <bruno@clisp.org>
26214
26215         * lib/git-merge-changelog.c: Remove empty declaration outside of
26216         functions.
26217
26218 2008-04-13  Bruno Haible  <bruno@clisp.org>
26219
26220         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26221
26222 2008-04-13  Bruno Haible  <bruno@clisp.org>
26223
26224         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26225         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26227         also if it exists but lacks definitions of the SHUT_* macros.
26228         * modules/sys_socket (Description): Update.
26229         Reported by Elbert Pol <e.pol@chello.nl>.
26230
26231 2008-04-13  Bruno Haible  <bruno@clisp.org>
26232
26233         * lib/localcharset.c (OS2): Don't redefine if already defined.
26234         Reported by Elbert Pol <e.pol@chello.nl>.
26235
26236 2008-04-13  Bruno Haible  <bruno@clisp.org>
26237
26238         * lib/binary-io.h [__EMX__]: Include <io.h>.
26239         Reported by Elbert Pol <e.pol@chello.nl>.
26240
26241 2008-04-12  Bruno Haible  <bruno@clisp.org>
26242
26243         * lib/fpucw.h: Enable the definitions also for x86_64.
26244         Needed for NetBSD/x86_64.
26245         Reported by Thomas Klausner <tk@giga.or.at>.
26246
26247 2008-04-12  Bruno Haible  <bruno@clisp.org>
26248
26249         * tests/test-strtod.c: Include isnand.h.
26250         (main): Use isnand instead of isnan.
26251         Reported by Jim Meyering.
26252
26253 2008-04-12  Bruno Haible  <bruno@clisp.org>
26254
26255         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26256         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26257
26258 2008-04-12  Jim Meyering  <meyering@redhat.com>
26259
26260         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26261
26262 2008-04-12  Bruno Haible  <bruno@clisp.org>
26263
26264         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26265         Reported by Elbert Pol <e.pol@chello.nl>.
26266
26267 2008-04-12  Eric Blake  <ebb9@byu.net>
26268
26269         Work around Solaris 10 math.h bug.
26270         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26271         (gl_MATH_H_DEFAULTS): Set up default.
26272         * modules/math (Makefile.am): Replace new indicators.
26273         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26274         * tests/test-math.c (main): Test this.
26275         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26276         * doc/posix-headers/math.texi (math.h): Mention bug.
26277         Reported by Nelson H. F. Beebe and Jim Meyering.
26278
26279 2008-04-11  Bruno Haible  <bruno@clisp.org>
26280
26281         Adapt to future versions of Apple GCC.
26282         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26283         Reported by Peter O'Gorman <peter@pogma.com>.
26284
26285 2008-04-11  Bruno Haible  <bruno@clisp.org>
26286
26287         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26288
26289 2008-04-11  Bruno Haible  <bruno@clisp.org>
26290
26291         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26292
26293         * modules/getaddrinfo-tests (Makefile.am): Define
26294         test_getaddrinfo_LDADD.
26295
26296 2008-04-11  Bruno Haible  <bruno@clisp.org>
26297
26298         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26299         (init): Fix syntax error.
26300         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26301         is declared.
26302
26303 2008-04-11  Bruno Haible  <bruno@clisp.org>
26304
26305         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26306         * modules/glob (Depends-on): Add stdbool.
26307
26308 2008-04-11  Bruno Haible  <bruno@clisp.org>
26309
26310         * lib/trim.c: Include <string.h>.
26311
26312 2008-04-11  Eric Blake  <ebb9@byu.net>
26313
26314         Avoid compile failure on OS/2.
26315         * lib/regex_internal.h (internal_function): Disable optimization
26316         on OS/2 (__EMX__), where it caused compiler error.
26317         Reported by Elbert Pol.
26318
26319 2008-04-11  Bruno Haible  <bruno@clisp.org>
26320
26321         Flush the standard error stream before aborting. Needed on mingw.
26322         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26323         * tests/test-array_list.c (ASSERT): Likewise.
26324         * tests/test-array_oset.c (ASSERT): Likewise.
26325         * tests/test-avltree_list.c (ASSERT): Likewise.
26326         * tests/test-avltree_oset.c (ASSERT): Likewise.
26327         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26328         * tests/test-binary-io.c (ASSERT): Likewise.
26329         * tests/test-byteswap.c (ASSERT): Likewise.
26330         * tests/test-c-ctype.c (ASSERT): Likewise.
26331         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26332         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26333         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26334         * tests/test-c-strstr.c (ASSERT): Likewise.
26335         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26336         * tests/test-canonicalize.c (ASSERT): Likewise.
26337         * tests/test-carray_list.c (ASSERT): Likewise.
26338         * tests/test-ceilf1.c (ASSERT): Likewise.
26339         * tests/test-ceilf2.c (ASSERT): Likewise.
26340         * tests/test-ceill.c (ASSERT): Likewise.
26341         * tests/test-count-one-bits.c (ASSERT): Likewise.
26342         * tests/test-fbufmode.c (ASSERT): Likewise.
26343         * tests/test-fflush2.c (ASSERT): Likewise.
26344         * tests/test-floorf1.c (ASSERT): Likewise.
26345         * tests/test-floorf2.c (ASSERT): Likewise.
26346         * tests/test-floorl.c (ASSERT): Likewise.
26347         * tests/test-fopen.c (ASSERT): Likewise.
26348         * tests/test-fpending.c (ASSERT): Likewise.
26349         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26350         * tests/test-fpurge.c (ASSERT): Likewise.
26351         * tests/test-freadable.c (ASSERT): Likewise.
26352         * tests/test-freadahead.c (ASSERT): Likewise.
26353         * tests/test-freading.c (ASSERT): Likewise.
26354         * tests/test-freadptr.c (ASSERT): Likewise.
26355         * tests/test-freadptr2.c (ASSERT): Likewise.
26356         * tests/test-freadseek.c (ASSERT): Likewise.
26357         * tests/test-freopen.c (ASSERT): Likewise.
26358         * tests/test-frexp.c (ASSERT): Likewise.
26359         * tests/test-frexpl.c (ASSERT): Likewise.
26360         * tests/test-fseek.c (ASSERT): Likewise.
26361         * tests/test-fseeko.c (ASSERT): Likewise.
26362         * tests/test-fstrcmp.c (ASSERT): Likewise.
26363         * tests/test-ftell.c (ASSERT): Likewise.
26364         * tests/test-ftello.c (ASSERT): Likewise.
26365         * tests/test-func.c (ASSERT): Likewise.
26366         * tests/test-fwritable.c (ASSERT): Likewise.
26367         * tests/test-fwriting.c (ASSERT): Likewise.
26368         * tests/test-getdelim.c (ASSERT): Likewise.
26369         * tests/test-getline.c (ASSERT): Likewise.
26370         * tests/test-i-ring.c (ASSERT): Likewise.
26371         * tests/test-iconv-utf.c (ASSERT): Likewise.
26372         * tests/test-iconv.c (ASSERT): Likewise.
26373         * tests/test-isfinite.c (ASSERT): Likewise.
26374         * tests/test-isnand.c (ASSERT): Likewise.
26375         * tests/test-isnanf.c (ASSERT): Likewise.
26376         * tests/test-isnanl.h (ASSERT): Likewise.
26377         * tests/test-ldexpl.c (ASSERT): Likewise.
26378         * tests/test-linked_list.c (ASSERT): Likewise.
26379         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26380         * tests/test-localename.c (ASSERT): Likewise.
26381         * tests/test-lseek.c (ASSERT): Likewise.
26382         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26383         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26384         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26385         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26386         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26387         * tests/test-mbschr.c (ASSERT): Likewise.
26388         * tests/test-mbscspn.c (ASSERT): Likewise.
26389         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26390         * tests/test-mbspbrk.c (ASSERT): Likewise.
26391         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26392         * tests/test-mbsrchr.c (ASSERT): Likewise.
26393         * tests/test-mbsspn.c (ASSERT): Likewise.
26394         * tests/test-mbsstr1.c (ASSERT): Likewise.
26395         * tests/test-mbsstr2.c (ASSERT): Likewise.
26396         * tests/test-mbsstr3.c (ASSERT): Likewise.
26397         * tests/test-memchr2.c (ASSERT): Likewise.
26398         * tests/test-memmem.c (ASSERT): Likewise.
26399         * tests/test-open.c (ASSERT): Likewise.
26400         * tests/test-printf-frexp.c (ASSERT): Likewise.
26401         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26402         * tests/test-printf-posix.c (ASSERT): Likewise.
26403         * tests/test-quotearg.c (ASSERT): Likewise.
26404         * tests/test-rbtree_list.c (ASSERT): Likewise.
26405         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26406         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26407         * tests/test-round1.c (ASSERT): Likewise.
26408         * tests/test-roundf1.c (ASSERT): Likewise.
26409         * tests/test-roundl.c (ASSERT): Likewise.
26410         * tests/test-signbit.c (ASSERT): Likewise.
26411         * tests/test-sleep.c (ASSERT): Likewise.
26412         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26413         * tests/test-snprintf.c (ASSERT): Likewise.
26414         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26415         * tests/test-stat-time.c (ASSERT): Likewise.
26416         * tests/test-strcasestr.c (ASSERT): Likewise.
26417         * tests/test-strerror.c (ASSERT): Likewise.
26418         * tests/test-striconv.c (ASSERT): Likewise.
26419         * tests/test-striconveh.c (ASSERT): Likewise.
26420         * tests/test-striconveha.c (ASSERT): Likewise.
26421         * tests/test-strsignal.c (ASSERT): Likewise.
26422         * tests/test-strstr.c (ASSERT): Likewise.
26423         * tests/test-strtod.c (ASSERT): Likewise.
26424         * tests/test-trunc1.c (ASSERT): Likewise.
26425         * tests/test-trunc2.c (ASSERT): Likewise.
26426         * tests/test-truncf1.c (ASSERT): Likewise.
26427         * tests/test-truncf2.c (ASSERT): Likewise.
26428         * tests/test-truncl.c (ASSERT): Likewise.
26429         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26430         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26431         * tests/test-vasnprintf.c (ASSERT): Likewise.
26432         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26433         * tests/test-vasprintf.c (ASSERT): Likewise.
26434         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26435         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26436         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26437         * tests/test-vsnprintf.c (ASSERT): Likewise.
26438         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26439         * tests/test-wcwidth.c (ASSERT): Likewise.
26440         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26441         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26442         * tests/test-xvasprintf.c (ASSERT): Likewise.
26443         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26444         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26445         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26446         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26447         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26448         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26449         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26450         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26451         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26452         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26453         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26454         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26455         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26456         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26457         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26458         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26459         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26460         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26461         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26462         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26463         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26464         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26465         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26466         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26467         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26468         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26469         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26470         * tests/unictype/test-combining.c (ASSERT): Likewise.
26471         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26472         * tests/unictype/test-digit.c (ASSERT): Likewise.
26473         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26474         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26475         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26476         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26477         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26478         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26479         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26480         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26481         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26482         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26483         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26484         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26485         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26486         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26487         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26488         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26489         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26490         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26491         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26492         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26493         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26494         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26495         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26496         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26497         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26498         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26499         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26500         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26501         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26502         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26503         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26504         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26505         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26506         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26507         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26508         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26509         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26510         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26511         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26512         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26513         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26514         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26515         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26516         Reported by Eric Blake.
26517
26518 2008-04-11  Bruno Haible  <bruno@clisp.org>
26519
26520         * lib/wchar.in.h: Tweak comment.
26521
26522 2008-04-11  Bruno Haible  <bruno@clisp.org>
26523
26524         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26525         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26526         gl_COMMON.
26527         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26528
26529 2008-04-11  Bruno Haible  <bruno@clisp.org>
26530
26531         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26532
26533 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26534
26535         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26536         of attempting to use non-existing /dev/*random.  Based on patch
26537         from Adam Strzelecki <ono@java.pl> in
26538         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26539
26540 2008-04-08  Bruno Haible  <bruno@clisp.org>
26541
26542         Add tentative support for emx+gcc.
26543         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26544         * lib/fpurge.c (fpurge): Likewise.
26545         * lib/freadable.c (freadable): Likewise.
26546         * lib/freadahead.c (freadahead): Likewise.
26547         * lib/freading.c (freading): Likewise.
26548         * lib/freadptr.c (freadptr): Likewise.
26549         * lib/freadseek.c (freadptrinc): Likewise.
26550         * lib/fseeko.c (rpl_fseeko): Likewise.
26551         * lib/fseterr.c (fseterr): Likewise.
26552         * lib/fwritable.c (fwritable): Likewise.
26553         * lib/fwriting.c (fwriting): Likewise.
26554         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26555
26556 2008-04-09  Eric Blake  <ebb9@byu.net>
26557
26558         Avoid some autoconf warnings.
26559         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26560         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26561         * m4/afs.m4 (gl_AFS): Likewise.
26562         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26563         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26564         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26565         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26566         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26567         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26568         (AC_CHECK_DECLS_ONCE): Likewise.
26569         Rename file...
26570         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26571         gnulib-tool requires autoconf 2.59 or better.
26572         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26573
26574 2008-04-08  Eric Blake  <ebb9@byu.net>
26575
26576         Use 'git describe --match' if present (added in git 1.5.5).
26577         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26578         if possible.
26579
26580 2008-04-08  Bruno Haible  <bruno@clisp.org>
26581
26582         Add tentative support for OpenServer.
26583         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26584         _ptr, _cnt.
26585         * lib/fpurge.c (fpurge): Likewise.
26586         * lib/freadable.c (freadable): Likewise.
26587         * lib/freadahead.c (freadahead): Likewise.
26588         * lib/freading.c (freading): Likewise.
26589         * lib/freadptr.c (freadptr): Likewise.
26590         * lib/freadseek.c (freadptrinc): Likewise.
26591         * lib/fseeko.c (rpl_fseeko): Likewise.
26592         * lib/fseterr.c (fseterr): Likewise.
26593         * lib/fwritable.c (fwritable): Likewise.
26594         * lib/fwriting.c (fwriting): Likewise.
26595         Reported by Roger Cornelius <rac@tenzing.org> and
26596         Brian K. White <brian@aljex.com>.
26597
26598 2008-04-06  Jim Meyering  <meyering@redhat.com>
26599
26600         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26601
26602 2008-04-06  Bruno Haible  <bruno@clisp.org>
26603
26604         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26605         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26606         * tests/test-printf-posix.sh: Likewise.
26607         * tests/test-vfprintf-posix.sh: Likewise.
26608         * tests/test-vprintf-posix.sh: Likewise.
26609         * tests/test-xprintf-posix.sh: Likewise.
26610
26611 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26612
26613         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26614         hide error from 'ls', needed on OS/2.
26615         Report by Elbert Pol <elbert.pol@gmail.com>.
26616
26617 2008-04-04  Eric Blake  <ebb9@byu.net>
26618
26619         Make test-fseeko.c failures meaningful.
26620         * tests/test-fseeko.c: Print line number on failure.
26621         * tests/test-fseek.c: Likewise.
26622         Reported by Nelson H. F. Beebe.
26623
26624         Improve strtod bug detection check.
26625         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26626         required for Solaris 10.
26627         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26628
26629 2008-04-04  Bruno Haible  <bruno@clisp.org>
26630
26631         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26632         by m4/setenv.m4.
26633
26634 2008-04-03  Eric Blake  <ebb9@byu.net>
26635
26636         Ensure sane .version contents.
26637         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26638         version string.
26639         * build-aux/git-version-gen: Improve documentation.
26640
26641         Make GNU make output nicer.
26642         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26643         MAKECMDGOALS to enforce message for all command line targets.  Set
26644         srcdir for use in maint.mk.
26645
26646         Another maintainer tweak.
26647         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26648         a target that regenerates version.
26649
26650 2008-04-03  Jim Meyering  <meyering@redhat.com>
26651
26652         vc-list-files: don't cause coreutils "make po-check" failure
26653         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26654
26655 2008-04-03  Eric Blake  <ebb9@byu.net>
26656
26657         Allow VPATH usage of vc-list-files.
26658         * build-aux/vc-list-files (scriptversion): Add timestamp.
26659         (options): Add --help, --version, -C.
26660         (CVS): Support installed cvsu.
26661
26662 2008-04-02  Bruno Haible  <bruno@clisp.org>
26663
26664         Avoid some "statement with no effect" warnings from gcc.
26665         * tests/test-wctype.c (main): Explicitly ignore unused values.
26666         Reported by Jim Meyering.
26667
26668 2008-04-02  Jim Meyering  <meyering@redhat.com>
26669
26670         Avoid some warnings from "gcc -Wshadow".
26671         * tests/test-frexp.c (exp): Define to a different identifier.
26672         * tests/test-frexpl.c (exp): Likewise.
26673
26674 2008-04-03  Jim Meyering  <meyering@redhat.com>
26675
26676         bootstrap: remove dangling *.[ch] symlinks from lib
26677         * build-aux/bootstrap [dangling symlink removal]: Move find's
26678         -depth option to precede all others, to avoid a warning.
26679         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26680
26681 2008-04-02  Bruno Haible  <bruno@clisp.org>
26682
26683         Avoid some warnings from "gcc -Wshadow".
26684         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26685         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26686         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26687         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26688         Reported by Jim Meyering.
26689
26690 2008-04-01  Bruno Haible  <bruno@clisp.org>
26691
26692         Fix test to work on IRIX 6.5 with cc.
26693         * tests/test-math.c (numeric_equal): New function.
26694         (main): Use it.
26695
26696 2008-04-01  Bruno Haible  <bruno@clisp.org>
26697
26698         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26699
26700 2008-04-01  Bruno Haible  <bruno@clisp.org>
26701
26702         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26703         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26704         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26705         (Depends-on): Remove math.
26706
26707         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26708         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26709         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26710         (Depends-on): Remove math.
26711
26712         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26713         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26714         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26715         (Depends-on): Remove math.
26716         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26717         (Depends-on): Remove math.
26718
26719         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26720         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26721         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26722         (Depends-on): Remove math.
26723         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26724         (Depends-on): Remove math.
26725
26726         * tests/test-round1.c: Include nan.h.
26727         (main): Use NaNd instead of NAN.
26728         * modules/round-tests (Files): Add tests/nan.h.
26729
26730         * tests/test-trunc1.c: Include nan.h.
26731         (main): Use NaNd instead of NAN.
26732         * modules/trunc-tests (Files): Add tests/nan.h.
26733
26734         * tests/test-roundf1.c: Include nan.h.
26735         (main): Use NaNf instead of NAN.
26736         * modules/roundf-tests (Files): Add tests/nan.h.
26737
26738         * tests/test-truncf1.c: Include nan.h.
26739         (main): Use NaNf instead of NAN.
26740         * modules/truncf-tests (Files): Add tests/nan.h.
26741
26742         * tests/test-ceilf1.c: Include nan.h.
26743         (main): Use NaNf instead of NAN.
26744         * modules/ceilf-tests (Files): Add tests/nan.h.
26745
26746         * tests/test-floorf1.c: Include nan.h.
26747         (main): Use NaNf instead of NAN.
26748         * modules/floorf-tests (Files): Add tests/nan.h.
26749
26750         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26751         (main): Use NaNf instead of NAN.
26752         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26753
26754         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26755         (main): Use NaNd instead of NAN.
26756         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26757
26758         * tests/test-frexp.c: Include nan.h.
26759         (main): Use NaNd instead of NAN.
26760         * modules/frexp-tests (Files): Add tests/nan.h.
26761
26762         * lib/isnan.c: Don't include <math.h>.
26763         (FUNC): Don't use NAN macro.
26764         * modules/isnand-nolibm (Depends-on): Remove math.
26765         * modules/isnanf-nolibm (Depends-on): Remove math.
26766         * modules/isnanl (Depends-on): Remove math.
26767         * modules/isnanl-nolibm (Depends-on): Remove math.
26768
26769         * tests/nan.h: New file.
26770
26771 2008-04-01  Eric Blake  <ebb9@byu.net>
26772
26773         Fix typos.
26774         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26775         values to be the right type.
26776
26777         For now, cater to gnulib strtod inaccuracies.
26778         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26779         fractional results.  While not as nice from a QoI perspective, it
26780         is a quicker patch than correctly implementing decimal to binary
26781         rounding.
26782
26783 2008-03-31  Eric Blake  <ebb9@byu.net>
26784
26785         Guarantee a definition of NAN.
26786         * lib/math.in.h (NAN): Define if missing.
26787         * tests/test-math.c (main): Test it.
26788         * doc/posix-headers/math.texi (math.h): Document this.
26789         * lib/isnan.c (rpl_isnand): Use it.
26790         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26791         * tests/test-floorf1.c (NaN): Likewise.
26792         * tests/test-frexp.c (NaN): Likewise.
26793         * tests/test-isnand.c (NaN): Likewise.
26794         * tests/test-isnanf.c (NaN): Likewise.
26795         * tests/test-round1.c (NaN): Likewise.
26796         * tests/test-roundf1.c (NaN): Likewise.
26797         * tests/test-snprintf-posix.h (NaN): Likewise.
26798         * tests/test-sprintf-posix.h (NaN): Likewise.
26799         * tests/test-trunc1.c (NaN): Likewise.
26800         * tests/test-truncf1.c (NaN): Likewise.
26801         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26802         * tests/test-vasprintf-posix.c (NaN): Likewise.
26803         * modules/isnand-nolibm (Depends-on): Add math.
26804         * modules/isnanf-nolibm (Depends-on): Likewise.
26805         * modules/isnanl (Depends-on): Likewise.
26806         * modules/isnanl-nolibm (Depends-on): Likewise.
26807         * modules/snprintf-posix-tests (Depends-on): Likewise.
26808         * modules/sprintf-posix-tests (Depends-on): Likewise.
26809         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26810         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26811         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26812         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26813
26814 2008-03-31  Bruno Haible  <bruno@clisp.org>
26815
26816         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26817         * doc/posix-functions/strtod.texi: Likewise.
26818
26819 2008-03-31  Bruno Haible  <bruno@clisp.org>
26820
26821         * tests/test-strtod.c (main): Don't use C99 syntax.
26822
26823 2008-03-31  Bruno Haible  <bruno@clisp.org>
26824
26825         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26826         Reported by Eric Blake.
26827
26828 2008-03-31  Jim Meyering  <meyering@redhat.com>
26829
26830         Don't compare actual signbit return values.
26831         * tests/test-strtod.c (main): Rather, compare only their
26832         zero/non-zero nature.
26833
26834 2008-03-31  Eric Blake  <ebb9@byu.net>
26835
26836         More strtod documentation.
26837         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26838         failures as distinct bugs.
26839
26840 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26841
26842         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26843         Problem reported by Erik Benada in
26844         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26845
26846 2008-03-30  Bruno Haible  <bruno@clisp.org>
26847
26848         * tests/test-strtod.c: Add comments about which assertion fails on which
26849         platform.
26850         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26851
26852 2008-03-30  Eric Blake  <ebb9@byu.net>
26853
26854         Test signbit behavior on zeros.
26855         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26856         (test_signbitd, test_signbitl): Likewise.
26857
26858         More strtod touchups.
26859         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26860         sign of negative underflow, for now.  Use .5, not .1.
26861         * doc/posix-functions/strtod.texi (strtod): Mention these
26862         limitations.
26863         Reported by Jim Meyering.
26864
26865 2008-03-30  Bruno Haible  <bruno@clisp.org>
26866
26867         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26868         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26869
26870 2008-03-30  Bruno Haible  <bruno@clisp.org>
26871
26872         Avoid failure when attempting to return empty iconv results on some
26873         platforms.
26874         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26875         allocation, don't report ENOMEM when the resulting string is empty.
26876
26877 2008-03-30  Bruno Haible  <bruno@clisp.org>
26878
26879         Fix buffer overrun.
26880         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26881         Don't consider the width for tmp_length. Check count against tmp_length
26882         before doing the padding. Ensure enough allocation during padding.
26883
26884 2008-03-30  Eric Blake  <ebb9@byu.net>
26885
26886         strtod touchups.
26887         * lib/strtod.c (strtod): Avoid compiler warnings.
26888         Reported by Jim Meyering.
26889
26890 2008-03-30  Bruno Haible  <bruno@clisp.org>
26891
26892         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26893         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26894         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26895         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26896         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26897         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26898         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26899         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26900
26901         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26902         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26903         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26904         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26905         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26906         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26907         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26908         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26909
26910         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26911         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26912         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26913         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26914         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26915         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26916         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26917         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26918
26919         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26920         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26921
26922         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26923         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26924
26925         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26926         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26927
26928         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26929         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26930         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26931
26932         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26934         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26935
26936         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26937         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26938         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26939
26940         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26942         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26943
26944         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26945         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26946         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26947         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26948         (Depends-on): Add EOVERFLOW.
26949         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26950         (Depends-on): Add EOVERFLOW.
26951         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26952         (Depends-on): Add EOVERFLOW.
26953         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26954         (Depends-on): Add EOVERFLOW.
26955         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26956         (Depends-on): Add EOVERFLOW.
26957         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26958         (Depends-on): Add EOVERFLOW.
26959         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26960         (Depends-on): Add EOVERFLOW.
26961         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26962         (Depends-on): Add EOVERFLOW.
26963
26964         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26965         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26966         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26967
26968         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26970         * modules/snprintf (Depends-on): Add EOVERFLOW.
26971
26972         * lib/poll.c (EOVERFLOW): Remove fallback.
26973         * modules/poll (Depends-on): Add EOVERFLOW.
26974
26975         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26976         * modules/getugroups (Depends-on): Add EOVERFLOW.
26977
26978         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26979         * modules/getdelim (Depends-on): Add EOVERFLOW.
26980
26981         * lib/ftell.c (EOVERFLOW): Remove fallback.
26982         * modules/ftell (Depends-on): Add EOVERFLOW.
26983
26984         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26985         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26986         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26987
26988         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26989
26990         * modules/EOVERFLOW-tests: New file.
26991         * tests/test-EOVERFLOW.c: New file.
26992
26993         * modules/EOVERFLOW: New file.
26994         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26995
26996 2008-03-30  Bruno Haible  <bruno@clisp.org>
26997
26998         Fix bug introduced on 2007-06-10.
26999         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
27000         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
27001
27002 2008-03-30  Bruno Haible  <bruno@clisp.org>
27003
27004         Improve freadseek's efficiency after ungetc.
27005         * lib/freadseek.c: Include freadahead.h.
27006         (freadptrinc): New function, extracted from freadseek.
27007         (freadseek): Use it in a loop. Use freadahead to determine the number
27008         of loop iterations.
27009         * modules/freadseek (Depends-on): Add freadahead.
27010         (configure.ac): Require AC_C_INLINE.
27011
27012 2008-03-30  Bruno Haible  <bruno@clisp.org>
27013
27014         * lib/freadseek.c (freadseek): Don't ignore the return value of
27015         freadptr.
27016
27017 2008-03-29  Eric Blake  <ebb9@byu.net>
27018
27019         Add hex float support.
27020         * modules/strtod (Depends-on): Add c-ctype.
27021         (Link): Mention POW_LIB.
27022         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
27023         whitespace between 'e' and exponent.
27024         * tests/test-strtod.c (main): Enable hex float tests.
27025         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
27026         now provides.
27027
27028         Document various strtod bugs, with some fixes.
27029         * doc/posix-functions/strtod.texi (strtod): Document bugs with
27030         "-0x", "inf", "nan", and hex constants.
27031         * doc/posix-functions/atof.texi (atof): Likewise.
27032         * modules/stdlib (Makefile.am): Support strtod.
27033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27034         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
27035         detect additional strtod bugs.
27036         * lib/stdlib.in.h (rpl_strtod): Add declarations.
27037         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
27038         bool where appropriate.  Parse 'inf' and 'nan'.
27039         * tests/test-strtod.c: New file.
27040         * modules/strtod (Depends-on): Add stdbool, stdlib.
27041         (configure.ac): Turn on module indicator.
27042         * modules/strtod-tests: New module.
27043
27044 2008-03-29  Eric Blake  <ebb9@byu.net>
27045
27046         Fix ftell on mingw.
27047         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
27048         * modules/ftell-tests (Depends-on): Add binary-io.
27049         * modules/ftello-tests (Depends-on): Likewise.
27050         * tests/test-ftell.c (main): Enhance test to cover behavior after
27051         ungetc.  Enforce binary mode.
27052         * tests/test-ftello.c (main): Likewise.
27053
27054         Pass test-freadseek on cygwin.
27055         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
27056         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
27057         ungetc buffer.
27058
27059         * tests/test-fflush2.c (main): Fix typo.
27060
27061 2008-03-29  Bruno Haible  <bruno@clisp.org>
27062
27063         * tests/test-fflush2.c (main): Temporarily disable the contents of
27064         this test.
27065         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
27066         Reported by Eric Blake.
27067
27068 2008-03-28  Simon Josefsson  <simon@josefsson.org>
27069
27070         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
27071         (GC_SHA224_DIGEST_SIZE): Add.
27072
27073         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
27074         (gc_hash_digest_length): Likewise.
27075         (gc_hash_buffer): Likewise.
27076
27077 2008-03-25  Bruno Haible  <bruno@clisp.org>
27078
27079         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
27080         detail which gettext release to use.
27081         Reported by Simon Josefsson.
27082
27083 2008-03-26  Jim Meyering  <meyering@redhat.com>
27084
27085         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
27086         * modules/gnumakefile (clean-GNUmakefile): Also, use
27087         test ... && ... || : syntax rather than if-then ... fi.
27088
27089         gnumakefile: Don't double-quote-expand $(VPATH) value.
27090         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
27091
27092 2008-03-24  Eric Blake  <ebb9@byu.net>
27093
27094         Alter GNUmakefile to install into top directory.
27095         * modules/maintainer-makefile: Split, and add dependency...
27096         * modules/gnumakefile: to this new module.
27097         * build-aux/GNUmakefile: Move...
27098         * top/GNUmakefile: ...here.
27099         * build-aux/maint.mk: Move...
27100         * top/maint.mk: ...here.
27101         * MODULES.html.sh (Support for maintaining...): Document new
27102         module.
27103
27104 2008-03-23  Bruno Haible  <bruno@clisp.org>
27105
27106         * gnulib-tool: New options --vc-files, --no-vc-files.
27107         (func_usage): Document them.
27108         (vc_files): New variable.
27109         (func_import): Consider vc_files.
27110         (func_create_testdir): Set vc_files to empty.
27111         Suggested by Jim Meyering and Karl Berry.
27112
27113 2008-03-23  Bruno Haible  <bruno@clisp.org>
27114
27115         Fix regex compilation error on HP-UX 11.
27116         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
27117         * modules/regex (Files): Add m4/mbstate_t.m4.
27118         Reported by Ton Voon <ton.voon@altinity.com>.
27119
27120 2008-03-23  Bruno Haible  <bruno@clisp.org>
27121
27122         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
27123
27124 2008-03-23  Eric Blake  <ebb9@byu.net>
27125             Bruno Haible  <bruno@clisp.org>
27126
27127         Install files from top/ in the destination directory.
27128         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27129         augmentation also for the files from top/.
27130         (func_import, func_create_testdir): Rewrite file names:
27131         top/filename -> filename.
27132
27133 2008-03-23  Bruno Haible  <bruno@clisp.org>
27134
27135         Tweak "gnulib --version" output.
27136         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
27137
27138 2008-03-23  Bruno Haible  <bruno@clisp.org>
27139
27140         Tweak "gnulib --version" output.
27141         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
27142         rather than contents of ChangeLog, when possible.
27143
27144 2008-03-21  Eric Blake  <ebb9@byu.net>
27145
27146         More --version tweaks.
27147         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
27148         date of last ChangeLog entry.
27149
27150 2008-03-21  Jim Meyering  <meyering@redhat.com>
27151
27152         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
27153
27154 2008-03-20  Eric Blake  <ebb9@byu.net>
27155
27156         VPATH fix.
27157         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
27158
27159 2008-03-20  Simon Josefsson  <simon@josefsson.org>
27160
27161         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
27162         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
27163
27164 2008-03-20  Eric Blake  <ebb9@byu.net>
27165
27166         Sync GNUmakefile with coreutils.
27167         * build-aux/GNUmakefile (have-Makefile): Rename...
27168         (_have-Makefile): ...to this, for namespace consideration.
27169         (GNUmakefile.cfg): Include, if present.
27170         (_autoreconf): Define a default.
27171         (_is-dist-target): New rule for rebuilds to pick up intra-release
27172         version.
27173         (maint-cfg.mk): Rename...
27174         (cfg.mk): ...to this.
27175
27176 2008-03-18  Jim Meyering  <meyering@redhat.com>
27177
27178         New script and module: mktempd
27179         * MODULES.html.sh (maint+release support): Add mktempd.
27180         * build-aux/mktempd: New file.
27181         * modules/mktempd: New file.
27182
27183 2008-03-15  Jim Meyering  <meyering@redhat.com>
27184
27185         Undo last change.
27186         * lib/sha1.c, lib/md5.c: 63 != ~63.
27187         Reported by Andreas Schwab.
27188
27189         sha1.c, md5.c: Hoist a redundant expression.
27190         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27191         "ctx->buflen" only once, before calling *_process_block.
27192         * lib/md5.c (md5_process_bytes): Likewise.
27193
27194 2008-03-14  Eric Blake  <ebb9@byu.net>
27195
27196         Bump copyright year in files generated by gnulib-tool.
27197         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27198         gnulib-tool, rather than hard-coding it.
27199
27200         Fix 'gnulib-tool --version' output to work with git.
27201         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27202         (startup): ...here.
27203         (func_version): Use it to invoke git-version-gen, rather than
27204         relying on CVS keyword expansion.  Modernize wording.
27205         (cvsdatestamp, last_checkin_date, version): Kill unused
27206         variables.
27207
27208 2008-03-12  Jim Meyering  <meyering@redhat.com>
27209
27210         Recognize optional cast of the argument to free.
27211         * build-aux/useless-if-before-free: Update regexps.
27212
27213         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27214
27215 2008-03-11  Bruno Haible  <bruno@clisp.org>
27216
27217         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27218         by a single package.
27219         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27220         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27221         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27222         Reported by Sam Steingold <sds@gnu.org>.
27223
27224 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27225
27226         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27227         repositories.
27228
27229 2008-03-11  Bruno Haible  <bruno@clisp.org>
27230
27231         Avoid conflicts between local macro definitions.
27232         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27233         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27234
27235 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27236             Bruno Haible  <bruno@clisp.org>
27237
27238         Make va_copy work with some version of xlc on AIX 5.1.
27239         * lib/stdarg.in.h: New file.
27240         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27241         On AIX, use a <stdarg.h> file substitute.
27242         * modules/stdarg (Files): Add lib/stdarg.in.h.
27243         (Depends-on): Add include_next.
27244         (Makefile.am): Build a stdarg.h substitute if requested.
27245         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27246
27247 2008-03-10  Bruno Haible  <bruno@clisp.org>
27248
27249         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27250         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27251         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27252
27253 2008-03-10  Bruno Haible  <bruno@clisp.org>
27254
27255         * modules/stdlib (Depends-on): Add include_next, remove
27256         absolute-header.
27257
27258 2008-03-09  Bruno Haible  <bruno@clisp.org>
27259
27260         * lib/freadahead.h (freadahead): Document more precisely.
27261         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27262         the sum of both buffer sizes.
27263         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27264         * NEWS: Document the change.
27265
27266 2008-03-09  Bruno Haible  <bruno@clisp.org>
27267
27268         Extend freadptr to return also the buffer size.
27269         * lib/freadptr.h (freadptr): Add sizep argument.
27270         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27271         (freadptr): Add sizep argument. Determine buffer size like freadahead
27272         does.
27273         * tests/test-freadptr.c: Don't include freadahead.h.
27274         (main): Adapt for new calling convention of freadptr.
27275         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27276         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27277         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27278         tests/test-freadptr2.sh.
27279         (Depends): Remove freadahead.
27280         (TESTS): Add test-freadptr2.sh.
27281         (check_PROGRAMS): Add test-freadptr2.
27282
27283 2008-03-09  Bruno Haible  <bruno@clisp.org>
27284
27285         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27286         Report and solution by Simon Josefsson.
27287
27288 2008-03-06  Bruno Haible  <bruno@clisp.org>
27289
27290         Make fflush after ungetc work on BSD platforms.
27291         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27292         * tests/test-fflush2.c: New file.
27293         * tests/test-fflush2.sh: New file.
27294         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27295         tests/test-fflush2.c.
27296         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27297         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27298
27299 2008-03-06  Eric Blake  <ebb9@byu.net>
27300
27301         Likewise for ftello.
27302         * modules/ftello (Dependencies): Add extensions.
27303         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27304
27305 2008-03-06  Bruno Haible  <bruno@clisp.org>
27306
27307         * modules/fseeko (Dependencies): Add extensions.
27308         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27309         Needed on glibc systems.
27310
27311 2008-03-06  Bruno Haible  <bruno@clisp.org>
27312
27313         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27314         email address.
27315         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27316
27317 2008-03-06  Bruno Haible  <bruno@clisp.org>
27318
27319         * users.txt: Add libgnupdf.
27320
27321 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27322
27323         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27324         (Header File Substitutes, Function Substitutes,
27325         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27326         (Build robot for gnulib): Fix typo.
27327
27328 2008-03-06  Bruno Haible  <bruno@clisp.org>
27329
27330         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27331         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27332
27333 2008-03-06  Bruno Haible  <bruno@clisp.org>
27334
27335         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27336         * doc/gnulib.texi: Include it.
27337
27338 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27339
27340         * modules/func (License): Change license to unlimited; there was
27341         no LGPL parts in the module anyway.
27342
27343 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27344
27345         * modules/__func__: Renamed to modules/func.
27346         * modules/__func__-tests: Renamed to modules/func-tests.
27347         * tests/test-__func__.c: Renamed to tests/test-func.c.
27348         * m4/__func__.m4: Renamed to m4/func.m4.
27349         * doc/gnulib.texi (__func__): Section renamed to func.
27350         Suggested by Eric Blake <ebb9@byu.net>.
27351
27352 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27353
27354         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27355         about __func__.  Make example self-contained.  Suggested by Eric
27356         Blake <ebb9@byu.net>.
27357
27358         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27359         Suggested by Eric Blake <ebb9@byu.net>.
27360
27361 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27362
27363         * modules/__func__: New file.
27364         * modules/__func__-tests: New file.
27365         * tests/test-__func__.c: New file.
27366         * m4/__func__.m4: New file.
27367         * doc/gnulib.texi (__func__): Document __func__ module.
27368
27369 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27370
27371         * modules/byteswap (License): Re-license as LGPLv2+.
27372
27373 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27374
27375         * doc/Makefile: Add pdf target.
27376
27377 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27378
27379         * modules/inline (License): Use 'unlimited', since there are only
27380         *.m4 files in this module.
27381
27382 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27383             Bruno Haible  <bruno@clisp.org>
27384
27385         Add support for HP C 7.1 on OpenVMS 8.3.
27386         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27387
27388 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27389
27390         Update VMS specifics.
27391         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27392
27393 2008-03-02  Jim Meyering  <meyering@redhat.com>
27394
27395         Remove the last dependency on the "free" module.
27396         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27397         Reported by Bob Proulx.
27398
27399         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27400
27401         Remove useless "if" tests before free.  Deprecate "free" module.
27402         * doc/posix-functions/free.texi: Mention that this
27403         module is no longer useful.
27404         * modules/free (Notice): Say this module is obsolete.
27405         * modules/readutmp (Depends-on): Remove free.
27406         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27407         * lib/putenv.c (putenv): Likewise.
27408         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27409         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27410         * tests/test-c-strcasestr.c (main): Likewise.
27411         * tests/test-c-strstr.c (main): Likewise.
27412         * tests/test-mbscasestr1.c (main): Likewise.
27413         * tests/test-mbscasestr2.c (main): Likewise.
27414         * tests/test-mbsstr1.c (main): Likewise.
27415         * tests/test-mbsstr2.c (main): Likewise.
27416         * tests/test-memmem.c (main): Likewise.
27417         * tests/test-strcasestr.c (main): Likewise.
27418         * tests/test-striconv.c (main): Likewise.
27419         * tests/test-striconveh.c (main): Likewise.
27420         * tests/test-striconveha.c (main): Likewise.
27421         * tests/test-strstr.c (main): Likewise.
27422
27423         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27424
27425         bootstrap: sync from coreutils again
27426         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27427
27428 2008-03-01  Jim Meyering  <meyering@redhat.com>
27429
27430         bootstrap: sync from coreutils
27431         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27432         also when the target doesn't exist.
27433
27434 2008-03-01  Eric Blake  <ebb9@byu.net>
27435
27436         Fix bugs in last patch.
27437         * lib/memchr2.c (memchr2): Fix typo.
27438         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27439         extension.
27440         Reported by Bruce Korb.
27441
27442         New module 'memchr2'.
27443         * modules/memchr2: New file.
27444         * modules/memchr2-tests: Likewise.
27445         * lib/memchr2.h: Likewise.
27446         * lib/memchr2.c: Likewise, based on memchr.c.
27447         * tests/test-memchr2.c: New test.
27448         * MODULES.html.sh (String handling): Add memchr2.
27449
27450 2008-02-29  Bruno Haible  <bruno@clisp.org>
27451
27452         * modules/freadseek-tests: New file.
27453         * tests/test-freadseek.sh: New file.
27454         * tests/test-freadseek.c: New file.
27455
27456         New module 'freadseek'.
27457         * modules/freadseek: New file.
27458         * lib/freadseek.h: New file.
27459         * lib/freadseek.c: New file.
27460         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27461
27462 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27463
27464         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27465         wydawca.
27466
27467         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27468         program_invocation_name and program_invocation_short_name are
27469         present.
27470
27471 2008-02-28  Bruno Haible  <bruno@clisp.org>
27472
27473         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27474         * tests/test-freadptr.sh: Also test non-seekable stdin.
27475
27476 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27477
27478         * build-aux/bootstrap (source_base, m4_base)
27479         (doc_base, tests_base): New variables.
27480         (gnulib_tool_options): Do not hardcode base directories, use
27481         the above variables instead.
27482
27483 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27484
27485         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27486
27487 2008-02-28  Bruno Haible  <bruno@clisp.org>
27488
27489         * modules/freadptr-tests: New file.
27490         * tests/test-freadptr.sh: New file.
27491         * tests/test-freadptr.c: New file.
27492
27493         New module 'freadptr'.
27494         * modules/freadptr: New file.
27495         * lib/freadptr.h: New file.
27496         * lib/freadptr.c: New file.
27497         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27498
27499 2008-02-26  Karl Berry  <karl@freefriends.org>
27500
27501         Sync from Libtool:
27502         * libltdl/argz.c (argz_add, argz_count): New functions.
27503         * libltdl/argz.in.h: Declare them.
27504         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27505
27506 2008-02-22  Bruno Haible  <bruno@clisp.org>
27507
27508         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27509         is a pointer type.  Needed for HP-UX 10.
27510         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27511         * doc/posix-functions/gmtime_r.texi: Likewise.
27512         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27513
27514 2008-02-24  Bruno Haible  <bruno@clisp.org>
27515
27516         * modules/environ-tests: New file.
27517         * tests/test-environ.c: New file.
27518
27519         New module 'environ'.
27520         * modules/environ: New file.
27521         * lib/unistd.in.h (environ): New declaration.
27522         * m4/environ.m4: New file.
27523         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27524         after use.
27525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27526         HAVE_DECL_ENVIRON.
27527         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27528         HAVE_DECL_ENVIRON.
27529         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27530         wrong claim that 'environ' is missing on some systems.
27531         * modules/execute (Depends-on): Add environ.
27532         * lib/execute.c (environ): Remove fallback declaration.
27533         * modules/pipe (Depends-on): Add environ.
27534         * lib/pipe.c (environ): Remove fallback declaration.
27535         * modules/setenv (Depends-on): Add environ.
27536         * lib/setenv.c (environ): Remove fallback declaration.
27537         * modules/unsetenv (Depends-on): Add environ.
27538         * lib/unsetenv.c (environ): Remove fallback declaration.
27539         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27540         m4/environ.m4.
27541         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27542         (gl_PREREQ_UNSETENV): Likewise.
27543
27544 2008-02-24  Bruno Haible  <bruno@clisp.org>
27545
27546         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27547
27548 2008-02-20  Bob Proulx  <bob@proulx.com>
27549
27550         Enable use of older two part flavor 'git describe'.
27551         * build-aux/git-version-gen: If using the older two part flavor of
27552         git version then recreate the third part now present in the
27553         newer three part flavor of git describe.
27554
27555 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27556
27557         * lib/fts.c (fts_build): Typo correction to comment.
27558
27559 2008-02-17  Bruno Haible  <bruno@clisp.org>
27560
27561         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27562         generating no-op conflicts.
27563
27564 2008-02-17  Bruno Haible  <bruno@clisp.org>
27565
27566         Speed up by 10%.
27567         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27568         result_entries, rather than an index-based loop.
27569
27570 2008-02-17  Bruno Haible  <bruno@clisp.org>
27571
27572         Speed up by 25%.
27573         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27574         'hashcode_cached'.
27575         (entry_create): New function.
27576         (entry_hashcode): Use the cached hashcode if possible.
27577         (read_changelog_file, try_split_merged_entry): Use entry_create.
27578
27579 2008-02-17  Bruno Haible  <bruno@clisp.org>
27580
27581         Speed up from O(n^2) to O(n) for long ChangeLog files.
27582         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27583         (read_changelog_file): Change implementation of entries_reversed list
27584         to rbtreehash.
27585         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27586
27587 2008-02-17  Bruno Haible  <bruno@clisp.org>
27588
27589         New option --split-merged-entry.
27590         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27591         (find_paragraph_end, try_split_merged_entry): New functions.
27592         (long_options): Add option --split-merged-entry.
27593         (usage): Document option --split-merged-entry.
27594         (main): Implement option --split-merged-entry.
27595         Reported by Eric Blake.
27596
27597 2008-02-17  Bruno Haible  <bruno@clisp.org>
27598
27599         * lib/git-merge-changelog.c: Include c-strstr.h.
27600         (main): Support the "git pull --rebase" situation.
27601         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27602         Reported by Eric Blake.
27603
27604 2008-02-16  Eric Blake  <ebb9@byu.net>
27605
27606         Avoid doubling \ in common case of "c-maybe" quoting style.
27607         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27608         eliding outer quotes.
27609         * lib/quotearg.h: Document this.
27610         * tests/test-quotearg.c (result_strings, inputs, results_g)
27611         (flag_results, locale_results): Test it by adding a new string to
27612         each test group.
27613         (compare_strings): Test new string.
27614
27615 2008-02-13  Eric Blake  <ebb9@byu.net>
27616
27617         Avoid trigraph quoting in default output.
27618         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27619         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27620         unless explicitly requested.
27621         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27622
27623 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27624
27625         Don't rely on signed integer overflowing to negative value.
27626         * lib/getugroups.c (getugroups): Include <limits.h>.
27627         Instead, compare against INT_MAX, and increment only if the test passes.
27628
27629 2008-02-13  Jim Meyering  <meyering@redhat.com>
27630         and Eric Blake  <ebb9@byu.net>
27631
27632         Avoid shadowing warning and compile errors on Linux.
27633         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27634         forwarding macros on Linux.
27635         (dcgettext): Define a stub, for Linux.
27636         (results_g, main): Avoid warnings.
27637
27638 2008-02-12  Eric Blake  <ebb9@byu.net>
27639
27640         Silence warning in last patch.
27641         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27642
27643         Quotearg part 4: add tests, fix c-maybe colon quoting.
27644         * lib/quotearg.h: Improve documentation.
27645         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27646         escapes when adding outer quotes.  When quoting trigraphs, use
27647         valid C notation.  When quoting NUL, omit extra characters if next
27648         character is not digit.  Alter prototype.
27649         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27650         callers.
27651         * modules/quotearg-tests: New module.
27652         * tests/test-quotearg.c: New test.
27653
27654 2008-02-07  Eric Blake  <ebb9@byu.net>
27655
27656         Quotearg part 3: add flag to control outer quote elision.
27657         * lib/quotearg.h (c_maybe_quoting_style): New style.
27658         (enum quoting_flags): Better documentation of flags.
27659         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27660         c-maybe style.
27661         (quotearg_buffer_restyled): Handle new flag to elide outer
27662         quotes.
27663
27664         Quotearg part 2: add flag that can control NUL elision.
27665         * lib/quotearg.h (set_quoting_flags): New prototype.
27666         * lib/quotearg.c (struct quoting_options): Add flag field.
27667         (set_quoting_flags): New function.
27668         (quotearg_buffer_restyled): Add flags parameter.
27669         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27670         (quotearg_n_options): Set the flag, since length cannot be
27671         returned.
27672         (quoting_options_from_style): Default flags correctly.
27673
27674         Quotearg part 1: more wrappers, restore quotearg_char state.
27675         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27676         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27677         (quotearg_colon_mem): New wrappers.
27678         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27679         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27680         functions.
27681         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27682         (quotearg_colon_mem): New functions.
27683
27684 2008-02-11  Bruno Haible  <bruno@clisp.org>
27685
27686         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27687         library in the current directory: it does not work with parallel make.
27688         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27689
27690 2008-02-11  Bruno Haible  <bruno@clisp.org>
27691
27692         * .gitattributes: New file.
27693
27694 2008-02-11  Jim Meyering  <meyering@redhat.com>
27695
27696         useless-if-before-free: Fix reversed exit values.
27697         * build-aux/useless-if-before-free: Use correct values
27698         for EXIT_MATCH and EXIT_NO_MATCH.
27699
27700         * build-aux/useless-if-before-free: Close stdout carefully.
27701
27702 2008-02-10  Bruno Haible  <bruno@clisp.org>
27703
27704         New module 'git-merge-changelog'.
27705         * modules/git-merge-changelog: New file.
27706         * lib/git-merge-changelog.c: New file.
27707
27708 2008-02-10  Jim Meyering  <meyering@redhat.com>
27709
27710         useless-if-before-free: New option: --list (-l).
27711
27712         useless-if-before-free: Don't exit immediately upon open failure.
27713         * build-aux/useless-if-before-free: Exit 2 for errors.
27714         Upon failure to open a file, don't exit immediately.
27715         Rather, just warn and continue with any remaining files.
27716
27717 2008-02-10  Bruno Haible  <bruno@clisp.org>
27718
27719         New abstract list operation 'node_set_value'.
27720         * lib/gl_list.h (gl_list_node_set_value): New function.
27721         (struct gl_list_implementation): New field node_set_value.
27722         * lib/gl_list.c (gl_list_node_set_value): New function.
27723         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27724         (gl_array_list_implementation): Update.
27725         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27726         (gl_carray_list_implementation): Update.
27727         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27728         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27729         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27730         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27731         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27732         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27733         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27734         Update.
27735         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27736         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27737         (gl_sublist_list_implementation): Update.
27738
27739 2008-02-10  Bruno Haible  <bruno@clisp.org>
27740
27741         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27742         Needed when ELEMENT is #defined to 'some_type *'.
27743
27744 2008-02-10  Jim Meyering  <meyering@redhat.com>
27745
27746         New script and module: useless-if-before-free
27747         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27748         * build-aux/useless-if-before-free: New file.
27749         * modules/useless-if-before-free: New file.
27750
27751         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27752
27753         xstrtol_error: Fix typo.
27754         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27755         s/exit_failure/exit_status/.
27756
27757 2008-02-09  Jim Meyering  <meyering@redhat.com>
27758
27759         New script and module: gitlog-to-changelog
27760         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27761         * modules/gitlog-to-changelog: New file.
27762         * build-aux/gitlog-to-changelog: New file.
27763
27764 2008-02-08  Jim Meyering  <meyering@redhat.com>
27765
27766         Avoid two "parameter unused" warnings.
27767         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27768         Mark "st" as used.
27769
27770         Use "git COMMAND", not "git-COMMAND".
27771         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27772         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27773         * build-aux/git-version-gen: Use "git status", not "git-status".
27774
27775 2008-02-07  Bruno Haible  <bruno@clisp.org>
27776
27777         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27778         Avoids a crash on Windows Vista.
27779         Reported by Adam Strzelecki <ono@java.pl> via
27780         Simon Josefsson <simon@josefsson.org>.
27781
27782 2008-02-06  Bruno Haible  <bruno@clisp.org>
27783
27784         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27785         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27786         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27788         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27789         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27790         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27791         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27792         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27793         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27794         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27795         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27796         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27797         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27798         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27799         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27800         left-adjust flag.
27801         * tests/test-snprintf-posix.h (test_function): Likewise.
27802         * tests/test-sprintf-posix.h (test_function): Likewise.
27803         * tests/test-vasprintf-posix.c (test_function): Likewise.
27804         * doc/posix-functions/fprintf.texi: Update.
27805         * doc/posix-functions/printf.texi: Update.
27806         * doc/posix-functions/snprintf.texi: Update.
27807         * doc/posix-functions/sprintf.texi: Update.
27808         * doc/posix-functions/vfprintf.texi: Update.
27809         * doc/posix-functions/vprintf.texi: Update.
27810         * doc/posix-functions/vsnprintf.texi: Update.
27811         * doc/posix-functions/vsprintf.texi: Update.
27812         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27813
27814 2008-02-06  Bruno Haible  <bruno@clisp.org>
27815
27816         Fix bug introduced on 2008-01-26.
27817         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27818
27819 2008-02-06  Bruno Haible  <bruno@clisp.org>
27820
27821         Fix bug introduced on 2007-06-10.
27822         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27823         !NEED_PRINTF_FLAG_ZERO.
27824
27825 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27826
27827         getloadavg: use libperfstat on AIX5
27828         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27829
27830 2008-02-03  Bruno Haible  <bruno@clisp.org>
27831
27832         * lib/diffseq.h: Add comments about required #includes.
27833         Reported by Michael Biggs <gnulib@doubleplum.net>.
27834
27835 2008-02-01  Bruno Haible  <bruno@clisp.org>
27836
27837         * users.txt: Add gnuit.
27838
27839 2008-01-31  Bruno Haible  <bruno@clisp.org>
27840
27841         * lib/md4.c (set_uint32): Mark as inline.
27842         * lib/md5.c (set_uint32): Likewise.
27843         * lib/sha1.c (set_uint32): Likewise.
27844         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27845         * m4/md5.m4 (gl_MD5): Likewise.
27846         * m4/sha1.m4 (gl_SHA1): Likewise.
27847
27848 2008-01-31  Jim Meyering  <meyering@redhat.com>
27849
27850         Use "sizeof VAR", rather than a literal "4".
27851         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27852         * lib/md4.c (md4_read_ctx): Likewise.
27853         * lib/sha1.c (sha1_read_ctx): Likewise.
27854
27855 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27856
27857         * tests/test-sha1.c: New file, based on test-md5.c.
27858
27859         * modules/crypto/sha1-tests: New file.
27860
27861 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27862
27863         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27864
27865 2008-01-31  Jim Meyering  <meyering@redhat.com>
27866
27867         Prefer "sizeof v" over the equivalent "4".
27868         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27869         * lib/md5.c (set_uint32): Likewise.
27870         * lib/sha1.c (set_uint32): Likewise.
27871
27872 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27873
27874         * lib/sha1.c (set_uint32): Mark function as static.
27875
27876 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27877
27878         md2: clarify comments to say that alignment is not required.
27879         * lib/md2.h: Remove warning about alignment in comment.
27880         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27881         never been required.
27882
27883 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27884
27885         md4: adapt alignment constraint fix from sha1.
27886         * lib/md4.c (set_uint32): New function, from sha1.c
27887         (md4_read_ctx): Use it.
27888         (md4_finish_ctx): Doc fix.
27889         * lib/md4.h: Doc fix.
27890
27891 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27892
27893         md5: adapt alignment constraint fix from sha1.
27894         * lib/md5.c (set_uint32): New function, from sha1.c
27895         (md5_read_ctx): Use it.
27896         (md5_finish_ctx): Doc fix.
27897         * lib/md5.h: Doc fix.
27898
27899 2008-01-30  Peter Palfrader  <weasel@debian.org>
27900
27901         sha1: remove the result buffer alignment constraint
27902         * lib/sha1.c (set_uint32): New function.
27903         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27904         constraint.
27905         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27906         * lib/sha1.h: Likewise.
27907
27908 2008-01-30  Andreas Schwab  <schwab@suse.de>
27909             Bruno Haible  <bruno@clisp.org>
27910
27911         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27912         correct definition of LDBL_MIN_EXP.
27913
27914 2008-01-30  Karl Berry  <karl@gnu.org>
27915
27916         * config/srclist-update: try to preserve x bit on updates.
27917         * config/srclistvars.sh: update for karl.
27918
27919 2008-01-29  Jim Meyering  <meyering@redhat.com>
27920
27921         vasnprintf.c: Avoid warning about unused label
27922         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27923         "overflow" label definition and associated code with the
27924         same cpp condition that guards the sole use of that label.
27925
27926 2008-01-26  Bruno Haible  <bruno@clisp.org>
27927
27928         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27929         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27930         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27931         * lib/isnanl-nolibm.h (isnanl): Likewise.
27932         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27933
27934 2008-01-26  Bruno Haible  <bruno@clisp.org>
27935
27936         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27937         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27938
27939 2008-01-26  Bruno Haible  <bruno@clisp.org>
27940
27941         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27942         GCC >= 4.0 built-in.
27943         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27944
27945 2008-01-26  Bruno Haible  <bruno@clisp.org>
27946
27947         Rename isnan, applicable to 'double' only, to isnand.
27948         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27949         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27950         (configure.ac): Update.
27951         (Include): Replace "isnan.h" with "isnand.h".
27952         * m4/isnand.m4: Renamed from m4/isnan.m4.
27953         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27954         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27955         instead of isnan.c.
27956         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27957         instead of HAVE_ISNAN_IN_LIBC.
27958         (isnand): Renamed from isnan.
27959         * lib/isnand.c: New file.
27960         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27961         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27962         (Makefile.am): Update.
27963         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27964         Include isnand.h instead of isnan.h.
27965         (main): Test isnand instead of isnan.
27966         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27967         isnan-nolibm.
27968         * modules/frexp (Depends-on): Likewise.
27969         * modules/frexp-tests (Depends-on): Likewise.
27970         * modules/frexp-nolibm (Depends-on): Likewise.
27971         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27972         * modules/isfinite (Depends-on): Likewise.
27973         * modules/round-tests (Depends-on): Likewise.
27974         * modules/signbit (Depends-on): Likewise.
27975         * modules/signbit-tests (Depends-on): Likewise.
27976         * modules/snprintf-posix (Depends-on): Likewise.
27977         * modules/sprintf-posix (Depends-on): Likewise.
27978         * modules/trunc-tests (Depends-on): Likewise.
27979         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27980         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27981         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27982         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27983         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27984         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27985         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27986         * modules/vasnprintf-posix (Depends-on): Likewise.
27987         * modules/vasprintf-posix (Depends-on): Likewise.
27988         * modules/vfprintf-posix (Depends-on): Likewise.
27989         * modules/vsnprintf-posix (Depends-on): Likewise.
27990         * modules/vsprintf-posix (Depends-on): Likewise.
27991         * lib/frexp.c: Include isnand.h instead of isnan.h.
27992         (ISNAN): Set to isnand instead of isnan.
27993         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27994         (gl_isfinited): Use isnand instead of isnan.
27995         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27996         (gl_signbitd): Use isnand instead of isnan.
27997         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27998         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27999         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
28000         (main): Use isnand instead of isnan.
28001         * tests/test-round1.c: Include isnand.h.
28002         (main): Use isnand instead of isnan.
28003         * tests/test-round2.c: Include isnand.h instead of isnan.h.
28004         (ISNAN): Set to isnand instead of isnan.
28005         * tests/test-trunc1.c: Include isnand.h.
28006         (main): Use isnand instead of isnan.
28007         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
28008         (equal): Use isnand instead of isnan.
28009         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
28010         isnand-nolibm.
28011         * NEWS: Mention the change.
28012
28013 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28014             Bruno Haible  <bruno@clisp.org>
28015
28016         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
28017         the GCC builtins for signbits are present and set
28018         REPLACE_SIGNBIT_USING_GCC if so.
28019         * lib/math.in.h (signbit): Define using GCC builtins if
28020         REPLACE_SIGNBIT_USING_GCC is set.
28021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
28022         REPLACE_SIGNBIT_USING_GCC.
28023         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
28024
28025 2008-01-25  Jim Meyering  <meyering@redhat.com>
28026
28027         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
28028         * lib/poll.c: Include <config.h>, not "config.h".
28029         * tests/test-getaddrinfo.c: Likewise.
28030
28031 2008-01-25  Simon Josefsson  <simon@josefsson.org>
28032
28033         * modules/sockets-tests: New file.
28034
28035 2008-01-24  Simon Josefsson  <simon@josefsson.org>
28036
28037         * modules/sockets: New module, can be used to call WSA_Startup and
28038         WSA_Cleanup when needed.
28039
28040         * lib/sockets.h, lib/sockets.c: New files.
28041
28042         * m4/sockets.m4: New file.
28043
28044         * tests/test-sockets.c: New file.
28045
28046 2008-01-19  Bruno Haible  <bruno@clisp.org>
28047
28048         * doc/posix-headers: Renamed from doc/headers.
28049         * doc/posix-functions: Renamed from doc/functions.
28050         * doc/gnulib.texi: Update.
28051
28052 2008-01-19  Bruno Haible  <bruno@clisp.org>
28053
28054         * doc/glibc-functions/strcasestr.texi: Include contents of
28055         doc/functions/strcasestr.texi, fixing the list of platforms.
28056         * doc/functions/strcasestr.texi: Remove file.
28057
28058 2008-01-19  Bruno Haible  <bruno@clisp.org>
28059
28060         * doc/glibc-functions/memmem.texi: Include contents of
28061         doc/functions/memmem.texi.
28062         * doc/functions/memmem.texi: Remove file.
28063
28064 2008-01-18  Bruno Haible  <bruno@clisp.org>
28065
28066         * doc/glibc-functions/*.texi: New files.
28067         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
28068         to use the new files.
28069
28070 2008-01-17  Bruno Haible  <bruno@clisp.org>
28071
28072         * tests/test-gethostname.c (main): Fix printf statement.
28073
28074 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28075
28076         * modules/gethostname-tests: New file.
28077
28078         * tests/test-gethostname.c: New file.
28079
28080 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28081
28082         * lib/gethostname.c: Include string.h unconditionally, strncpy is
28083         used by the UNAME case.  Reported by Bruno Haible
28084         <bruno@clisp.org>.
28085
28086 2008-01-17  Eric Blake  <ebb9@byu.net>
28087
28088         Convert c-strcasestr to be more efficient.
28089         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
28090         (Depends-on): Add c-strcase, remove malloca, strnlen.
28091         * tests/test-c-strcasestr.c (main): Enhance test.
28092         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
28093
28094 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28095
28096         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
28097         Use it in creating po/Makevars.
28098
28099 2008-01-15  Simon Josefsson  <simon@josefsson.org>
28100
28101         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
28102         Applications that requires it should initialize libgcrypt
28103         manually.
28104
28105 2008-01-16  Simon Josefsson  <simon@josefsson.org>
28106
28107         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
28108
28109 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28110
28111         Fix problem with getdate on mingw32 reported by Simon Josefsson
28112         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
28113         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
28114         tzname", when deciding whether to declare tzname.
28115         * lib/strftime.c (tzname): Likewise.
28116
28117 2008-01-15  Bruno Haible  <bruno@clisp.org>
28118
28119         Work around a MacOS X 10.5 bug in frexpl().
28120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
28121         * doc/functions/frexpl.texi: Document the bug.
28122         Reported by Elias Pipping <pipping@gentoo.org>.
28123
28124 2008-01-14  Eric Blake  <ebb9@byu.net>
28125
28126         Touch up previous patch.
28127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
28128         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
28129
28130         Convert strcasestr module to use Two-Way algorithm.
28131         * modules/strcasestr-simple: New module, based on the old
28132         strcasestr, but with Two-Way rather than KMP.
28133         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
28134         * lib/string.in.h (rpl_strcasestr): Declare.
28135         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28136         performance.
28137         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
28138         * modules/string (Makefile.am): Support strcasestr.
28139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28140         * modules/strcasestr-tests (Depends-on): Check for alarm.
28141         * tests/test-strcasestr.c: Augment test.
28142         * lib/str-two-way.h: Clean up stray macro.
28143         * NEWS: Document new module.
28144         * MODULES.html.sh (string handling): Likewise.
28145         * doc/functions/strcasestr.texi: New file.
28146         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
28147         here, since it is not a POSIX function.
28148
28149 2008-01-14  Colin Watson  <cjwatson@debian.org>
28150             Bruno Haible  <bruno@clisp.org>
28151
28152         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
28153         works fine; if not, set REPLACE_STRSIGNAL.
28154         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
28155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28156         REPLACE_STRSIGNAL.
28157         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
28158         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
28159         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
28160
28161 2008-01-14  Bruno Haible  <bruno@clisp.org>
28162
28163         * modules/strsignal (Include): Change to <string.h>.
28164
28165 2008-01-14  Colin Watson  <cjwatson@debian.org>
28166
28167         * modules/argp (Notice): Add a notice recommending to change
28168         XGETTEXT_OPTIONS.
28169         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
28170
28171 2008-01-13  Colin Watson  <cjwatson@debian.org>
28172
28173         * modules/strsignal-tests: New file.
28174         * tests/test-strsignal.c: New file.
28175
28176         * lib/strsignal.c: New file, from glibc with modifications.
28177         * lib/siglist.h: New file, from glibc with modifications.
28178         * lib/string.in.h (strsignal): New declaration.
28179         * m4/strsignal.m4: New file.
28180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28181         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28182         * modules/strsignal: New file.
28183         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28184         HAVE_DECL_STRSIGNAL.
28185
28186 2008-01-13  Bruno Haible  <bruno@clisp.org>
28187
28188         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28189         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28190         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28191         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28192
28193 2008-01-13  Bruno Haible  <bruno@clisp.org>
28194
28195         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28196         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28197         * lib/argp.h (__attribute__): Likewise.
28198         * lib/c-stack.c (__attribute__): Likewise.
28199         * lib/error.h (__attribute__): Likewise.
28200         * lib/fts.c (__attribute__): Likewise.
28201         * lib/openat.h (__attribute__): Likewise.
28202         * lib/stdio.in.h (__attribute__): Likewise.
28203         * lib/string.in.h (__attribute__): Likewise.
28204         * lib/utimens.c (__attribute__): Likewise.
28205         * lib/vasnprintf.h (__attribute__): Likewise.
28206         * lib/xalloc.h (__attribute__): Likewise.
28207         * lib/xprintf.h (__attribute__): Likewise.
28208         * lib/xstrtol.h (__attribute__): Likewise.
28209         * lib/xvasprintf.h (__attribute__): Likewise.
28210
28211 2008-01-12  Bruno Haible  <bruno@clisp.org>
28212
28213         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28214         * doc/glibc-headers/a.out.texi: New file.
28215         * doc/glibc-headers/aliases.texi: New file.
28216         * doc/glibc-headers/alloca.texi: New file.
28217         * doc/glibc-headers/ar.texi: New file.
28218         * doc/glibc-headers/argp.texi: New file.
28219         * doc/glibc-headers/argz.texi: New file.
28220         * doc/glibc-headers/byteswap.texi: New file.
28221         * doc/glibc-headers/crypt.texi: New file.
28222         * doc/glibc-headers/endian.texi: New file.
28223         * doc/glibc-headers/envz.texi: New file.
28224         * doc/glibc-headers/err.texi: New file.
28225         * doc/glibc-headers/error.texi: New file.
28226         * doc/glibc-headers/execinfo.texi: New file.
28227         * doc/glibc-headers/fpu_control.texi: New file.
28228         * doc/glibc-headers/fstab.texi: New file.
28229         * doc/glibc-headers/fts.texi: New file.
28230         * doc/glibc-headers/getopt.texi: New file.
28231         * doc/glibc-headers/ieee754.texi: New file.
28232         * doc/glibc-headers/ifaddrs.texi: New file.
28233         * doc/glibc-headers/libintl.texi: New file.
28234         * doc/glibc-headers/mcheck.texi: New file.
28235         * doc/glibc-headers/mntent.texi: New file.
28236         * doc/glibc-headers/obstack.texi: New file.
28237         * doc/glibc-headers/paths.texi: New file.
28238         * doc/glibc-headers/printf.texi: New file.
28239         * doc/glibc-headers/pty.texi: New file.
28240         * doc/glibc-headers/resolv.texi: New file.
28241         * doc/glibc-headers/shadow.texi: New file.
28242         * doc/glibc-headers/sysexits.texi: New file.
28243         * doc/glibc-headers/ttyent.texi: New file.
28244
28245 2008-01-12  Jim Meyering  <meyering@redhat.com>
28246
28247         announce-gen: emit Gnulib's git-based version string.
28248         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28249         New option --gnulib-version=V, where V is expected to be
28250         the output of running git describe in the gnulib directory.
28251         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28252         not useful, and plan to stop publishing an xdelta file with each
28253         coreutils release.
28254
28255         * build-aux/announce-gen: Also check for lzma-compressed files.
28256
28257 2008-01-11  Bruno Haible  <bruno@clisp.org>
28258
28259         * tests/test-memmem.c (main): Increase maximum allowed time.
28260         * tests/test-strstr.c (main): Likewise.
28261
28262 2008-01-11  Bruno Haible  <bruno@clisp.org>
28263
28264         * doc/functions/memmem.texi: Add more precisions about platforms.
28265         * doc/functions/strstr.texi: Likewise.
28266
28267 2008-01-10  Eric Blake  <ebb9@byu.net>
28268
28269         * m4/strstr.m4: Delete cruft from copy-n-paste.
28270         Reported by Bruno Haible.
28271
28272 2008-01-10  Bruno Haible  <bruno@clisp.org>
28273
28274         Make c-strstr rely on strstr.
28275         * lib/c-strstr.c: Don't include str-kmp.h.
28276         (c_strstr): Define in terms of strstr.
28277         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28278         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28279
28280 2008-01-10  Bruno Haible  <bruno@clisp.org>
28281
28282         * doc/gnulib.texi (String Functions in C Locale): New section.
28283         * doc/c-ctype.texi: New file.
28284         * doc/c-strcase.texi: New file.
28285         * doc/c-strcaseeq.texi: New file.
28286         * doc/c-strcasestr.texi: New file.
28287         * doc/c-strstr.texi: New file.
28288         * doc/c-strtod.texi: New file.
28289         * doc/c-strtold.texi: New file.
28290
28291 2008-01-10  Eric Blake  <ebb9@byu.net>
28292
28293         * lib/relocatable.h: Fix a comment.
28294
28295 2008-01-10  Eric Blake  <ebb9@byu.net>
28296
28297         Share two-way algorithm.
28298         * lib/str-two-way.h: New file, merged from...
28299         * lib/memmem.c: ...here...
28300         * lib/strstr.c: ...and here.
28301         * modules/memmem (Files): Use it.
28302         * modules/strstr (Files): Likewise.
28303
28304         Avoid quadratic strstr implementations.
28305         * lib/strstr.c: New file.
28306         * m4/strstr.m4: Likewise.
28307         * modules/strstr: Likewise.
28308         * modules/strstr-tests: Likewise.
28309         * tests/test-strstr.c: Likewise.
28310         * lib/string.in.h (rpl_strstr): Declare.
28311         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28313         * modules/string (Makefile.am): Likewise.
28314         * MODULES.html.sh (string handling): Mention new module.
28315         * doc/functions/strstr.texi (strstr): Document the bug.
28316
28317 2008-01-10  Bruno Haible  <bruno@clisp.org>
28318
28319         * lib/relocatable.h (relocate): State whether result is freshly
28320         allocated or not.
28321         * lib/relocatable.c (relocate): Return a freshly allocated string
28322         instead of a pointer to a privately held string.
28323         Reported by Sylvain Beucler <beuc@gnu.org>.
28324
28325 2008-01-10  Colin Watson  <cjwatson@debian.org>
28326
28327         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28328         s/S_ISNLK/S_ISLNK/.
28329
28330 2008-01-09  Bruno Haible  <bruno@clisp.org>
28331
28332         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28333         and other files.
28334         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28335         if it's only a guess.
28336         * modules/memmem: Simplify by depending on memmem-simple.
28337
28338 2008-01-09  Bruno Haible  <bruno@clisp.org>
28339
28340         Work around OpenBSD 4.0 tdelete() bug.
28341         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28342         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28343         macros and don't redefine the enum values.
28344         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28345         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28346         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28347
28348 2008-01-09  Bruno Haible  <bruno@clisp.org>
28349
28350         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28351         (main): Don't perform the tests if setlocale did not install a UTF-8
28352         locale. Needed on OpenBSD 4.0.
28353         * modules/wcwidth-tests (Depends-on): Add localcharset.
28354
28355 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28356
28357         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28358         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28359         * NEWS: announce this.
28360         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28361
28362 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28363         and Eric Blake  <ebb9@byu.net>
28364
28365         Add memmem-simple module.
28366         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28367         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28368         * modules/memmem-simple: New file.
28369         * modules/memmem (Description): Tweak.
28370         * MODULES.html.sh (string handling): Mention new module.
28371         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28372         addressed by memmem-simple.
28373         * NEWS: Document the difference.
28374
28375 2008-01-09  Eric Blake  <ebb9@byu.net>
28376
28377         Give gcc some memmem optimization hints.
28378         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28379         (strcasestr): Declare as pure.
28380         * modules/memmem (Maintainer): Claim my implementation.
28381
28382 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28383
28384         Support AIX 6.1 and higher.
28385         * build-aux/config.libpath: Likewise.
28386         * build-aux/config.rpath: Likewise.
28387
28388 2008-01-08  Jim Meyering  <meyering@redhat.com>
28389             Bruno Haible  <bruno@clisp.org>
28390
28391         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28392         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28393         Reported by Peter Fales in
28394         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28395
28396 2008-01-08  Bruno Haible  <bruno@clisp.org>
28397
28398         * modules/unictype/category-of (Depends-on): Add
28399         unictype/category-none.
28400         * modules/unictype/category-and-tests (Depends-on): Add
28401         unictype/category-{L,N,Lu,Nd}.
28402         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28403         * modules/unictype/category-or-tests (Depends-on): Add
28404         unictype/category-{L,N}.
28405         * modules/unictype/category-name-tests (Depends-on): Add
28406         unictype/category-{Z,Nl}.
28407         Reported by Simon Josefsson.
28408
28409 2008-01-08  Bruno Haible  <bruno@clisp.org>
28410
28411         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28412         convention better.
28413         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28414         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28415         Reported by Peter Miller <millerp@canb.auug.org.au>.
28416
28417 2008-01-08  Eric Blake  <ebb9@byu.net>
28418
28419         Rewrite memmem to guarantee linear complexity without malloc.
28420         * lib/memmem.c (memmem): Use Two-Way rather than
28421         Knuth-Morris-Pratt, to allow O(1) space usage.
28422         (critical_factorization, two_way_short_needle)
28423         (two_way_long_needle): New functions.
28424         (knuth_morris_pratt): Delete.
28425         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28426         Add stdint.
28427         * tests/test-memmem.c (main): Add tests for periodic needle and
28428         sublinear performance.
28429         * doc/functions/memmem.texi (memmem): Document other deficiencies
28430         in cygwin and older glibc.
28431
28432 2008-01-08  Bruno Haible  <bruno@clisp.org>
28433
28434         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28435         augmentation.
28436
28437 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28438
28439         Add a configure time option: --disable-acl.
28440         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28441         AC_ARG_ENABLE(acl).
28442
28443 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28444
28445         * tests/test-localename.c: Don't include obsolete "setenv.h".
28446
28447         * modules/localename-tests (Depends-on): Need unsetenv.
28448
28449 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28450
28451         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28452
28453 2008-01-06  Colin Watson  <cjwatson@debian.org>
28454
28455         * users.txt: Add man-db.
28456
28457 2008-01-07  Bruno Haible  <bruno@clisp.org>
28458
28459         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28460         previous section name.
28461
28462 2008-01-07  Bruno Haible  <bruno@clisp.org>
28463
28464         * lib/progname.c (set_program_name): Don't strip off a leading
28465         "lt-" prefix outside a .libs directory.
28466         Suggested by Paul Eggert.
28467
28468 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28469             Bruno Haible  <bruno@clisp.org>
28470
28471         Improve memory cleanup in 'relocatable' module.
28472         * lib/relocatable.h (compute_curr_prefix): Change return type to
28473         'char *'.
28474         * lib/relocatable.c (compute_curr_prefix): Change return type to
28475         'char *'. Free curr_installdir after use.
28476         (relocate): Free curr_prefix_better after use.
28477         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28478
28479 2008-01-01  Bruno Haible  <bruno@clisp.org>
28480
28481         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28482         failure on older glibc systems.
28483         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28484
28485 2008-01-05  Eric Blake  <ebb9@byu.net>
28486
28487         Avoid quadratic system memmem.
28488         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28489         Reported by Ralf Wildenhues.
28490
28491         Fix memmem test for mingw.
28492         * modules/memmem-tests (configure.ac): Check for alarm.
28493         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28494         it.
28495         * doc/functions/memmem.texi: New file.
28496         * doc/gnulib.texi (Function Substitutes): Add memmem.
28497         Reported by Bruno Haible.
28498
28499 2008-01-04  Bruno Haible  <bruno@clisp.org>
28500
28501         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28502         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28503         gl_HEADER_STRING_H_DEFAULTS.
28504
28505 2008-01-04  Eric Blake  <ebb9@byu.net>
28506
28507         Shorten duration of memmem test.
28508         * tests/test-memmem.c (main): Use alarm to declare failure if test
28509         is taking too long.
28510         Reported by Ralf Wildenhues.
28511
28512 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28513
28514         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28515         string, needed by strerror.
28516
28517 2008-01-03  Colin Watson  <cjwatson@debian.org>
28518             Bruno Haible  <bruno@clisp.org>
28519
28520         * doc/gnulib-tool.texi (Localization): New section.
28521
28522 2008-01-02  Bruno Haible  <bruno@clisp.org>
28523
28524         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28525         variables to 'unsigned char *' type.
28526         Reported by Paul Eggert.
28527
28528 2008-01-02  Jim Meyering  <jim@meyering.net>
28529
28530         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28531
28532 2007-12-31  Jim Meyering  <jim@meyering.net>
28533
28534         Avoid use of private FTS type name.
28535         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28536
28537 2007-12-30  Karl Berry  <karl@gnu.org>
28538
28539         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28540         work around defect in Texinfo and/or the standalone Info browser.
28541
28542 2007-12-30  Bruno Haible  <bruno@clisp.org>
28543
28544         Unify 5 copies of the KMP code.
28545         * lib/str-kmp.h: New file.
28546         * lib/c-strcasestr.c: Include str-kmp.h.
28547         (knuth_morris_pratt): Remove function.
28548         (c_strcasestr): Update.
28549         * lib/c-strstr.c: Include str-kmp.h.
28550         (knuth_morris_pratt): Remove function.
28551         (c_strcasestr): Update.
28552         * lib/mbscasestr.c: Include str-kmp.h.
28553         (knuth_morris_pratt_unibyte): Remove function.
28554         * lib/mbsstr.c: Include str-kmp.h.
28555         (knuth_morris_pratt_unibyte): Remove function.
28556         * lib/strcasestr.c: Include str-kmp.h.
28557         (knuth_morris_pratt): Remove function.
28558         (strcasestr): Update.
28559         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28560         * modules/c-strstr (Files): Likewise.
28561         * modules/mbscasestr (Files): Likewise.
28562         * modules/mbsstr (Files): Likewise.
28563         * modules/strcasestr (Files): Likewise.
28564         Suggested by Paul Eggert.
28565
28566 2007-12-30  Bruno Haible  <bruno@clisp.org>
28567
28568         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28569         defined.
28570
28571 2007-12-30  Bruno Haible  <bruno@clisp.org>
28572
28573         * lib/xmalloca.h: Include xalloc.h.
28574         (xnmalloca): New macro.
28575
28576 2007-12-30  Bruno Haible  <bruno@clisp.org>
28577
28578         * lib/malloca.h (nmalloca): New macro.
28579         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28580         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28581         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28582         knuth_morris_pratt_multibyte): Likewise.
28583         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28584         knuth_morris_pratt_multibyte): Likewise.
28585         * lib/memmem.c (knuth_morris_pratt): Likewise.
28586         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28587
28588 2007-12-25  Bruno Haible  <bruno@clisp.org>
28589
28590         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28591         * lib/glob.c: Don't include openat.h.
28592         (link_exists2_p): Add back the code that deals with the
28593         !GLOB_ALTDIRFUNC case.
28594         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28595         let it do the filename concatenation.
28596         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28597         * modules/glob (Depends-on): Remove openat.
28598
28599 2007-12-31  Bruno Haible  <bruno@clisp.org>
28600
28601         * modules/dirfd (License): Change to LGPLv2+.
28602         Approved by Jim Meyering.
28603
28604 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28605
28606         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28607         when multiplying M by sizeof (size_t).
28608
28609 2007-12-10  Martin Lambers  <marlam@marlam.de>
28610
28611         Override getpagesize on mingw.
28612         * lib/getpagesize.c: New file.
28613         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28614         * modules/getpagesize (Files): Add lib/getpagesize.c.
28615         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28617         REPLACE_GETPAGESIZE.
28618         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28619
28620 2007-12-25  Bruno Haible  <bruno@clisp.org>
28621
28622         * modules/localcharset (Notice): New field.
28623         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28624         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28625
28626 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28627             Bruno Haible  <bruno@clisp.org>
28628
28629         Avoid using the syntax symbol() in formatted documentation.
28630         * MODULES.html.sh (func_module): When replacing symbol() with a
28631         hyperlink, remove the parentheses. Show an error if some remain.
28632         Recognize and render the '...' syntax.
28633         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28634         Rework. Add paragraph about GCC's inlining.
28635         * doc/alloca.texi: Likewise.
28636         * doc/error.texi: Remove parentheses from symbol reference.
28637         * doc/gnulib-intro.texi: Likewise.
28638         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28639         * modules/fnmatch (Description): Reword to say "the ... function".
28640         * modules/full-read (Description): Likewise.
28641         * modules/full-write (Description): Likewise.
28642         * modules/safe-read (Description): Likewise.
28643         * modules/safe-write (Description): Likewise.
28644         * modules/strchrnul (Description): Likewise.
28645         * modules/trim (Description): Likewise.
28646         * modules/error (Description): Remove parentheses from symbol
28647         references.
28648         * modules/verror (Description): Likewise.
28649         Reported by Karl Berry.
28650
28651 2007-12-25  Bruno Haible  <bruno@clisp.org>
28652
28653         Fixup after 2007-10-16 commit.
28654         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28655
28656 2007-12-24  Bruno Haible  <bruno@clisp.org>
28657
28658         Make --enable-relocatable work with DESTDIR.
28659         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28660         to compute installdir from destprog.
28661         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28662         also set the RELOC_DESTDIR variable.
28663         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28664
28665 2007-12-24  Bruno Haible  <bruno@clisp.org>
28666
28667         Fix link error due to xalloc_die().
28668         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28669         of xreadlink.
28670         * lib/relocwrapper.c: Update comments.
28671         * build-aux/install-reloc: Remove xreadlink.c from file list.
28672         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28673         xreadlink.c.
28674         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28675
28676 2007-12-24  Bruno Haible  <bruno@clisp.org>
28677
28678         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28679         * lib/setenv.h: Remove file.
28680         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28681         lib/setenv.h.
28682         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28683         (Depends-on): Add stdlib.
28684         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28685         gl_FUNC_UNSETENV.
28686         (Include): Replace setenv.h with <stdlib.h>.
28687         * modules/unsetenv: New file.
28688         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28689         * lib/unsetenv.c: Include <stdlib.h> first.
28690         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28691         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28692         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28693         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28694         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28695         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28697         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28698         * doc/functions/unsetenv.texi: Update.
28699         * modules/xsetenv (Depends-on): Add unsetenv.
28700         * modules/getdate (Depends-on): Likewise.
28701         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28702         * lib/xsetenv.c: Don't include setenv.h.
28703         * lib/getdate.y: Likewise.
28704         * lib/relocwrapper.c: Likewise.
28705         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28706         (Depends-on): Add stdlib.
28707         * NEWS: Mention the changes.
28708         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28709
28710 2007-12-23  Bruno Haible  <bruno@clisp.org>
28711
28712         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28713         indentation.
28714
28715 2007-12-23  Bruno Haible  <bruno@clisp.org>
28716
28717         * lib/c-strcasestr.c: Add more comments.
28718         * lib/c-strstr.c: Likewise.
28719         * lib/mbscasestr.c: Likewise.
28720         * lib/mbsstr.c: Likewise.
28721         * lib/strcasestr.c: Likewise.
28722         * lib/memmem.c: Likewise.
28723
28724 2007-12-23  Bruno Haible  <bruno@clisp.org>
28725
28726         * tests/test-memmem.c: Include <string.h> first.
28727
28728 2007-12-22  Bruno Haible  <bruno@clisp.org>
28729
28730         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28731         the contents of $testsbase.
28732         Reported by Ralf Wildenhues.
28733
28734 2007-12-22  Bruno Haible  <bruno@clisp.org>
28735
28736         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28737         two variables local_ldadd_before, local_ldadd_last.
28738
28739 2007-12-20  Eric Blake  <ebb9@byu.net>
28740
28741         Work around circular library issue when cross-compiling.
28742         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28743         that progname.o does not need to pull in rpl_memcmp.
28744
28745 2007-12-19  Eric Blake  <ebb9@byu.net>
28746
28747         Fix memmem to avoid O(n^2) worst-case complexity.
28748         * lib/memmem.c (knuth_morris_pratt): New function.
28749         (memmem): Use it if first few naive iterations fail.
28750         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28751         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28752         * modules/memchr (License): Likewise.
28753         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28754         malloca.
28755         * tests/test-memmem.c: Rewrite, borrowing ideas from
28756         test-mbsstr1.c; the old version wouldn't even compile!
28757         * modules/memmem-tests: New file.
28758         * lib/string.in.h (rpl_memmem): Add declaration.
28759         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28761         REPLACE_MEMMEM.
28762
28763 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28764
28765         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28766         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28767         before any system include files, and undef after them all.  This
28768         should fix a problem on VMS reported by John E. Malmberg in
28769         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28770
28771 2007-12-17  Eric Blake  <ebb9@byu.net>
28772
28773         Revert addition of verify, for BSD/OS.
28774         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28775         can't handle large files, for the sake of obsolete platforms.
28776         * modules/fseeko (Depends-on): Remove verify.
28777         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28778         * doc/functions/ftello.texi (ftello): Likewise.
28779         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28780         Reported by Larry Jones.
28781
28782 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28783
28784         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28785         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28786
28787 2007-12-17  Jim Meyering  <meyering@redhat.com>
28788
28789         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28790         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28791         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28792         * modules/getcwd (Depends-on): Add openat.
28793         Reported by Petr Salinger.
28794
28795 2007-12-17  Bruno Haible  <bruno@clisp.org>
28796
28797         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28798         avoid a segmentation fault of the configure test on x86_64 systems.
28799
28800 2007-12-15  Jim Meyering  <meyering@redhat.com>
28801
28802         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28803
28804 2007-12-13  Eric Blake  <ebb9@byu.net>
28805
28806         Another fseek test.
28807         * tests/test-fseek.c (main): Also test ungetc handling.
28808         * tests/test-fseeko.c (main): Likewise.
28809         * modules/fseeko (Depends-on): Add verify.
28810         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28811         large.
28812         Reported by Larry Jones.
28813
28814         Fix fseeko on mingw.
28815         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28816         seek.
28817
28818         Beef up fseek tests.
28819         * tests/test-fseek.c (main): Also test eof handling.
28820         * tests/test-fseeko.c (main): Likewise.
28821         Reported by Larry Jones.
28822
28823 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28824
28825         Fix fseeko on BSD-based platforms.
28826         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28827         successful seek.
28828
28829 2007-12-12  Eric Blake  <ebb9@byu.net>
28830
28831         Allow circular dependency of separate libtests.a
28832         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28833         when use_libtests.
28834
28835 2007-12-11  Eric Blake  <ebb9@byu.net>
28836
28837         Fix bug with -0.0L in previous patch.
28838         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28839         * tests/test-isnan.c (main): Also test on zeroes.
28840         * tests/test-isnanf.c (main): Likewise.
28841         * tests/test-isnanl.h (main): Likewise.
28842
28843         Detect pseudo-denormals on x86 even when cross-compiling.
28844         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28845         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28846         invalid bit patterns that happen to satisfy ==.
28847
28848         Avoid link failures with separate libtests.a.
28849         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28850         last, to satisfy circular dependencies.
28851
28852 2007-12-11  Eric Blake  <ebb9@byu.net>
28853         and Bruno Haible  <bruno@clisp.org>
28854
28855         Fix OpenBSD 4.0 <float.h> handling of long double.
28856         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28857         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28858         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28859
28860 2007-12-11  Jim Meyering  <meyering@redhat.com>
28861
28862         * users.txt: Add libvirt.
28863
28864         Support versions of autoconf prior to 2.59c.
28865         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28866         if it is not already defined.
28867
28868 2007-12-09  Bruno Haible  <bruno@clisp.org>
28869
28870         Let 'gnulib-tool --import' collect sources needed for the tests in
28871         tests/ rather than in lib/.
28872         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28873         argument. If true, add rules to generate libtests.a, and put libtests.a
28874         into $(LDADD). Consider source files in subdirectories and set
28875         uses_subdirs.
28876         (func_emit_initmacro_start, func_emit_initmacro_end,
28877         func_emit_initmacro_done): Pass all arguments explicitly.
28878         (func_import): Determine two module lists main_modules,
28879         testsrelated_modules. Determine use_libtests. Determine two variables
28880         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28881         instead of just sed_transform_lib_file. Determine two variables
28882         main_files and testsrelated_files. Compute 'files' as the union of
28883         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28884         func_add_or_update. In the generated gnulib-comp.m4, collect the
28885         object files for tests/ in different variables than those for lib/.
28886         Substitute LIBTESTS_LIBDEPS.
28887         (func_create_testdir): Combine the uses_subdirs results from
28888         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28889
28890 2007-12-09  Bruno Haible  <bruno@clisp.org>
28891
28892         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28893         the build-aux directory.
28894
28895 2007-12-09  Bruno Haible  <bruno@clisp.org>
28896
28897         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28898         introduced on 2006-09-09.
28899
28900 2007-12-07  Jim Meyering  <meyering@redhat.com>
28901
28902         Let these macros work also with autoconf-2.59.
28903         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28904         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28905         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28906
28907 2007-12-06  Jim Meyering  <meyering@redhat.com>
28908
28909         Avoid a configure-time syntax error in gl_FUNC_ACL.
28910         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28911         function in each branch, before testing the cache variable.
28912
28913 2007-12-04  Eric Blake  <ebb9@byu.net>
28914
28915         Make scripts executable.
28916         * build-aux/config.guess: Add execute permissions.
28917         * build-aux/config.sub: Likewise.
28918         * build-aux/gendocs.sh: Likewise.
28919
28920         Fix frexp on mingw.
28921         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28922         cross-compiling.
28923         * doc/functions/frexp.texi (frexp): Document the bug.
28924
28925         Make cygwin fseeko check more reliable.
28926         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28927         version numbers, rather than unrelated feature check.
28928         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28929         * doc/functions/ftello.texi (ftello): Likewise.
28930         Reported by Bruno Haible.
28931
28932         * m4/strerror.m4: Bump version number.
28933
28934 2007-12-03  Bruno Haible  <bruno@clisp.org>
28935
28936         * doc/functions/mprotect.texi: Mention the mingw problem.
28937
28938 2007-12-03  Eric Blake  <ebb9@byu.net>
28939
28940         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28941         REPLACE_STRERROR is initialized before this macro.
28942
28943 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28944
28945         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28946         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28947         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28948         put -lsec in even for programs other than 'ls'.  This fixes a problem
28949         for gettext reported by Bruno Haible in
28950         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28951         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28952         Add support for Solaris 10.  This isn't efficient, but should get the
28953         job done for now.
28954
28955 2007-12-03  James Youngman  <jay@gnu.org>
28956
28957         * doc/regexprops-generic.texi: change "an close-group" to "a
28958         close-group" and "illegal" to "not allowed".
28959
28960 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28961
28962         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28963         pr_byname.h. Needed for the rare case when the maintainer has done
28964         "make maintainer-clean" in the source directory and then attempts a
28965         build outside the source directory.
28966         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28967         scripts_byname.h.
28968
28969 2007-12-02  Martin Lambers <marlam@marlam.de>
28970             Bruno Haible  <bruno@clisp.org>
28971
28972         * lib/getpagesize.h: Remove file.
28973         * lib/unistd.in.h: Include declaration of getpagesize here.
28974         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28975         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28976         HAVE_SYS_PARAM_H.
28977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28978         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28979         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28980         (Depends-on): Add unistd.
28981         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28982         (Include): Use <unistd.h> instead of getpagesize.h.
28983         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28984         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28985         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28986         gl_GETPAGESIZE invocation, already handled by module dependency.
28987         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28988
28989 2007-12-02  Bruno Haible  <bruno@clisp.org>
28990
28991         * modules/strings-tests: New file.
28992         * tests/test-strings.c: New file.
28993
28994         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28995         * lib/strings.in.h: New file.
28996         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28997         * m4/strings_h.m4: New file.
28998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28999         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
29000         * modules/strings: New file.
29001         * modules/string (Makefile.am): Update.
29002         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
29003         Reported by Karl Berry.
29004
29005 2007-12-01  Eric Blake  <ebb9@byu.net>
29006
29007         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
29008         accomodate fix in cygwin 1.5.25.
29009
29010 2007-12-01  Jim Meyering  <meyering@redhat.com>
29011
29012         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
29013         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
29014         that would inhibit utf8-optimization of a regexp containing line-
29015         or buffer-anchors, e.g., `^', `$'.
29016
29017 2007-11-30  Bruno Haible  <bruno@clisp.org>
29018
29019         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
29020         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
29021         glthread_recursive_lock_init.
29022         * lib/lock.c (glthread_recursive_lock_init)
29023         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
29024         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29025
29026 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29027
29028         New function qset_acl, like set_acl but with syscall semantics.
29029         * lib/acl.h (qset_acl): New decl.
29030         * lib/acl.c (qset_acl): New function.
29031         (set_acl): Use new function.  Use more-consistent diagnostics.
29032
29033 2007-11-28  Jim Meyering  <meyering@redhat.com>
29034
29035         * modules/physmem (License): Change from GPL to LGPLv2+.
29036
29037 2007-11-26  Bruno Haible  <bruno@clisp.org>
29038
29039         * lib/vasnprintf.c (decode_long_double): Don't abort if the
29040         'long double' type has excess precision.
29041         Reported by Jim Meyering in
29042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
29043
29044 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29045
29046         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
29047         Sync from <http://gnu.org/licenses>.
29048         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
29049         with license text from same location.
29050         * doc/maintain.texi, doc/standards.texi:  Sync from
29051         <http://savannah.gnu.org/projects/gnustandards>.
29052
29053 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
29054         and Jim Meyering  <meyering@redhat.com>
29055
29056         Adjust getdate' grammar to accept a slightly more regular language.
29057         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
29058         Before, the former was rejected.
29059         * lib/getdate.y (digits_to_date_time): New function, factored
29060         out of ...
29061         (number): ...here.  Just call digits_to_date_time.
29062         (hybrid): New non-terminal to handle an <unsigned number,
29063         signed relative offset> sequence consistently.
29064
29065 2007-11-18  Jim Meyering  <meyering@redhat.com>
29066
29067         Pull my changes from coreutils:
29068         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
29069         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
29070         use of $gnulib_tool_option_extras, so that it's separated from the
29071         preceding argument.
29072
29073         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
29074         * build-aux/bootstrap (cp_mark_as_generated): Create any required
29075         parent destination directories before copying a file into place.
29076
29077 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29078
29079         bootstrap: work also with 4-argument variant of AC_INIT
29080         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
29081
29082 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29083
29084         Port test-getaddrinfo to Solaris.
29085         Problem reported by Bruno Haible in
29086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
29087         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
29088         explanation of setting 'hints'.
29089         Don't reject an implementation merely because it returns EAI_SERVICE.
29090         (EAI_SERVICE): Define to 0 if not defined.
29091
29092 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29093
29094         The license of gnu-make and posix-shell is now "GPLed build tool".
29095         * modules/gnu-make (License): Likewise.
29096         * modules/posix-shell (License): Likewise.
29097
29098         New module posix-shell, for determining a POSIX shell
29099         or perhaps something that is close enough to a POSIX shell.
29100         * m4/posix-shell.m4: New file.
29101         * modules/posix-shell: New file.
29102
29103         * MODULES.html.sh: Mention new module.
29104
29105         New module gnu-make, for determining whether we're using GNU Make.
29106         * m4/gnu-make.m4: New file.
29107         * modules/gnu-make: New file.
29108         * MODULES.html.sh: Mention new module.
29109
29110 2007-11-14  Jim Meyering  <meyering@redhat.com>
29111
29112         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
29113         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
29114         use this macro to create a function _definition_.
29115         Remove useless "#undef ARGMATCH_DIE".
29116
29117 2007-11-14  Bruno Haible  <bruno@clisp.org>
29118
29119         * lib/config.charset: Update for OpenBSD 4.1.
29120         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
29121
29122 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
29123
29124         Document 64-bit #if problems in stdint.texi.
29125         * doc/headers/stdint.texi (stdint.h): Mention problems with
29126         64-bit-#if, and how to work around them.
29127
29128         Don't insist on 'long long int' support in the preprocessor.  It
29129         breaks too many things.  For example, PRIdMAX still uses a 'long
29130         long int' format with the latest Sun compiler, even though
29131         HAVE_LONG_LONG_INT isn't defined due to that compiler's
29132         preprocessor problem.  This causes the latest coreutils to dump
29133         core on Solaris 10 sparc with the Sun C compiler.
29134         Instead, fix the 2007-10-16 problem in a different way, by evaluating
29135         the troublesome expressions at configure-time, not at #if-time.
29136         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
29137         preprocessor.
29138         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
29139         compile-time C checks, done at 'configure'-time.
29140         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
29141         * modules/inttypes (Makefile): Substitute the new symbols that
29142         gl_INTTYPES_H now generates.
29143         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
29144
29145 2007-11-12  Bruno Haible  <bruno@clisp.org>
29146
29147         Tests for Unicode character classification functions.
29148
29149         * modules/unictype/bidicategory-byname-tests: New file.
29150         * modules/unictype/bidicategory-name-tests: New file.
29151         * modules/unictype/bidicategory-of-tests: New file.
29152         * modules/unictype/bidicategory-test-tests: New file.
29153         * modules/unictype/block-list-tests: New file.
29154         * modules/unictype/block-of-tests: New file.
29155         * modules/unictype/block-test-tests: New file.
29156         * modules/unictype/category-C-tests: New file.
29157         * modules/unictype/category-Cc-tests: New file.
29158         * modules/unictype/category-Cf-tests: New file.
29159         * modules/unictype/category-Cn-tests: New file.
29160         * modules/unictype/category-Co-tests: New file.
29161         * modules/unictype/category-Cs-tests: New file.
29162         * modules/unictype/category-L-tests: New file.
29163         * modules/unictype/category-Ll-tests: New file.
29164         * modules/unictype/category-Lm-tests: New file.
29165         * modules/unictype/category-Lo-tests: New file.
29166         * modules/unictype/category-Lt-tests: New file.
29167         * modules/unictype/category-Lu-tests: New file.
29168         * modules/unictype/category-M-tests: New file.
29169         * modules/unictype/category-Mc-tests: New file.
29170         * modules/unictype/category-Me-tests: New file.
29171         * modules/unictype/category-Mn-tests: New file.
29172         * modules/unictype/category-N-tests: New file.
29173         * modules/unictype/category-Nd-tests: New file.
29174         * modules/unictype/category-Nl-tests: New file.
29175         * modules/unictype/category-No-tests: New file.
29176         * modules/unictype/category-P-tests: New file.
29177         * modules/unictype/category-Pc-tests: New file.
29178         * modules/unictype/category-Pd-tests: New file.
29179         * modules/unictype/category-Pe-tests: New file.
29180         * modules/unictype/category-Pf-tests: New file.
29181         * modules/unictype/category-Pi-tests: New file.
29182         * modules/unictype/category-Po-tests: New file.
29183         * modules/unictype/category-Ps-tests: New file.
29184         * modules/unictype/category-S-tests: New file.
29185         * modules/unictype/category-Sc-tests: New file.
29186         * modules/unictype/category-Sk-tests: New file.
29187         * modules/unictype/category-Sm-tests: New file.
29188         * modules/unictype/category-So-tests: New file.
29189         * modules/unictype/category-Z-tests: New file.
29190         * modules/unictype/category-Zl-tests: New file.
29191         * modules/unictype/category-Zp-tests: New file.
29192         * modules/unictype/category-Zs-tests: New file.
29193         * modules/unictype/category-and-not-tests: New file.
29194         * modules/unictype/category-and-tests: New file.
29195         * modules/unictype/category-byname-tests: New file.
29196         * modules/unictype/category-name-tests: New file.
29197         * modules/unictype/category-none-tests: New file.
29198         * modules/unictype/category-of-tests: New file.
29199         * modules/unictype/category-or-tests: New file.
29200         * modules/unictype/category-test-withtable-tests: New file.
29201         * modules/unictype/combining-class-tests: New file.
29202         * modules/unictype/ctype-alnum-tests: New file.
29203         * modules/unictype/ctype-alpha-tests: New file.
29204         * modules/unictype/ctype-blank-tests: New file.
29205         * modules/unictype/ctype-cntrl-tests: New file.
29206         * modules/unictype/ctype-digit-tests: New file.
29207         * modules/unictype/ctype-graph-tests: New file.
29208         * modules/unictype/ctype-lower-tests: New file.
29209         * modules/unictype/ctype-print-tests: New file.
29210         * modules/unictype/ctype-punct-tests: New file.
29211         * modules/unictype/ctype-space-tests: New file.
29212         * modules/unictype/ctype-upper-tests: New file.
29213         * modules/unictype/ctype-xdigit-tests: New file.
29214         * modules/unictype/decimal-digit-tests: New file.
29215         * modules/unictype/digit-tests: New file.
29216         * modules/unictype/mirror-tests: New file.
29217         * modules/unictype/numeric-tests: New file.
29218         * modules/unictype/property-alphabetic-tests: New file.
29219         * modules/unictype/property-ascii-hex-digit-tests: New file.
29220         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29221         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29222         * modules/unictype/property-bidi-block-separator-tests: New file.
29223         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29224         * modules/unictype/property-bidi-common-separator-tests: New file.
29225         * modules/unictype/property-bidi-control-tests: New file.
29226         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29227         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29228         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29229         * modules/unictype/property-bidi-european-digit-tests: New file.
29230         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29231         * modules/unictype/property-bidi-left-to-right-tests: New file.
29232         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29233         * modules/unictype/property-bidi-other-neutral-tests: New file.
29234         * modules/unictype/property-bidi-pdf-tests: New file.
29235         * modules/unictype/property-bidi-segment-separator-tests: New file.
29236         * modules/unictype/property-bidi-whitespace-tests: New file.
29237         * modules/unictype/property-byname-tests: New file.
29238         * modules/unictype/property-combining-tests: New file.
29239         * modules/unictype/property-composite-tests: New file.
29240         * modules/unictype/property-currency-symbol-tests: New file.
29241         * modules/unictype/property-dash-tests: New file.
29242         * modules/unictype/property-decimal-digit-tests: New file.
29243         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29244         * modules/unictype/property-deprecated-tests: New file.
29245         * modules/unictype/property-diacritic-tests: New file.
29246         * modules/unictype/property-extender-tests: New file.
29247         * modules/unictype/property-format-control-tests: New file.
29248         * modules/unictype/property-grapheme-base-tests: New file.
29249         * modules/unictype/property-grapheme-extend-tests: New file.
29250         * modules/unictype/property-grapheme-link-tests: New file.
29251         * modules/unictype/property-hex-digit-tests: New file.
29252         * modules/unictype/property-hyphen-tests: New file.
29253         * modules/unictype/property-id-continue-tests: New file.
29254         * modules/unictype/property-id-start-tests: New file.
29255         * modules/unictype/property-ideographic-tests: New file.
29256         * modules/unictype/property-ids-binary-operator-tests: New file.
29257         * modules/unictype/property-ids-trinary-operator-tests: New file.
29258         * modules/unictype/property-ignorable-control-tests: New file.
29259         * modules/unictype/property-iso-control-tests: New file.
29260         * modules/unictype/property-join-control-tests: New file.
29261         * modules/unictype/property-left-of-pair-tests: New file.
29262         * modules/unictype/property-line-separator-tests: New file.
29263         * modules/unictype/property-logical-order-exception-tests: New file.
29264         * modules/unictype/property-lowercase-tests: New file.
29265         * modules/unictype/property-math-tests: New file.
29266         * modules/unictype/property-non-break-tests: New file.
29267         * modules/unictype/property-not-a-character-tests: New file.
29268         * modules/unictype/property-numeric-tests: New file.
29269         * modules/unictype/property-other-alphabetic-tests: New file.
29270         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29271         * modules/unictype/property-other-grapheme-extend-tests: New file.
29272         * modules/unictype/property-other-id-continue-tests: New file.
29273         * modules/unictype/property-other-id-start-tests: New file.
29274         * modules/unictype/property-other-lowercase-tests: New file.
29275         * modules/unictype/property-other-math-tests: New file.
29276         * modules/unictype/property-other-uppercase-tests: New file.
29277         * modules/unictype/property-paired-punctuation-tests: New file.
29278         * modules/unictype/property-paragraph-separator-tests: New file.
29279         * modules/unictype/property-pattern-syntax-tests: New file.
29280         * modules/unictype/property-pattern-white-space-tests: New file.
29281         * modules/unictype/property-private-use-tests: New file.
29282         * modules/unictype/property-punctuation-tests: New file.
29283         * modules/unictype/property-quotation-mark-tests: New file.
29284         * modules/unictype/property-radical-tests: New file.
29285         * modules/unictype/property-sentence-terminal-tests: New file.
29286         * modules/unictype/property-soft-dotted-tests: New file.
29287         * modules/unictype/property-space-tests: New file.
29288         * modules/unictype/property-terminal-punctuation-tests: New file.
29289         * modules/unictype/property-test-tests: New file.
29290         * modules/unictype/property-titlecase-tests: New file.
29291         * modules/unictype/property-unassigned-code-value-tests: New file.
29292         * modules/unictype/property-unified-ideograph-tests: New file.
29293         * modules/unictype/property-uppercase-tests: New file.
29294         * modules/unictype/property-variation-selector-tests: New file.
29295         * modules/unictype/property-white-space-tests: New file.
29296         * modules/unictype/property-xid-continue-tests: New file.
29297         * modules/unictype/property-xid-start-tests: New file.
29298         * modules/unictype/property-zero-width-tests: New file.
29299         * modules/unictype/scripts-tests: New file.
29300         * modules/unictype/syntax-c-ident-tests: New file.
29301         * modules/unictype/syntax-c-whitespace-tests: New file.
29302         * modules/unictype/syntax-java-ident-tests: New file.
29303         * modules/unictype/syntax-java-whitespace-tests: New file.
29304         * tests/unictype/test-bidi_byname.c: New file.
29305         * tests/unictype/test-bidi_name.c: New file.
29306         * tests/unictype/test-bidi_of.c: New file.
29307         * tests/unictype/test-bidi_test.c: New file.
29308         * tests/unictype/test-block_list.c: New file.
29309         * tests/unictype/test-block_of.c: New file.
29310         * tests/unictype/test-block_test.c: New file.
29311         * tests/unictype/test-categ_and.c: New file.
29312         * tests/unictype/test-categ_and_not.c: New file.
29313         * tests/unictype/test-categ_byname.c: New file.
29314         * tests/unictype/test-categ_name.c: New file.
29315         * tests/unictype/test-categ_none.c: New file.
29316         * tests/unictype/test-categ_of.c: New file.
29317         * tests/unictype/test-categ_or.c: New file.
29318         * tests/unictype/test-categ_test_withtable.c: New file.
29319         * tests/unictype/test-combining.c: New file.
29320         * tests/unictype/test-decdigit.c: New file.
29321         * tests/unictype/test-digit.c: New file.
29322         * tests/unictype/test-mirror.c: New file.
29323         * tests/unictype/test-numeric.c: New file.
29324         * tests/unictype/test-pr_byname.c: New file.
29325         * tests/unictype/test-pr_test.c: New file.
29326         * tests/unictype/test-predicate-part1.h: New file.
29327         * tests/unictype/test-predicate-part2.h: New file.
29328         * tests/unictype/test-scripts.c: New file.
29329         * tests/unictype/test-sy_c_ident.c: New file.
29330         * tests/unictype/test-sy_java_ident.c: New file.
29331
29332         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29333         for Unicode 5.0.0.
29334         * tests/unictype/test-categ_Cc.c: Likewise.
29335         * tests/unictype/test-categ_Cf.c: Likewise.
29336         * tests/unictype/test-categ_Cn.c: Likewise.
29337         * tests/unictype/test-categ_Co.c: Likewise.
29338         * tests/unictype/test-categ_Cs.c: Likewise.
29339         * tests/unictype/test-categ_L.c: Likewise.
29340         * tests/unictype/test-categ_Ll.c: Likewise.
29341         * tests/unictype/test-categ_Lm.c: Likewise.
29342         * tests/unictype/test-categ_Lo.c: Likewise.
29343         * tests/unictype/test-categ_Lt.c: Likewise.
29344         * tests/unictype/test-categ_Lu.c: Likewise.
29345         * tests/unictype/test-categ_M.c: Likewise.
29346         * tests/unictype/test-categ_Mc.c: Likewise.
29347         * tests/unictype/test-categ_Me.c: Likewise.
29348         * tests/unictype/test-categ_Mn.c: Likewise.
29349         * tests/unictype/test-categ_N.c: Likewise.
29350         * tests/unictype/test-categ_Nd.c: Likewise.
29351         * tests/unictype/test-categ_Nl.c: Likewise.
29352         * tests/unictype/test-categ_No.c: Likewise.
29353         * tests/unictype/test-categ_P.c: Likewise.
29354         * tests/unictype/test-categ_Pc.c: Likewise.
29355         * tests/unictype/test-categ_Pd.c: Likewise.
29356         * tests/unictype/test-categ_Pe.c: Likewise.
29357         * tests/unictype/test-categ_Pf.c: Likewise.
29358         * tests/unictype/test-categ_Pi.c: Likewise.
29359         * tests/unictype/test-categ_Po.c: Likewise.
29360         * tests/unictype/test-categ_Ps.c: Likewise.
29361         * tests/unictype/test-categ_S.c: Likewise.
29362         * tests/unictype/test-categ_Sc.c: Likewise.
29363         * tests/unictype/test-categ_Sk.c: Likewise.
29364         * tests/unictype/test-categ_Sm.c: Likewise.
29365         * tests/unictype/test-categ_So.c: Likewise.
29366         * tests/unictype/test-categ_Z.c: Likewise.
29367         * tests/unictype/test-categ_Zl.c: Likewise.
29368         * tests/unictype/test-categ_Zp.c: Likewise.
29369         * tests/unictype/test-categ_Zs.c: Likewise.
29370         * tests/unictype/test-ctype_alnum.c: Likewise.
29371         * tests/unictype/test-ctype_alpha.c: Likewise.
29372         * tests/unictype/test-ctype_blank.c: Likewise.
29373         * tests/unictype/test-ctype_cntrl.c: Likewise.
29374         * tests/unictype/test-ctype_digit.c: Likewise.
29375         * tests/unictype/test-ctype_graph.c: Likewise.
29376         * tests/unictype/test-ctype_lower.c: Likewise.
29377         * tests/unictype/test-ctype_print.c: Likewise.
29378         * tests/unictype/test-ctype_punct.c: Likewise.
29379         * tests/unictype/test-ctype_space.c: Likewise.
29380         * tests/unictype/test-ctype_upper.c: Likewise.
29381         * tests/unictype/test-ctype_xdigit.c: Likewise.
29382         * tests/unictype/test-decdigit.h: Likewise.
29383         * tests/unictype/test-digit.h: Likewise.
29384         * tests/unictype/test-numeric.h: Likewise.
29385         * tests/unictype/test-pr_alphabetic.c: Likewise.
29386         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29387         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29388         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29389         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29390         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29391         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29392         * tests/unictype/test-pr_bidi_control.c: Likewise.
29393         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29394         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29395         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29396         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29397         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29398         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29399         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29400         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29401         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29402         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29403         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29404         * tests/unictype/test-pr_combining.c: Likewise.
29405         * tests/unictype/test-pr_composite.c: Likewise.
29406         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29407         * tests/unictype/test-pr_dash.c: Likewise.
29408         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29409         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29410         * tests/unictype/test-pr_deprecated.c: Likewise.
29411         * tests/unictype/test-pr_diacritic.c: Likewise.
29412         * tests/unictype/test-pr_extender.c: Likewise.
29413         * tests/unictype/test-pr_format_control.c: Likewise.
29414         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29415         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29416         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29417         * tests/unictype/test-pr_hex_digit.c: Likewise.
29418         * tests/unictype/test-pr_hyphen.c: Likewise.
29419         * tests/unictype/test-pr_id_continue.c: Likewise.
29420         * tests/unictype/test-pr_id_start.c: Likewise.
29421         * tests/unictype/test-pr_ideographic.c: Likewise.
29422         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29423         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29424         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29425         * tests/unictype/test-pr_iso_control.c: Likewise.
29426         * tests/unictype/test-pr_join_control.c: Likewise.
29427         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29428         * tests/unictype/test-pr_line_separator.c: Likewise.
29429         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29430         * tests/unictype/test-pr_lowercase.c: Likewise.
29431         * tests/unictype/test-pr_math.c: Likewise.
29432         * tests/unictype/test-pr_non_break.c: Likewise.
29433         * tests/unictype/test-pr_not_a_character.c: Likewise.
29434         * tests/unictype/test-pr_numeric.c: Likewise.
29435         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29436         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29437         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29438         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29439         * tests/unictype/test-pr_other_id_start.c: Likewise.
29440         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29441         * tests/unictype/test-pr_other_math.c: Likewise.
29442         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29443         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29444         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29445         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29446         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29447         * tests/unictype/test-pr_private_use.c: Likewise.
29448         * tests/unictype/test-pr_punctuation.c: Likewise.
29449         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29450         * tests/unictype/test-pr_radical.c: Likewise.
29451         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29452         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29453         * tests/unictype/test-pr_space.c: Likewise.
29454         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29455         * tests/unictype/test-pr_titlecase.c: Likewise.
29456         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29457         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29458         * tests/unictype/test-pr_uppercase.c: Likewise.
29459         * tests/unictype/test-pr_variation_selector.c: Likewise.
29460         * tests/unictype/test-pr_white_space.c: Likewise.
29461         * tests/unictype/test-pr_xid_continue.c: Likewise.
29462         * tests/unictype/test-pr_xid_start.c: Likewise.
29463         * tests/unictype/test-pr_zero_width.c: Likewise.
29464         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29465         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29466
29467 2007-11-12  Bruno Haible  <bruno@clisp.org>
29468
29469         Unicode character classification functions.
29470         * lib/unictype.h: New file.
29471         * modules/unictype/base: New file.
29472         * modules/unictype/category-L: New file.
29473         * modules/unictype/category-Lu: New file.
29474         * modules/unictype/category-Ll: New file.
29475         * modules/unictype/category-Lt: New file.
29476         * modules/unictype/category-Lm: New file.
29477         * modules/unictype/category-Lo: New file.
29478         * modules/unictype/category-M: New file.
29479         * modules/unictype/category-Mn: New file.
29480         * modules/unictype/category-Mc: New file.
29481         * modules/unictype/category-Me: New file.
29482         * modules/unictype/category-N: New file.
29483         * modules/unictype/category-Nd: New file.
29484         * modules/unictype/category-Nl: New file.
29485         * modules/unictype/category-No: New file.
29486         * modules/unictype/category-P: New file.
29487         * modules/unictype/category-Pc: New file.
29488         * modules/unictype/category-Pd: New file.
29489         * modules/unictype/category-Ps: New file.
29490         * modules/unictype/category-Pe: New file.
29491         * modules/unictype/category-Pi: New file.
29492         * modules/unictype/category-Pf: New file.
29493         * modules/unictype/category-Po: New file.
29494         * modules/unictype/category-S: New file.
29495         * modules/unictype/category-Sm: New file.
29496         * modules/unictype/category-Sc: New file.
29497         * modules/unictype/category-Sk: New file.
29498         * modules/unictype/category-So: New file.
29499         * modules/unictype/category-Z: New file.
29500         * modules/unictype/category-Zs: New file.
29501         * modules/unictype/category-Zl: New file.
29502         * modules/unictype/category-Zp: New file.
29503         * modules/unictype/category-C: New file.
29504         * modules/unictype/category-Cc: New file.
29505         * modules/unictype/category-Cf: New file.
29506         * modules/unictype/category-Cs: New file.
29507         * modules/unictype/category-Co: New file.
29508         * modules/unictype/category-Cn: New file.
29509         * modules/unictype/category-or: New file.
29510         * modules/unictype/category-of: New file.
29511         * modules/unictype/category-test: New file.
29512         * modules/unictype/category-test-withtable: New file.
29513         * modules/unictype/category-byname: New file.
29514         * modules/unictype/category-none: New file.
29515         * modules/unictype/category-and: New file.
29516         * modules/unictype/category-and-not: New file.
29517         * modules/unictype/category-name: New file.
29518         * modules/unictype/combining-class: New file.
29519         * modules/unictype/category-all: New file.
29520         * modules/unictype/bidicategory-all: New file.
29521         * modules/unictype/bidicategory-byname: New file.
29522         * modules/unictype/bidicategory-name: New file.
29523         * modules/unictype/bidicategory-of: New file.
29524         * modules/unictype/bidicategory-test: New file.
29525         * modules/unictype/decimal-digit: New file.
29526         * modules/unictype/digit: New file.
29527         * modules/unictype/numeric: New file.
29528         * modules/unictype/mirror: New file.
29529         * modules/unictype/property-white-space: New file.
29530         * modules/unictype/property-alphabetic: New file.
29531         * modules/unictype/property-other-alphabetic: New file.
29532         * modules/unictype/property-not-a-character: New file.
29533         * modules/unictype/property-default-ignorable-code-point: New file.
29534         * modules/unictype/property-other-default-ignorable-code-point: New
29535         file.
29536         * modules/unictype/property-deprecated: New file.
29537         * modules/unictype/property-logical-order-exception: New file.
29538         * modules/unictype/property-variation-selector: New file.
29539         * modules/unictype/property-private-use: New file.
29540         * modules/unictype/property-unassigned-code-value: New file.
29541         * modules/unictype/property-uppercase: New file.
29542         * modules/unictype/property-other-uppercase: New file.
29543         * modules/unictype/property-lowercase: New file.
29544         * modules/unictype/property-other-lowercase: New file.
29545         * modules/unictype/property-titlecase: New file.
29546         * modules/unictype/property-soft-dotted: New file.
29547         * modules/unictype/property-id-start: New file.
29548         * modules/unictype/property-other-id-start: New file.
29549         * modules/unictype/property-id-continue: New file.
29550         * modules/unictype/property-other-id-continue: New file.
29551         * modules/unictype/property-xid-start: New file.
29552         * modules/unictype/property-xid-continue: New file.
29553         * modules/unictype/property-pattern-white-space: New file.
29554         * modules/unictype/property-pattern-syntax: New file.
29555         * modules/unictype/property-join-control: New file.
29556         * modules/unictype/property-grapheme-base: New file.
29557         * modules/unictype/property-grapheme-extend: New file.
29558         * modules/unictype/property-other-grapheme-extend: New file.
29559         * modules/unictype/property-grapheme-link: New file.
29560         * modules/unictype/property-bidi-control: New file.
29561         * modules/unictype/property-bidi-left-to-right: New file.
29562         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29563         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29564         * modules/unictype/property-bidi-european-digit: New file.
29565         * modules/unictype/property-bidi-eur-num-separator: New file.
29566         * modules/unictype/property-bidi-eur-num-terminator: New file.
29567         * modules/unictype/property-bidi-arabic-digit: New file.
29568         * modules/unictype/property-bidi-common-separator: New file.
29569         * modules/unictype/property-bidi-block-separator: New file.
29570         * modules/unictype/property-bidi-segment-separator: New file.
29571         * modules/unictype/property-bidi-whitespace: New file.
29572         * modules/unictype/property-bidi-non-spacing-mark: New file.
29573         * modules/unictype/property-bidi-boundary-neutral: New file.
29574         * modules/unictype/property-bidi-pdf: New file.
29575         * modules/unictype/property-bidi-embedding-or-override: New file.
29576         * modules/unictype/property-bidi-other-neutral: New file.
29577         * modules/unictype/property-hex-digit: New file.
29578         * modules/unictype/property-ascii-hex-digit: New file.
29579         * modules/unictype/property-ideographic: New file.
29580         * modules/unictype/property-unified-ideograph: New file.
29581         * modules/unictype/property-radical: New file.
29582         * modules/unictype/property-ids-binary-operator: New file.
29583         * modules/unictype/property-ids-trinary-operator: New file.
29584         * modules/unictype/property-zero-width: New file.
29585         * modules/unictype/property-space: New file.
29586         * modules/unictype/property-non-break: New file.
29587         * modules/unictype/property-iso-control: New file.
29588         * modules/unictype/property-format-control: New file.
29589         * modules/unictype/property-dash: New file.
29590         * modules/unictype/property-hyphen: New file.
29591         * modules/unictype/property-punctuation: New file.
29592         * modules/unictype/property-line-separator: New file.
29593         * modules/unictype/property-paragraph-separator: New file.
29594         * modules/unictype/property-quotation-mark: New file.
29595         * modules/unictype/property-sentence-terminal: New file.
29596         * modules/unictype/property-terminal-punctuation: New file.
29597         * modules/unictype/property-currency-symbol: New file.
29598         * modules/unictype/property-math: New file.
29599         * modules/unictype/property-other-math: New file.
29600         * modules/unictype/property-paired-punctuation: New file.
29601         * modules/unictype/property-left-of-pair: New file.
29602         * modules/unictype/property-combining: New file.
29603         * modules/unictype/property-composite: New file.
29604         * modules/unictype/property-decimal-digit: New file.
29605         * modules/unictype/property-numeric: New file.
29606         * modules/unictype/property-diacritic: New file.
29607         * modules/unictype/property-extender: New file.
29608         * modules/unictype/property-ignorable-control: New file.
29609         * modules/unictype/property-test: New file.
29610         * modules/unictype/property-byname: New file.
29611         * modules/unictype/property-all: New file.
29612         * modules/unictype/scripts: New file.
29613         * modules/unictype/scripts-all: New file.
29614         * modules/unictype/block-of: New file.
29615         * modules/unictype/block-test: New file.
29616         * modules/unictype/block-list: New file.
29617         * modules/unictype/block-all: New file.
29618         * modules/unictype/syntax-c-whitespace: New file.
29619         * modules/unictype/syntax-java-whitespace: New file.
29620         * modules/unictype/syntax-c-ident: New file.
29621         * modules/unictype/syntax-java-ident: New file.
29622         * modules/unictype/ctype-alnum: New file.
29623         * modules/unictype/ctype-alpha: New file.
29624         * modules/unictype/ctype-cntrl: New file.
29625         * modules/unictype/ctype-digit: New file.
29626         * modules/unictype/ctype-graph: New file.
29627         * modules/unictype/ctype-lower: New file.
29628         * modules/unictype/ctype-print: New file.
29629         * modules/unictype/ctype-punct: New file.
29630         * modules/unictype/ctype-space: New file.
29631         * modules/unictype/ctype-upper: New file.
29632         * modules/unictype/ctype-xdigit: New file.
29633         * modules/unictype/ctype-blank: New file.
29634         * lib/unictype/bidi_byname.c: New file.
29635         * lib/unictype/bidi_name.c: New file.
29636         * lib/unictype/bidi_of.c: New file.
29637         * lib/unictype/bidi_test.c: New file.
29638         * lib/unictype/bitmap.h: New file.
29639         * lib/unictype/block_test.c: New file.
29640         * lib/unictype/blocks.c: New file.
29641         * lib/unictype/categ_C.c: New file.
29642         * lib/unictype/categ_Cc.c: New file.
29643         * lib/unictype/categ_Cf.c: New file.
29644         * lib/unictype/categ_Cn.c: New file.
29645         * lib/unictype/categ_Co.c: New file.
29646         * lib/unictype/categ_Cs.c: New file.
29647         * lib/unictype/categ_L.c: New file.
29648         * lib/unictype/categ_Ll.c: New file.
29649         * lib/unictype/categ_Lm.c: New file.
29650         * lib/unictype/categ_Lo.c: New file.
29651         * lib/unictype/categ_Lt.c: New file.
29652         * lib/unictype/categ_Lu.c: New file.
29653         * lib/unictype/categ_M.c: New file.
29654         * lib/unictype/categ_Mc.c: New file.
29655         * lib/unictype/categ_Me.c: New file.
29656         * lib/unictype/categ_Mn.c: New file.
29657         * lib/unictype/categ_N.c: New file.
29658         * lib/unictype/categ_Nd.c: New file.
29659         * lib/unictype/categ_Nl.c: New file.
29660         * lib/unictype/categ_No.c: New file.
29661         * lib/unictype/categ_P.c: New file.
29662         * lib/unictype/categ_Pc.c: New file.
29663         * lib/unictype/categ_Pd.c: New file.
29664         * lib/unictype/categ_Pe.c: New file.
29665         * lib/unictype/categ_Pf.c: New file.
29666         * lib/unictype/categ_Pi.c: New file.
29667         * lib/unictype/categ_Po.c: New file.
29668         * lib/unictype/categ_Ps.c: New file.
29669         * lib/unictype/categ_S.c: New file.
29670         * lib/unictype/categ_Sc.c: New file.
29671         * lib/unictype/categ_Sk.c: New file.
29672         * lib/unictype/categ_Sm.c: New file.
29673         * lib/unictype/categ_So.c: New file.
29674         * lib/unictype/categ_Z.c: New file.
29675         * lib/unictype/categ_Zl.c: New file.
29676         * lib/unictype/categ_Zp.c: New file.
29677         * lib/unictype/categ_Zs.c: New file.
29678         * lib/unictype/categ_and.c: New file.
29679         * lib/unictype/categ_and_not.c: New file.
29680         * lib/unictype/categ_byname.c: New file.
29681         * lib/unictype/categ_name.c: New file.
29682         * lib/unictype/categ_none.c: New file.
29683         * lib/unictype/categ_of.c: New file.
29684         * lib/unictype/categ_or.c: New file.
29685         * lib/unictype/categ_test.c: New file.
29686         * lib/unictype/combining.c: New file.
29687         * lib/unictype/ctype_alnum.c: New file.
29688         * lib/unictype/ctype_alpha.c: New file.
29689         * lib/unictype/ctype_blank.c: New file.
29690         * lib/unictype/ctype_cntrl.c: New file.
29691         * lib/unictype/ctype_digit.c: New file.
29692         * lib/unictype/ctype_graph.c: New file.
29693         * lib/unictype/ctype_lower.c: New file.
29694         * lib/unictype/ctype_print.c: New file.
29695         * lib/unictype/ctype_punct.c: New file.
29696         * lib/unictype/ctype_space.c: New file.
29697         * lib/unictype/ctype_upper.c: New file.
29698         * lib/unictype/ctype_xdigit.c: New file.
29699         * lib/unictype/decdigit.c: New file.
29700         * lib/unictype/digit.c: New file.
29701         * lib/unictype/identsyntaxmap.h: New file.
29702         * lib/unictype/mirror.c: New file.
29703         * lib/unictype/numeric.c: New file.
29704         * lib/unictype/pr_alphabetic.c: New file.
29705         * lib/unictype/pr_ascii_hex_digit.c: New file.
29706         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29707         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29708         * lib/unictype/pr_bidi_block_separator.c: New file.
29709         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29710         * lib/unictype/pr_bidi_common_separator.c: New file.
29711         * lib/unictype/pr_bidi_control.c: New file.
29712         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29713         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29714         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29715         * lib/unictype/pr_bidi_european_digit.c: New file.
29716         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29717         * lib/unictype/pr_bidi_left_to_right.c: New file.
29718         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29719         * lib/unictype/pr_bidi_other_neutral.c: New file.
29720         * lib/unictype/pr_bidi_pdf.c: New file.
29721         * lib/unictype/pr_bidi_segment_separator.c: New file.
29722         * lib/unictype/pr_bidi_whitespace.c: New file.
29723         * lib/unictype/pr_byname.c: New file.
29724         * lib/unictype/pr_byname.gperf: New file.
29725         * lib/unictype/pr_combining.c: New file.
29726         * lib/unictype/pr_composite.c: New file.
29727         * lib/unictype/pr_currency_symbol.c: New file.
29728         * lib/unictype/pr_dash.c: New file.
29729         * lib/unictype/pr_decimal_digit.c: New file.
29730         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29731         * lib/unictype/pr_deprecated.c: New file.
29732         * lib/unictype/pr_diacritic.c: New file.
29733         * lib/unictype/pr_extender.c: New file.
29734         * lib/unictype/pr_format_control.c: New file.
29735         * lib/unictype/pr_grapheme_base.c: New file.
29736         * lib/unictype/pr_grapheme_extend.c: New file.
29737         * lib/unictype/pr_grapheme_link.c: New file.
29738         * lib/unictype/pr_hex_digit.c: New file.
29739         * lib/unictype/pr_hyphen.c: New file.
29740         * lib/unictype/pr_id_continue.c: New file.
29741         * lib/unictype/pr_id_start.c: New file.
29742         * lib/unictype/pr_ideographic.c: New file.
29743         * lib/unictype/pr_ids_binary_operator.c: New file.
29744         * lib/unictype/pr_ids_trinary_operator.c: New file.
29745         * lib/unictype/pr_ignorable_control.c: New file.
29746         * lib/unictype/pr_iso_control.c: New file.
29747         * lib/unictype/pr_join_control.c: New file.
29748         * lib/unictype/pr_left_of_pair.c: New file.
29749         * lib/unictype/pr_line_separator.c: New file.
29750         * lib/unictype/pr_logical_order_exception.c: New file.
29751         * lib/unictype/pr_lowercase.c: New file.
29752         * lib/unictype/pr_math.c: New file.
29753         * lib/unictype/pr_non_break.c: New file.
29754         * lib/unictype/pr_not_a_character.c: New file.
29755         * lib/unictype/pr_numeric.c: New file.
29756         * lib/unictype/pr_other_alphabetic.c: New file.
29757         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29758         * lib/unictype/pr_other_grapheme_extend.c: New file.
29759         * lib/unictype/pr_other_id_continue.c: New file.
29760         * lib/unictype/pr_other_id_start.c: New file.
29761         * lib/unictype/pr_other_lowercase.c: New file.
29762         * lib/unictype/pr_other_math.c: New file.
29763         * lib/unictype/pr_other_uppercase.c: New file.
29764         * lib/unictype/pr_paired_punctuation.c: New file.
29765         * lib/unictype/pr_paragraph_separator.c: New file.
29766         * lib/unictype/pr_pattern_syntax.c: New file.
29767         * lib/unictype/pr_pattern_white_space.c: New file.
29768         * lib/unictype/pr_private_use.c: New file.
29769         * lib/unictype/pr_punctuation.c: New file.
29770         * lib/unictype/pr_quotation_mark.c: New file.
29771         * lib/unictype/pr_radical.c: New file.
29772         * lib/unictype/pr_sentence_terminal.c: New file.
29773         * lib/unictype/pr_soft_dotted.c: New file.
29774         * lib/unictype/pr_space.c: New file.
29775         * lib/unictype/pr_terminal_punctuation.c: New file.
29776         * lib/unictype/pr_test.c: New file.
29777         * lib/unictype/pr_titlecase.c: New file.
29778         * lib/unictype/pr_unassigned_code_value.c: New file.
29779         * lib/unictype/pr_unified_ideograph.c: New file.
29780         * lib/unictype/pr_uppercase.c: New file.
29781         * lib/unictype/pr_variation_selector.c: New file.
29782         * lib/unictype/pr_white_space.c: New file.
29783         * lib/unictype/pr_xid_continue.c: New file.
29784         * lib/unictype/pr_xid_start.c: New file.
29785         * lib/unictype/pr_zero_width.c: New file.
29786         * lib/unictype/scripts.c: New file.
29787         * lib/unictype/sy_c_ident.c: New file.
29788         * lib/unictype/sy_c_whitespace.c: New file.
29789         * lib/unictype/sy_java_ident.c: New file.
29790         * lib/unictype/sy_java_whitespace.c: New file.
29791
29792         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29793         Unicode 5.0.0.
29794         * lib/unictype/blocks.h: Likewise.
29795         * lib/unictype/categ_C.h: Likewise.
29796         * lib/unictype/categ_Cc.h: Likewise.
29797         * lib/unictype/categ_Cf.h: Likewise.
29798         * lib/unictype/categ_Cn.h: Likewise.
29799         * lib/unictype/categ_Co.h: Likewise.
29800         * lib/unictype/categ_Cs.h: Likewise.
29801         * lib/unictype/categ_L.h: Likewise.
29802         * lib/unictype/categ_Ll.h: Likewise.
29803         * lib/unictype/categ_Lm.h: Likewise.
29804         * lib/unictype/categ_Lo.h: Likewise.
29805         * lib/unictype/categ_Lt.h: Likewise.
29806         * lib/unictype/categ_Lu.h: Likewise.
29807         * lib/unictype/categ_M.h: Likewise.
29808         * lib/unictype/categ_Mc.h: Likewise.
29809         * lib/unictype/categ_Me.h: Likewise.
29810         * lib/unictype/categ_Mn.h: Likewise.
29811         * lib/unictype/categ_N.h: Likewise.
29812         * lib/unictype/categ_Nd.h: Likewise.
29813         * lib/unictype/categ_Nl.h: Likewise.
29814         * lib/unictype/categ_No.h: Likewise.
29815         * lib/unictype/categ_P.h: Likewise.
29816         * lib/unictype/categ_Pc.h: Likewise.
29817         * lib/unictype/categ_Pd.h: Likewise.
29818         * lib/unictype/categ_Pe.h: Likewise.
29819         * lib/unictype/categ_Pf.h: Likewise.
29820         * lib/unictype/categ_Pi.h: Likewise.
29821         * lib/unictype/categ_Po.h: Likewise.
29822         * lib/unictype/categ_Ps.h: Likewise.
29823         * lib/unictype/categ_S.h: Likewise.
29824         * lib/unictype/categ_Sc.h: Likewise.
29825         * lib/unictype/categ_Sk.h: Likewise.
29826         * lib/unictype/categ_Sm.h: Likewise.
29827         * lib/unictype/categ_So.h: Likewise.
29828         * lib/unictype/categ_Z.h: Likewise.
29829         * lib/unictype/categ_Zl.h: Likewise.
29830         * lib/unictype/categ_Zp.h: Likewise.
29831         * lib/unictype/categ_Zs.h: Likewise.
29832         * lib/unictype/categ_of.h: Likewise.
29833         * lib/unictype/combining.h: Likewise.
29834         * lib/unictype/ctype_alnum.h: Likewise.
29835         * lib/unictype/ctype_alpha.h: Likewise.
29836         * lib/unictype/ctype_blank.h: Likewise.
29837         * lib/unictype/ctype_cntrl.h: Likewise.
29838         * lib/unictype/ctype_digit.h: Likewise.
29839         * lib/unictype/ctype_graph.h: Likewise.
29840         * lib/unictype/ctype_lower.h: Likewise.
29841         * lib/unictype/ctype_print.h: Likewise.
29842         * lib/unictype/ctype_punct.h: Likewise.
29843         * lib/unictype/ctype_space.h: Likewise.
29844         * lib/unictype/ctype_upper.h: Likewise.
29845         * lib/unictype/ctype_xdigit.h: Likewise.
29846         * lib/unictype/decdigit.h: Likewise.
29847         * lib/unictype/digit.h: Likewise.
29848         * lib/unictype/mirror.h: Likewise.
29849         * lib/unictype/numeric.h: Likewise.
29850         * lib/unictype/pr_alphabetic.h: Likewise.
29851         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29852         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29853         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29854         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29855         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29856         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29857         * lib/unictype/pr_bidi_control.h: Likewise.
29858         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29859         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29860         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29861         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29862         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29863         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29864         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29865         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29866         * lib/unictype/pr_bidi_pdf.h: Likewise.
29867         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29868         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29869         * lib/unictype/pr_combining.h: Likewise.
29870         * lib/unictype/pr_composite.h: Likewise.
29871         * lib/unictype/pr_currency_symbol.h: Likewise.
29872         * lib/unictype/pr_dash.h: Likewise.
29873         * lib/unictype/pr_decimal_digit.h: Likewise.
29874         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29875         * lib/unictype/pr_deprecated.h: Likewise.
29876         * lib/unictype/pr_diacritic.h: Likewise.
29877         * lib/unictype/pr_extender.h: Likewise.
29878         * lib/unictype/pr_format_control.h: Likewise.
29879         * lib/unictype/pr_grapheme_base.h: Likewise.
29880         * lib/unictype/pr_grapheme_extend.h: Likewise.
29881         * lib/unictype/pr_grapheme_link.h: Likewise.
29882         * lib/unictype/pr_hex_digit.h: Likewise.
29883         * lib/unictype/pr_hyphen.h: Likewise.
29884         * lib/unictype/pr_id_continue.h: Likewise.
29885         * lib/unictype/pr_id_start.h: Likewise.
29886         * lib/unictype/pr_ideographic.h: Likewise.
29887         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29888         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29889         * lib/unictype/pr_ignorable_control.h: Likewise.
29890         * lib/unictype/pr_iso_control.h: Likewise.
29891         * lib/unictype/pr_join_control.h: Likewise.
29892         * lib/unictype/pr_left_of_pair.h: Likewise.
29893         * lib/unictype/pr_line_separator.h: Likewise.
29894         * lib/unictype/pr_logical_order_exception.h: Likewise.
29895         * lib/unictype/pr_lowercase.h: Likewise.
29896         * lib/unictype/pr_math.h: Likewise.
29897         * lib/unictype/pr_non_break.h: Likewise.
29898         * lib/unictype/pr_not_a_character.h: Likewise.
29899         * lib/unictype/pr_numeric.h: Likewise.
29900         * lib/unictype/pr_other_alphabetic.h: Likewise.
29901         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29902         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29903         * lib/unictype/pr_other_id_continue.h: Likewise.
29904         * lib/unictype/pr_other_id_start.h: Likewise.
29905         * lib/unictype/pr_other_lowercase.h: Likewise.
29906         * lib/unictype/pr_other_math.h: Likewise.
29907         * lib/unictype/pr_other_uppercase.h: Likewise.
29908         * lib/unictype/pr_paired_punctuation.h: Likewise.
29909         * lib/unictype/pr_paragraph_separator.h: Likewise.
29910         * lib/unictype/pr_pattern_syntax.h: Likewise.
29911         * lib/unictype/pr_pattern_white_space.h: Likewise.
29912         * lib/unictype/pr_private_use.h: Likewise.
29913         * lib/unictype/pr_punctuation.h: Likewise.
29914         * lib/unictype/pr_quotation_mark.h: Likewise.
29915         * lib/unictype/pr_radical.h: Likewise.
29916         * lib/unictype/pr_sentence_terminal.h: Likewise.
29917         * lib/unictype/pr_soft_dotted.h: Likewise.
29918         * lib/unictype/pr_space.h: Likewise.
29919         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29920         * lib/unictype/pr_titlecase.h: Likewise.
29921         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29922         * lib/unictype/pr_unified_ideograph.h: Likewise.
29923         * lib/unictype/pr_uppercase.h: Likewise.
29924         * lib/unictype/pr_variation_selector.h: Likewise.
29925         * lib/unictype/pr_white_space.h: Likewise.
29926         * lib/unictype/pr_xid_continue.h: Likewise.
29927         * lib/unictype/pr_xid_start.h: Likewise.
29928         * lib/unictype/pr_zero_width.h: Likewise.
29929         * lib/unictype/scripts.h: Likewise.
29930         * lib/unictype/scripts_byname.gperf: Likewise.
29931         * lib/unictype/sy_c_ident.h: Likewise.
29932         * lib/unictype/sy_c_whitespace.h: Likewise.
29933         * lib/unictype/sy_java_ident.h: Likewise.
29934         * lib/unictype/sy_java_whitespace.h: Likewise.
29935
29936         * lib/unictype/Makefile: New file.
29937         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29938         glibc.
29939         * lib/unictype/3level.h: New file, copied from glibc.
29940         * lib/unictype/3levelbit.h: New file.
29941
29942 2007-11-11  Bruno Haible  <bruno@clisp.org>
29943
29944         * modules/gperf: New file.
29945         * modules/iconv_open (Depends-on): Add it.
29946         (Makefile.am): Remove the GPERF definition.
29947
29948 2007-11-11  Bruno Haible  <bruno@clisp.org>
29949
29950         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29951         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29952
29953 2007-11-11  Bruno Haible  <bruno@clisp.org>
29954
29955         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29956         (usage): Remove function.
29957
29958 2007-11-11  Bruno Haible  <bruno@clisp.org>
29959
29960         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29961         gl_FUNC_CEILF_LIBS.
29962         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29963         gl_FUNC_CEIL_LIBS.
29964         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29965         gl_FUNC_CEILL_LIBS.
29966         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29967         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29968         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29969
29970 2007-11-11  Bruno Haible  <bruno@clisp.org>
29971
29972         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29973         roundf were declared but do not exist on functions.
29974         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29975         roundl were declared but do not exist on functions.
29976         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29977         HAVE_FLOORL_AND_CEILL, respectively.
29978         Needed for Sun C on Solaris 10.
29979
29980 2007-11-11  Bruno Haible  <bruno@clisp.org>
29981
29982         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29983         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29984         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29985         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29986         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29987         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29988         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29989         HAVE_DECL_ROUNDF.
29990         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29991         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29993         of HAVE_DECL_ROUND*.
29994         * modules/math (Makefile.am): Update.
29995
29996 2007-11-10  Bruno Haible  <bruno@clisp.org>
29997
29998         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29999         ptrdiff_t as m4/intl.m4.
30000
30001 2007-11-10  Jim Meyering  <meyering@redhat.com>
30002
30003         Avoid link failure for the argmatch test.
30004         * tests/test-argmatch.c (usage): Define function to avoid a link
30005         failure: argmatch_die requires a usage function.
30006
30007 2007-11-09  Bruno Haible  <bruno@clisp.org>
30008
30009         * doc/functions/snprintf.texi: Mention BeOS deficiency.
30010         * doc/functions/vsnprintf.texi: Likewise.
30011         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
30012         with a size argument < 2.
30013
30014 2007-11-09  Bruno Haible  <bruno@clisp.org>
30015
30016         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
30017         buffer. Fixes an inefficiency introduced on 2007-11-03.
30018
30019 2007-11-09  Bruno Haible  <bruno@clisp.org>
30020
30021         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
30022         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
30023
30024 2007-11-08  Jim Meyering  <meyering@redhat.com>
30025
30026         Change cache variable name prefix "jm_" to "gl_" everywhere.
30027         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
30028         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
30029         * m4/uptime.m4: s/gl_/jm_/
30030
30031 2007-11-07  Bruno Haible  <bruno@clisp.org>
30032
30033         Update to GNU gettext 0.17.
30034         * m4/intl.m4: Update to GNU gettext 0.17.
30035         * m4/po.m4: Likewise.
30036         * modules/gettext (Files): Remove m4/ulonglong.m4.
30037         (configure.ac): Require gettext infrastructure from version 0.17.
30038
30039 2007-11-06  Bruno Haible  <bruno@clisp.org>
30040
30041         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
30042         symbolic values are not defined in a public header.
30043         * lib/freadable.c (freadable) [QNX]: Likewise.
30044         * lib/freadahead.c (freadahead) [QNX]: Likewise.
30045         * lib/freading.c (freading) [QNX]: Likewise.
30046         * lib/fseterr.c (fseterr) [QNX]: Likewise.
30047         * lib/fwritable.c (fwritable) [QNX]: Likewise.
30048         * lib/fwriting.c (fwriting) [QNX]: Likewise.
30049         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
30050         Reported by Alain Magloire.
30051
30052         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
30053
30054 2007-11-05  Bruno Haible  <bruno@clisp.org>
30055
30056         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
30057         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
30058         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
30059         Reported by Eric Blake.
30060
30061 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30062             Bruno Haible  <bruno@clisp.org>
30063
30064         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
30065         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
30066         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
30067         (malloc): Undefine also before including <stdlib.h>.
30068         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
30069         Needed on OSF/1 4.0.
30070
30071 2007-11-05  Jim Meyering  <meyering@redhat.com>
30072
30073         git-version-gen: sync from coreutils.
30074         * build-aux/git-version-gen: Add comments.
30075         Change the first '-' to '.' in the snapshot version string,
30076         e.g., 6.9-377-08144 -> 6.9.377-08144
30077         Remove first parameter.
30078         Don't declare a version "-dirty" merely because a time
30079         stamp has changed.
30080
30081 2007-11-04  Bruno Haible  <bruno@clisp.org>
30082
30083         * lib/lock.h: Protect all macro definitions containing an 'if'
30084         statement through a "do { ... } while (0)".
30085         * lib/tls.h: Likewise.
30086
30087 2007-11-04  Bruno Haible  <bruno@clisp.org>
30088
30089         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
30090
30091 2007-11-04  Bruno Haible  <bruno@clisp.org>
30092
30093         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
30094         * modules/fprintf-posix (Depends-on): Add nocrash.
30095         * modules/snprintf-posix (Depends-on): Likewise.
30096         * modules/sprintf-posix (Depends-on): Likewise.
30097         * modules/vasnprintf-posix (Depends-on): Likewise.
30098         * modules/vasprintf-posix (Depends-on): Likewise.
30099         * modules/vfprintf-posix (Depends-on): Likewise.
30100         * modules/vsnprintf-posix (Depends-on): Likewise.
30101         * modules/vsprintf-posix (Depends-on): Likewise.
30102         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30103         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30104         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30105         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30106         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30107         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30108         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30109
30110 2007-11-04  Bruno Haible  <bruno@clisp.org>
30111
30112         * modules/nocrash: New file.
30113         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
30114         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
30115
30116 2007-11-04  Bruno Haible  <bruno@clisp.org>
30117
30118         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
30119         precision handling.
30120         * tests/test-vasprintf-posix.c (test_function): Likewise.
30121         * tests/test-snprintf-posix.h (test_function): Likewise.
30122         * tests/test-sprintf-posix.h (test_function): Likewise.
30123
30124         Fix *printf behaviour for large precisions on mingw and BeOS.
30125         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
30126         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
30127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
30128         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30129         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30130         gl_PRINTF_PRECISION and test its result. Invoke
30131         gl_PREREQ_VASNPRINTF_PRECISION.
30132         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30133         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30134         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30135         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30136         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30138         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30139         * doc/functions/fprintf.texi: Update.
30140         * doc/functions/printf.texi: Update.
30141         * doc/functions/snprintf.texi: Update.
30142         * doc/functions/sprintf.texi: Update.
30143         * doc/functions/vfprintf.texi: Update.
30144         * doc/functions/vprintf.texi: Update.
30145         * doc/functions/vsnprintf.texi: Update.
30146         * doc/functions/vsprintf.texi: Update.
30147
30148 2007-11-04  Bruno Haible  <bruno@clisp.org>
30149
30150         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
30151
30152 2007-11-04  Bruno Haible  <bruno@clisp.org>
30153
30154         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
30155         Reported by Sylvain Beucler <beuc@gnu.org>.
30156
30157 2007-11-03  Bruno Haible  <bruno@clisp.org>
30158
30159         * tests/test-fprintf-posix2.sh: New file.
30160         * tests/test-fprintf-posix2.c: New file.
30161         * modules/fprintf-posix-tests (Files): Add them.
30162         (TESTS): Add test-fprintf-posix2.sh.
30163         (configure.ac): Check for getrlimit and setrlimit.
30164         (check_PROGRAMS): Add test-fprintf-posix2.
30165
30166         * tests/test-printf-posix2.sh: New file.
30167         * tests/test-printf-posix2.c: New file.
30168         * modules/printf-posix-tests (Files): Add them.
30169         (TESTS): Add test-printf-posix2.sh.
30170         (configure.ac): Check for getrlimit and setrlimit.
30171         (check_PROGRAMS): Add test-printf-posix2.
30172
30173         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
30174         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
30175         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
30176         (decode_double): New function, copied from decode_long_double.
30177         (scale10_round_decimal_decoded): New function, extracted from
30178         scale10_round_decimal_long_double.
30179         (scale10_round_decimal_long_double): Use it.
30180         (scale10_round_decimal_double): New function.
30181         (floorlog10): New function.
30182         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30184         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30185         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30186         gl_PRINTF_ENOMEM and test its result. Invoke
30187         gl_PREREQ_VASNPRINTF_ENOMEM.
30188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30191         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30192         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30194         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30195         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
30196         * modules/snprintf-posix (Depends-on): Likewise.
30197         * modules/sprintf-posix (Depends-on): Likewise.
30198         * modules/vasnprintf-posix (Depends-on): Likewise.
30199         * modules/vasprintf-posix (Depends-on): Likewise.
30200         * modules/vfprintf-posix (Depends-on): Likewise.
30201         * modules/vsnprintf-posix (Depends-on): Likewise.
30202         * modules/vsprintf-posix (Depends-on): Likewise.
30203         * doc/functions/fprintf.texi: Update.
30204         * doc/functions/printf.texi: Update.
30205         * doc/functions/snprintf.texi: Update.
30206         * doc/functions/sprintf.texi: Update.
30207         * doc/functions/vfprintf.texi: Update.
30208         * doc/functions/vprintf.texi: Update.
30209         * doc/functions/vsnprintf.texi: Update.
30210         * doc/functions/vsprintf.texi: Update.
30211
30212 2007-11-03  Bruno Haible  <bruno@clisp.org>
30213
30214         * modules/frexp-nolibm-tests: New file.
30215
30216         * modules/frexp-nolibm: New file.
30217         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30218
30219 2007-11-03  Bruno Haible  <bruno@clisp.org>
30220
30221         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30222         value is C99 compliant.
30223         Needed for OSF/1 5.1.
30224
30225 2007-11-03  Bruno Haible  <bruno@clisp.org>
30226
30227         Fix out-of-memory handling of vasnprintf.
30228         * lib/printf-parse.c: Include <errno.h>.
30229         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30230         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30231         is already set.
30232
30233 2007-11-02  Eric Blake  <ebb9@byu.net>
30234
30235         Fix tests on cygwin.
30236         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30237
30238 2007-11-01  Bruno Haible  <bruno@clisp.org>
30239
30240         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30241         warning.
30242         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30243         needed for POSIX compatibility.
30244
30245 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30246
30247         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30248         for compatibility with GNU.
30249
30250 2007-11-01  Bruno Haible  <bruno@clisp.org>
30251
30252         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30253         (putenv): Renamed from rpl_putenv. Change argument type from
30254         'const char *' to 'char *'.
30255         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30256         of defining putenv in config.h, just set REPLACE_PUTENV.
30257         * modules/putenv (Depends-on): Add stdlib.
30258         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30259         (Include): Use <stdlib.h>.
30260         * lib/stdlib.in.h (putenv): New declaration.
30261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30262         REPLACE_PUTENV.
30263         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30264         REPLACE_PUTENV.
30265         Needed for MacOS X 10.5.0.
30266         Reported by Peter O'Gorman <peter@pogma.com>.
30267
30268 2007-11-01  Jim Meyering  <meyering@redhat.com>
30269
30270         Treat an empty date string exactly like "0".
30271         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30272         if the remaining date string (to be parsed) is empty, use "0".
30273         Reported by Mischa Molhoek and discussed in this thread:
30274         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30275
30276 2007-10-31  Bruno Haible  <bruno@clisp.org>
30277
30278         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30279         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30280         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30281         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30282         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30283         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30284
30285 2007-10-31  Bruno Haible  <bruno@clisp.org>
30286
30287         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30288         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30289         (AC_TYPE_LONG_LONG_INT): Use it.
30290         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30291         it as well.
30292         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30293         to m4/longlong.m4.
30294         * modules/stdint (Files): Remove m4/ulonglong.m4.
30295         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30296         m4/ulonglong.m4.
30297         * modules/strtoumax (Files): Likewise.
30298
30299 2007-10-30  Bruno Haible  <bruno@clisp.org>
30300
30301         * modules/xvasprintf-posix: New file.
30302         Suggested by Eric Blake.
30303
30304 2007-10-30  Bruno Haible  <bruno@clisp.org>
30305
30306         * modules/xprintf-posix-tests: New file.
30307         * tests/test-xprintf-posix.sh: New file.
30308         * tests/test-xprintf-posix.c: New file.
30309         * tests/test-xfprintf-posix.c: New file.
30310
30311         * modules/xprintf-posix: New file.
30312
30313 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30314
30315         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30316         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30317         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30318
30319 2007-10-29  Bruno Haible  <bruno@clisp.org>
30320
30321         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30322         contain the special marker '_cv_'.
30323         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30324         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30325         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30326         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30327         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30328         Reported by Ralf Wildenhues.
30329
30330 2007-10-29  Bruno Haible  <bruno@clisp.org>
30331
30332         * gnulib-tool (func_import): When --lgpl is not specified, set
30333         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30334         GPLv3.
30335         Reported by Simon Josefsson.
30336
30337 2007-10-28  Bruno Haible  <bruno@clisp.org>
30338
30339         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30340         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30341         HAVE_DECL_ISFINITE.
30342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30343         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30344         HAVE_DECL_ISFINITE.
30345
30346 2007-10-28  Bruno Haible  <bruno@clisp.org>
30347
30348         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30349         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30350
30351 2007-10-28  Bruno Haible  <bruno@clisp.org>
30352
30353         Fix link errors with Sun C 5.0 on Solaris 10.
30354         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30355         function is declared but not present in the compiler's libm.
30356         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30357         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30358         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30359         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30360         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30361         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30362         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30364         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30365         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30366         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30367         HAVE_DECL_FLOORL.
30368
30369 2007-10-28  Bruno Haible  <bruno@clisp.org>
30370
30371         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30372         gl_FUNC_FLOORL. Cache the result.
30373         (gl_FUNC_FLOORL): Use it.
30374         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30375         gl_FUNC_CEILL. Cache the result.
30376         (gl_FUNC_CEILL): Use it.
30377
30378         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30379         gl_FUNC_FLOOR. Cache the result.
30380         (gl_FUNC_FLOOR): Use it.
30381         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30382         gl_FUNC_CEIL. Cache the result.
30383         (gl_FUNC_CEIL): Use it.
30384
30385         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30386         gl_FUNC_FLOORF. Cache the result.
30387         (gl_FUNC_FLOORF): Use it.
30388         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30389         gl_FUNC_CEILF. Cache the result.
30390         (gl_FUNC_CEILF): Use it.
30391
30392 2007-10-28  Bruno Haible  <bruno@clisp.org>
30393
30394         * gnulib-tool: Allow specifying the LGPL version number through
30395         --lgpl=2 or --lgpl=3.
30396         (func_usage): Document --lgpl with argument.
30397         Handle --lgpl=... arguments.
30398         (func_import): Recognize also gl_LGPL calls with an argument. When
30399         --lgpl=2 is used and the module's license is just LGPL, report an
30400         error. Set sed_transform_lib_file according to the lgpl variable. In
30401         the generated files, use --lgpl or gl_LGPL invocations with argument,
30402         if necessary.
30403         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30404         an LGPv2+ license.
30405         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30406         gl_LGPL macro.
30407
30408 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30409             Bruno Haible  <bruno@clisp.org>
30410
30411         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30412         (u16_uctomb_aux): Likewise.
30413         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30414         !HAVE_INLINE.
30415         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30416
30417 2007-10-28  Bruno Haible  <bruno@clisp.org>
30418
30419         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30420         Invoke AM_GETTEXT_OPTION if it exists.
30421         * modules/vasprintf: Likewise.
30422         * modules/verror: Likewise.
30423         * modules/xprintf: Likewise.
30424         * modules/xvasprintf: Likewise.
30425
30426 2007-10-27  Ben Pfaff  <blp@gnu.org>
30427
30428         * lib/math.in.h: Define isfinite macro and prototypes for
30429         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30430         implementations.
30431         * m4/math_h.m4: New substitutions for isfinite module.
30432         * lib/isfinite.c: New file.
30433         * m4/isfinite.m4: New file.
30434         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30435         * modules/isfinite: New file.
30436         * modules/isfinite-tests: New file.
30437         * tests/tests-isfinite.c: New file.
30438         * doc/functions/isfinite.texi: Mention isfinite module.
30439         * MODULES.html.sh: Mention new module.
30440
30441 2007-10-27  Ben Pfaff  <blp@gnu.org>
30442
30443         Ralf Wildenhues reported that Tru64 4.0D declares the round
30444         functions but does not have definitions.
30445         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30446         cannot be found in any library, set the output variable to
30447         "missing" instead of "".
30448         * m4/round.m4: Also use our substitute if we cannot find round in
30449         any library, even if it is declared.
30450         * m4/roundf.m4: Likewise for roundf.
30451         * m4/roundl.m4: Likewise for roundl.
30452         * lib/math.in.h: Undefine roundf, round, roundl before defining
30453         their replacements, to allow for hypothetical systems where these
30454         may be defined as macros but not available in libraries.
30455
30456 2007-10-27  Bruno Haible  <bruno@clisp.org>
30457
30458         * doc/gnulib.texi: Invoke @firstparagraphindent.
30459         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30460         changes in gnulib.
30461         (Source changes): New section.
30462
30463 2007-10-26  Bruno Haible  <bruno@clisp.org>
30464
30465         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30466         borrowed from autoconf.
30467
30468 2007-10-26  Bruno Haible  <bruno@clisp.org>
30469
30470         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30471         strerror returned the empty string. Needed on HP-UX 11.00.
30472
30473 2007-10-24  Micah Cowan  <micah@cowan.name>
30474
30475         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30476         * build-aux/bootstrap: Remove support for now-unnecessary option,
30477         --cvs-user, and envvars CVS_USER, CVS_RSH.
30478
30479 2007-10-24  Jim Meyering  <meyering@redhat.com>
30480
30481         Avoid diagnostics from sha1sum when there is no cached checksum.
30482         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30483         if the po.s1 file hasn't been created yet.
30484
30485         * build-aux/bootstrap: Sync from coreutils:
30486         2007-10-24  Jim Meyering  <meyering@redhat.com>
30487         Get gnulib from the git repository, not from an obsolete cvs one.
30488         * build-aux/bootstrap: Suggestion from Micah Cowan.
30489         2007-10-04  Jim Meyering  <jim@meyering.net>
30490         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30491         (update_po_files): Work also when there are no .po files in po/.
30492
30493 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30494
30495         * README: Append ".git" to git and cg examples.
30496         Problem reported by Benoit Sigoure.
30497
30498 2007-10-23  Micah Cowan  <micah@cowan.name>
30499
30500         * users.txt: Add wget.
30501
30502 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30503
30504         Fix linking of some unistdio tests on FreeBSD.
30505         * modules/unistdio/u16-vsnprintf-tests
30506         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30507         * modules/unistdio/u16-vsprintf-tests
30508         (test_u16_vsnprintf1_LDADD): Likewise.
30509         * modules/unistdio/u32-vsnprintf-tests
30510         (test_u32_vsnprintf1_LDADD): Likewise.
30511         * modules/unistdio/u32-vsprintf-tests
30512         (test_u32_vsprintf1_LDADD): Likewise.
30513         * modules/unistdio/u8-vsnprintf-tests
30514         (test_u8_vsnprintf1_LDADD): Likewise.
30515         * modules/unistdio/u8-vsprintf-tests
30516         (test_u8_vsprintf1_LDADD): Likewise.
30517         * modules/unistdio/ulc-vsnprintf-tests
30518         (test_ulc_vsnprintf1_LDADD): Likewise.
30519         * modules/unistdio/ulc-vsprintf-tests
30520         (test_ulc_vsprintf1_LDADD): Likewise.
30521
30522         Fix linking of some uniconv tests on FreeBSD.
30523         * modules/uniconv/u16-conv-from-enc-tests
30524         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30525         * modules/uniconv/u16-conv-to-enc-tests
30526         (test_u16_conv_to_enc_LDADD): Likewise.
30527         * modules/uniconv/u16-strconv-from-enc-tests
30528         (test_u16_strconv_from_enc_LDADD): Likewise.
30529         * modules/uniconv/u16-strconv-to-enc-tests
30530         (test_u16_strconv_to_enc_LDADD): Likewise.
30531         * modules/uniconv/u32-conv-from-enc-tests
30532         (test_u32_conv_from_enc_LDADD): Likewise.
30533         * modules/uniconv/u32-conv-to-enc-tests
30534         (test_u32_conv_to_enc_LDADD): Likewise.
30535         * modules/uniconv/u32-strconv-from-enc-tests
30536         (test_u32_strconv_from_enc_LDADD): Likewise.
30537         * modules/uniconv/u32-strconv-to-enc-tests
30538         (test_u32_strconv_to_enc_LDADD): Likewise.
30539         * modules/uniconv/u8-conv-from-enc-tests
30540         (test_u8_conv_from_enc_LDADD): Likewise.
30541         * modules/uniconv/u8-conv-to-enc-tests
30542         (test_u8_conv_to_enc_LDADD): Likewise.
30543         * modules/uniconv/u8-strconv-from-enc-tests
30544         (test_u8_strconv_from_enc_LDADD): Likewise.
30545         * modules/uniconv/u8-strconv-to-enc-tests
30546         (test_u8_strconv_to_enc_LDADD): Likewise.
30547
30548 2007-10-22  Bruno Haible  <bruno@clisp.org>
30549
30550         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30551         size.
30552
30553 2007-10-22  Eric Blake  <ebb9@byu.net>
30554
30555         Tweak x*printf documentation.
30556         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30557         variable name and comments.
30558         Suggested by Bruno Haible.
30559
30560 2007-10-22  Bruno Haible  <bruno@clisp.org>
30561
30562         * lib/acl.c (copy_acl): Fix file name in comment.
30563
30564 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30565
30566         Fix Tru64 problem with stdbool.h.
30567         * lib/stdbool.in.h (false, true):
30568         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30569         Don't declare as an enum in this situation; it runs afoul of Tru64.
30570         Problem reported by Steven M. Schweda in
30571         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30572
30573 2007-10-22  Eric Blake  <ebb9@byu.net>
30574
30575         Also wrap vf?printf.
30576         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30577         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30578         (xvprintf, xvfprintf): New functions.
30579
30580 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30581
30582         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30583         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30584
30585         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30586         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30587
30588 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30589
30590         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30591         by Bruno Haible.
30592
30593 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30594
30595         * lib/getloadavg.c
30596         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30597         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30598
30599         * tests/test-i-ring.c: Work for C89.
30600
30601 2007-10-22  Bruno Haible  <bruno@clisp.org>
30602
30603         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30604         -1u, in preprocessor expression, so that we don't test for the bug
30605         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30607
30608 2007-10-22  Eric Blake  <ebb9@byu.net>
30609
30610         * tests/test-yesno.sh: Silence stderr during test.
30611
30612 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30613
30614         * modules/crypto/gc-camellia: New file.
30615
30616         * m4/gc-camellia.m4: New file.
30617
30618         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30619
30620         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30621
30622 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30623
30624         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30625         --help to stdout.  Reported by sms@antinode.org (Steven
30626         M. Schweda).
30627
30628 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30629
30630         * users.txt: Fix link to libksba.
30631
30632 2007-10-21  Ben Pfaff  <blp@gnu.org>
30633
30634         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30635         round.c roundf implementation that depends on floorf and ceilf to
30636         be tested unconditionally.
30637
30638 2007-10-21  Ben Pfaff  <blp@gnu.org>
30639
30640         * m4/check-libm-func.m4: Removed.
30641         * m4/check-math-lib.m4: New file.
30642         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30643         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30644         definition and lack of AC_LIBOBJ([roundf]).
30645         * m4/roundl.m4: Ditto, and similarly for roundl.
30646         * modules/round: Reference new m4 file.
30647         * modules/roundf: Ditto.
30648         * modules/roundl: Ditto.
30649         * tests/test-round2.c (main): Use ROUND instead of round.
30650         Bug report from Bruno Haible.
30651
30652 2007-10-21  Bruno Haible  <bruno@clisp.org>
30653
30654         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30655         context.
30656
30657 2007-10-21  Bruno Haible  <bruno@clisp.org>
30658
30659         * tests/test-wcwidth.c (main): Allow negative result for some control
30660         characters.
30661
30662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30663         Needed on OSF/1 5.1.
30664
30665 2007-10-21  Bruno Haible  <bruno@clisp.org>
30666
30667         * tests/test-floorf1.c: Include isnanf.h.
30668         (main): Use isnanf() instead of isnan().
30669         * tests/test-ceilf1.c: Include isnanf.h.
30670         (main): Use isnanf() instead of isnan().
30671         * tests/test-truncf1.c: Include isnanf.h.
30672         (main): Use isnanf() instead of isnan().
30673         * tests/test-roundf1.c: Include isnanf.h.
30674         (main): Use isnanf() instead of isnan().
30675
30676 2007-10-21  Eric Blake  <ebb9@byu.net>
30677
30678         * users.txt: Update URL for m4.
30679
30680 2007-10-21  Bruno Haible  <bruno@clisp.org>
30681
30682         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30683
30684 2007-10-21  Bruno Haible  <bruno@clisp.org>
30685
30686         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30687         Git's management files if the CVS files are not present.
30688
30689 2007-10-20  Bruno Haible  <bruno@clisp.org>
30690
30691         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30692         gcc-3.4.x.
30693
30694 2007-10-20  Ben Pfaff  <blp@gnu.org>
30695
30696         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30697         implementations.
30698         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30699         * lib/round.c: New file.
30700         * lib/roundf.c: New file.
30701         * lib/roundl.c: New file.
30702         * m4/round.m4: New file.
30703         * m4/roundf.m4: New file.
30704         * m4/roundl.m4: New file.
30705         * m4/check-libm-func-m4: New file.
30706         * modules/math: Replace round, roundf, roundl related @VARS@ in
30707         math.in.h.
30708         * modules/round: New file.
30709         * modules/round-tests: New file.
30710         * modules/roundf: New file.
30711         * modules/roundf-tests: New file.
30712         * modules/roundl: New file.
30713         * modules/roundl-tests: New file.
30714         * tests/test-round1.c: New file.
30715         * tests/test-round2.c: New file.
30716         * tests/test-roundf1.c: New file.
30717         * tests/test-roundf2.c: New file.
30718         * tests/test-roundl.c: New file.
30719         * doc/functions/round.texi: Mention round module.
30720         * doc/functions/roundf.texi: Mention roundf module.
30721         * doc/functions/roundl.texi: Mention roundl module.
30722         * MODULES.html.sh: Mention new modules.
30723         Thanks to Bruno Haible for suggestions.
30724
30725 2007-10-20  Jim Meyering  <meyering@redhat.com>
30726
30727         * lib/xprintf.c: Include <config.h> unconditionally.
30728
30729         Change xprintf's license to GPL.
30730         * modules/xprintf (License): s/LGPL/GPL/, since this module
30731         depends on modules (exit and exitfail) which are GPL.
30732         Suggestion from Bruno Haible.
30733
30734         xprintf fixes.
30735         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30736         Use a clearer diagnostic.
30737         Patch from Bruno Haible.
30738
30739 2007-10-20  Bruno Haible  <bruno@clisp.org>
30740
30741         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30742         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30743         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30744
30745 2007-10-20  Bruno Haible  <bruno@clisp.org>
30746
30747         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30748         precision in the comparison result > x - 1 or similar.
30749         * tests/test-ceilf2.c (correct_result_p): Likewise.
30750         * tests/test-truncf2.c (correct_result_p): Likewise.
30751         * tests/test-trunc2.c (correct_result_p): Likewise.
30752         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30753
30754 2007-10-20  Bruno Haible  <bruno@clisp.org>
30755
30756         * modules/ceil: New file.
30757         * m4/ceil.m4: New file.
30758         * doc/functions/ceil.texi: Mention the 'ceil' module.
30759
30760 2007-10-20  Bruno Haible  <bruno@clisp.org>
30761
30762         * modules/floor: New file.
30763         * m4/floor.m4: New file.
30764         * doc/functions/floor.texi: Mention the 'floor' module.
30765
30766 2007-10-20  Bruno Haible  <bruno@clisp.org>
30767
30768         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30769         of %a.
30770         * modules/floorf-tests (Depends-on): Likewise.
30771         * modules/truncf-tests (Depends-on): Likewise.
30772         * modules/trunc-tests (Depends-on): Likewise.
30773         Reported by Ben Pfaff.
30774
30775 2007-10-19  Jim Meyering  <meyering@redhat.com>
30776
30777         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30778         Don't bother testing specific errno values.  Just test ferror.
30779
30780         New module: xprintf
30781         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30782
30783 2007-10-19  Bruno Haible  <bruno@clisp.org>
30784
30785         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30786         syntax.
30787         * modules/javaexec (Makefile.am): Likewise.
30788         * modules/relocatable-prog (Makefile.am): Likewise.
30789         Suggested by Jim Meyering.
30790
30791 2007-10-18  Bruno Haible  <bruno@clisp.org>
30792
30793         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30794         Reported by Jim Meyering.
30795
30796 2007-10-18  Eric Blake  <ebb9@byu.net>
30797
30798         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30799
30800 2007-10-18  Bruno Haible  <bruno@clisp.org>
30801
30802         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30803         the format string into writable memory. Needed in Fortify conditions.
30804
30805 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30806             Bruno Haible  <bruno@clisp.org>
30807
30808         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30809         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30810         * modules/trim (Depends-on): Add mbchar.
30811         (configure.ac): Add gl_FUNC_MBRTOWC.
30812         (Makefile.am): Augment lib_SOURCES.
30813
30814 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30815
30816         Modify glob.c to use fstatat and dirfd, to simplify it.
30817         Suggested by Eric Blake.
30818         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30819         Don't include <stdbool.h>; not used.
30820         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30821         (link_exists_p): Simplify implementation, since we can now assume
30822         dirfd and fstatat.
30823         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30824
30825 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30826
30827         * gnulib-tool (func_get_dependencies): Fix sed script to
30828         match only tests.
30829
30830 2007-10-17  Bruno Haible  <bruno@clisp.org>
30831
30832         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30833         allow locale names without encoding suffix.
30834         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30835         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30836
30837 2007-10-16  Bruno Haible  <bruno@clisp.org>
30838
30839         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30840         * lib/getgroups.c (getgroups): Likewise.
30841         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30842
30843 2007-10-16  Bruno Haible  <bruno@clisp.org>
30844
30845         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30846         * modules/malloc-posix (License): Likewise.
30847         * modules/realloc-posix (License): Likewise.
30848         * modules/calloc-posix (License): Likewise.
30849         * modules/intprops (License): Change from GPL to LGPL, with
30850         Paul Eggert's approval.
30851
30852 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30853
30854         Merge glibc changes into lib/glob.c.
30855
30856         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30857         2007-10-15 04:59:03 UTC.  Here are the changes:
30858
30859         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30860
30861         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30862
30863         * lib/glob.c: Add some branch prediction throughout.
30864
30865         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30866
30867         [BZ #5103]
30868         * lib/glob.c (glob): Recognize patterns starting \/.
30869
30870         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30871
30872         [BZ #3996]
30873         * lib/glob.c (attribute_hidden): Define if not defined.
30874         (glob): Unescape dirname, filename or username when needed and not
30875         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30876         is NULL.  Handle unescaped [ in pattern without closing ].
30877         Don't pass GLOB_CHECK down to recursive glob for directories.
30878         (__glob_pattern_type): New function.
30879         (__glob_pattern_p): Implement using __glob_pattern_type.
30880         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30881         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30882         Remove unreachable code.
30883
30884         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30885
30886         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30887         explain why there are no leaks.
30888
30889         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30890
30891         [BZ #3253]
30892         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30893         time, rather allocate increasingly bigger arrays of pointers, if
30894         possible with alloca, if too large with malloc.
30895
30896 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30897
30898         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30899         Problem reported by H.Merijn Brand in
30900         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30901         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30902         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30903
30904 2007-10-15  Bruno Haible  <bruno@clisp.org>
30905
30906         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30907         with explicit rpl_ prefix.
30908         * lib/fopen.c (fopen): Likewise.
30909         * lib/freopen.c (freopen): Likewise.
30910         * lib/iconv.c (iconv): Likewise.
30911         * lib/iconv_close.c (iconv_close): Likewise.
30912
30913 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30914
30915         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30916
30917 2007-10-15  Bruno Haible  <bruno@clisp.org>
30918
30919         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30920         <stddef.h> instead of <stdlib.h> since we only need NULL.
30921         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30922
30923 2007-10-15  Bruno Haible  <bruno@clisp.org>
30924
30925         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30926         Replace paragraph talking about LIBOBJS.
30927         Reported by Colin Watson <cjwatson@debian.org>.
30928
30929 2007-10-15  Bruno Haible  <bruno@clisp.org>
30930
30931         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30932         <stdlib.h> before using NULL.
30933
30934 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30935
30936         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30937         Reported by Albert Chin <china@thewrittenword.com>.
30938
30939 2007-10-14  Bruno Haible  <bruno@clisp.org>
30940
30941         * modules/iconv_open-utf-tests: New file.
30942         * tests/test-iconv-utf.c: New file.
30943
30944         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30945         * modules/iconv_open-utf: New file.
30946         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30947         (iconv, iconv_close): New declarations.
30948         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30949         be defined.
30950         (iconv_open): Add special handling of conversion between UTF-8 and
30951         UTF-{16,32}{BE,LE}.
30952         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30953         * lib/iconv_close.c: New file.
30954         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30955         gl_FUNC_ICONV_OPEN.
30956         (gl_FUNC_ICONV_OPEN): Use it.
30957         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30958         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30959         and REPLACE_ICONV_UTF.
30960         * modules/iconv_open (Depends-on): Add c-strcase.
30961         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30962         ICONV_CONST.
30963         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30964
30965 2007-10-13  Albert Chin  <china@thewrittenword.com>
30966             Bruno Haible  <bruno@clisp.org>
30967
30968         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30969         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30970
30971 2007-10-13  Bruno Haible  <bruno@clisp.org>
30972
30973         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30974         defined, use the ISO C99 inline semantics.
30975         * lib/argp.h (ARGP_EI): Likewise.
30976
30977 2007-10-13  Bruno Haible  <bruno@clisp.org>
30978
30979         Handle 'inline' change in gcc 4.3.0.
30980         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30981         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30982         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30983         argp_fmtstream_point): Disable 'extern' declaration if the function
30984         definition is going to be provided inline.
30985         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30986         semantics, not the ISO C99 inline semantics.
30987         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30988         'extern' declaration if the function definition is going to be provided
30989         inline.
30990         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30991         the GNU C inline semantics, not the ISO C99 inline semantics. With
30992         GCC 4.2, avoid a warning.
30993
30994 2007-10-13  Bruno Haible  <bruno@clisp.org>
30995
30996         * lib/freading.h (freading): Enable the use of __freading for
30997         glibc >= 2.7.
30998         * lib/freading.c (freading): Likewise.
30999
31000 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31001
31002         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
31003         "warning: C99 inline functions are not supported; using GNU89".
31004
31005 2007-10-12  Bruno Haible  <bruno@clisp.org>
31006
31007         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
31008         of 2.
31009         * tests/test-ceilf2.c: New file.
31010         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
31011
31012         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
31013         * modules/ceilf-tests: Update.
31014
31015 2007-10-12  Bruno Haible  <bruno@clisp.org>
31016
31017         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
31018         of 2.
31019         * tests/test-floorf2.c: New file.
31020         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
31021
31022         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
31023         * modules/floorf-tests: Update.
31024
31025 2007-10-12  Bruno Haible  <bruno@clisp.org>
31026
31027         * tests/test-trunc2.c: New file.
31028         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
31029
31030         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
31031         * modules/trunc-tests: Update.
31032
31033 2007-10-12  Bruno Haible  <bruno@clisp.org>
31034
31035         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
31036         of 2.
31037         * tests/test-truncf2.c: New file.
31038         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
31039
31040         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
31041         * modules/truncf-tests: Update.
31042
31043 2007-10-11  Eric Blake  <ebb9@byu.net>
31044
31045         Don't claim strerror is broken on Interix.
31046         * doc/functions/strerror.texi (strerror): Known broken systems are
31047         now Solaris 8, and not Interix.
31048         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
31049         Interix on cross-compile.
31050         Reported by Martin Koeppe in
31051         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
31052
31053 2007-10-11  Bruno Haible  <bruno@clisp.org>
31054
31055         * modules/i-ring-tests: New file.
31056         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
31057         instead of assert.
31058
31059 2007-10-11  Bruno Haible  <bruno@clisp.org>
31060
31061         * modules/filenamecat-tests: New file.
31062         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
31063         * lib/filenamecat.c: Remove test code.
31064
31065 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31066
31067         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
31068
31069         * lib/strerror.c: Include <string.h> always, to test interface,
31070         and to remove the need for the dummy.
31071         Include intprops.h to compute width instead of doing it ourselves
31072         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
31073         (strerror): Define it to return NULL if there's no system strerror.
31074         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
31075         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
31076         ancient pre-strerror Unix systems well any more.  Saying "unknown
31077         system error" is enough.
31078         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
31079         simpler strerror.c implementation.
31080         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
31081         Simplify the tests to reflect the simpler strerror implementation.
31082         * modules/strerror (Depends-on): Add intprops.
31083
31084 2007-10-09  Eric Blake  <ebb9@byu.net>
31085
31086         Silence test-fpending.
31087         * modules/fpending-tests (Files): Add wrapper script.
31088         * tests/test-fpending.sh: New file.
31089
31090 2007-10-09  Bruno Haible  <bruno@clisp.org>
31091
31092         * MODULES.html.sh (func_module): Don't create a hyperlink for
31093         function names like 'printf_frexp'.
31094         (Misc): Add crc, memxor.
31095         (Characteristics of floating types): New section.
31096         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
31097         isnanf-nolibm, signbit, trunc, truncf, truncl.
31098         (Enhancements for ISO C 99 functions): New subsection Input/output.
31099         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
31100         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
31101         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
31102         (Compatibility checks for POSIX:2001 functions): Add clock-time.
31103         (Enhancements for POSIX:2001 functions): Add chdir-long.
31104         (File system functions): Add areadlink, chdir-safer, read-file.
31105         Remove cycle-check.
31106         (File system as inode set): New section.
31107         (Date and time): Add gethrxtime.
31108         (Multithreading): Add openmp.
31109         (Internationalization functions): Add localename.
31110         (Unicode string functions): Add unistr/u*-mbsnlen.
31111         (Support for maintaining and releasing projects): Add git-version-gen.
31112         (Lone files): Remove directories.
31113
31114 2007-10-08  Ben Pfaff  <blp@gnu.org>
31115
31116         * lib/xmalloca.h: Fix typo in comment.
31117
31118 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31119
31120         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
31121         when avoiding problems with integer overflow.  Use a portable test
31122         instead.
31123
31124 2007-10-08  Simon Josefsson  <simon@josefsson.org>
31125
31126         * modules/dummy (License): Change to LGPLv2+.
31127         * modules/float (License): Likewise
31128         * modules/realloc (License): Likewise
31129         * modules/stdlib (License): Likewise
31130
31131 2007-10-07  Bruno Haible  <bruno@clisp.org>
31132
31133         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
31134         * floor.c (TWO_MANT_DIG): Likewise.
31135         * ceil.c (TWO_MANT_DIG): Likewise.
31136         Reported by Ben Pfaff.
31137
31138 2007-10-07  Bruno Haible  <bruno@clisp.org>
31139
31140         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
31141         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
31142         * lib/frexp.c (FUNC): Likewise.
31143         * lib/printf-frexp.h (printf_frexp): Likewise.
31144         * lib/printf-frexpl.h (printf_frexpl): Likewise.
31145         * lib/printf-frexp.c (FUNC): Likewise.
31146         Suggested by Jim Meyering.
31147
31148 2007-10-07  Jim Meyering  <meyering@redhat.com>
31149
31150         Make xnanosleep's integer overflow test more robust.
31151         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
31152         so that gcc-4.3.0 doesn't optimize away this test for overflow.
31153
31154 2007-10-07  Bruno Haible  <bruno@clisp.org>
31155
31156         * NEWS: Mention the license change.
31157
31158         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
31159         abbreviations in the modules files.
31160
31161         Change copyright notice from GPLv2+ to GPLv3+.
31162         * README: Change copyright notice.
31163         * MODULES.html.sh: Likewise.
31164         * build-aux/bootstrap.conf: Likewise.
31165         * build-aux/config.libpath: Likewise.
31166         * build-aux/csharpcomp.sh.in: Likewise.
31167         * build-aux/csharpexec.sh.in: Likewise.
31168         * build-aux/install-reloc: Likewise.
31169         * build-aux/javacomp.sh.in: Likewise.
31170         * build-aux/javaexec.sh.in: Likewise.
31171         * build-aux/ldd.sh.in: Likewise.
31172         * build-aux/reloc-ldflags: Likewise.
31173         * build-aux/relocatable.sh.in: Likewise.
31174         * build-aux/x-to-1.in: Likewise.
31175         * check-module: Likewise.
31176         * config/srclistvars.sh: Likewise.
31177         * gnulib-tool: Likewise.
31178         * lib/acl-internal.h: Likewise.
31179         * lib/acl.c: Likewise.
31180         * lib/acl.h: Likewise.
31181         * lib/acl_entries.c: Likewise.
31182         * lib/areadlink-with-size.c: Likewise.
31183         * lib/areadlink.c: Likewise.
31184         * lib/areadlink.h: Likewise.
31185         * lib/argmatch.c: Likewise.
31186         * lib/argmatch.h: Likewise.
31187         * lib/argp-ba.c: Likewise.
31188         * lib/argp-eexst.c: Likewise.
31189         * lib/argp-fmtstream.c: Likewise.
31190         * lib/argp-fmtstream.h: Likewise.
31191         * lib/argp-fs-xinl.c: Likewise.
31192         * lib/argp-help.c: Likewise.
31193         * lib/argp-namefrob.h: Likewise.
31194         * lib/argp-parse.c: Likewise.
31195         * lib/argp-pin.c: Likewise.
31196         * lib/argp-pv.c: Likewise.
31197         * lib/argp-pvh.c: Likewise.
31198         * lib/argp-xinl.c: Likewise.
31199         * lib/argp.h: Likewise.
31200         * lib/at-func.c: Likewise.
31201         * lib/atanl.c: Likewise.
31202         * lib/backupfile.c: Likewise.
31203         * lib/backupfile.h: Likewise.
31204         * lib/basename.c: Likewise.
31205         * lib/binary-io.h: Likewise.
31206         * lib/byteswap.in.h: Likewise.
31207         * lib/c-stack.c: Likewise.
31208         * lib/c-stack.h: Likewise.
31209         * lib/c-strcasestr.c: Likewise.
31210         * lib/c-strcasestr.h: Likewise.
31211         * lib/c-strstr.c: Likewise.
31212         * lib/c-strstr.h: Likewise.
31213         * lib/c-strtod.c: Likewise.
31214         * lib/calloc.c: Likewise.
31215         * lib/canon-host.c: Likewise.
31216         * lib/canon-host.h: Likewise.
31217         * lib/canonicalize-lgpl.c: Likewise.
31218         * lib/canonicalize.c: Likewise.
31219         * lib/canonicalize.h: Likewise.
31220         * lib/ceil.c: Likewise.
31221         * lib/ceilf.c: Likewise.
31222         * lib/ceill.c: Likewise.
31223         * lib/chdir-long.c: Likewise.
31224         * lib/chdir-long.h: Likewise.
31225         * lib/chdir-safer.c: Likewise.
31226         * lib/chdir-safer.h: Likewise.
31227         * lib/chown.c: Likewise.
31228         * lib/classpath.c: Likewise.
31229         * lib/classpath.h: Likewise.
31230         * lib/clean-temp.c: Likewise.
31231         * lib/clean-temp.h: Likewise.
31232         * lib/cloexec.c: Likewise.
31233         * lib/close-stream.c: Likewise.
31234         * lib/closein.c: Likewise.
31235         * lib/closein.h: Likewise.
31236         * lib/closeout.c: Likewise.
31237         * lib/closeout.h: Likewise.
31238         * lib/concat-filename.c: Likewise.
31239         * lib/copy-file.c: Likewise.
31240         * lib/copy-file.h: Likewise.
31241         * lib/count-one-bits.h: Likewise.
31242         * lib/crc.c: Likewise.
31243         * lib/crc.h: Likewise.
31244         * lib/creat-safer.c: Likewise.
31245         * lib/csharpcomp.c: Likewise.
31246         * lib/csharpcomp.h: Likewise.
31247         * lib/csharpexec.c: Likewise.
31248         * lib/csharpexec.h: Likewise.
31249         * lib/cycle-check.c: Likewise.
31250         * lib/cycle-check.h: Likewise.
31251         * lib/diacrit.c: Likewise.
31252         * lib/diacrit.h: Likewise.
31253         * lib/diffseq.h: Likewise.
31254         * lib/dirchownmod.c: Likewise.
31255         * lib/dirent.in.h: Likewise.
31256         * lib/dirfd.c: Likewise.
31257         * lib/dirfd.h: Likewise.
31258         * lib/dirname.c: Likewise.
31259         * lib/dirname.h: Likewise.
31260         * lib/dummy.c: Likewise.
31261         * lib/dup-safer.c: Likewise.
31262         * lib/dup2.c: Likewise.
31263         * lib/eealloc.h: Likewise.
31264         * lib/error.c: Likewise.
31265         * lib/error.h: Likewise.
31266         * lib/euidaccess.c: Likewise.
31267         * lib/exclude.c: Likewise.
31268         * lib/exclude.h: Likewise.
31269         * lib/execute.c: Likewise.
31270         * lib/execute.h: Likewise.
31271         * lib/exitfail.c: Likewise.
31272         * lib/exitfail.h: Likewise.
31273         * lib/expl.c: Likewise.
31274         * lib/fatal-signal.c: Likewise.
31275         * lib/fatal-signal.h: Likewise.
31276         * lib/fbufmode.c: Likewise.
31277         * lib/fbufmode.h: Likewise.
31278         * lib/fchdir.c: Likewise.
31279         * lib/fchmodat.c: Likewise.
31280         * lib/fchownat.c: Likewise.
31281         * lib/fcntl--.h: Likewise.
31282         * lib/fcntl-safer.h: Likewise.
31283         * lib/fcntl.in.h: Likewise.
31284         * lib/fd-safer.c: Likewise.
31285         * lib/fflush.c: Likewise.
31286         * lib/file-has-acl.c: Likewise.
31287         * lib/file-set.c: Likewise.
31288         * lib/file-type.c: Likewise.
31289         * lib/file-type.h: Likewise.
31290         * lib/fileblocks.c: Likewise.
31291         * lib/filemode.c: Likewise.
31292         * lib/filemode.h: Likewise.
31293         * lib/filename.h: Likewise.
31294         * lib/filenamecat.c: Likewise.
31295         * lib/filenamecat.h: Likewise.
31296         * lib/findprog.c: Likewise.
31297         * lib/findprog.h: Likewise.
31298         * lib/float.in.h: Likewise.
31299         * lib/floor.c: Likewise.
31300         * lib/floorf.c: Likewise.
31301         * lib/floorl.c: Likewise.
31302         * lib/fopen-safer.c: Likewise.
31303         * lib/fopen.c: Likewise.
31304         * lib/fpending.c: Likewise.
31305         * lib/fpending.h: Likewise.
31306         * lib/fprintf.c: Likewise.
31307         * lib/fprintftime.h: Likewise.
31308         * lib/fpucw.h: Likewise.
31309         * lib/fpurge.c: Likewise.
31310         * lib/fpurge.h: Likewise.
31311         * lib/freadable.c: Likewise.
31312         * lib/freadable.h: Likewise.
31313         * lib/freadahead.c: Likewise.
31314         * lib/freadahead.h: Likewise.
31315         * lib/freading.c: Likewise.
31316         * lib/freading.h: Likewise.
31317         * lib/free.c: Likewise.
31318         * lib/freopen.c: Likewise.
31319         * lib/frexp.c: Likewise.
31320         * lib/frexpl.c: Likewise.
31321         * lib/fseek.c: Likewise.
31322         * lib/fseterr.c: Likewise.
31323         * lib/fseterr.h: Likewise.
31324         * lib/fstatat.c: Likewise.
31325         * lib/fstrcmp.c: Likewise.
31326         * lib/fstrcmp.h: Likewise.
31327         * lib/fsusage.c: Likewise.
31328         * lib/fsusage.h: Likewise.
31329         * lib/ftell.c: Likewise.
31330         * lib/ftello.c: Likewise.
31331         * lib/fts-cycle.c: Likewise.
31332         * lib/fts.c: Likewise.
31333         * lib/fts_.h: Likewise.
31334         * lib/full-read.c: Likewise.
31335         * lib/full-read.h: Likewise.
31336         * lib/full-write.c: Likewise.
31337         * lib/full-write.h: Likewise.
31338         * lib/fwritable.c: Likewise.
31339         * lib/fwritable.h: Likewise.
31340         * lib/fwriteerror.c: Likewise.
31341         * lib/fwriteerror.h: Likewise.
31342         * lib/fwriting.c: Likewise.
31343         * lib/fwriting.h: Likewise.
31344         * lib/gcd.c: Likewise.
31345         * lib/gcd.h: Likewise.
31346         * lib/getcwd.c: Likewise.
31347         * lib/getdate.h: Likewise.
31348         * lib/getdate.y: Likewise.
31349         * lib/getdomainname.c: Likewise.
31350         * lib/getdomainname.h: Likewise.
31351         * lib/getgroups.c: Likewise.
31352         * lib/gethostname.c: Likewise.
31353         * lib/gethrxtime.c: Likewise.
31354         * lib/gethrxtime.h: Likewise.
31355         * lib/getloadavg.c: Likewise.
31356         * lib/getndelim2.c: Likewise.
31357         * lib/getndelim2.h: Likewise.
31358         * lib/getnline.c: Likewise.
31359         * lib/getnline.h: Likewise.
31360         * lib/getopt.c: Likewise.
31361         * lib/getopt.in.h: Likewise.
31362         * lib/getopt1.c: Likewise.
31363         * lib/getopt_int.h: Likewise.
31364         * lib/getpagesize.h: Likewise.
31365         * lib/getsubopt.c: Likewise.
31366         * lib/gettime.c: Likewise.
31367         * lib/getugroups.c: Likewise.
31368         * lib/getugroups.h: Likewise.
31369         * lib/getusershell.c: Likewise.
31370         * lib/gl_anyavltree_list1.h: Likewise.
31371         * lib/gl_anyavltree_list2.h: Likewise.
31372         * lib/gl_anyhash_list1.h: Likewise.
31373         * lib/gl_anyhash_list2.h: Likewise.
31374         * lib/gl_anylinked_list1.h: Likewise.
31375         * lib/gl_anylinked_list2.h: Likewise.
31376         * lib/gl_anyrbtree_list1.h: Likewise.
31377         * lib/gl_anyrbtree_list2.h: Likewise.
31378         * lib/gl_anytree_list1.h: Likewise.
31379         * lib/gl_anytree_list2.h: Likewise.
31380         * lib/gl_anytree_oset.h: Likewise.
31381         * lib/gl_anytreehash_list1.h: Likewise.
31382         * lib/gl_anytreehash_list2.h: Likewise.
31383         * lib/gl_array_list.c: Likewise.
31384         * lib/gl_array_list.h: Likewise.
31385         * lib/gl_array_oset.c: Likewise.
31386         * lib/gl_array_oset.h: Likewise.
31387         * lib/gl_avltree_list.c: Likewise.
31388         * lib/gl_avltree_list.h: Likewise.
31389         * lib/gl_avltree_oset.c: Likewise.
31390         * lib/gl_avltree_oset.h: Likewise.
31391         * lib/gl_avltreehash_list.c: Likewise.
31392         * lib/gl_avltreehash_list.h: Likewise.
31393         * lib/gl_carray_list.c: Likewise.
31394         * lib/gl_carray_list.h: Likewise.
31395         * lib/gl_linked_list.c: Likewise.
31396         * lib/gl_linked_list.h: Likewise.
31397         * lib/gl_linkedhash_list.c: Likewise.
31398         * lib/gl_linkedhash_list.h: Likewise.
31399         * lib/gl_list.c: Likewise.
31400         * lib/gl_list.h: Likewise.
31401         * lib/gl_oset.c: Likewise.
31402         * lib/gl_oset.h: Likewise.
31403         * lib/gl_rbtree_list.c: Likewise.
31404         * lib/gl_rbtree_list.h: Likewise.
31405         * lib/gl_rbtree_oset.c: Likewise.
31406         * lib/gl_rbtree_oset.h: Likewise.
31407         * lib/gl_rbtreehash_list.c: Likewise.
31408         * lib/gl_rbtreehash_list.h: Likewise.
31409         * lib/gl_sublist.c: Likewise.
31410         * lib/gl_sublist.h: Likewise.
31411         * lib/group-member.c: Likewise.
31412         * lib/group-member.h: Likewise.
31413         * lib/hard-locale.c: Likewise.
31414         * lib/hard-locale.h: Likewise.
31415         * lib/hash-pjw.c: Likewise.
31416         * lib/hash-pjw.h: Likewise.
31417         * lib/hash-triple.c: Likewise.
31418         * lib/hash.c: Likewise.
31419         * lib/hash.h: Likewise.
31420         * lib/human.c: Likewise.
31421         * lib/human.h: Likewise.
31422         * lib/i-ring.c: Likewise.
31423         * lib/i-ring.h: Likewise.
31424         * lib/idcache.c: Likewise.
31425         * lib/imaxabs.c: Likewise.
31426         * lib/imaxdiv.c: Likewise.
31427         * lib/inet_pton.c: Likewise.
31428         * lib/inet_pton.h: Likewise.
31429         * lib/intprops.h: Likewise.
31430         * lib/inttostr.c: Likewise.
31431         * lib/inttostr.h: Likewise.
31432         * lib/inttypes.in.h: Likewise.
31433         * lib/isapipe.c: Likewise.
31434         * lib/isdir.c: Likewise.
31435         * lib/isnan.c: Likewise.
31436         * lib/isnan.h: Likewise.
31437         * lib/isnanf.c: Likewise.
31438         * lib/isnanf.h: Likewise.
31439         * lib/isnanl-nolibm.h: Likewise.
31440         * lib/isnanl.c: Likewise.
31441         * lib/isnanl.h: Likewise.
31442         * lib/javacomp.c: Likewise.
31443         * lib/javacomp.h: Likewise.
31444         * lib/javaexec.c: Likewise.
31445         * lib/javaexec.h: Likewise.
31446         * lib/javaversion.c: Likewise.
31447         * lib/javaversion.h: Likewise.
31448         * lib/javaversion.java: Likewise.
31449         * lib/lbrkprop.h: Likewise.
31450         * lib/lchmod.h: Likewise.
31451         * lib/lchown.c: Likewise.
31452         * lib/ldexpl.c: Likewise.
31453         * lib/linebreak.c: Likewise.
31454         * lib/linebreak.h: Likewise.
31455         * lib/linebuffer.c: Likewise.
31456         * lib/linebuffer.h: Likewise.
31457         * lib/locale.in.h: Likewise.
31458         * lib/logl.c: Likewise.
31459         * lib/long-options.c: Likewise.
31460         * lib/long-options.h: Likewise.
31461         * lib/lstat.c: Likewise.
31462         * lib/lstat.h: Likewise.
31463         * lib/math.in.h: Likewise.
31464         * lib/mbchar.c: Likewise.
31465         * lib/mbchar.h: Likewise.
31466         * lib/mbfile.h: Likewise.
31467         * lib/mbiter.h: Likewise.
31468         * lib/mbscasecmp.c: Likewise.
31469         * lib/mbscasestr.c: Likewise.
31470         * lib/mbschr.c: Likewise.
31471         * lib/mbscspn.c: Likewise.
31472         * lib/mbslen.c: Likewise.
31473         * lib/mbsncasecmp.c: Likewise.
31474         * lib/mbsnlen.c: Likewise.
31475         * lib/mbspbrk.c: Likewise.
31476         * lib/mbspcasecmp.c: Likewise.
31477         * lib/mbsrchr.c: Likewise.
31478         * lib/mbssep.c: Likewise.
31479         * lib/mbsspn.c: Likewise.
31480         * lib/mbsstr.c: Likewise.
31481         * lib/mbstok_r.c: Likewise.
31482         * lib/mbswidth.c: Likewise.
31483         * lib/mbswidth.h: Likewise.
31484         * lib/mbuiter.h: Likewise.
31485         * lib/memcasecmp.c: Likewise.
31486         * lib/memcasecmp.h: Likewise.
31487         * lib/memchr.c: Likewise.
31488         * lib/memcmp.c: Likewise.
31489         * lib/memcoll.c: Likewise.
31490         * lib/memcoll.h: Likewise.
31491         * lib/memcpy.c: Likewise.
31492         * lib/memrchr.c: Likewise.
31493         * lib/mkancesdirs.c: Likewise.
31494         * lib/mkdir-p.c: Likewise.
31495         * lib/mkdir-p.h: Likewise.
31496         * lib/mkdir.c: Likewise.
31497         * lib/mkdirat.c: Likewise.
31498         * lib/mkdtemp.c: Likewise.
31499         * lib/mkstemp-safer.c: Likewise.
31500         * lib/mkstemp.c: Likewise.
31501         * lib/modechange.c: Likewise.
31502         * lib/modechange.h: Likewise.
31503         * lib/mountlist.c: Likewise.
31504         * lib/mountlist.h: Likewise.
31505         * lib/mpsort.c: Likewise.
31506         * lib/nanosleep.c: Likewise.
31507         * lib/obstack.c: Likewise.
31508         * lib/obstack.h: Likewise.
31509         * lib/open-safer.c: Likewise.
31510         * lib/open.c: Likewise.
31511         * lib/openat-die.c: Likewise.
31512         * lib/openat-priv.h: Likewise.
31513         * lib/openat-proc.c: Likewise.
31514         * lib/openat.c: Likewise.
31515         * lib/openat.h: Likewise.
31516         * lib/pagealign_alloc.c: Likewise.
31517         * lib/pagealign_alloc.h: Likewise.
31518         * lib/physmem.c: Likewise.
31519         * lib/physmem.h: Likewise.
31520         * lib/pipe-safer.c: Likewise.
31521         * lib/pipe.c: Likewise.
31522         * lib/pipe.h: Likewise.
31523         * lib/posixtm.c: Likewise.
31524         * lib/posixtm.h: Likewise.
31525         * lib/posixver.c: Likewise.
31526         * lib/printf-frexp.c: Likewise.
31527         * lib/printf-frexp.h: Likewise.
31528         * lib/printf-frexpl.c: Likewise.
31529         * lib/printf-frexpl.h: Likewise.
31530         * lib/printf.c: Likewise.
31531         * lib/progname.c: Likewise.
31532         * lib/progname.h: Likewise.
31533         * lib/progreloc.c: Likewise.
31534         * lib/putenv.c: Likewise.
31535         * lib/quote.c: Likewise.
31536         * lib/quote.h: Likewise.
31537         * lib/quotearg.c: Likewise.
31538         * lib/quotearg.h: Likewise.
31539         * lib/raise.c: Likewise.
31540         * lib/readline.c: Likewise.
31541         * lib/readline.h: Likewise.
31542         * lib/readlink.c: Likewise.
31543         * lib/readtokens.c: Likewise.
31544         * lib/readtokens.h: Likewise.
31545         * lib/readtokens0.c: Likewise.
31546         * lib/readtokens0.h: Likewise.
31547         * lib/readutmp.c: Likewise.
31548         * lib/readutmp.h: Likewise.
31549         * lib/realloc.c: Likewise.
31550         * lib/relocwrapper.c: Likewise.
31551         * lib/rename-dest-slash.c: Likewise.
31552         * lib/rename.c: Likewise.
31553         * lib/rmdir.c: Likewise.
31554         * lib/rpmatch.c: Likewise.
31555         * lib/safe-read.c: Likewise.
31556         * lib/safe-read.h: Likewise.
31557         * lib/safe-write.c: Likewise.
31558         * lib/safe-write.h: Likewise.
31559         * lib/same-inode.h: Likewise.
31560         * lib/same.c: Likewise.
31561         * lib/same.h: Likewise.
31562         * lib/save-cwd.c: Likewise.
31563         * lib/save-cwd.h: Likewise.
31564         * lib/savedir.c: Likewise.
31565         * lib/savedir.h: Likewise.
31566         * lib/savewd.c: Likewise.
31567         * lib/savewd.h: Likewise.
31568         * lib/search.in.h: Likewise.
31569         * lib/setenv.c: Likewise.
31570         * lib/setenv.h: Likewise.
31571         * lib/settime.c: Likewise.
31572         * lib/sh-quote.c: Likewise.
31573         * lib/sh-quote.h: Likewise.
31574         * lib/sig2str.c: Likewise.
31575         * lib/sig2str.h: Likewise.
31576         * lib/signal.in.h: Likewise.
31577         * lib/signbitd.c: Likewise.
31578         * lib/signbitf.c: Likewise.
31579         * lib/signbitl.c: Likewise.
31580         * lib/sigprocmask.c: Likewise.
31581         * lib/sincosl.c: Likewise.
31582         * lib/sleep.c: Likewise.
31583         * lib/sprintf.c: Likewise.
31584         * lib/sqrtl.c: Likewise.
31585         * lib/stat-time.h: Likewise.
31586         * lib/stdio--.h: Likewise.
31587         * lib/stdio-safer.h: Likewise.
31588         * lib/stdlib--.h: Likewise.
31589         * lib/stdlib-safer.h: Likewise.
31590         * lib/stdlib.in.h: Likewise.
31591         * lib/stpcpy.c: Likewise.
31592         * lib/stpncpy.c: Likewise.
31593         * lib/strchrnul.c: Likewise.
31594         * lib/strcspn.c: Likewise.
31595         * lib/strerror.c: Likewise.
31596         * lib/strftime.c: Likewise.
31597         * lib/strftime.h: Likewise.
31598         * lib/striconveh.c: Likewise.
31599         * lib/striconveh.h: Likewise.
31600         * lib/striconveha.c: Likewise.
31601         * lib/striconveha.h: Likewise.
31602         * lib/stripslash.c: Likewise.
31603         * lib/strnlen1.c: Likewise.
31604         * lib/strnlen1.h: Likewise.
31605         * lib/strtod.c: Likewise.
31606         * lib/strtoimax.c: Likewise.
31607         * lib/strtok_r.c: Likewise.
31608         * lib/strtol.c: Likewise.
31609         * lib/strtoll.c: Likewise.
31610         * lib/strtoul.c: Likewise.
31611         * lib/strtoull.c: Likewise.
31612         * lib/sysexits.in.h: Likewise.
31613         * lib/tempname.c: Likewise.
31614         * lib/tempname.h: Likewise.
31615         * lib/timespec.h: Likewise.
31616         * lib/tls.c: Likewise.
31617         * lib/tls.h: Likewise.
31618         * lib/tmpdir.c: Likewise.
31619         * lib/tmpdir.h: Likewise.
31620         * lib/tmpfile-safer.c: Likewise.
31621         * lib/tmpfile.c: Likewise.
31622         * lib/trigl.c: Likewise.
31623         * lib/trigl.h: Likewise.
31624         * lib/trim.c: Likewise.
31625         * lib/trim.h: Likewise.
31626         * lib/trunc.c: Likewise.
31627         * lib/truncf.c: Likewise.
31628         * lib/truncl.c: Likewise.
31629         * lib/tsearch.c: Likewise.
31630         * lib/unicodeio.c: Likewise.
31631         * lib/unicodeio.h: Likewise.
31632         * lib/unistd--.h: Likewise.
31633         * lib/unistd-safer.h: Likewise.
31634         * lib/unistdio/ulc-fprintf.c: Likewise.
31635         * lib/unistdio/ulc-vfprintf.c: Likewise.
31636         * lib/unlinkdir.c: Likewise.
31637         * lib/unlinkdir.h: Likewise.
31638         * lib/unlocked-io.h: Likewise.
31639         * lib/unsetenv.c: Likewise.
31640         * lib/userspec.c: Likewise.
31641         * lib/utime.c: Likewise.
31642         * lib/utimecmp.c: Likewise.
31643         * lib/utimecmp.h: Likewise.
31644         * lib/utimens.c: Likewise.
31645         * lib/verify.h: Likewise.
31646         * lib/verror.c: Likewise.
31647         * lib/verror.h: Likewise.
31648         * lib/version-etc-fsf.c: Likewise.
31649         * lib/version-etc.c: Likewise.
31650         * lib/version-etc.h: Likewise.
31651         * lib/vfprintf.c: Likewise.
31652         * lib/vprintf.c: Likewise.
31653         * lib/vsprintf.c: Likewise.
31654         * lib/w32spawn.h: Likewise.
31655         * lib/wait-process.c: Likewise.
31656         * lib/wait-process.h: Likewise.
31657         * lib/wcwidth.c: Likewise.
31658         * lib/write-any-file.c: Likewise.
31659         * lib/xalloc-die.c: Likewise.
31660         * lib/xalloc.h: Likewise.
31661         * lib/xasprintf.c: Likewise.
31662         * lib/xgetcwd.c: Likewise.
31663         * lib/xgetcwd.h: Likewise.
31664         * lib/xgetdomainname.c: Likewise.
31665         * lib/xgetdomainname.h: Likewise.
31666         * lib/xgethostname.c: Likewise.
31667         * lib/xmalloc.c: Likewise.
31668         * lib/xmalloca.c: Likewise.
31669         * lib/xmalloca.h: Likewise.
31670         * lib/xmemcoll.c: Likewise.
31671         * lib/xnanosleep.c: Likewise.
31672         * lib/xreadlink.c: Likewise.
31673         * lib/xreadlink.h: Likewise.
31674         * lib/xsetenv.c: Likewise.
31675         * lib/xsetenv.h: Likewise.
31676         * lib/xstriconv.c: Likewise.
31677         * lib/xstriconv.h: Likewise.
31678         * lib/xstrndup.c: Likewise.
31679         * lib/xstrndup.h: Likewise.
31680         * lib/xstrtod.c: Likewise.
31681         * lib/xstrtod.h: Likewise.
31682         * lib/xstrtol-error.c: Likewise.
31683         * lib/xstrtol.c: Likewise.
31684         * lib/xstrtol.h: Likewise.
31685         * lib/xtime.h: Likewise.
31686         * lib/xvasprintf.c: Likewise.
31687         * lib/xvasprintf.h: Likewise.
31688         * lib/yesno.c: Likewise.
31689         * lib/yesno.h: Likewise.
31690         * posix-modules: Likewise.
31691         * tests/test-alloca-opt.c: Likewise.
31692         * tests/test-arcfour.c: Likewise.
31693         * tests/test-arctwo.c: Likewise.
31694         * tests/test-argmatch.c: Likewise.
31695         * tests/test-argp-2.sh: Likewise.
31696         * tests/test-argp.c: Likewise.
31697         * tests/test-arpa_inet.c: Likewise.
31698         * tests/test-array_list.c: Likewise.
31699         * tests/test-array_oset.c: Likewise.
31700         * tests/test-atexit.c: Likewise.
31701         * tests/test-avltree_list.c: Likewise.
31702         * tests/test-avltree_oset.c: Likewise.
31703         * tests/test-avltreehash_list.c: Likewise.
31704         * tests/test-base64.c: Likewise.
31705         * tests/test-binary-io.c: Likewise.
31706         * tests/test-byteswap.c: Likewise.
31707         * tests/test-c-ctype.c: Likewise.
31708         * tests/test-c-strcasecmp.c: Likewise.
31709         * tests/test-c-strcasestr.c: Likewise.
31710         * tests/test-c-strncasecmp.c: Likewise.
31711         * tests/test-c-strstr.c: Likewise.
31712         * tests/test-canonicalize-lgpl.c: Likewise.
31713         * tests/test-canonicalize.c: Likewise.
31714         * tests/test-carray_list.c: Likewise.
31715         * tests/test-ceilf.c: Likewise.
31716         * tests/test-ceill.c: Likewise.
31717         * tests/test-count-one-bits.c: Likewise.
31718         * tests/test-crc.c: Likewise.
31719         * tests/test-dirname.c: Likewise.
31720         * tests/test-fbufmode.c: Likewise.
31721         * tests/test-fcntl.c: Likewise.
31722         * tests/test-fflush.c: Likewise.
31723         * tests/test-floorf.c: Likewise.
31724         * tests/test-floorl.c: Likewise.
31725         * tests/test-fopen.c: Likewise.
31726         * tests/test-fprintf-posix.c: Likewise.
31727         * tests/test-fprintf-posix.h: Likewise.
31728         * tests/test-fpurge.c: Likewise.
31729         * tests/test-freadable.c: Likewise.
31730         * tests/test-freadahead.c: Likewise.
31731         * tests/test-freading.c: Likewise.
31732         * tests/test-freopen.c: Likewise.
31733         * tests/test-frexp.c: Likewise.
31734         * tests/test-frexpl.c: Likewise.
31735         * tests/test-fseek.c: Likewise.
31736         * tests/test-fseeko.c: Likewise.
31737         * tests/test-fseterr.c: Likewise.
31738         * tests/test-fstrcmp.c: Likewise.
31739         * tests/test-ftell.c: Likewise.
31740         * tests/test-ftello.c: Likewise.
31741         * tests/test-fwritable.c: Likewise.
31742         * tests/test-fwriting.c: Likewise.
31743         * tests/test-getaddrinfo.c: Likewise.
31744         * tests/test-getpass.c: Likewise.
31745         * tests/test-gettimeofday.c: Likewise.
31746         * tests/test-hmac-md5.c: Likewise.
31747         * tests/test-hmac-sha1.c: Likewise.
31748         * tests/test-iconv.c: Likewise.
31749         * tests/test-iconvme.c: Likewise.
31750         * tests/test-inttypes.c: Likewise.
31751         * tests/test-isnan.c: Likewise.
31752         * tests/test-isnanf.c: Likewise.
31753         * tests/test-isnanl-nolibm.c: Likewise.
31754         * tests/test-isnanl.c: Likewise.
31755         * tests/test-isnanl.h: Likewise.
31756         * tests/test-ldexpl.c: Likewise.
31757         * tests/test-linked_list.c: Likewise.
31758         * tests/test-linkedhash_list.c: Likewise.
31759         * tests/test-locale.c: Likewise.
31760         * tests/test-localename.c: Likewise.
31761         * tests/test-lock.c: Likewise.
31762         * tests/test-lseek.c: Likewise.
31763         * tests/test-malloca.c: Likewise.
31764         * tests/test-math.c: Likewise.
31765         * tests/test-mbscasecmp.c: Likewise.
31766         * tests/test-mbscasestr1.c: Likewise.
31767         * tests/test-mbscasestr2.c: Likewise.
31768         * tests/test-mbscasestr3.c: Likewise.
31769         * tests/test-mbscasestr4.c: Likewise.
31770         * tests/test-mbschr.c: Likewise.
31771         * tests/test-mbscspn.c: Likewise.
31772         * tests/test-mbsncasecmp.c: Likewise.
31773         * tests/test-mbspbrk.c: Likewise.
31774         * tests/test-mbspcasecmp.c: Likewise.
31775         * tests/test-mbsrchr.c: Likewise.
31776         * tests/test-mbsspn.c: Likewise.
31777         * tests/test-mbsstr1.c: Likewise.
31778         * tests/test-mbsstr2.c: Likewise.
31779         * tests/test-mbsstr3.c: Likewise.
31780         * tests/test-md5.c: Likewise.
31781         * tests/test-memmem.c: Likewise.
31782         * tests/test-netinet_in.c: Likewise.
31783         * tests/test-open.c: Likewise.
31784         * tests/test-printf-frexp.c: Likewise.
31785         * tests/test-printf-frexpl.c: Likewise.
31786         * tests/test-printf-posix.c: Likewise.
31787         * tests/test-printf-posix.h: Likewise.
31788         * tests/test-rbtree_list.c: Likewise.
31789         * tests/test-rbtree_oset.c: Likewise.
31790         * tests/test-rbtreehash_list.c: Likewise.
31791         * tests/test-read-file.c: Likewise.
31792         * tests/test-rijndael.c: Likewise.
31793         * tests/test-search.c: Likewise.
31794         * tests/test-signbit.c: Likewise.
31795         * tests/test-sleep.c: Likewise.
31796         * tests/test-snprintf-posix.c: Likewise.
31797         * tests/test-snprintf-posix.h: Likewise.
31798         * tests/test-snprintf.c: Likewise.
31799         * tests/test-sprintf-posix.c: Likewise.
31800         * tests/test-sprintf-posix.h: Likewise.
31801         * tests/test-stat-time.c: Likewise.
31802         * tests/test-stdbool.c: Likewise.
31803         * tests/test-stdint.c: Likewise.
31804         * tests/test-stdio.c: Likewise.
31805         * tests/test-stdlib.c: Likewise.
31806         * tests/test-stpncpy.c: Likewise.
31807         * tests/test-strcasestr.c: Likewise.
31808         * tests/test-striconv.c: Likewise.
31809         * tests/test-striconveh.c: Likewise.
31810         * tests/test-striconveha.c: Likewise.
31811         * tests/test-string.c: Likewise.
31812         * tests/test-sys_select.c: Likewise.
31813         * tests/test-sys_socket.c: Likewise.
31814         * tests/test-sys_stat.c: Likewise.
31815         * tests/test-sys_time.c: Likewise.
31816         * tests/test-sysexits.c: Likewise.
31817         * tests/test-time.c: Likewise.
31818         * tests/test-tls.c: Likewise.
31819         * tests/test-trunc.c: Likewise.
31820         * tests/test-truncf.c: Likewise.
31821         * tests/test-truncl.c: Likewise.
31822         * tests/test-unistd.c: Likewise.
31823         * tests/test-vasnprintf-posix.c: Likewise.
31824         * tests/test-vasnprintf-posix2.c: Likewise.
31825         * tests/test-vasnprintf.c: Likewise.
31826         * tests/test-vasprintf-posix.c: Likewise.
31827         * tests/test-vasprintf.c: Likewise.
31828         * tests/test-verify.c: Likewise.
31829         * tests/test-vfprintf-posix.c: Likewise.
31830         * tests/test-vprintf-posix.c: Likewise.
31831         * tests/test-vsnprintf-posix.c: Likewise.
31832         * tests/test-vsnprintf.c: Likewise.
31833         * tests/test-vsprintf-posix.c: Likewise.
31834         * tests/test-wchar.c: Likewise.
31835         * tests/test-wctype.c: Likewise.
31836         * tests/test-wcwidth.c: Likewise.
31837         * tests/test-xstrtol.c: Likewise.
31838         * tests/test-xvasprintf.c: Likewise.
31839         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31840         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31841         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31842         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31843         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31844         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31845         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31846         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31847         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31848         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31849         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31850         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31851         * tests/uniname/test-uninames.c: Likewise.
31852         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31853         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31854         * tests/unistdio/test-u16-printf1.h: Likewise.
31855         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31856         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31857         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31858         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31859         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31860         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31861         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31862         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31863         * tests/unistdio/test-u32-printf1.h: Likewise.
31864         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31865         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31866         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31867         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31868         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31869         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31870         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31871         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31872         * tests/unistdio/test-u8-printf1.h: Likewise.
31873         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31874         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31875         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31876         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31877         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31878         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31879         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31880         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31881         * tests/unistdio/test-ulc-printf1.h: Likewise.
31882         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31883         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31884         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31885         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31886         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31887         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31888         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31889         * tests/uniwidth/test-u16-width.c: Likewise.
31890         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31891         * tests/uniwidth/test-u32-width.c: Likewise.
31892         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31893         * tests/uniwidth/test-u8-width.c: Likewise.
31894         * tests/uniwidth/test-uc_width.c: Likewise.
31895         * config/srclist-update: Likewise.
31896         (fixlicense): Update to GPLv3+.
31897
31898         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31899         * tests/test-tsearch.c: Change copyright notice.
31900
31901         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31902         * lib/c-strcaseeq.h: Change copyright notice.
31903         * lib/streq.h: Likewise.
31904         * lib/uniconv.h: Likewise.
31905         * lib/uniconv/u-conv-from-enc.h: Likewise.
31906         * lib/uniconv/u-conv-to-enc.h: Likewise.
31907         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31908         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31909         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31910         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31911         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31912         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31913         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31914         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31915         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31916         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31917         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31918         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31919         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31920         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31921         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31922         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31923         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31924         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31925         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31926         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31927         * lib/uniname.h: Likewise.
31928         * lib/uniname/uniname.c: Likewise.
31929         * lib/unistdio.h: Likewise.
31930         * lib/unistdio/u-asnprintf.h: Likewise.
31931         * lib/unistdio/u-asprintf.h: Likewise.
31932         * lib/unistdio/u-printf-args.c: Likewise.
31933         * lib/unistdio/u-printf-args.h: Likewise.
31934         * lib/unistdio/u-printf-parse.h: Likewise.
31935         * lib/unistdio/u-snprintf.h: Likewise.
31936         * lib/unistdio/u-sprintf.h: Likewise.
31937         * lib/unistdio/u-vasprintf.h: Likewise.
31938         * lib/unistdio/u-vsnprintf.h: Likewise.
31939         * lib/unistdio/u-vsprintf.h: Likewise.
31940         * lib/unistdio/u16-asnprintf.c: Likewise.
31941         * lib/unistdio/u16-asprintf.c: Likewise.
31942         * lib/unistdio/u16-printf-parse.c: Likewise.
31943         * lib/unistdio/u16-snprintf.c: Likewise.
31944         * lib/unistdio/u16-sprintf.c: Likewise.
31945         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31946         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31947         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31948         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31949         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31950         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31951         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31952         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31953         * lib/unistdio/u16-vasnprintf.c: Likewise.
31954         * lib/unistdio/u16-vasprintf.c: Likewise.
31955         * lib/unistdio/u16-vsnprintf.c: Likewise.
31956         * lib/unistdio/u16-vsprintf.c: Likewise.
31957         * lib/unistdio/u32-asnprintf.c: Likewise.
31958         * lib/unistdio/u32-asprintf.c: Likewise.
31959         * lib/unistdio/u32-printf-parse.c: Likewise.
31960         * lib/unistdio/u32-snprintf.c: Likewise.
31961         * lib/unistdio/u32-sprintf.c: Likewise.
31962         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31963         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31964         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31965         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31966         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31967         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31968         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31969         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31970         * lib/unistdio/u32-vasnprintf.c: Likewise.
31971         * lib/unistdio/u32-vasprintf.c: Likewise.
31972         * lib/unistdio/u32-vsnprintf.c: Likewise.
31973         * lib/unistdio/u32-vsprintf.c: Likewise.
31974         * lib/unistdio/u8-asnprintf.c: Likewise.
31975         * lib/unistdio/u8-asprintf.c: Likewise.
31976         * lib/unistdio/u8-printf-parse.c: Likewise.
31977         * lib/unistdio/u8-snprintf.c: Likewise.
31978         * lib/unistdio/u8-sprintf.c: Likewise.
31979         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31980         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31981         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31982         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31983         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31984         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31985         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31986         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31987         * lib/unistdio/u8-vasnprintf.c: Likewise.
31988         * lib/unistdio/u8-vasprintf.c: Likewise.
31989         * lib/unistdio/u8-vsnprintf.c: Likewise.
31990         * lib/unistdio/u8-vsprintf.c: Likewise.
31991         * lib/unistdio/ulc-asnprintf.c: Likewise.
31992         * lib/unistdio/ulc-asprintf.c: Likewise.
31993         * lib/unistdio/ulc-printf-parse.c: Likewise.
31994         * lib/unistdio/ulc-snprintf.c: Likewise.
31995         * lib/unistdio/ulc-sprintf.c: Likewise.
31996         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31997         * lib/unistdio/ulc-vasprintf.c: Likewise.
31998         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31999         * lib/unistdio/ulc-vsprintf.c: Likewise.
32000         * lib/unistr.h: Likewise.
32001         * lib/unistr/u-cpy-alloc.h: Likewise.
32002         * lib/unistr/u-cpy.h: Likewise.
32003         * lib/unistr/u-endswith.h: Likewise.
32004         * lib/unistr/u-move.h: Likewise.
32005         * lib/unistr/u-set.h: Likewise.
32006         * lib/unistr/u-startswith.h: Likewise.
32007         * lib/unistr/u-stpcpy.h: Likewise.
32008         * lib/unistr/u-stpncpy.h: Likewise.
32009         * lib/unistr/u-strcat.h: Likewise.
32010         * lib/unistr/u-strcpy.h: Likewise.
32011         * lib/unistr/u-strcspn.h: Likewise.
32012         * lib/unistr/u-strdup.h: Likewise.
32013         * lib/unistr/u-strlen.h: Likewise.
32014         * lib/unistr/u-strncat.h: Likewise.
32015         * lib/unistr/u-strncpy.h: Likewise.
32016         * lib/unistr/u-strnlen.h: Likewise.
32017         * lib/unistr/u-strpbrk.h: Likewise.
32018         * lib/unistr/u-strspn.h: Likewise.
32019         * lib/unistr/u-strstr.h: Likewise.
32020         * lib/unistr/u-strtok.h: Likewise.
32021         * lib/unistr/u16-check.c: Likewise.
32022         * lib/unistr/u16-chr.c: Likewise.
32023         * lib/unistr/u16-cmp.c: Likewise.
32024         * lib/unistr/u16-cpy-alloc.c: Likewise.
32025         * lib/unistr/u16-cpy.c: Likewise.
32026         * lib/unistr/u16-endswith.c: Likewise.
32027         * lib/unistr/u16-mblen.c: Likewise.
32028         * lib/unistr/u16-mbsnlen.c: Likewise.
32029         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32030         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32031         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32032         * lib/unistr/u16-mbtouc.c: Likewise.
32033         * lib/unistr/u16-mbtoucr.c: Likewise.
32034         * lib/unistr/u16-move.c: Likewise.
32035         * lib/unistr/u16-next.c: Likewise.
32036         * lib/unistr/u16-prev.c: Likewise.
32037         * lib/unistr/u16-set.c: Likewise.
32038         * lib/unistr/u16-startswith.c: Likewise.
32039         * lib/unistr/u16-stpcpy.c: Likewise.
32040         * lib/unistr/u16-stpncpy.c: Likewise.
32041         * lib/unistr/u16-strcat.c: Likewise.
32042         * lib/unistr/u16-strchr.c: Likewise.
32043         * lib/unistr/u16-strcmp.c: Likewise.
32044         * lib/unistr/u16-strcpy.c: Likewise.
32045         * lib/unistr/u16-strcspn.c: Likewise.
32046         * lib/unistr/u16-strdup.c: Likewise.
32047         * lib/unistr/u16-strlen.c: Likewise.
32048         * lib/unistr/u16-strmblen.c: Likewise.
32049         * lib/unistr/u16-strmbtouc.c: Likewise.
32050         * lib/unistr/u16-strncat.c: Likewise.
32051         * lib/unistr/u16-strncmp.c: Likewise.
32052         * lib/unistr/u16-strncpy.c: Likewise.
32053         * lib/unistr/u16-strnlen.c: Likewise.
32054         * lib/unistr/u16-strpbrk.c: Likewise.
32055         * lib/unistr/u16-strrchr.c: Likewise.
32056         * lib/unistr/u16-strspn.c: Likewise.
32057         * lib/unistr/u16-strstr.c: Likewise.
32058         * lib/unistr/u16-strtok.c: Likewise.
32059         * lib/unistr/u16-to-u32.c: Likewise.
32060         * lib/unistr/u16-to-u8.c: Likewise.
32061         * lib/unistr/u16-uctomb-aux.c: Likewise.
32062         * lib/unistr/u16-uctomb.c: Likewise.
32063         * lib/unistr/u32-check.c: Likewise.
32064         * lib/unistr/u32-chr.c: Likewise.
32065         * lib/unistr/u32-cmp.c: Likewise.
32066         * lib/unistr/u32-cpy-alloc.c: Likewise.
32067         * lib/unistr/u32-cpy.c: Likewise.
32068         * lib/unistr/u32-endswith.c: Likewise.
32069         * lib/unistr/u32-mblen.c: Likewise.
32070         * lib/unistr/u32-mbsnlen.c: Likewise.
32071         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32072         * lib/unistr/u32-mbtouc.c: Likewise.
32073         * lib/unistr/u32-mbtoucr.c: Likewise.
32074         * lib/unistr/u32-move.c: Likewise.
32075         * lib/unistr/u32-next.c: Likewise.
32076         * lib/unistr/u32-prev.c: Likewise.
32077         * lib/unistr/u32-set.c: Likewise.
32078         * lib/unistr/u32-startswith.c: Likewise.
32079         * lib/unistr/u32-stpcpy.c: Likewise.
32080         * lib/unistr/u32-stpncpy.c: Likewise.
32081         * lib/unistr/u32-strcat.c: Likewise.
32082         * lib/unistr/u32-strchr.c: Likewise.
32083         * lib/unistr/u32-strcmp.c: Likewise.
32084         * lib/unistr/u32-strcpy.c: Likewise.
32085         * lib/unistr/u32-strcspn.c: Likewise.
32086         * lib/unistr/u32-strdup.c: Likewise.
32087         * lib/unistr/u32-strlen.c: Likewise.
32088         * lib/unistr/u32-strmblen.c: Likewise.
32089         * lib/unistr/u32-strmbtouc.c: Likewise.
32090         * lib/unistr/u32-strncat.c: Likewise.
32091         * lib/unistr/u32-strncmp.c: Likewise.
32092         * lib/unistr/u32-strncpy.c: Likewise.
32093         * lib/unistr/u32-strnlen.c: Likewise.
32094         * lib/unistr/u32-strpbrk.c: Likewise.
32095         * lib/unistr/u32-strrchr.c: Likewise.
32096         * lib/unistr/u32-strspn.c: Likewise.
32097         * lib/unistr/u32-strstr.c: Likewise.
32098         * lib/unistr/u32-strtok.c: Likewise.
32099         * lib/unistr/u32-to-u16.c: Likewise.
32100         * lib/unistr/u32-to-u8.c: Likewise.
32101         * lib/unistr/u32-uctomb.c: Likewise.
32102         * lib/unistr/u8-check.c: Likewise.
32103         * lib/unistr/u8-chr.c: Likewise.
32104         * lib/unistr/u8-cmp.c: Likewise.
32105         * lib/unistr/u8-cpy-alloc.c: Likewise.
32106         * lib/unistr/u8-cpy.c: Likewise.
32107         * lib/unistr/u8-endswith.c: Likewise.
32108         * lib/unistr/u8-mblen.c: Likewise.
32109         * lib/unistr/u8-mbsnlen.c: Likewise.
32110         * lib/unistr/u8-mbtouc-aux.c: Likewise.
32111         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32112         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32113         * lib/unistr/u8-mbtouc.c: Likewise.
32114         * lib/unistr/u8-mbtoucr.c: Likewise.
32115         * lib/unistr/u8-move.c: Likewise.
32116         * lib/unistr/u8-next.c: Likewise.
32117         * lib/unistr/u8-prev.c: Likewise.
32118         * lib/unistr/u8-set.c: Likewise.
32119         * lib/unistr/u8-startswith.c: Likewise.
32120         * lib/unistr/u8-stpcpy.c: Likewise.
32121         * lib/unistr/u8-stpncpy.c: Likewise.
32122         * lib/unistr/u8-strcat.c: Likewise.
32123         * lib/unistr/u8-strchr.c: Likewise.
32124         * lib/unistr/u8-strcmp.c: Likewise.
32125         * lib/unistr/u8-strcpy.c: Likewise.
32126         * lib/unistr/u8-strcspn.c: Likewise.
32127         * lib/unistr/u8-strdup.c: Likewise.
32128         * lib/unistr/u8-strlen.c: Likewise.
32129         * lib/unistr/u8-strmblen.c: Likewise.
32130         * lib/unistr/u8-strmbtouc.c: Likewise.
32131         * lib/unistr/u8-strncat.c: Likewise.
32132         * lib/unistr/u8-strncmp.c: Likewise.
32133         * lib/unistr/u8-strncpy.c: Likewise.
32134         * lib/unistr/u8-strnlen.c: Likewise.
32135         * lib/unistr/u8-strpbrk.c: Likewise.
32136         * lib/unistr/u8-strrchr.c: Likewise.
32137         * lib/unistr/u8-strspn.c: Likewise.
32138         * lib/unistr/u8-strstr.c: Likewise.
32139         * lib/unistr/u8-strtok.c: Likewise.
32140         * lib/unistr/u8-to-u16.c: Likewise.
32141         * lib/unistr/u8-to-u32.c: Likewise.
32142         * lib/unistr/u8-uctomb-aux.c: Likewise.
32143         * lib/unistr/u8-uctomb.c: Likewise.
32144         * lib/unitypes.h: Likewise.
32145         * lib/uniwidth.h: Likewise.
32146         * lib/uniwidth/cjk.h: Likewise.
32147         * lib/uniwidth/u16-strwidth.c: Likewise.
32148         * lib/uniwidth/u16-width.c: Likewise.
32149         * lib/uniwidth/u32-strwidth.c: Likewise.
32150         * lib/uniwidth/u32-width.c: Likewise.
32151         * lib/uniwidth/u8-strwidth.c: Likewise.
32152         * lib/uniwidth/u8-width.c: Likewise.
32153         * lib/uniwidth/width.c: Likewise.
32154
32155 2007-10-07  Bruno Haible  <bruno@clisp.org>
32156
32157         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
32158         The file is still under LGPL (see modules/inttypes).
32159
32160 2007-10-06  Bruno Haible  <bruno@clisp.org>
32161
32162         * modules/trunc (Dependencies): Add 'extensions'.
32163         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
32164         Reported by Ben Pfaff <blp@gnu.org>.
32165
32166 2007-10-06  Bruno Haible  <bruno@clisp.org>
32167
32168         * modules/freopen-tests: New file.
32169         * tests/test-freopen.c: New file.
32170
32171         * modules/fopen-tests: New file.
32172         * tests/test-fopen.c: New file.
32173
32174         * modules/fopen: New file.
32175         * lib/fopen.c: New file.
32176         * m4/fopen.m4: New file.
32177         * modules/freopen: New file.
32178         * lib/freopen.c: New file.
32179         * m4/freopen.m4: New file.
32180         * lib/stdio.in.h (fopen, freopen): New declarations.
32181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32182         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32183         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32184         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32185         * doc/functions/fopen.texi: Mention the 'fopen' module.
32186         * doc/functions/freopen.texi: Mention the 'freopen' module.
32187
32188 2007-10-06  Bruno Haible  <bruno@clisp.org>
32189
32190         * modules/open-tests: New file.
32191         * tests/test-open.c: New file.
32192
32193         * modules/open: New file.
32194         * lib/open.c: New file.
32195         * m4/open.m4: New file.
32196         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32197         lib/open.c does.
32198         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32199         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32200         macros.
32201         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32202         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32203         REPLACE_OPEN.
32204         * doc/functions/open.texi: Mention the 'open' module.
32205
32206 2007-10-04  Bruno Haible  <bruno@clisp.org>
32207
32208         * modules/ceill-tests: New file.
32209         * tests/test-ceill.c: New file.
32210
32211         * modules/ceill: New file.
32212         * lib/ceill.c: Replace entire file.
32213         * m4/ceill.m4: New file.
32214         * lib/math.in.h (ceill): Replace declaration.
32215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32216         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32217         * doc/functions/ceill.texi: Mention the 'ceill' module.
32218         * modules/mathl (Files): Remove lib/ceill.c.
32219         (Depends-on): Add ceill.
32220
32221 2007-10-04  Bruno Haible  <bruno@clisp.org>
32222
32223         * modules/ceilf-tests: New file.
32224         * tests/test-ceilf.c: New file.
32225
32226         * modules/ceilf: New file.
32227         * lib/ceil.c: New file.
32228         * lib/ceilf.c: New file.
32229         * m4/ceilf.m4: New file.
32230         * lib/math.in.h (ceilf): New declaration.
32231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32232         HAVE_DECL_CEILF.
32233         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32234         HAVE_DECL_CEILF.
32235         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32236
32237 2007-10-04  Bruno Haible  <bruno@clisp.org>
32238
32239         * modules/floorl-tests: New file.
32240         * tests/test-floorl.c: New file.
32241
32242         * modules/floorl: New file.
32243         * lib/floorl.c: Replace entire file.
32244         * m4/floorl.m4: New file.
32245         * lib/math.in.h (floorl): Replace declaration.
32246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32247         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32248         * doc/functions/floorl.texi: Mention the 'floorl' module.
32249         * modules/mathl (Files): Remove lib/floorl.c.
32250         (Depends-on): Add floorl.
32251
32252 2007-10-04  Bruno Haible  <bruno@clisp.org>
32253
32254         * modules/floorf-tests: New file.
32255         * tests/test-floorf.c: New file.
32256
32257         * modules/floorf: New file.
32258         * lib/floor.c: New file.
32259         * lib/floorf.c: New file.
32260         * m4/floorf.m4: New file.
32261         * lib/math.in.h (floorf): New declaration.
32262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32263         HAVE_DECL_FLOORF.
32264         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32265         HAVE_DECL_FLOORF.
32266         * doc/functions/floorf.texi: Mention the 'floorf' module.
32267
32268 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32269             Bruno Haible  <bruno@clisp.org>
32270
32271         Advertise for the Git server instead of the CVS server.
32272         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32273         repository instead of the CVS one.
32274         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32275         about all VCS systems generically.
32276         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32277
32278 2007-10-04  Bruno Haible  <bruno@clisp.org>
32279
32280         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32281         means.
32282         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32283
32284 2007-10-04  Bruno Haible  <bruno@clisp.org>
32285
32286         * modules/truncl-tests: New file.
32287         * tests/test-truncl.c: New file.
32288
32289         * modules/truncl: New file.
32290         * lib/truncl.c: New file.
32291         * m4/truncl.m4: New file.
32292         * lib/math.in.h (truncl): New declaration.
32293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32294         HAVE_DECL_TRUNCL.
32295         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32296         HAVE_DECL_TRUNCL.
32297         * doc/functions/truncl.texi: Mention the 'truncl' module.
32298
32299 2007-10-04  Bruno Haible  <bruno@clisp.org>
32300
32301         * modules/truncf-tests: New file.
32302         * tests/test-truncf.c: New file.
32303
32304         * modules/truncf: New file.
32305         * lib/trunc.c: Make paramerizable through USE_* macros.
32306         * lib/truncf.c: New file.
32307         * m4/truncf.m4: New file.
32308         * lib/math.in.h (truncf): New declaration.
32309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32310         HAVE_DECL_TRUNCF.
32311         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32312         HAVE_DECL_TRUNCF.
32313         * doc/functions/truncf.texi: Mention the 'truncf' module.
32314
32315 2007-10-03  Bruno Haible  <bruno@clisp.org>
32316
32317         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32318         augmentation also for tests modules.
32319         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32320         * modules/atexit-tests (Makefile.am): Likewise.
32321         * modules/binary-io-tests (Makefile.am): Likewise.
32322         * modules/c-strcase-tests (Makefile.am): Likewise.
32323         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32324         * modules/canonicalize-tests (Makefile.am): Likewise.
32325         * modules/closein-tests (Makefile.am): Likewise.
32326         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32327         * modules/freadahead-tests (Makefile.am): Likewise.
32328         * modules/fseek-tests (Makefile.am): Likewise.
32329         * modules/fseeko-tests (Makefile.am): Likewise.
32330         * modules/ftell-tests (Makefile.am): Likewise.
32331         * modules/ftello-tests (Makefile.am): Likewise.
32332         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32333         * modules/isnanl-tests (Makefile.am): Likewise.
32334         * modules/lseek-tests (Makefile.am): Likewise.
32335         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32336         * modules/mbscasestr-tests (Makefile.am): Likewise.
32337         * modules/mbschr-tests (Makefile.am): Likewise.
32338         * modules/mbscspn-tests (Makefile.am): Likewise.
32339         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32340         * modules/mbspbrk-tests (Makefile.am): Likewise.
32341         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32342         * modules/mbsrchr-tests (Makefile.am): Likewise.
32343         * modules/mbsspn-tests (Makefile.am): Likewise.
32344         * modules/mbsstr-tests (Makefile.am): Likewise.
32345         * modules/printf-posix-tests (Makefile.am): Likewise.
32346         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32347         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32348         * modules/tsearch-tests (Makefile.am): Likewise.
32349         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32350         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32351         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32352         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32353         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32354         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32355         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32356         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32357         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32358         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32359         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32360         * modules/xstrtol-tests (Makefile.am): Likewise.
32361         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32362         * modules/yesno-tests (Makefile.am): Likewise.
32363
32364 2007-10-03  Bruno Haible  <bruno@clisp.org>
32365
32366         * modules/trunc-tests: New file.
32367         * tests/test-trunc.c: New file.
32368
32369         * modules/trunc: New file.
32370         * lib/trunc.c: New file.
32371         * m4/trunc.m4: New file.
32372         * lib/math.in.h (trunc): New declaration.
32373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32374         HAVE_DECL_TRUNC.
32375         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32376         HAVE_DECL_TRUNC.
32377         * doc/functions/trunc.texi: Mention the 'trunc' module.
32378
32379 2007-10-03  Bruno Haible  <bruno@clisp.org>
32380
32381         * tests/test-fpending.c: New file, mostly copied
32382         from coreutils/lib/t-fpending.c.
32383         * modules/fpending-tests: New file.
32384
32385 2007-10-03  Bruno Haible  <bruno@clisp.org>
32386
32387         Port the stdio extensions to QNX (untested).
32388         * lib/fseterr.c (fseterr): Add support for QNX.
32389         * lib/fbufmode.c (fbufmode): Likewise.
32390         * lib/freadable.c (freadable): Likewise.
32391         * lib/fwritable.c (fwritable): Likewise.
32392         * lib/freading.c (freading): Likewise.
32393         * lib/fwriting.c (fwriting): Likewise.
32394         * lib/freadahead.c (freadahed): Likewise.
32395         * lib/fpurge.c (fpurge): Likewise.
32396         * lib/fseeko.c (rpl_fseeko): Likewise.
32397
32398 2007-10-03  Bruno Haible  <bruno@clisp.org>
32399             Jim Meyering  <jim@meyering.net>
32400             Eric Blake  <ebb9@byu.net>
32401
32402         * doc/relocatable.texi: Use @command instead of @program.
32403
32404 2007-10-02  Jim Meyering  <jim@meyering.net>
32405
32406         Perform one more "_.h" -> ".in.h" substitution.
32407         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32408         instead of unistd_.h here, too.
32409
32410 2007-10-01  Bruno Haible  <bruno@clisp.org>
32411
32412         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32413         Needed for the alloca-opt module.
32414
32415 2007-09-30  Bruno Haible  <bruno@clisp.org>
32416
32417         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32418         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32419         alloca_.h.
32420         * lib/argz.in.h: Renamed from lib/argz_.h.
32421         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32422         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32423         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32424         byteswap_.h.
32425         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32426         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32427         dirent_.h.
32428         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32429         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32430         fcntl_.h.
32431         * lib/float.in.h: Renamed from lib/float_.h.
32432         * modules/float (Files, Makefile.am): Use float.in.h instead of
32433         float_.h.
32434         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32435         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32436         fnmatch_.h.
32437         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32438         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32439         getopt_.h.
32440         * lib/glob.in.h: Renamed from lib/glob_.h.
32441         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32442         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32443         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32444         iconv_.h.
32445         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32446         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32447         inttypes_.h.
32448         * lib/locale.in.h: Renamed from lib/locale_.h.
32449         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32450         locale_.h.
32451         * lib/math.in.h: Renamed from lib/math_.h.
32452         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32453         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32454         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32455         of netinet_in_.h. Add dependency.
32456         * lib/poll.in.h: Renamed from lib/poll_.h.
32457         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32458         * lib/search.in.h: Renamed from lib/search_.h.
32459         * modules/search (Files, Makefile.am): Use search.in.h instead of
32460         search_.h.
32461         * lib/signal.in.h: Renamed from lib/signal_.h.
32462         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32463         _signal.h.
32464         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32465         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32466         stdbool_.h.
32467         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32468         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32469         stdint_.h.
32470         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32471         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32472         stdio_.h.
32473         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32474         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32475         stdlib_.h.
32476         * lib/string.in.h: Renamed from lib/string_.h.
32477         * modules/string (Files, Makefile.am): Use string.in.h instead of
32478         string_.h.
32479         * doc/gnulib-tool.texi (Initial import): Update.
32480         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32481         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32482         of sys_select_.h. Add dependency.
32483         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32484         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32485         of sys_socket_.h.
32486         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32487         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32488         sys_stat_.h.
32489         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32490         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32491         sys_time_.h.
32492         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32493         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32494         sysexits_.h.
32495         * lib/time.in.h: Renamed from lib/time_.h.
32496         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32497         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32498         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32499         unistd_.h.
32500         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32501         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32502         wchar_.h.
32503         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32504         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32505         wctype_.h.
32506         * build-aux/bootstrap (slurp): Update.
32507         * lib/.cppi-disable: Update.
32508
32509 2007-09-30  Bruno Haible  <bruno@clisp.org>
32510
32511         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32512         Needed on BeOS.
32513
32514 2007-09-30  Bruno Haible  <bruno@clisp.org>
32515
32516         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32517
32518 2007-09-29  Bruno Haible  <bruno@clisp.org>
32519
32520         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32521
32522 2007-09-29  Bruno Haible  <bruno@clisp.org>
32523
32524         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32525         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32526         * build-aux/install-reloc: Compile also areadlink.c.
32527         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32528
32529 2007-09-29  Bruno Haible  <bruno@clisp.org>
32530
32531         * gnulib-tool (func_emit_initmacro_done): Indentation.
32532
32533 2007-09-29  Bruno Haible  <bruno@clisp.org>
32534
32535         * README: Add CVS checkout update instructions.
32536         Info from Bob Proulx <bob@proulx.com>.
32537
32538 2007-09-28  Eric Blake  <ebb9@byu.net>
32539
32540         Provide move-if-change.
32541         * build-aux/move-if-change: New file, based on best practice
32542         rather than any canonical upstream location.
32543
32544 2007-09-28  Jim Meyering  <jim@meyering.net>
32545
32546         Fix canonicalize loop-detection corner case.
32547         Do not attempt to stat the symlink values stored via seen_triple.
32548         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32549         on linux-2.6.18, (but not 2.6.22).
32550         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32551         triple_compare.  The former compares dev,ino,filename, while the latter
32552         would actually stat dirname(filename) when dev and ino were equal.
32553         * lib/hash-triple.c: Install <string.h>.
32554         (STREQ): Define.
32555         (triple_compare_ino_str): New function.
32556         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32557
32558 2007-09-28  Eric Blake  <ebb9@byu.net>
32559
32560         Enforce that AC_REPLACE_FUNCS files exist.
32561         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32562         override check for typos.
32563
32564         Fix test-closein on Solaris 10.
32565         * tests/test-closein.c (main): Don't assume stdin can be inherited
32566         closed on all systems.
32567         * tests/test-closein.sh: Likewise.
32568         Reported by Piotr Tarnowski.
32569
32570 2007-09-28  Jim Meyering  <jim@meyering.net>
32571
32572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32573
32574 2007-09-27  Jim Meyering  <jim@meyering.net>
32575
32576         canonicalize: Avoid a false-positive cycle failure.
32577         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32578         Sort.  Remove cycle-check.
32579         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32580         not cycle-check.h.
32581         (seen_triple): New function.
32582         (canonicalize_filename_mode): Use it instead of cycle-check.
32583         * tests/test-canonicalize.c: Add a test for this bug.
32584         * tests/test-canonicalize.sh: Set up and run the test.
32585
32586         New module, file-set, from coreutils.
32587         * modules/file-set: Define it.
32588         * lib/file-set.c, lib/file-set.h: Implement.
32589
32590         New module, hash-triple, from coreutils.
32591         * modules/hash-triple: Define it.
32592         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32593
32594 2007-09-25  Eric Blake  <ebb9@byu.net>
32595
32596         Fix strerror on Interix.
32597         * lib/string_.h (strerror): Declare replacement.
32598         * doc/functions/strerror.texi (strerror): Document the Interix
32599         shortcoming.
32600         * modules/string (Makefile.am): Support new hooks.
32601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32602         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32603         gl_FUNC_STRERROR_SEPARATE.
32604         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32605         * lib/strerror.c (rpl_strerror): Provide replacement.
32606         * modules/strerror (Depends-on): Add string.
32607         (configure.ac): Detect use of module.
32608         * tests/test-strerror.c: New file.
32609         * modules/strerror-tests: New test module.
32610         * modules/argp (Depends-on): Add strerror.
32611         * modules/error (Depends-on): Likewise.
32612         Reported by Martin Koeppe.
32613
32614 2007-09-24  Bruno Haible  <bruno@clisp.org>
32615
32616         * README: Update git instructions.
32617
32618 2007-09-24  Eric Blake  <ebb9@byu.net>
32619
32620         Revert fpending breakage from 2007-09-08.
32621         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32622         __fpending.c.
32623
32624 2007-09-24  Jim Meyering  <jim@meyering.net>
32625
32626         filenamecat.c: Add a test.
32627         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32628         showing how the function works when DIR is the empty string.
32629
32630 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32631
32632         * tests/test-canonicalize.sh: Turn on executable bit.
32633
32634 2007-09-19  Eric Blake  <ebb9@byu.net>
32635
32636         * README: Update CVS instructions.
32637
32638 2007-09-18  Bruno Haible  <bruno@clisp.org>
32639
32640         * modules/areadlink: New file.
32641         * lib/areadlink.h (areadlink): New declaration.
32642         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32643
32644 2007-09-17  Jim Meyering  <jim@meyering.net>
32645
32646         * lib/savewd.c (ESTALE) [!defined]: Define.
32647         Reported to be required on Interix by Martin Koeppe.
32648
32649 2007-09-17  Bruno Haible  <bruno@clisp.org>
32650
32651         * gnulib-tool (func_version): Use $version.
32652
32653 2007-09-16  Bruno Haible  <bruno@clisp.org>
32654
32655         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32656         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32657         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32658         Reported by Greg Schafer <gschafer@zip.com.au>.
32659
32660 2007-09-15  Bruno Haible  <bruno@clisp.org>
32661
32662         * gnulib-tool (sed): Try a little harder to make bash understand the
32663         alias.
32664         Reported by Bruce Korb <bruce.korb@gmail.com>.
32665
32666 2007-09-13  Eric Blake  <ebb9@byu.net>
32667
32668         * ChangeLog: Remove conflict markers.
32669
32670 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32671
32672         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32673         Reported by Bruno Haible <bruno@clisp.org>.
32674
32675 2007-09-12  Bruno Haible  <bruno@clisp.org>
32676
32677         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32678         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32679         is not defined.
32680
32681 2007-09-12  Eric Blake  <ebb9@byu.net>
32682
32683         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32684         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32685         Autoconf definition.
32686         * modules/euidaccess (Depends-on): Add extensions, for
32687         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32688         * modules/fnmatch (Depends-on): Likewise.
32689         * modules/getaddrinfo (Depends-on): Likewise.
32690         * modules/getdelim (Depends-on): Likewise.
32691         * modules/getline (Depends-on): Likewise.
32692         * modules/getsubopt (Depends-on): Likewise.
32693         * modules/gettext (Depends-on): Likewise.
32694         * modules/group-member (Depends-on): Likewise.
32695         * modules/mbchar (Depends-on): Likewise.
32696         * modules/memmem (Depends-on): Likewise.
32697         * modules/mempcpy (Depends-on): Likewise.
32698         * modules/memrchr (Depends-on): Likewise.
32699         * modules/pagealign_alloc (Depends-on): Likewise.
32700         * modules/readutmp (Depends-on): Likewise.
32701         * modules/stpcpy (Depends-on): Likewise.
32702         * modules/stpncpy (Depends-on): Likewise.
32703         * modules/strchrnul (Depends-on): Likewise.
32704         * modules/strndup (Depends-on): Likewise.
32705         * modules/strsep (Depends-on): Likewise.
32706         * modules/strverscmp (Depends-on): Likewise.
32707         * modules/vasprintf (Depends-on): Likewise.
32708         * modules/wcwidth (Depends-on): Likewise.
32709         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32710         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32711         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32712         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32713         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32714         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32715         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32716         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32717         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32718         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32719         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32720         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32721         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32722         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32723         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32724         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32725         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32726         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32727         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32728         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32729         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32730         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32731         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32732         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32733         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32735         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32736         so that lock.m4 can be used in gettext without extensions module.
32737
32738 2007-09-11  Bruno Haible  <bruno@clisp.org>
32739
32740         * m4/isc-posix.m4: Remove file.
32741         Suggested by Eric Blake.
32742
32743 2007-09-11  Eric Blake  <ebb9@byu.net>
32744
32745         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32746
32747 2007-09-10  Bruno Haible  <bruno@clisp.org>
32748
32749         * posix-modules: Fix typo in error message.
32750         Reported by Matt <mkraai@beckman.com>.
32751
32752 2007-09-09  Bruno Haible  <bruno@clisp.org>
32753
32754         * doc/functions/getdelim.texi: Update list of platforms lacking the
32755         function.
32756         * doc/functions/getline.texi: Likewise.
32757
32758 2007-09-09  Jim Meyering  <jim@meyering.net>
32759
32760         * lib/hash.c (hash_initialize): Detect calloc failure.
32761         Reported by Bruno Haible.
32762
32763 2007-09-09  Bruno Haible  <bruno@clisp.org>
32764
32765         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32766         malloc or realloc fails.
32767
32768 2007-09-09  Bruno Haible  <bruno@clisp.org>
32769
32770         * modules/getcwd (Depends-on): Add malloc-posix.
32771         * modules/glob (Depends-on): Likewise.
32772         * modules/putenv (Depends-on): Likewise.
32773         * modules/strdup (Depends-on): Likewise.
32774         * modules/getdelim (Depends-on): Add realloc-posix.
32775         * modules/read-file (Depends-on): Likewise.
32776
32777 2007-09-09  Bruno Haible  <bruno@clisp.org>
32778
32779         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32780         (gl_FUNC_MALLOC_POSIX): Require it.
32781         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32782         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32783         * modules/realloc (Files): Add m4/malloc.m4.
32784         * modules/calloc (Files): Likewise.
32785
32786 2007-09-09  Bruno Haible  <bruno@clisp.org>
32787
32788         * modules/malloc-posix: New file.
32789         * modules/malloc (Depends-on): Add malloc-posix.
32790         * lib/malloc.c: Include errno.h.
32791         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32792         and a POSIX-compatible malloc into a single function. Set ENOMEM
32793         when returning NULL.
32794         * m4/malloc.m4: New file.
32795         * doc/functions/malloc.texi: Mention the malloc-posix module.
32796         * lib/stdlib_.h (malloc): New declaration.
32797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32798         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32799         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32800         and HAVE_MALLOC_POSIX.
32801
32802 2007-09-09  Bruno Haible  <bruno@clisp.org>
32803
32804         * modules/realloc-posix: New file.
32805         * modules/realloc (Depends-on): Add realloc-posix.
32806         * lib/realloc.c: Include errno.h.
32807         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32808         and a POSIX-compatible realloc into a single function. Set ENOMEM
32809         when returning NULL.
32810         * m4/realloc.m4: New file.
32811         * doc/functions/realloc.texi: Mention the realloc-posix module.
32812         * lib/stdlib_.h (realloc): New declaration.
32813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32814         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32815         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32816         and HAVE_REALLOC_POSIX.
32817
32818 2007-09-09  Bruno Haible  <bruno@clisp.org>
32819
32820         * modules/calloc-posix: New file.
32821         * modules/calloc (Depends-on): Add calloc-posix.
32822         * lib/calloc.c: Include errno.h.
32823         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32824         and a POSIX-compatible calloc into a single function. Set ENOMEM
32825         when returning NULL.
32826         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32827         * doc/functions/calloc.texi: Mention the calloc-posix module.
32828         * lib/stdlib_.h (calloc): New declaration.
32829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32830         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32831         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32832         and HAVE_CALLOC_POSIX.
32833
32834 2007-09-09  Bruno Haible  <bruno@clisp.org>
32835
32836         Allow for modules to show an arbitrary notice.
32837         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32838         * gnulib-tool: New option --extract-notice.
32839         (func_usage): Document it.
32840         (sed_extract_prog): Update.
32841         (func_get_notice): New function.
32842         (func_modules_notice): New function.
32843         (func_import, func_create_testdir): Invoke it.
32844         Suggested by Jim Meyering.
32845
32846 2007-09-09  Bruno Haible  <bruno@clisp.org>
32847
32848         * gnulib-tool: New options --verbose, --quiet.
32849         (func_usage): Document them.
32850         (verbose): New variable.
32851         (func_execute_command): New function.
32852         (func_import): Don't show the module list and the file list if
32853         $verbose < 0.
32854         (func_create_testdir): Likewise. Use func_execute_command.
32855         (func_create_megatestdir): Use func_execute_command.
32856
32857 2007-09-08  Bruno Haible  <bruno@clisp.org>
32858
32859         * gnulib-tool (func_import): Prefer rsync over wget when available,
32860         for fetching the PO files.
32861
32862 2007-09-08  Bruno Haible  <bruno@clisp.org>
32863
32864         * posix-modules: New file. Portions copied from gnulib-tool.
32865         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32866
32867 2007-09-08  Jim Meyering  <jim@meyering.net>
32868
32869         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32870         * lib/fpending.h: Rename from __fpending.h.
32871         * lib/fpending.c: Rename from __fpending.c.
32872         Include "fpending.h", not "__fpending.h".
32873         * lib/__fpending.h, lib/__fpending.c: Remove files.
32874         * modules/fpending (Files): Reflect new file names.
32875         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32876
32877 2007-09-08  Bruno Haible  <bruno@clisp.org>
32878
32879         * m4/inttypes-h.m4: Remove stub file.
32880
32881 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32882
32883         * doc/headers/stdint.texi: Discuss #include_next issue.
32884
32885 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32886
32887         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32888
32889 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32890
32891         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32892         in variable name.
32893
32894 2007-09-03  Jim Meyering  <jim@meyering.net>
32895
32896         New module: git-version-gen.
32897         * modules/git-version-gen: New file.
32898
32899         Import changes from coreutils for bootstrap script.
32900
32901         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32902
32903         bootstrap: uses rsync to download the .po files
32904         * build-aux/bootstrap (po_download_command_format): New global.
32905         (download_po_files): Use rsync.
32906         (update_po_files): Don't remove .po files after download,
32907         so future rsync runs can take advantage of the copies.
32908
32909         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32910
32911         Solve the unnecessary-.po-file-regeneration problem once and for all.
32912         * build-aux/bootstrap (download_po_files): New function, renamed from
32913         get_translations.  Now, downloads, but doesn't update LINGUAS.
32914         (update_po_files): New function.
32915
32916         bootstrap: Ignore more.
32917         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32918         uniwidth to e.g., lib/.gitignore.
32919         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32920
32921         * build-aux/bootstrap: New setting: vc_ignore.
32922         (insert_sorted_if_absent): Create $file if absent.
32923         Adapt to new, possibly empty, list: $vc_ignore.
32924
32925         bootstrap: generate more ignorable names
32926         * build-aux/bootstrap (slurp): When generating ignorable names,
32927         also map .sin to .sed, .gperf to .c, and .y to .c.
32928
32929 2007-09-03  Jim Meyering  <jim@meyering.net>
32930
32931         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32932         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32933
32934 2007-09-02  Bruno Haible  <bruno@clisp.org>
32935
32936         Fix mis-recognition of 'mcs' on QNX 6.
32937         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32938         output contains the string "Mono".
32939         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32940         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32941
32942 2007-09-01  Bruno Haible  <bruno@clisp.org>
32943
32944         Fix collision between uniwidth/* and linebreak modules.
32945         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32946         u32_width): Remove declarations.
32947         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32948         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32949         streq3, streq2, streq1, streq0): Remove functions.
32950         (STREQ): Remove macro.
32951         (is_cjk_encoding): Remove function.
32952         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32953         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32954         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32955         * NEWS: Document the change.
32956
32957 2007-09-01  Bruno Haible  <bruno@clisp.org>
32958
32959         * lib/streq.h: Add double-inclusion guard.
32960
32961 2007-09-01  Karl Berry  <karl@gnu.org>
32962
32963         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32964
32965 2007-08-28  Jim Meyering  <jim@meyering.net>
32966
32967         Rename mreadlink_with_size to areadlink_with_size.
32968         * NEWS: Document the change.
32969         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32970         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32971         * lib/mreadlink.h: Rename this to...
32972         * lib/areadlink.h: ...this.
32973         * modules/mreadlink-with-size: Rename this to...
32974         * modules/areadlink-with-size: ...this.
32975         * lib/canonicalize.c: Reflect the renaming.
32976         * modules/canonicalize: Likewise.
32977
32978 2007-08-26  Bruno Haible  <bruno@clisp.org>
32979
32980         * gnulib-tool (func_import): When deciding which files to remove,
32981         consider also dangling symbolic links.
32982         Reported by Eric Blake.
32983
32984 2007-08-26  Bruno Haible  <bruno@clisp.org>
32985
32986         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32987
32988 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32989
32990         * lib/readline.c: Don't include getline.h, the prototype is now
32991         found in stdio.h.
32992
32993 2007-08-23  Jim Meyering  <jim@meyering.net>
32994
32995         Getdelim touchup.
32996         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32997         around the funlockfile call, since funlockfile never sets errno.
32998         Don't set errno upon failed realloc.
32999
33000 2007-08-22  Eric Blake  <ebb9@byu.net>
33001
33002         Getline touchups.
33003         * lib/getdelim.c (getdelim): Revert regression that required *n to
33004         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
33005         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
33006         getdelim, rather than whether implementation is missing.
33007         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
33008         * lib/stdio_.h (getline): Also declare if replacement is
33009         required.
33010         * doc/functions/getdelim.texi: New file.
33011         * doc/functions/getline.texi: Likewise.
33012         * doc/gnulib.texi (Function Substitutes): Add new files.
33013         Reported by Bruno Haible.
33014
33015 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
33016
33017         * users.txt: Add Guile.
33018
33019 2007-08-22  Eric Blake  <ebb9@byu.net>
33020
33021         * tests/test-getdelim.c (main): Use remove, not unlink.
33022         * tests/test-getline.c (main): Likewise.
33023
33024         Move getline and getdelim into stdio.h, per POSIX 200x.
33025         * modules/getline (Files): Remove getline.h.
33026         (Depends-on): Add stdio.
33027         (configure.ac): Add module indicator.
33028         * modules/getdelim (Files): Remove getdelim.h.
33029         (Depends-on): Add stdio.
33030         (configure.ac): Add module indicator.
33031         * modules/stdio (Makefile.am): Work with new indicators.
33032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33033         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
33034         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33035         * lib/getdelim.h: Delete.
33036         * lib/getline.h: Delete.
33037         * lib/stdio_.h (getdelim, getline): Declare.
33038         * modules/getdelim-tests: New module.
33039         * modules/getline-tests: Likewise.
33040         * tests/test-getdelim.c: New file.
33041         * tests/test-getline.c: Likewise.
33042         * NEWS: Document the change.
33043         * lib/getline.c: Update choice of header.
33044         * lib/csharpcomp.c: Likewise.
33045         * lib/getpass.c: Likewise.
33046         * lib/javacomp.c: Likewise.
33047         * lib/javaversion.c: Likewise.
33048         * lib/yesno.c: Likewise.
33049         * lib/getdelim.c: Likewise.
33050         (getdelim): Set errno on failure, and avoid memory leak.
33051
33052 2007-08-19  Bruno Haible  <bruno@clisp.org>
33053
33054         * modules/closein (Depends-on): Add freadahead.
33055         * lib/closein.c: Include freadahead.h.
33056         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
33057         is zero.
33058
33059 2007-08-19  Bruno Haible  <bruno@clisp.org>
33060
33061         * modules/freadahead-tests: New file.
33062         * tests/test-freadahead.sh: New file.
33063         * tests/test-freadahead.c: New file.
33064
33065         * modules/freadahead: New file.
33066         * lib/freadahead.h: New file.
33067         * lib/freadahead.c: New file.
33068         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
33069         fbufmode, fpurge, freadable, fwritable.
33070
33071 2007-08-19  Eric Blake  <ebb9@byu.net>
33072
33073         Test yesno in combination with closein.
33074         * lib/yesno.c (yesno): Document use of stdin.
33075         * modules/yesno-tests (Files): New module.
33076         * tests/test-yesno.c (main): New file.
33077         * tests/test-yesno.sh: Likewise.
33078
33079 2007-08-19  Bruno Haible  <bruno@clisp.org>
33080
33081         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
33082         * lib/fseeko.c (rpl_fseeko): Likewise.
33083         * lib/fseterr.c (fseterr): Likewise.
33084
33085 2007-08-19  Bruno Haible  <bruno@clisp.org>
33086
33087         * tests/test-lseek.c (main): Disable a test for BeOS.
33088         * doc/functions/lseek.texi: Document the BeOS bug.
33089
33090 2007-08-19  Bruno Haible  <bruno@clisp.org>
33091             Eric Blake  <ebb9@byu.net>
33092
33093         * lib/lseek.c: Include <sys/stat.h>.
33094         (rpl_lseek): Add workaround code also for Unix platforms.
33095         Needed for BeOS.
33096         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
33097         * doc/functions/lseek.texi: Document BeOS definiency.
33098
33099 2007-08-18  Bruno Haible  <bruno@clisp.org>
33100
33101         * modules/fstrcmp-tests: New file.
33102         * tests/test-fstrcmp.c: New file.
33103
33104 2007-08-18  Bruno Haible  <bruno@clisp.org>
33105
33106         * modules/fstrcmp: New file, from GNU gettext with modifications.
33107         * lib/fstrcmp.h: New file, from GNU gettext.
33108         * lib/fstrcmp.c: New file, from GNU gettext.
33109         * MODULES.html.sh (String handling): Add fstrcmp.
33110
33111 2007-08-18  Bruno Haible  <bruno@clisp.org>
33112
33113         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
33114         'bool'.
33115         (diag, compareseq): Remove const from the ctxt argument.
33116         (USE_HEURISTIC): Undefine at the end.
33117
33118 2007-08-18  Jim Meyering  <jim@meyering.net>
33119
33120         New file: lib/idcache.h
33121         * NEWS: Mention the addition.
33122         * modules/idcache (Files): Add lib/idcache.h
33123         * lib/idcache.c: Include "idcache.h".
33124         Don't include <sys/types.h>.
33125         Add a FIXME comment.
33126         Move file-scoped "static" declarations to the top.
33127         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
33128
33129 2007-08-17  Bruno Haible  <bruno@clisp.org>
33130         and Paul Eggert  <eggert@cs.ucla.edu>
33131
33132         * MODULES.html.sh: Add diffseq.
33133         * modules/diffseq: New file.
33134         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
33135         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
33136
33137 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33138
33139         Import changes from coreutils for bootstrap script.
33140
33141         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
33142
33143         * build-aux/bootstrap (slurp): Work even in environments where
33144         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
33145         current code does not slurp files whose names start with ".", and
33146         this looks like it might be a troublesome area.
33147
33148         2007-07-11  Jim Meyering  <jim@meyering.net>
33149
33150         If there's a GPL vN copyright comment, require that N == 3.
33151
33152         2007-07-08  Jim Meyering  <jim@meyering.net>
33153
33154         Run the coreutils-specific code only if tests/Makefile.am.in exists.
33155         * build-aux/bootstrap (mam_template): Move definition out of loop.
33156
33157         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
33158
33159         * build-aux/bootstrap (symlink_to_dir): Rename function from
33160         symlink_to_gnulib.  Add a directory parameter.  Update all
33161         callers.
33162         (cp_mark_as_generated): Also check for -- and link to -- files in
33163         gl/.
33164
33165         2007-07-08  Jim Meyering  <jim@meyering.net>
33166
33167         Adapt to deeper hierarchy in gnulib.
33168         * build-aux/bootstrap (symlink_to_dir): If the destination
33169         directory doesn't exist, create it. This is required at least for
33170         "lib/uniwidth/cjk.h".
33171
33172         2007-05-15  Jim Meyering  <jim@meyering.net>
33173
33174         * build-aux/bootstrap: Now that generated Makefile.am files
33175         are no longer under version control, they must be created at
33176         bootstrap time.
33177
33178 2007-08-14  Ben Pfaff  <blp@gnu.org>
33179
33180         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33181
33182 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33183
33184         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33185         given the changes below.
33186         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33187         even on hosts that have padding bits beyond the supported 64.
33188
33189 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33190
33191         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33192         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33193         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33194         depends on it.
33195         (xstrtol_error): Remove.
33196         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33197         but with a different signature.
33198         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33199         * lib/xstrtol-error.c: Include exitfail.h.
33200         (xstrtol_fatal): New function, with a different signature from the
33201         old xstrtol_error, so that the caller need not worry about passing
33202         in an exit status, or about storage management of the option argument.
33203         (xstrtol_error): Now a static function.  Redo signature to
33204         implement xstrtol_fatal.  Output the correct number of hyphens in
33205         front of the option so that the caller need not worry about
33206         storage management.
33207         (N_): New macro.
33208         (_): Remove; not used now.
33209         * modules/xstrtol: Depend on getopt.
33210         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33211         of old STRTOL_FATAL_ERROR macro.
33212         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33213         of test program.
33214         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33215         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33216
33217 2007-08-08  Eric Blake  <ebb9@byu.net>
33218
33219         * lib/xstrtol-error.c: Add missing include.
33220
33221         Move xstrtol messages into gnulib domain, when --pobase is used.
33222         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33223         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33224         * modules/xstrtol (Files): Distribute new file.
33225         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33226         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33227         * tests/test-xstrtol.c: ...into new file.
33228         * tests/test-xstrtoul.c: Also test xstrtoul.
33229         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33230         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33231         * tests/test-xstrtol.sh: Drive the tests.
33232         * tests/test-xstrtoimax.sh: Likewise.
33233         * tests/test-xstrtoumax.sh: Likewise.
33234         * modules/xstrtol-tests: New module.
33235         * modules/xstrtoimax-tests: Likewise.
33236         * modules/xstrtoumax-tests: Likewise.
33237
33238 2007-08-08  Jim Meyering  <jim@meyering.net>
33239
33240         New function: mfile_name_concat.
33241         * lib/filenamecat.c (mfile_name_concat): New function, just like
33242         file_name_concat, but return NULL upon failure rather than exiting
33243         with a diagnostic.
33244         * lib/filenamecat.h: Declare it.
33245
33246 2007-08-07  Bruno Haible  <bruno@clisp.org>
33247
33248         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33249         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33250         warning from gcc.
33251         Reported by Eric Blake.
33252
33253 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33254
33255         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33256         * modules/crypto/arcfour (License): Likewise.
33257         * modules/crypto/des-tests (License): Likewise.
33258         * modules/crypto/gc-arctwo-tests (License): Likewise.
33259         * modules/crypto/gc-des-tests (License): Likewise.
33260         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33261         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33262         * modules/crypto/gc-md2-tests (License): Likewise.
33263         * modules/crypto/gc-md4-tests (License): Likewise.
33264         * modules/crypto/gc-md5-tests (License): Likewise.
33265         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33266         * modules/crypto/gc-rijndael-tests (License): Likewise.
33267         * modules/crypto/gc-sha1-tests (License): Likewise.
33268         * modules/crypto/gc-tests (License): Likewise.
33269         * modules/crypto/hmac-md5 (License): Likewise.
33270         * modules/crypto/hmac-sha1 (License): Likewise.
33271         * modules/crypto/md2-tests (License): Likewise.
33272         * modules/crypto/md4-tests (License): Likewise.
33273         * modules/crypto/md5 (License): Likewise.
33274         * modules/crypto/rijndael (License): Likewise.
33275         * modules/crypto/sha1 (License): Likewise.
33276         * modules/memxor (License): Likewise.
33277
33278 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33279         and Bruno Haible  <bruno@clisp.org>
33280
33281         * NEWS: Describe interface changes to human, xstrtol.
33282         * lib/human.h: Include <xstrtol.h>.
33283         (human_options): Return enum strtol_error, not int.  Remove
33284         bool arg; take int * instead.
33285         * lib/human.c: Don't include "gettext.h".
33286         (_): Remove; no longer used.
33287         Don't include <xstrtol.h>, since human.h does it.
33288         (human_options): Adjust to abovementioned interface changes.
33289         Do not report error to stderr; that's now the caller's
33290         responsibility.
33291         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33292         interface change.
33293         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33294         Str, Argument_type_string.  All uses changed.  Put " argument"
33295         in diagnostics to make them clearer.  Change wording of suffix
33296         message for clarity.
33297         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33298         Argument_type_string.
33299         (STRTOL_FATAL_WARN): Remove; no longer used.
33300         * modules/human (Depends-on): Remove gettext-h.
33301
33302 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33303
33304         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33305
33306 2007-07-31  Bruno Haible  <bruno@clisp.org>
33307
33308         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33309         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33310         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33311
33312 2007-07-31  Bruno Haible  <bruno@clisp.org>
33313
33314         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33315         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33316
33317 2007-07-30  Bruno Haible  <bruno@clisp.org>
33318
33319         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33320         * modules/c-ctype (License): Likewise.
33321         * modules/c-strcase (License): Likewise.
33322         * modules/check-version (License): Likewise.
33323         * modules/iconv (License): Likewise.
33324         * modules/iconv_open (License): Likewise.
33325         * modules/read-file (License): Likewise.
33326         * modules/striconv (License): Likewise.
33327         * modules/strverscmp (License): Likewise.
33328         * modules/vasprintf (License): Likewise.
33329         * modules/crypto/des (License): Likewise.
33330         * modules/crypto/gc (License): Likewise.
33331         * modules/crypto/gc-arcfour (License): Likewise.
33332         * modules/crypto/gc-arctwo (License): Likewise.
33333         * modules/crypto/gc-des (License): Likewise.
33334         * modules/crypto/gc-hmac-md5 (License): Likewise.
33335         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33336         * modules/crypto/gc-md2 (License): Likewise.
33337         * modules/crypto/gc-md4 (License): Likewise.
33338         * modules/crypto/gc-md5 (License): Likewise.
33339         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33340         * modules/crypto/gc-random (License): Likewise.
33341         * modules/crypto/gc-rijndael (License): Likewise.
33342         * modules/crypto/gc-sha1 (License): Likewise.
33343         * modules/crypto/md2 (License): Likewise.
33344         * modules/crypto/md4 (License): Likewise.
33345
33346 2007-07-30  Jim Meyering  <jim@meyering.net>
33347
33348         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33349         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33350         it has valid stat data.  This bug would cause du not to count the
33351         sizes of inaccessible directories.
33352         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33353         in <http://bugzilla.redhat.com/250077>.
33354
33355 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33356             Bruno Haible  <bruno@clisp.org>
33357
33358         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33359         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33360         #include_next, gives a diagnostic about it, but reports no error in
33361         the exit code.
33362         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33363
33364 2007-07-24  Ben Pfaff  <blp@gnu.org>
33365
33366         Improve name: "count-one-bits" is better than "popcount".
33367         * MODULES.html.sh: Update name.
33368         * lib/popcount.h: Renamed lib/count-one-bits.h.
33369         (popcount): Renamed count_one_bits.
33370         (popcountl): Renamed count_one_bits_l.
33371         (popcountll): Renamed count_one_bits_ll.
33372         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33373         * modules/popcount: Renamed module/count-one-bits.
33374         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33375         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33376
33377 2007-07-23  Ben Pfaff  <blp@gnu.org>
33378
33379         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33380         better code generation, and add U to large constants to avoid
33381         warnings, in non-GCC case.
33382         Suggested by Bruno Haible.
33383
33384 2007-07-23  Ben Pfaff  <blp@gnu.org>
33385
33386         * lib/popcount.h: Use verify_true instead of if...abort.
33387         * modules/popcount: Depend on verify module.
33388         Suggested by Jim Meyering.
33389
33390 2007-07-23  Bruno Haible  <bruno@clisp.org>
33391
33392         * gnulib-tool (func_import): Create a .cvsignore file also when the
33393         directory is not yet in CVS but the toplevel directory is. When
33394         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33395         Reported by Karl Berry.
33396
33397 2007-07-22  Ben Pfaff  <blp@gnu.org>
33398
33399         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33400         case.
33401         Suggested by Eric Blake.
33402
33403 2007-07-22  Ben Pfaff  <blp@gnu.org>
33404
33405         New module: popcount.
33406         * MODULES.html.sh: Add popcount.
33407         * modules/popcount: New file.
33408         * modules/popcount-tests: New file.
33409         * tests/test-popcount.c: New file.
33410         * lib/popcount.h: New file.
33411         * m4/popcount.m4: New file.
33412
33413 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33414
33415         * build-aux/announce-gen: Update to GPLv3.
33416
33417         * build-aux/config.guess: Update from config.
33418
33419 2007-07-21  Bruno Haible  <bruno@clisp.org>
33420
33421         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33422         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33423
33424 2007-07-20  Jim Meyering  <jim@meyering.net>
33425
33426         * check-module: Diagnose a self-dependency.
33427
33428 2007-07-19  Bruno Haible  <bruno@clisp.org>
33429
33430         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33431         empty.
33432         Reported by Eric Blake.
33433
33434 2007-07-18  Bruno Haible  <bruno@clisp.org>
33435
33436         * gnulib-tool: New options --po-base, --po-domain.
33437         (func_usage): Document them.
33438         (pobase, po_domain): New variables.
33439         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33440         DEFAULT_TEXT_DOMAIN.
33441         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33442         (func_import): Consider pobase and po_domain. Create a po/ directory.
33443         (func_create_testdir): Set pobase and po_domain to empty.
33444         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33445         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33446
33447 2007-07-18  Bruno Haible  <bruno@clisp.org>
33448
33449         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33450         EXTRA_DIST augmentation for files in build-aux/.
33451
33452 2007-07-16  Bruno Haible  <bruno@clisp.org>
33453
33454         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33455         * modules/getdelim (License): Likewise.
33456
33457 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33458
33459         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33460         * modules/d-type (License): Likewise.
33461         * modules/extensions (License): Likewise.
33462         * modules/fnmatch (License): Likewise.
33463         * modules/fseeko (License): Likewise.
33464         * modules/getaddrinfo (License): Likewise.
33465         * modules/getline (License): Likewise.
33466         * modules/getlogin_r (License): Likewise.
33467         * modules/getpass (License): Likewise.
33468         * modules/gettimeofday (License): Likewise.
33469         * modules/glob (License): Likewise.
33470         * modules/inet_ntop (License): Likewise.
33471         * modules/malloc (License): Likewise.
33472         * modules/malloca (License): Likewise.
33473         * modules/memmem (License): Likewise.
33474         * modules/mempcpy (License): Likewise.
33475         * modules/memset (License): Likewise.
33476         * modules/minmax (License): Likewise.
33477         * modules/mktime (License): Likewise.
33478         * modules/netinet_in (License): Likewise.
33479         * modules/pathmax (License): Likewise.
33480         * modules/poll (License): Likewise.
33481         * modules/regex (License): Likewise.
33482         * modules/snprintf (License): Likewise.
33483         * modules/stdbool (License): Likewise.
33484         * modules/stdint (License): Likewise.
33485         * modules/stdio (License): Likewise.
33486         * modules/strcase (License): Likewise.
33487         * modules/strcasestr (License): Likewise.
33488         * modules/strdup (License): Likewise.
33489         * modules/string (License): Likewise.
33490         * modules/strndup (License): Likewise.
33491         * modules/strnlen (License): Likewise.
33492         * modules/strpbrk (License): Likewise.
33493         * modules/strptime (License): Likewise.
33494         * modules/strsep (License): Likewise.
33495         * modules/sys_select (License): Likewise.
33496         * modules/sys_socket (License): Likewise.
33497         * modules/sys_stat (License): Likewise.
33498         * modules/sys_time (License): Likewise.
33499         * modules/time (License): Likewise.
33500         * modules/time_r (License): Likewise.
33501         * modules/timegm (License): Likewise.
33502         * modules/unistd (License): Likewise.
33503         * modules/vsnprintf (License): Likewise.
33504         * modules/wctype (License): Likewise.
33505
33506 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33507
33508         * modules/argz (License): LGPLv2+.
33509
33510 2007-07-15  Karl Berry  <karl@gnu.org>
33511
33512         * doc/gnulib.texi: revise node structure per new fdl.texi.
33513
33514 2007-07-14  Bruno Haible  <bruno@clisp.org>
33515
33516         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33517         the output file.
33518         * lib/uniname/uninames.h: Regenerated.
33519
33520 2007-07-14  Karl Berry  <karl@gnu.org>
33521
33522         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33523         omitting sectioning and index commands.
33524
33525 2007-07-13  Bruno Haible  <bruno@clisp.org>
33526
33527         New gnulib-tool option --more-symlinks.
33528         * gnulib-tool (func_usage): Document --more-symlinks.
33529         (do_copyrights): New variable.
33530         Recognize option --more-symlinks.
33531         (func_import): Don't add a copyright notice transform to
33532         sed_transform_lib_file if do_copyrights is empty.
33533
33534 2007-07-13  Bruno Haible  <bruno@clisp.org>
33535
33536         * lib/vasnprintf.c (decimal_point_char): Define also if
33537         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33538         && !NEED_PRINTF_DIRECTIVE_A.
33539         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33540         Gary V. Vaughan <gary@gnu.org>.
33541
33542 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33543
33544         * lib/inttypes_.h: Undo previous change, since it was fixed
33545         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33546
33547 2007-07-13  Bruno Haible  <bruno@clisp.org>
33548
33549         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33550         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33551
33552 2007-07-13  Jim Meyering  <jim@meyering.net>
33553
33554         df: Don't fail for Tru64's "file-on-file mount".
33555         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33556         so we fall through and use statfs instead.  Details here:
33557         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33558         Reported by Albert Chin.
33559
33560 2007-07-13  Bruno Haible  <bruno@clisp.org>
33561
33562         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33563         * modules/configmake (License): Likewise.
33564         * modules/gettext (License): Likewise.
33565         * modules/gettext-h (License): Likewise.
33566         * modules/include_next (License): Likewise.
33567         * modules/link-warning (License): Likewise.
33568         * modules/localcharset (License): Likewise.
33569         * modules/localename (License): Likewise.
33570         * modules/lock (License): Likewise.
33571         * modules/relocatable-lib-lgpl (License): Likewise.
33572         * modules/size_max (License): Likewise.
33573         * modules/vasnprintf (License): Likewise.
33574         * modules/wchar (License): Likewise.
33575         * modules/xsize (License): Likewise.
33576
33577 2007-07-13  Bruno Haible  <bruno@clisp.org>
33578
33579         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33580         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33581
33582 2007-07-12  Bruno Haible  <bruno@clisp.org>
33583
33584         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33585         in the modules files.
33586
33587 2007-07-11  Karl Berry  <karl@gnu.org>
33588
33589         * MODULES.html.sh (func_module): use
33590          sed -e '\|^'"${includefile}"'$|d'
33591          instead of /.../d, to avoid errors on $includefile's containing /.
33592
33593 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33594
33595         * gnulib-tool (func_import): Avoid duplication of --avoid
33596         statements
33597         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33598         names to `_' in variable names.
33599
33600 2007-07-10  Eric Blake  <ebb9@byu.net>
33601
33602         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33603         * NEWS: Document this change.
33604
33605 2007-07-08  Bruno Haible  <bruno@clisp.org>
33606
33607         Update to Unicode 5.0.
33608         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33609         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33610         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33611         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33612         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33613         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33614         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33615         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33616         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33617         U+10A3F, U+1D242..U+1D244.
33618         (nonspacing_table_ind): Update.
33619         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33620         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33621
33622 2007-07-08  Bruno Haible  <bruno@clisp.org>
33623
33624         Update to Unicode 5.0.
33625         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33626         code transform. Extend the name index field of unicode_name_to_code and
33627         unicode_code_to_name from 16 to 24 bits.
33628         * lib/uniname/uniname.c (unicode_character_name,
33629         unicode_name_character): Add the range 0x12xxx to the code transform.
33630         * lib/uniname/uninames.h: Regenerated.
33631         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33632
33633 2007-07-07  Bruno Haible  <bruno@clisp.org>
33634
33635         * modules/wcwidth-tests: New file.
33636         * tests/test-wcwidth.c: New file.
33637
33638         Work around MacOS X wcwidth() bug.
33639         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33640         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33641         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33642         original wcwidth in non-UTF-8 locales.
33643         * modules/wcwidth (Depends-on): Add localcharset, streq,
33644         uniwidth/width.
33645         * doc/functions/wcwidth.texi: Update.
33646
33647 2007-07-07  Bruno Haible  <bruno@clisp.org>
33648
33649         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33650         (wcwidth): New declaration.
33651         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33652         macros.
33653         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33654         here. Prepare for creating <wchar.h> unconditionally.
33655         * modules/wchar (Depends-on): Add link-warning.
33656         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33657         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33658         * lib/wcwidth.h: Remove file.
33659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33660         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33661         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33662         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33663         (Include): Replace wcwidth.h with <wchar.h>.
33664         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33665         * lib/mbchar.h: Don't include wcwidth.h.
33666         * lib/mbswidth.c: Likewise.
33667         * NEWS: Mention the change.
33668
33669 2007-07-07  Bruno Haible  <bruno@clisp.org>
33670
33671         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33672         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33673         definition with an external declaration.
33674         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33675         defined as a function. Remove AC_C_INLINE requirement.
33676         * modules/wcwidth (Files): Add lib/wcwidth.c.
33677         (Makefile.am): Remove redundant statement.
33678
33679 2007-07-07  Bruno Haible  <bruno@clisp.org>
33680
33681         * MODULES.html.sh (Unicode string functions): Add the new modules.
33682
33683         * tests/uniwidth/test-u32-strwidth.c: New file.
33684         * modules/uniwidth/u32-strwidth-tests: New file.
33685
33686         * lib/uniwidth/u32-strwidth.c: New file.
33687         * modules/uniwidth/u32-strwidth: New file.
33688
33689         * tests/uniwidth/test-u16-strwidth.c: New file.
33690         * modules/uniwidth/u16-strwidth-tests: New file.
33691
33692         * lib/uniwidth/u16-strwidth.c: New file.
33693         * modules/uniwidth/u16-strwidth: New file.
33694
33695         * tests/uniwidth/test-u8-strwidth.c: New file.
33696         * modules/uniwidth/u8-strwidth-tests: New file.
33697
33698         * lib/uniwidth/u8-strwidth.c: New file.
33699         * modules/uniwidth/u8-strwidth: New file.
33700
33701         * tests/uniwidth/test-u32-width.c: New file.
33702         * modules/uniwidth/u32-width-tests: New file.
33703
33704         * lib/uniwidth/u32-width.c: New file.
33705         * modules/uniwidth/u32-width: New file.
33706
33707         * tests/uniwidth/test-u16-width.c: New file.
33708         * modules/uniwidth/u16-width-tests: New file.
33709
33710         * lib/uniwidth/u16-width.c: New file.
33711         * modules/uniwidth/u16-width: New file.
33712
33713         * tests/uniwidth/test-u8-width.c: New file.
33714         * modules/uniwidth/u8-width-tests: New file.
33715
33716         * lib/uniwidth/u8-width.c: New file.
33717         * modules/uniwidth/u8-width: New file.
33718
33719         * tests/uniwidth/test-uc_width.c: New file.
33720         * modules/uniwidth/width-tests: New file.
33721
33722         * lib/uniwidth/width.c: New file, from GNU libiconv.
33723         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33724         * modules/uniwidth/width: New file.
33725
33726         * lib/uniwidth.h: New file, from GNU libiconv.
33727         * modules/uniwidth/base: New file.
33728
33729 2007-07-07  Bruno Haible  <bruno@clisp.org>
33730
33731         * lib/uniname.h: New file, from GNU gettext.
33732         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33733         * lib/uniname/uninames.h: New file, from GNU gettext.
33734         * lib/uniname/uniname.c: New file, from GNU gettext.
33735         * tests/uniname/test-uninames.sh: New file.
33736         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33737         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33738         * modules/uniname/base: New file.
33739         * modules/uniname/uniname: New file.
33740         * modules/uniname/uniname-tests: New file.
33741         * MODULES.html.sh (Unicode string functions): Add the new modules.
33742
33743 2007-07-06  Bruno Haible  <bruno@clisp.org>
33744
33745         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33746
33747 2007-07-06  Bruno Haible  <bruno@clisp.org>
33748
33749         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33750         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33751         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33752         include <sys/time.h>.
33753         Reported by Eric Blake.
33754
33755 2007-07-06  Eric Blake  <ebb9@byu.net>
33756
33757         Fix testing canonicalize on cygwin.
33758         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33759         Revert patch from 2007-06-19.
33760         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33761         canonicalize module is also in use.
33762         * tests/test-canonicalize.c: New file.
33763         * tests/test-canonicalize.sh: Likewise.
33764         * modules/canonicalize-tests: Likewise.
33765
33766 2007-07-06  Jim Meyering  <jim@meyering.net>
33767
33768         * lib/getugroups.c (getugroups): Detect getgrent failure.
33769         Adjust comment to reflect reality: this function may return -1.
33770
33771 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33772
33773         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33774         the new TP address.
33775         (usage): Fix typo
33776         (gnulib_mk): New variable.
33777
33778 2007-07-05  Jim Meyering  <jim@meyering.net>
33779
33780         Don't let endgrent clobber errno, no matter how improbable.
33781         * lib/getugroups.c (getugroups): Save and restore errno around
33782         endgrent call.
33783
33784         Close the group DB even when failing with 2^31 or more members.
33785         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33786
33787 2007-07-04  Jim Meyering  <jim@meyering.net>
33788
33789         * lib/getugroups.h: New file.
33790         * lib/getugroups.c: Include "getugroups.h".
33791         Remove uses of "register" keyword.
33792         Move local variable, "cp", down into scope where used.
33793         Give "username" parameter the "const" attribute.
33794         * modules/getugroups (Files): Add lib/getugroups.h
33795
33796 2007-07-04  Karl Berry  <karl@gnu.org>
33797
33798         * MODULES.html.sh (func_all_modules): Complete rename of
33799         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33800
33801 2007-07-02  Bruno Haible  <bruno@clisp.org>
33802
33803         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33804         mode, when inttypes.h comes from gnulib.
33805         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33806
33807 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33808
33809         * NEWS: Mention lgpl module name change.
33810
33811         * modules/lgpl-2.1: Renamed from lgpl.
33812
33813         * NEWS: Mention gpl module name change.
33814
33815         * modules/gpl-3.0: New file, based on gpl-2.0.
33816
33817         * modules/gpl-2.0: Renamed from gpl.
33818
33819         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33820         doc/gpl-2.0.texi.
33821
33822 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33823
33824         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33825         #define __STDC_LIMIT_MACROS temporarily while including
33826         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33827         Problem reported by Joel E. Denny in
33828         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33829
33830 2007-07-01  Bruno Haible  <bruno@clisp.org>
33831
33832         * lib/unistdio.h: New file.
33833         * lib/unistdio/u-asnprintf.h: New file.
33834         * lib/unistdio/u-asprintf.h: New file.
33835         * lib/unistdio/u-printf-args.c: New file.
33836         * lib/unistdio/u-printf-args.h: New file.
33837         * lib/unistdio/u-printf-parse.h: New file.
33838         * lib/unistdio/u-snprintf.h: New file.
33839         * lib/unistdio/u-sprintf.h: New file.
33840         * lib/unistdio/u-vasprintf.h: New file.
33841         * lib/unistdio/u-vsnprintf.h: New file.
33842         * lib/unistdio/u-vsprintf.h: New file.
33843         * lib/unistdio/ulc-asnprintf.c: New file.
33844         * lib/unistdio/ulc-asprintf.c: New file.
33845         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33846         * lib/unistdio/ulc-printf-parse.c: New file.
33847         * lib/unistdio/ulc-snprintf.c: New file.
33848         * lib/unistdio/ulc-sprintf.c: New file.
33849         * lib/unistdio/ulc-vasnprintf.c: New file.
33850         * lib/unistdio/ulc-vasprintf.c: New file.
33851         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33852         * lib/unistdio/ulc-vsnprintf.c: New file.
33853         * lib/unistdio/ulc-vsprintf.c: New file.
33854         * lib/unistdio/u8-asnprintf.c: New file.
33855         * lib/unistdio/u8-asprintf.c: New file.
33856         * lib/unistdio/u8-printf-parse.c: New file.
33857         * lib/unistdio/u8-snprintf.c: New file.
33858         * lib/unistdio/u8-sprintf.c: New file.
33859         * lib/unistdio/u8-vasnprintf.c: New file.
33860         * lib/unistdio/u8-vasprintf.c: New file.
33861         * lib/unistdio/u8-vsnprintf.c: New file.
33862         * lib/unistdio/u8-vsprintf.c: New file.
33863         * lib/unistdio/u8-u8-asnprintf.c: New file.
33864         * lib/unistdio/u8-u8-asprintf.c: New file.
33865         * lib/unistdio/u8-u8-snprintf.c: New file.
33866         * lib/unistdio/u8-u8-sprintf.c: New file.
33867         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33868         * lib/unistdio/u8-u8-vasprintf.c: New file.
33869         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33870         * lib/unistdio/u8-u8-vsprintf.c: New file.
33871         * lib/unistdio/u16-asnprintf.c: New file.
33872         * lib/unistdio/u16-asprintf.c: New file.
33873         * lib/unistdio/u16-printf-parse.c: New file.
33874         * lib/unistdio/u16-snprintf.c: New file.
33875         * lib/unistdio/u16-sprintf.c: New file.
33876         * lib/unistdio/u16-vasnprintf.c: New file.
33877         * lib/unistdio/u16-vasprintf.c: New file.
33878         * lib/unistdio/u16-vsnprintf.c: New file.
33879         * lib/unistdio/u16-vsprintf.c: New file.
33880         * lib/unistdio/u16-u16-asnprintf.c: New file.
33881         * lib/unistdio/u16-u16-asprintf.c: New file.
33882         * lib/unistdio/u16-u16-snprintf.c: New file.
33883         * lib/unistdio/u16-u16-sprintf.c: New file.
33884         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33885         * lib/unistdio/u16-u16-vasprintf.c: New file.
33886         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33887         * lib/unistdio/u16-u16-vsprintf.c: New file.
33888         * lib/unistdio/u32-asnprintf.c: New file.
33889         * lib/unistdio/u32-asprintf.c: New file.
33890         * lib/unistdio/u32-printf-parse.c: New file.
33891         * lib/unistdio/u32-snprintf.c: New file.
33892         * lib/unistdio/u32-sprintf.c: New file.
33893         * lib/unistdio/u32-vasnprintf.c: New file.
33894         * lib/unistdio/u32-vasprintf.c: New file.
33895         * lib/unistdio/u32-vsnprintf.c: New file.
33896         * lib/unistdio/u32-vsprintf.c: New file.
33897         * lib/unistdio/u32-u32-asnprintf.c: New file.
33898         * lib/unistdio/u32-u32-asprintf.c: New file.
33899         * lib/unistdio/u32-u32-snprintf.c: New file.
33900         * lib/unistdio/u32-u32-sprintf.c: New file.
33901         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33902         * lib/unistdio/u32-u32-vasprintf.c: New file.
33903         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33904         * lib/unistdio/u32-u32-vsprintf.c: New file.
33905         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33906         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33907         * tests/unistdio/test-ulc-printf1.h: New file.
33908         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33909         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33910         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33911         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33912         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33913         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33914         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33915         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33916         * tests/unistdio/test-u8-asnprintf1.c: New file.
33917         * tests/unistdio/test-u8-asnprintf1.h: New file.
33918         * tests/unistdio/test-u8-printf1.h: New file.
33919         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33920         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33921         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33922         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33923         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33924         * tests/unistdio/test-u8-vasprintf1.c: New file.
33925         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33926         * tests/unistdio/test-u8-vsprintf1.c: New file.
33927         * tests/unistdio/test-u16-asnprintf1.c: New file.
33928         * tests/unistdio/test-u16-asnprintf1.h: New file.
33929         * tests/unistdio/test-u16-printf1.h: New file.
33930         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33931         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33932         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33933         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33934         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33935         * tests/unistdio/test-u16-vasprintf1.c: New file.
33936         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33937         * tests/unistdio/test-u16-vsprintf1.c: New file.
33938         * tests/unistdio/test-u32-asnprintf1.c: New file.
33939         * tests/unistdio/test-u32-asnprintf1.h: New file.
33940         * tests/unistdio/test-u32-printf1.h: New file.
33941         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33942         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33943         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33944         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33945         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33946         * tests/unistdio/test-u32-vasprintf1.c: New file.
33947         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33948         * tests/unistdio/test-u32-vsprintf1.c: New file.
33949         * modules/unistdio/base: New file.
33950         * modules/unistdio/u-printf-args: New file.
33951         * modules/unistdio/ulc-asnprintf: New file.
33952         * modules/unistdio/ulc-asprintf: New file.
33953         * modules/unistdio/ulc-fprintf: New file.
33954         * modules/unistdio/ulc-printf-parse: New file.
33955         * modules/unistdio/ulc-snprintf: New file.
33956         * modules/unistdio/ulc-sprintf: New file.
33957         * modules/unistdio/ulc-vasnprintf: New file.
33958         * modules/unistdio/ulc-vasprintf: New file.
33959         * modules/unistdio/ulc-vfprintf: New file.
33960         * modules/unistdio/ulc-vsnprintf: New file.
33961         * modules/unistdio/ulc-vsprintf: New file.
33962         * modules/unistdio/u8-asnprintf: New file.
33963         * modules/unistdio/u8-asprintf: New file.
33964         * modules/unistdio/u8-printf-parse: New file.
33965         * modules/unistdio/u8-snprintf: New file.
33966         * modules/unistdio/u8-sprintf: New file.
33967         * modules/unistdio/u8-vasnprintf: New file.
33968         * modules/unistdio/u8-vasprintf: New file.
33969         * modules/unistdio/u8-vsnprintf: New file.
33970         * modules/unistdio/u8-vsprintf: New file.
33971         * modules/unistdio/u8-u8-asnprintf: New file.
33972         * modules/unistdio/u8-u8-asprintf: New file.
33973         * modules/unistdio/u8-u8-snprintf: New file.
33974         * modules/unistdio/u8-u8-sprintf: New file.
33975         * modules/unistdio/u8-u8-vasnprintf: New file.
33976         * modules/unistdio/u8-u8-vasprintf: New file.
33977         * modules/unistdio/u8-u8-vsnprintf: New file.
33978         * modules/unistdio/u8-u8-vsprintf: New file.
33979         * modules/unistdio/u16-asnprintf: New file.
33980         * modules/unistdio/u16-asprintf: New file.
33981         * modules/unistdio/u16-printf-parse: New file.
33982         * modules/unistdio/u16-snprintf: New file.
33983         * modules/unistdio/u16-sprintf: New file.
33984         * modules/unistdio/u16-vasnprintf: New file.
33985         * modules/unistdio/u16-vasprintf: New file.
33986         * modules/unistdio/u16-vsnprintf: New file.
33987         * modules/unistdio/u16-vsprintf: New file.
33988         * modules/unistdio/u16-u16-asnprintf: New file.
33989         * modules/unistdio/u16-u16-asprintf: New file.
33990         * modules/unistdio/u16-u16-snprintf: New file.
33991         * modules/unistdio/u16-u16-sprintf: New file.
33992         * modules/unistdio/u16-u16-vasnprintf: New file.
33993         * modules/unistdio/u16-u16-vasprintf: New file.
33994         * modules/unistdio/u16-u16-vsnprintf: New file.
33995         * modules/unistdio/u16-u16-vsprintf: New file.
33996         * modules/unistdio/u32-asnprintf: New file.
33997         * modules/unistdio/u32-asprintf: New file.
33998         * modules/unistdio/u32-printf-parse: New file.
33999         * modules/unistdio/u32-snprintf: New file.
34000         * modules/unistdio/u32-sprintf: New file.
34001         * modules/unistdio/u32-vasnprintf: New file.
34002         * modules/unistdio/u32-vasprintf: New file.
34003         * modules/unistdio/u32-vsnprintf: New file.
34004         * modules/unistdio/u32-vsprintf: New file.
34005         * modules/unistdio/u32-u32-asnprintf: New file.
34006         * modules/unistdio/u32-u32-asprintf: New file.
34007         * modules/unistdio/u32-u32-snprintf: New file.
34008         * modules/unistdio/u32-u32-sprintf: New file.
34009         * modules/unistdio/u32-u32-vasnprintf: New file.
34010         * modules/unistdio/u32-u32-vasprintf: New file.
34011         * modules/unistdio/u32-u32-vsnprintf: New file.
34012         * modules/unistdio/u32-u32-vsprintf: New file.
34013         * modules/unistdio/ulc-asnprintf-tests: New file.
34014         * modules/unistdio/ulc-vasnprintf-tests: New file.
34015         * modules/unistdio/ulc-vasprintf-tests: New file.
34016         * modules/unistdio/ulc-vsnprintf-tests: New file.
34017         * modules/unistdio/ulc-vsprintf-tests: New file.
34018         * modules/unistdio/u8-asnprintf-tests: New file.
34019         * modules/unistdio/u8-vasnprintf-tests: New file.
34020         * modules/unistdio/u8-vasprintf-tests: New file.
34021         * modules/unistdio/u8-vsnprintf-tests: New file.
34022         * modules/unistdio/u8-vsprintf-tests: New file.
34023         * modules/unistdio/u16-asnprintf-tests: New file.
34024         * modules/unistdio/u16-vasnprintf-tests: New file.
34025         * modules/unistdio/u16-vasprintf-tests: New file.
34026         * modules/unistdio/u16-vsnprintf-tests: New file.
34027         * modules/unistdio/u16-vsprintf-tests: New file.
34028         * modules/unistdio/u32-asnprintf-tests: New file.
34029         * modules/unistdio/u32-vasnprintf-tests: New file.
34030         * modules/unistdio/u32-vasprintf-tests: New file.
34031         * modules/unistdio/u32-vsnprintf-tests: New file.
34032         * modules/unistdio/u32-vsprintf-tests: New file.
34033         * MODULES.html.sh (Unicode string functions): Add the new modules.
34034
34035 2007-07-01  Bruno Haible  <bruno@clisp.org>
34036
34037         * lib/sprintf.c (sprintf): Limit the available length estimation,
34038         to avoid address wraparound.
34039         * lib/vsprintf.c (vsprintf): Likewise.
34040         * modules/sprintf-posix (Dependencies): Add stdint.
34041         * modules/vsprintf-posix (Dependencies): Likewise.
34042
34043 2007-07-01  Bruno Haible  <bruno@clisp.org>
34044
34045         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
34046         Windows PATH as well. Conservative double-quoting. Comments.
34047
34048 2007-07-01  Bruno Haible  <bruno@clisp.org>
34049             Eric Blake  <ebb9@byu.net>
34050             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34051
34052         * gnulib-tool (self_abspathname): Fix algorithm to cope with
34053         empty components in $PATH, denoting '.'.
34054
34055 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34056
34057         * gnulib-tool: Fix indentation.
34058         (func_create_megatestdir): Likewise.
34059         Report by Bruno Haible.
34060
34061 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34062
34063         Sync from Automake.
34064         * build-aux/gnupload: Fix shell portability issues with for loops.
34065         Report by Karl Berry.
34066
34067 2007-06-29  Simon Josefsson  <simon@josefsson.org>
34068
34069         * build-aux/maint.mk (POURL): Use translationproject.org.
34070
34071 2007-06-27  Simon Josefsson  <simon@josefsson.org>
34072             Bruno Haible  <bruno@clisp.org>
34073
34074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
34075         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
34076         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
34077         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
34078         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
34079
34080 2007-06-27  Bruno Haible  <bruno@clisp.org>
34081
34082         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
34083         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
34084
34085 2007-06-26  Karl Berry  <karl@gnu.org>
34086
34087         * MODULES.html.sh: remove xreadlink-with-size.
34088
34089 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34090
34091         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
34092         method that I hope also handles the double-include problem noted
34093         by Bruno Haible in
34094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
34095
34096 2007-06-23  Bruno Haible  <bruno@clisp.org>
34097
34098         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34099         Don't let the 'mostlyclean' target fail if the last subdirectory could
34100         not be removed.
34101         Reported by Karl Berry.
34102
34103 2007-06-23  Bruno Haible  <bruno@clisp.org>
34104
34105         * gnulib-tool (echo): Add a speedier workaround for ksh.
34106         * tests/test-echo.sh: Likewise.
34107
34108 2007-06-23  Bruno Haible  <bruno@clisp.org>
34109
34110         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
34111         * tests/test-echo.sh: Likewise.
34112
34113 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34114
34115         * gnulib-tool (IFS): Initialize early, so we don't set it to
34116         empty later.
34117         (self_abspathname): Rewrite algorithm to set it, reindent.
34118         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
34119         (func_create_megatestdir): Merge some sed scripts.
34120
34121 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34122
34123         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
34124         exposed by Sun Studio 11 cc on Solaris 8.
34125
34126 2007-06-22  Bruno Haible  <bruno@clisp.org>
34127
34128         * gnulib-tool (echo): Ensure the echo primitive does not interpret
34129         backslashes.
34130         * tests/test-echo.sh: New file.
34131
34132 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34133
34134         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
34135         simplify `sed_replace_build_aux' scripts, they are portable but
34136         echoing them with `echo' is not.
34137         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
34138
34139 2007-06-21  Karl Berry  <karl@gnu.org>
34140
34141         * config/srclist.txt: guess we can't handle the licenses via
34142         srclist at the moment.
34143
34144 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34145
34146         * MODULES.html.sh: Add include_next.
34147         * modules/include_next: New file.
34148
34149 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34150
34151         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
34152         INCLUDE_NEXT.
34153         (gl_CHECK_NEXT_HEADERS): New macro.
34154         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
34155         the obsolescent gl_ABSOLUTE_HEADER.
34156         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
34157         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
34158         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34159         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34160         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34161         * m4/math_h.m4 (gl_MATH_H): Likewise.
34162         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34163         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34164         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34165         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34166         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34167         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34168         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34170         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34171         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34172         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34173         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34174         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
34175         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34176         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34177         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34178         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34179         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34180         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34181         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34182         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34183         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34184         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34185         * lib/float_.h: Likewise.
34186         * lib/inttypes_.h: Likewise.
34187         * lib/math_.h: Likewise.
34188         * lib/search_.h: Likewise.
34189         * lib/signal_.h: Likewise.
34190         * lib/stdint_.h: Likewise.
34191         * lib/stdio_.h: Likewise.
34192         * lib/stdlib_.h: Likewise.
34193         * lib/string_.h: Likewise.
34194         * lib/sys_stat_.h: Likewise.
34195         * lib/sys_time_.h: Likewise.
34196         * lib/time_.h: Likewise.
34197         * lib/unistd_.h: Likewise.
34198         * lib/wchar_.h: Likewise.
34199         * lib/wctype_.h: Likewise.
34200         * lib/dirent_.h: Likewise.
34201         * lib/iconv_.h: Likewise.
34202         * lib/locale_.h: Likewise.
34203         * lib/netinet_in_.h: Likewise.
34204         * lib/sys_select_.h: Likewise.
34205         * lib/sys_socket_.h: Likewise.
34206         * lib/sysexits_.h: Likewise.
34207         * modules/fcntl (Depends-on): Depend on include_next, not
34208         absolute_header.
34209         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34210         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34211         * modules/fchdir: Likewise.
34212         * modules/float: Likewise.
34213         * modules/iconv_open: Likewise.
34214         * modules/inttypes: Likewise.
34215         * modules/locale: Likewise.
34216         * modules/math: Likewise.
34217         * modules/netinet_in: Likewise.
34218         * modules/search: Likewise.
34219         * modules/signal: Likewise.
34220         * modules/stdint: Likewise.
34221         * modules/stdio: Likewise.
34222         * modules/stdlib: Likewise.
34223         * modules/string: Likewise.
34224         * modules/sys_select: Likewise.
34225         * modules/sys_socket: Likewise.
34226         * modules/sys_stat: Likewise.
34227         * modules/sys_time: Likewise.
34228         * modules/sysexits: Likewise.
34229         * modules/time: Likewise.
34230         * modules/unistd: Likewise.
34231         * modules/wchar: Likewise.
34232         * modules/wctype: Likewise.
34233         * modules/sys_stat: Change maintainer to "all".
34234         * modules/unistd: Likewise.
34235
34236 2007-06-20  Karl Berry  <karl@gnu.org>
34237
34238         * config/srclist.txt: track www changes in license files.
34239
34240 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34241
34242         * build-aux/bootstrap: Remove stray dot.
34243         Make sure build_aux settings are honored when linking
34244         gnulib_extra_files.
34245
34246 2007-06-19  Eric Blake  <ebb9@byu.net>
34247
34248         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34249         Allow compilation on cygwin.
34250
34251 2007-06-19  Jim Meyering  <jim@meyering.net>
34252
34253         xreadlink-with-size: Remove module.  No longer used.
34254         Ex-callers now use xreadlink or mreadlink-with-size.
34255         * modules/xreadlink-with-size: Remove module.
34256         * lib/xreadlink-with-size.c: Remove file.
34257         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34258         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34259         just before the function definition *is* accurate.
34260
34261         Eliminate one way canonicalize_filename_mode could exit.
34262         * lib/canonicalize.c (canonicalize_filename_mode):
34263         Use mreadlink_with_size, not xreadlink_with_size.
34264
34265 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34266
34267         Detect porting problems to FreeBSD/arm, which has time_t wider than
34268         long int.  Original problem reported for GNU diff by Xin Li in
34269         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34270         * modules/getdate (Depends-on): Add intprops, verify.
34271         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34272         is an integer type no wider than long int.
34273
34274 2007-06-18  Jim Meyering  <jim@meyering.net>
34275
34276         New module: mreadlink-with-size.
34277         * MODULES.html.sh: Add mreadlink-with-size.
34278         * modules/mreadlink-with-size: New module
34279         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34280         not xreadlink-with-size.
34281         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34282
34283 2007-06-16  Bruno Haible  <bruno@clisp.org>
34284
34285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34286         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34287         Reported by Gary V. Vaughan <gary@gnu.org>.
34288
34289 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34290
34291         Revamp lchown so that it lives in unistd.h where it belongs.
34292         * lib/lchown.h: Remove.
34293         * lib/dirchownmod.c: Don't include lib/lchown.h.
34294         * lib/fchownat.c: Likewise.
34295         * lib/openat.c: Likewise.
34296         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34297         does not follow symlinks.
34298         (EOPNOTSUPP): Define if not defined.
34299         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34300         is defined to 0.
34301         (lchown): New decl.
34302         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34303         Do not check for lchown decl.
34304         Set REPLACE_LCHOWN.
34305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34306         REPLACE_LCHOWN.
34307         * modules/chown: Make it clear it follows symlinks.
34308         * modules/lchown: Make it clear it doesn't follow symlinks.
34309         (Files): Remove lib/lchown.h
34310         (Depends-on): Add unistd.
34311         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34312         (Include): Include <unistd.h>, not "lchown.h".
34313         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34314         REPLACE_LCHOWN.
34315
34316 2007-06-15  Jim Meyering  <jim@meyering.net>
34317
34318         Change license (GPL to LGPL) of fsusage and dependents.
34319         * modules/fsusage (License): Change to LGPL.
34320         * modules/full-read (License): Likewise.
34321         * modules/full-write (License): Likewise.
34322         * modules/safe-read (License): Likewise.
34323         * modules/safe-write (License): Likewise.
34324
34325 2007-06-14  Ben Pfaff  <blp@gnu.org>
34326
34327         Missing part of allocsa -> malloca transition.
34328         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34329         gl_MALLOCA.
34330
34331 2007-06-12  Bruno Haible  <bruno@clisp.org>
34332
34333         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34334         to ia64, x86_64, i386.
34335         Reported by Eric Blake.
34336
34337 2007-06-12  Bruno Haible  <bruno@clisp.org>
34338
34339         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34340         cross-compiling to x86_64.
34341
34342 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34343
34344         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34345         glitch reported by Ralf Wildenhues in
34346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34347
34348         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34349         Vin Shelton.
34350
34351 2007-06-11  Bruno Haible  <bruno@clisp.org>
34352
34353         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34354         replacement string.
34355         Reported by Eric Blake.
34356
34357 2007-06-10  Bruno Haible  <bruno@clisp.org>
34358
34359         Prepare vasnprintf code for use with Unicode strings.
34360         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34361         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34362         TYPE_U32_STRING.
34363         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34364         a_u32_string variants.
34365         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34366         * lib/printf-args.c: Don't include config.h and the specification
34367         header if PRINTF_FETCHARGS is already defined.
34368         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34369         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34370         TYPE_U16_STRING, TYPE_U32_STRING.
34371         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34372         u16_directive, u16_directives, u32_directive, u32_directives): New
34373         types.
34374         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34375         New declarations.
34376         * lib/printf-parse.c: Don't include config.h and the specification
34377         header if PRINTF_PARSE is already defined. Eliminate the set of
34378         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34379         them now. Include c-ctype.h.
34380         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34381         directive and CHAR_T_ONLY_ASCII.
34382         * lib/vasnprintf.c: Don't include config.h and the specification header
34383         if VASNPRINTF is already defined.
34384         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34385         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34386         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34387         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34388         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34389         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34390         code accordingly.
34391         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34392         pad_ourselves also in this case, with the 'c' and 's' directives, and
34393         with a different notion of "width".
34394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34395
34396 2007-06-10  Bruno Haible  <bruno@clisp.org>
34397
34398         * modules/unistr/u32-mbsnlen: New file.
34399         * lib/unistr/u32-mbsnlen.c: New file.
34400
34401         * modules/unistr/u16-mbsnlen: New file.
34402         * lib/unistr/u16-mbsnlen.c: New file.
34403
34404         * modules/unistr/u8-mbsnlen: New file.
34405         * lib/unistr/u8-mbsnlen.c: New file.
34406
34407         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34408         declarations.
34409
34410 2007-06-10  Bruno Haible  <bruno@clisp.org>
34411
34412         * lib/string_.h (mbsnlen): New declaration.
34413         * lib/mbsnlen.c: New file.
34414         * m4/mbsnlen.m4: New file.
34415         * modules/mbsnlen: New file.
34416         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34417         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34418         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34419
34420 2007-06-10  Bruno Haible  <bruno@clisp.org>
34421
34422         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34423
34424 2007-06-10  Bruno Haible  <bruno@clisp.org>
34425
34426         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34427         * lib/mbuiter.h: Likewise.
34428
34429 2007-06-10  Bruno Haible  <bruno@clisp.org>
34430
34431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34432         declaration.
34433
34434 2007-06-10  Karl Berry  <karl@gnu.org>
34435
34436         * config/srclist.txt: remove gettext entries, Bruno prefers
34437         to update individually.
34438
34439 2007-06-10  Bruno Haible  <bruno@clisp.org>
34440
34441         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34442         'maxlen'. Ensure only length + width bytes are allocated, not
34443         length + 1 + width.
34444
34445 2007-06-09  Bruno Haible  <bruno@clisp.org>
34446
34447         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34448         (CHAR_T): Remove macro.
34449         (VASNPRINTF): Update.
34450
34451 2007-06-09  Bruno Haible  <bruno@clisp.org>
34452
34453         * MODULES.html.sh (Unicode string functions): Add the new modules.
34454
34455         * modules/uniconv/u32-conv-to-enc: New file.
34456         * lib/uniconv/u32-conv-to-enc.c: New file.
34457         * modules/uniconv/u32-conv-to-enc-tests: New file.
34458         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34459
34460         * modules/uniconv/u16-conv-to-enc: New file.
34461         * lib/uniconv/u16-conv-to-enc.c: New file.
34462         * lib/uniconv/u-conv-to-enc.h: New file.
34463         * modules/uniconv/u16-conv-to-enc-tests: New file.
34464         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34465
34466         * modules/uniconv/u8-conv-to-enc: New file.
34467         * lib/uniconv/u8-conv-to-enc.c: New file.
34468         * modules/uniconv/u8-conv-to-enc-tests: New file.
34469         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34470
34471         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34472         u32_conv_to_encoding): New declarations.
34473
34474 2007-06-09  Bruno Haible  <bruno@clisp.org>
34475
34476         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34477
34478 2007-06-09  Bruno Haible  <bruno@clisp.org>
34479
34480         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34481         * modules/malloca: Renamed from modules/allocsa, updated.
34482         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34483         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34484         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34485         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34486         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34487         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34488         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34489         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34490         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34491         * modules/c-strcasestr (Depends-on): Update.
34492         * lib/c-strcasestr.c: Update.
34493         * modules/c-strstr (Depends-on): Update.
34494         * lib/c-strstr.c: Update.
34495         * modules/canonicalize-lgpl (Depends-on): Update.
34496         * lib/canonicalize-lgpl.c: Update.
34497         * modules/clean-temp (Depends-on): Update.
34498         * lib/clean-temp.c: Update.
34499         * modules/csharpcomp (Depends-on): Update.
34500         * lib/csharpcomp.c: Update.
34501         * modules/csharpexec (Depends-on): Update.
34502         * lib/csharpexec.c: Update.
34503         * modules/javacomp (Depends-on): Update.
34504         * lib/javacomp.c: Update.
34505         * modules/javaexec (Depends-on): Update.
34506         * lib/javaexec.c: Update.
34507         * modules/mbscasestr (Depends-on): Update.
34508         * lib/mbscasestr.c: Update.
34509         * modules/mbsstr (Depends-on): Update.
34510         * lib/mbsstr.c: Update.
34511         * modules/setenv (Depends-on): Update.
34512         * lib/setenv.c: Update.
34513         * modules/strcasestr (Depends-on): Update.
34514         * lib/strcasestr.c: Update.
34515         * modules/striconveha (Depends-on): Update.
34516         * lib/striconveha.c: Update.
34517         * modules/relocatable-prog-wrapper (Files): Update.
34518         * lib/relocwrapper.c: Update.
34519         * build-aux/install-reloc: Update.
34520         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34521
34522 2007-06-08  Bruno Haible  <bruno@clisp.org>
34523
34524         Port to uClibc.
34525         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34526         * lib/fpurge.c (fpurge): Likewise.
34527         * lib/freading.c (freading): Likewise.
34528         * lib/fseeko.c (rpl_fseeko): Likewise.
34529         * lib/fseterr.c (fseterr): Likewise.
34530         * lib/fwriting.c (fwriting): Likewise.
34531         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34532
34533 2007-06-08  Bruno Haible  <bruno@clisp.org>
34534
34535         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34536         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34537         * modules/gettext (Files): Add m4/intlmacosx.m4.
34538
34539 2007-06-07  Bruno Haible  <bruno@clisp.org>
34540
34541         * modules/localename-tests: New file.
34542         * tests/test-localename.c: New file.
34543
34544         New module 'localename'.
34545         * lib/localename.h: New file.
34546         * lib/localename.c: New file, from GNU gettext.
34547         * m4/localename.m4: New file.
34548         * modules/localename: New file.
34549
34550 2007-06-07  Bruno Haible  <bruno@clisp.org>
34551
34552         Work around the lack of <wchar.h> on some builds of uClibc.
34553         * doc/headers/wchar.texi: Update.
34554         * lib/wchar_.h: Include <wchar.h> only if it exists.
34555         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34556         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34557         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34558         doesn't exist.
34559         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34560         * modules/mbfile (Depends-on): Add wchar.
34561         * modules/mbiter (Depends-on): Likewise.
34562         * modules/mbuiter (Depends-on): Likewise.
34563         Reported by Simon Josefsson.
34564
34565 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34566
34567         Work around problem reported by Steven M. Schweda in
34568         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34569         Tru64 5.1B with the Compaq compiler environment installed declares
34570         an 'isblank' function but does not define it in the C library.
34571         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34572         * lib/regex_internal.h (isblank): Likewise.
34573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34574         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34575
34576 2007-06-05  Bruno Haible  <bruno@clisp.org>
34577
34578         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34579         ia64.
34580         * modules/printf-safe: New file.
34581         * modules/fprintf-posix (Depends-on): Add printf-safe.
34582         * modules/printf-posix (Depends-on): Likewise.
34583         * modules/snprintf-posix (Depends-on): Likewise.
34584         * modules/sprintf-posix (Depends-on): Likewise.
34585         * modules/vasnprintf-posix (Depends-on): Likewise.
34586         * modules/vasprintf-posix (Depends-on): Likewise.
34587         * modules/vfprintf-posix (Depends-on): Likewise.
34588         * modules/vprintf-posix (Depends-on): Likewise.
34589         * modules/vsnprintf-posix (Depends-on): Likewise.
34590         * modules/vsprintf-posix (Depends-on): Likewise.
34591         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34592         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34593         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34594         "no" on i386, x86_64, ia64.
34595         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34596         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34597         on i386, x86_64, ia64.
34598         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34599         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34600         on i386, x86_64, ia64.
34601         * tests/test-vasnprintf-posix.c: Include float.h.
34602         (LDBL80_WORDS): New macro.
34603         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34604         on i386, x86_64, ia64.
34605         * tests/test-vasprintf-posix.c: Include float.h.
34606         (LDBL80_WORDS): New macro.
34607         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34608         on i386, x86_64, ia64.
34609         * tests/test-snprintf-posix.c: Include float.h.
34610         * tests/test-sprintf-posix.c: Likewise.
34611         * tests/test-vsnprintf-posix.c: Likewise.
34612         * tests/test-vsprintf-posix.c: Likewise.
34613
34614 2007-06-05  Bruno Haible  <bruno@clisp.org>
34615
34616         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34617         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34618         non-IEEE numbers on i386, x86_64, ia64.
34619         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34620         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34621         * tests/test-isnanl.h: Include float.h.
34622         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34623
34624 2007-06-05  Bruno Haible  <bruno@clisp.org>
34625
34626         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34627         also the %a / %A. Handle the %a / %A code before this extra handling.
34628
34629 2007-06-05  Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34632         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34633
34634 2007-06-05  Bruno Haible  <bruno@clisp.org>
34635
34636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34637         typo in variable name.
34638
34639 2007-06-05  Eric Blake  <ebb9@byu.net>
34640
34641         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34642         Reported by Simon Josefsson.
34643
34644 2007-06-04  Bruno Haible  <bruno@clisp.org>
34645
34646         Avoid test failures on some PowerPC platforms.
34647         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34648         Define differently for PowerPC.
34649         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34650         Reported by Gary V. Vaughan <gary@gnu.org>.
34651
34652 2007-06-02  Bruno Haible  <bruno@clisp.org>
34653
34654         Fix test-stdint failure on FreeBSD/ia64.
34655         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34656         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34657         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34658         * doc/headers/stdint.texi: Update.
34659
34660 2007-06-01  Bruno Haible  <bruno@clisp.org>
34661
34662         * tests/test-binary-io.c (main): Pass a third argument to open().
34663         Reported by Gary V. Vaughan <gary@gnu.org>.
34664
34665 2007-06-01  Bruno Haible  <bruno@clisp.org>
34666
34667         * doc/functions/frexpl.texi: Update for mingw.
34668
34669 2007-06-01  Bruno Haible  <bruno@clisp.org>
34670
34671         * tests/test-lseek.c (main): Disable test of errno for invalid third
34672         argument.
34673         * doc/functions/lseek.texi: Update.
34674         Reported by Gary V. Vaughan <gary@gnu.org>.
34675
34676 2007-05-28  Bruno Haible  <bruno@clisp.org>
34677
34678         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34679
34680 2007-05-31  Eric Blake  <ebb9@byu.net>
34681
34682         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34683         cross compiling.
34684
34685 2007-05-30  Eric Blake  <ebb9@byu.net>
34686         and Bruno Haible  <bruno@clisp.org>
34687
34688         Work around mingw test failures exposed by m4-1.4.9b.
34689         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34690         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34691         moment.
34692
34693 2007-05-30  Bruno Haible  <bruno@clisp.org>
34694
34695         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34696         assuming that they are closed. Needed on HP-UX 11.
34697
34698 2007-05-29  Bruno Haible  <bruno@clisp.org>
34699
34700         Fix a problem with #include_next.
34701         * lib/dirent_.h: Split the double-inclusion guard.
34702         * lib/fcntl_.h: Likewise.
34703         * lib/float_.h: Likewise.
34704         * lib/iconv_.h: Likewise.
34705         * lib/inttypes_.h: Likewise.
34706         * lib/locale_.h: Likewise.
34707         * lib/math_.h: Likewise.
34708         * lib/netinet_in_.h: Likewise.
34709         * lib/search_.h: Likewise.
34710         * lib/signal_.h: Likewise.
34711         * lib/stdint_.h: Likewise.
34712         * lib/stdio_.h: Likewise.
34713         * lib/stdlib_.h: Likewise.
34714         * lib/string_.h: Likewise.
34715         * lib/sys_select_.h: Likewise.
34716         * lib/sys_socket_.h: Likewise.
34717         * lib/sys_stat_.h: Likewise.
34718         * lib/sys_time_.h: Likewise.
34719         * lib/sysexits_.h: Likewise.
34720         * lib/time_.h: Likewise.
34721         * lib/unistd_.h: Likewise.
34722         * lib/wchar_.h: Likewise.
34723         * lib/wctype_.h: Likewise.
34724
34725 2007-05-29  Bruno Haible  <bruno@clisp.org>
34726
34727         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34728         for the moment.
34729
34730 2007-05-29  Bruno Haible  <bruno@clisp.org>
34731
34732         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34733         invocation.
34734         Reported by Eric Blake.
34735
34736 2007-05-29  Bruno Haible  <bruno@clisp.org>
34737
34738         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34739         compiling case.
34740
34741 2007-05-29  Eric Blake  <ebb9@byu.net>
34742             Bruno Haible  <bruno@clisp.org>
34743
34744         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34745         cross compiles.
34746
34747 2007-05-28  Eric Blake  <ebb9@byu.net>
34748
34749         * modules/closein-tests (test_closein_LDADD): Support test on
34750         cygwin with libtool.
34751
34752 2007-05-28  Bruno Haible  <bruno@clisp.org>
34753
34754         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34755         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34756         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34757         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34758         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34759         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34760         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34761         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34762         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34763
34764 2007-05-28  Eric Blake  <ebb9@byu.net>
34765
34766         Unconditionally include <config.h> in unit tests.
34767         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34768         * tests/test-allocsa.c, tests/test-arcfour.c,
34769         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34770         tests/test-array_list.c, tests/test-array_oset.c,
34771         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34772         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34773         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34774         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34775         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34776         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34777         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34778         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34779         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34780         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34781         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34782         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34783         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34784         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34785         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34786         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34787         test-md5.c, test-memmem.c, test-printf-posix.c,
34788         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34789         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34790         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34791         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34792         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34793         test-vasnprintf-posix2.c, test-vasnprintf.c,
34794         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34795         test-vfprintf-posix.c, test-vprintf-posix.c,
34796         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34797         test-xvasprintf.c: Likewise.
34798
34799 2007-05-28  Bruno Haible  <bruno@clisp.org>
34800
34801         * gnulib-tool (func_import): Remember the --with-tests command-line
34802         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34803         Reported by Eric Blake.
34804
34805 2007-05-28  Bruno Haible  <bruno@clisp.org>
34806
34807         * modules/ftell-tests: New file.
34808         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34809         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34810
34811         * lib/ftell.c: New file.
34812         * modules/ftell: New file.
34813         * m4/ftell.m4: New file.
34814         * doc/functions/ftell.texi: Update.
34815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34816         REPLACE_FTELL.
34817         * lib/stdio_.h (rpl_ftell): New declaration.
34818         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34819         REPLACE_FTELL.
34820
34821 2007-05-28  Eric Blake  <ebb9@byu.net>
34822
34823         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34824
34825 2007-05-28  Bruno Haible  <bruno@clisp.org>
34826
34827         * modules/fseek-tests: New file.
34828         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34829         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34830
34831         * lib/fseek.c: New file.
34832         * modules/fseek: New file.
34833         * m4/fseek.m4: New file.
34834         * doc/functions/fseek.texi: Update.
34835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34836         REPLACE_FSEEK.
34837         * lib/stdio_.h (rpl_fseek): New declaration.
34838         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34839         REPLACE_FSEEK.
34840
34841 2007-05-28  Bruno Haible  <bruno@clisp.org>
34842
34843         * lib/stdio_.h (fflush): More comments.
34844
34845 2007-05-28  Bruno Haible  <bruno@clisp.org>
34846
34847         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34848         runtime test.
34849
34850 2007-05-28  Eric Blake  <ebb9@byu.net>
34851
34852         Improve lseek module.
34853         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34854         * lib/unistd_.h (lseek): Scale back link warning message.
34855         * tests/test-lseek.c: Beef up test.
34856         * tests/test-lseek.sh: Exercise more facets of lseek.
34857         Reported by Bruno Haible.
34858
34859 2007-05-28  Bruno Haible  <bruno@clisp.org>
34860
34861         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34862         to define.
34863
34864 2007-05-27  Bruno Haible  <bruno@clisp.org>
34865
34866         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34867
34868 2007-05-27  Bruno Haible  <bruno@clisp.org>
34869
34870         * modules/openmp: New file.
34871         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34872         Noah Misch.
34873
34874 2007-05-26  Bruno Haible  <bruno@clisp.org>
34875
34876         * modules/chdir-long (Depends-on): Add fchdir.
34877         * modules/chdir-safer (Depends-on): Likewise.
34878         * modules/fts (Depends-on): Likewise.
34879         * modules/fts-lgpl (Depends-on): Likewise.
34880         * modules/openat (Depends-on): Likewise.
34881         * modules/savewd (Depends-on): Likewise.
34882
34883 2007-05-24  Eric Blake  <ebb9@byu.net>
34884
34885         Fix lseek on mingw.
34886         * modules/lseek: New module.
34887         * m4/lseek.m4: New file.
34888         * lib/lseek.c: New file.
34889         * modules/lseek-tests: New file.
34890         * tests/test-lseek.c: New file.
34891         * tests/test-lseek.sh: New file.
34892         * MODULES.html.sh: Document lseek module.
34893         * modules/fflush (Depends-on): Add lseek, fseeko.
34894         * modules/fseeko (Depends-on): Likewise.
34895         * modules/ftello (Depends-on): Likewise.
34896         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34897         broken.
34898         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34899         broken.
34900         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34901         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34902         * lib/ftello.c (rpl_ftello): Likewise.
34903         * tests/test-fseeko.c (main): Test this.
34904         * tests/test-fseeko.sh: Likewise.
34905         * tests/test-ftello.c (main): Likewise.
34906         * tests/test-ftello.sh: Likewise.
34907         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34908         implies replacing fseek.
34909         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34910         HAVE_FTELLO.
34911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34912         * modules/unistd (Makefile.am): Likewise.
34913         * lib/unistd_.h (lseek): Declare a replacement.
34914         * doc/functions/lseek.texi (lseek): Document this fix.
34915         * doc/functions/fseek.texi (fseek): Likewise.
34916         * doc/functions/ftell.texi (ftell): Likewise.
34917
34918 2007-05-24  Bruno Haible  <bruno@clisp.org>
34919
34920         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34921         in the printed representation of a NaN.
34922         * tests/test-vasprintf-posix.c (test_function): Likewise.
34923         * tests/test-snprintf-posix.h (test_function): Likewise.
34924         * tests/test-sprintf-posix.h (test_function): Likewise.
34925         Reported by Eric Blake.
34926
34927 2007-05-23  Eric Blake  <ebb9@byu.net>
34928
34929         Fix fseeko/ftello on cygwin 1.5.24.
34930         * doc/functions/fseeko.texi (fseeko): Document the fix.
34931         * doc/functions/ftello.texi (ftello): Document the fix.
34932         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34933         * doc/functions/stdout.text (stdout): New file.
34934         * doc/functions/stderr.text (stderr): New file.
34935         * doc/gnulib.texi (Function Substitutes): Use new files.
34936         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34937         prior to 1.7.0.
34938         * tests/test-ftello.c (main): Likewise for ftello.
34939         * tests/test-fseeko.sh: New file.
34940         * tests/test-ftello.sh: New file.
34941         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34942         with seekable stdin.
34943         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34944         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34945         (gl_REPLACE_FSEEKO): New macro.
34946         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34947         * modules/fseeko (Files): Distribute fseeko.c.
34948         * modules/ftello (Files): Distribute ftello.c.
34949         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34950         mode.
34951         * lib/ftello.c (rpl_ftello): New file.
34952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34953         fseeko, ftello.
34954         (gl_STDIN_LARGE_OFFSET): New macro.
34955         * modules/stdio (Makefile.am): Perform the replacement.
34956         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34957
34958 2007-05-23  Bruno Haible  <bruno@clisp.org>
34959
34960         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34961         GNULIB_POSIXCHECK is defined.
34962
34963 2007-05-21  Bruno Haible  <bruno@clisp.org>
34964
34965         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34966         Check also the output for NaN arguments. When cross-compiling, guess
34967         no on IRIX.
34968         * lib/vasnprintf.c: Update comments.
34969         * tests/test-vasnprintf-posix.c (strisnan): New function.
34970         (test_function): Use it.
34971         * tests/test-vasprintf-posix.c (strisnan): New function.
34972         (test_function): Use it.
34973         * tests/test-snprintf-posix.h (strisnan): New function.
34974         (test_function): Use it.
34975         * tests/test-sprintf-posix.h (strisnan): New function.
34976         (test_function): Use it.
34977         Reported by Eric Blake.
34978
34979 2007-05-20  Bruno Haible  <bruno@clisp.org>
34980
34981         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34982         numbers that fails on BeOS.
34983         * doc/functions/frexpl.texi: Update.
34984
34985 2007-05-20  Jim Meyering  <jim@meyering.net>
34986
34987         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34988         forced upon us by glibc-2.6.
34989
34990 2007-05-20  Bruno Haible  <bruno@clisp.org>
34991
34992         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34993         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34994         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34995         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34996         NEED_PRINTF_INFINITE.
34997         (is_infinitel): New function.
34998         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34999         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
35000         gl_PREREQ_VASNPRINTF_INFINITE.
35001         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
35002         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35003         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
35004         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
35005         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
35006         gl_PREREQ_VASNPRINTF_INFINITE.
35007         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35009         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35010         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35011         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35013         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35014         * doc/functions/fprintf.texi: Update.
35015         * doc/functions/printf.texi: Update.
35016         * doc/functions/snprintf.texi: Update.
35017         * doc/functions/sprintf.texi: Update.
35018         * doc/functions/vfprintf.texi: Update.
35019         * doc/functions/vprintf.texi: Update.
35020         * doc/functions/vsnprintf.texi: Update.
35021         * doc/functions/vsprintf.texi: Update.
35022
35023 2007-05-20  Bruno Haible  <bruno@clisp.org>
35024
35025         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
35026         was not found in libc.
35027         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
35028
35029 2007-05-20  Bruno Haible  <bruno@clisp.org>
35030
35031         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35032         printed as "-nan" instead of "nan".
35033         * tests/test-vasprintf-posix.c (test_function): Likewise.
35034         * tests/test-snprintf-posix.h (test_function): Likewise.
35035         * tests/test-sprintf-posix.h (test_function): Likewise.
35036         Needed for HP-UX 11.
35037
35038 2007-05-20  Jim Meyering  <jim@meyering.net>
35039
35040         Fix buggy test for the fchownat-deref bug.
35041         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
35042         symlink required for the run-test.  Without it, this test would
35043         always declare that fchownat doesn't work, and client code would
35044         unnecessarily use the replacement function with fixed libc.
35045         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
35046         Reported by Greg Schafer.
35047
35048 2007-05-19  Bruno Haible  <bruno@clisp.org>
35049
35050         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
35051         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
35052         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
35053         Needed for IRIX 6.5 and Solaris 2.5.1.
35054
35055 2007-05-19  Bruno Haible  <bruno@clisp.org>
35056
35057         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
35058         (test_function): Skip tests involving -0.0 on platforms where
35059         -0.0 = 0.0.
35060         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
35061         (test_function): Skip tests involving -0.0 on platforms where
35062         -0.0 = 0.0.
35063         * tests/test-snprintf-posix.h (have_minus_zero): New function.
35064         (test_function): Skip tests involving -0.0 on platforms where
35065         -0.0 = 0.0.
35066         * tests/test-sprintf-posix.h (have_minus_zero): New function.
35067         (test_function): Skip tests involving -0.0 on platforms where
35068         -0.0 = 0.0.
35069         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
35070         tests.
35071         * tests/test-printf-posix.h (test_function): Likewise.
35072         * tests/test-printf-posix.output: Remove all -0.0 related results.
35073         Needed for IRIX 6.5.
35074
35075 2007-05-19  Bruno Haible  <bruno@clisp.org>
35076
35077         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35078         printed as "nan0x7fffffff" instead of "nan".
35079         * tests/test-vasprintf-posix.c (test_function): Likewise.
35080         * tests/test-snprintf-posix.h (test_function): Likewise.
35081         * tests/test-sprintf-posix.h (test_function): Likewise.
35082         * tests/test-fprintf-posix.h (NaN): Remove macro.
35083         (test_function): Remove all NaN related tests.
35084         * tests/test-printf-posix.h (NaN): Remove macro.
35085         (test_function): Remove all NaN related tests.
35086         * tests/test-printf-posix.output: Remove all NaN related results.
35087         Needed for IRIX 6.5.
35088
35089 2007-05-19  Bruno Haible  <bruno@clisp.org>
35090
35091         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
35092         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
35093
35094 2007-05-19  Bruno Haible  <bruno@clisp.org>
35095
35096         * lib/float_.h: New file.
35097         * m4/float_h.m4: New file.
35098         * modules/float: New file.
35099         * modules/isnanl (Dependencies): Add float.
35100         * modules/isnanl-nolibm (Dependencies): Likewise.
35101         * modules/mathl (Dependencies): Likewise.
35102         * modules/printf-frexpl (Dependencies): Likewise.
35103         * modules/signbit (Dependencies): Likewise.
35104         * modules/vasnprintf (Dependencies): Likewise.
35105         * doc/headers/float.texi: Update.
35106
35107 2007-05-19  Jim Meyering  <jim@meyering.net>
35108
35109         * lib/utimens.c (gl_futimens): Rename from futimens,
35110         now that glibc-2.6 declares futimens.
35111         * lib/utimens.h: Likewise.
35112
35113 2007-05-19  Bruno Haible  <bruno@clisp.org>
35114
35115         Avoid test failures on mingw.
35116         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
35117         * tests/test-printf-posix.sh: Likewise.
35118         * tests/test-vfprintf-posix.sh: Likewise.
35119         * tests/test-vprintf-posix.sh: Likewise.
35120
35121 2007-05-19  Bruno Haible  <bruno@clisp.org>
35122
35123         Fix *printf result for NaN, Inf, -0.0 on mingw.
35124         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
35125         * lib/vasnprintf.c: Include math.h and isnan.h.
35126         (is_infinite_or_zero): New function.
35127         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
35128         values in the %f, %F, %e, %E, %g, %G directives.
35129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
35130         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35131         gl_PRINTF_INFINITE and test its result. Invoke
35132         gl_PREREQ_VASNPRINTF_INFINITE.
35133         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35134         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35135         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35136         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35137         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35138         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35139         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35140         * doc/functions/fprintf.texi: Update.
35141         * doc/functions/printf.texi: Update.
35142         * doc/functions/snprintf.texi: Update.
35143         * doc/functions/sprintf.texi: Update.
35144         * doc/functions/vfprintf.texi: Update.
35145         * doc/functions/vprintf.texi: Update.
35146         * doc/functions/vsnprintf.texi: Update.
35147         * doc/functions/vsprintf.texi: Update.
35148
35149 2007-05-19  Bruno Haible  <bruno@clisp.org>
35150
35151         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
35152         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
35153         Instead of multiplying with 10^k, set extra_zeroes to k.
35154         (scale10_round_long_double): Remove function.
35155
35156 2007-05-18  Bruno Haible  <bruno@clisp.org>
35157
35158         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
35159         introduced on 2007-05-06.
35160
35161 2007-05-18  Bruno Haible  <bruno@clisp.org>
35162
35163         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
35164         %g directives.
35165         * tests/test-vasprintf-posix.c (test_function): Likewise.
35166         * tests/test-snprintf-posix.h (test_function): Likewise.
35167         * tests/test-sprintf-posix.h (test_function): Likewise.
35168
35169 2007-05-18  Bruno Haible  <bruno@clisp.org>
35170
35171         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
35172         (strmatch): New function.
35173         (test_function): Test the %f directive on numbers of various exponents.
35174         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
35175         (strmatch): New function.
35176         (test_function): Test the %f directive on numbers of various exponents.
35177         * tests/test-snprintf-posix.h (strmatch): New function.
35178         (test_function): Test the %f directive on numbers of various exponents.
35179         * tests/test-sprintf-posix.h (strmatch): New function.
35180         (test_function): Test the %f directive on numbers of various exponents.
35181         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35182         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35183         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35184         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35185
35186 2007-05-18  Bruno Haible  <bruno@clisp.org>
35187
35188         Add support for 'long double' number output.
35189         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35190         * lib/vasnprintf.c: Include math.h and float+.h.
35191         (mp_limb_t): New type.
35192         (GMP_LIMB_BITS): New macro.
35193         (mp_twolimb_t): New type.
35194         (GMP_TWOLIMB_BITS): New macro.
35195         (mpn_t): New type.
35196         (multiply, divide, convert_to_decimal, decode_long_double,
35197         scale10_round_long_double, scale10_round_decimal_long_double,
35198         floorlog10l): New functions.
35199         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35200         for the %f, %F, %e, %E, %g, %G directives.
35201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35202         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35203         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35204         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35205         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35206         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35207         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35208         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35209         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35210         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35211         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35212         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35213         * modules/snprintf-posix (Depends-on): Likewise.
35214         * modules/sprintf-posix (Depends-on): Likewise.
35215         * modules/vasnprintf-posix (Depends-on): Likewise.
35216         * modules/vasprintf-posix (Depends-on): Likewise.
35217         * modules/vfprintf-posix (Depends-on): Likewise.
35218         * modules/vsnprintf-posix (Depends-on): Likewise.
35219         * modules/vsprintf-posix (Depends-on): Likewise.
35220         * modules/vasnprintf (Files): Add lib/float+.h.
35221         * doc/functions/fprintf.texi: Update.
35222         * doc/functions/printf.texi: Update.
35223         * doc/functions/snprintf.texi: Update.
35224         * doc/functions/sprintf.texi: Update.
35225         * doc/functions/vfprintf.texi: Update.
35226         * doc/functions/vprintf.texi: Update.
35227         * doc/functions/vsnprintf.texi: Update.
35228         * doc/functions/vsprintf.texi: Update.
35229
35230 2007-05-18  Bruno Haible  <bruno@clisp.org>
35231
35232         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35233
35234 2007-05-18  Bruno Haible  <bruno@clisp.org>
35235
35236         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35237         for printing 64-bit integers. Needed for mingw.
35238
35239 2007-05-18  Bruno Haible  <bruno@clisp.org>
35240
35241         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35242         gl_FUNC_FREXPL_WORKS.
35243         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35244
35245 2007-05-18  Bruno Haible  <bruno@clisp.org>
35246
35247         * modules/frexpl-nolibm-tests: New file.
35248
35249         * modules/frexpl-nolibm: New file.
35250         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35251
35252 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35253
35254         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35255         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35256         GCC 4.2, which otherwise issues a lot of warnings.
35257         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35258         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35259         Likewise.
35260         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35261         * modules/iconv_open (iconv.h): Likewise.
35262         * modules/locale (locale.h): Likewise.
35263         * modules/netinet_in (netinet/in.h): Likewise.
35264         * modules/sys_select (sys_select.h): Likewise.
35265         * modules/sys_socket (sys/socket.h): Likewise.
35266         * modules/sys_stat (sys/stat.h): Likewise.
35267         * modules/sysexits (sysexits.h): Likewise.
35268         * modules/unistd (unistd.h): Likewise.
35269
35270 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35271
35272         * modules/closein-tests (Makefile.am): Distribute
35273         `test-closein.sh'.
35274
35275 2007-05-17  Bruno Haible  <bruno@clisp.org>
35276
35277         * tests/test-printf-posix.output: Renamed from
35278         tests/test-fprintf-posix.out.
35279         * modules/fprintf-posix-tests: Update.
35280         * modules/printf-posix-tests: Update.
35281         * modules/vfprintf-posix-tests: Update.
35282         * modules/vprintf-posix-tests: Update.
35283         * tests/test-fprintf-posix.sh: Update.
35284         * tests/test-printf-posix.sh: Update.
35285         * tests/test-vfprintf-posix.sh: Update.
35286         * tests/test-vprintf-posix.sh: Update.
35287         Reported by Ralf Wildenhues.
35288
35289 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35290
35291         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35292         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35293         GCC 4.2, which otherwise issues a lot of warnings.
35294         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35295         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35296         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35297         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35298         it should no longer be needed.
35299         * lib/string_.h: Likewise.
35300         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35301         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35302         * modules/inttypes (inttypes.h): Likewise.
35303         * modules/math (math.h): Likewise.
35304         * modules/search (search.h): Likewise.
35305         * modules/signal (signal.h): Likewise.
35306         * modules/stdint (stdint.h): Likewise.
35307         * modules/stdio (stdio.h): Likewise.
35308         * modules/stdlib (stdlib.h): Likewise.
35309         * modules/string (string.h): Likewise.
35310         * modules/sys_time (sys/time.h): Likewise.
35311         * modules/time (time.h): Likewise.
35312         * modules/wchar (wchar.h): Likewise.
35313         * modules/wctype (wtype.h): Likewise.
35314
35315 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35316
35317         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35318
35319 2007-05-13  Bruno Haible  <bruno@clisp.org>
35320
35321         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35322         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35323         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35324         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35325         (gl_PREREQ_STRTOK_R): Don't require it here.
35326
35327 2007-05-13  Bruno Haible  <bruno@clisp.org>
35328
35329         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35330         when used in C++ mode.
35331
35332 2007-05-12  Bruno Haible  <bruno@clisp.org>
35333
35334         * lib/linebuffer.h: Tweak doc.
35335         * lib/linebuffer.c: Likewise.
35336
35337 2007-05-12  James Youngman  <jay@gnu.org>
35338
35339         * lib/linebuffer.c (readlinebuffer_delim): New function,
35340         like readlinebuffer, but use a caller-specified delimiter.
35341         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35342         as the delimiter.
35343         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35344
35345 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35346
35347         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35348         * modules/openat (Files): Remove openat-die.c.
35349         (Depends-on): Add openat-die.
35350         * modules/openat-die: New module.
35351
35352 2007-05-06  Bruno Haible  <bruno@clisp.org>
35353
35354         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35355         Update with info about Cygwin.
35356         * doc/functions/fprintf.texi: Update.
35357         * doc/functions/printf.texi: Update.
35358         * doc/functions/snprintf.texi: Update.
35359         * doc/functions/sprintf.texi: Update.
35360         * doc/functions/vfprintf.texi: Update.
35361         * doc/functions/vprintf.texi: Update.
35362         * doc/functions/vsnprintf.texi: Update.
35363         * doc/functions/vsprintf.texi: Update.
35364         Reported by Eric Blake.
35365
35366 2007-05-06  Bruno Haible  <bruno@clisp.org>
35367
35368         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35369         padding ourselves for the floating-point directives.
35370         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35372         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35373         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35374         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35376         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35377         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35378         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35379         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35380         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35381         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35382         * tests/test-snprintf-posix.h (test_function): Also check the width
35383         and some flags in the %f directive.
35384         * tests/test-sprintf-posix.h (test_function): Likewise.
35385         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35386         * tests/test-vasprintf-posix.c (test_function): Likewise.
35387         * doc/functions/fprintf.texi: Update.
35388         * doc/functions/printf.texi: Update.
35389         * doc/functions/snprintf.texi: Update.
35390         * doc/functions/sprintf.texi: Update.
35391         * doc/functions/vfprintf.texi: Update.
35392         * doc/functions/vprintf.texi: Update.
35393         * doc/functions/vsnprintf.texi: Update.
35394         * doc/functions/vsprintf.texi: Update.
35395
35396 2007-05-06  Bruno Haible  <bruno@clisp.org>
35397
35398         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35399         pass the ' flag character to sprintf or snprintf.
35400         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35403         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35404         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35405         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35407         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35408         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35409         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35410         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35411         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35412         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35413         flag.
35414         * tests/test-sprintf-posix.h (test_function): Likewise.
35415         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35416         * tests/test-vasprintf-posix.c (test_function): Likewise.
35417         * doc/functions/fprintf.texi: Update.
35418         * doc/functions/printf.texi: Update.
35419         * doc/functions/snprintf.texi: Update.
35420         * doc/functions/sprintf.texi: Update.
35421         * doc/functions/vfprintf.texi: Update.
35422         * doc/functions/vprintf.texi: Update.
35423         * doc/functions/vsnprintf.texi: Update.
35424         * doc/functions/vsprintf.texi: Update.
35425
35426 2007-05-01  Bruno Haible  <bruno@clisp.org>
35427
35428         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35429
35430 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35431
35432         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35433         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35434
35435 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35436
35437         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35438         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35440
35441 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35442
35443         * lib/argp-help.c (struct hol_entry): New member `ord'.
35444         (HOL_ENTRY_PTRCMP): Use ord for comparison
35445         (hol_sort): Initialize ord.
35446
35447 2007-05-01  Bruno Haible  <bruno@clisp.org>
35448
35449         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35450         Reported by Eric Blake.
35451         * doc/gnulib.texi (Function Substitutes): Update.
35452
35453 2007-05-01  Bruno Haible  <bruno@clisp.org>
35454
35455         * doc/functions.texi: Remove file, now redundant through
35456         doc/functions/*.texi.
35457
35458 2007-05-01  Bruno Haible  <bruno@clisp.org>
35459
35460         * modules/argp (Depends-on): Add sleep.
35461
35462 2007-05-01  Bruno Haible  <bruno@clisp.org>
35463
35464         * modules/sleep-tests: New file.
35465         * tests/test-sleep.c: New file.
35466
35467         * modules/sleep: New file.
35468         * lib/sleep.c: New file.
35469         * m4/sleep.m4: New file.
35470         * lib/unistd_.h (sleep): New declaration.
35471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35472         HAVE_SLEEP.
35473         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35474         * doc/functions/sleep.texi: Document the sleep module.
35475
35476 2007-05-01  Bruno Haible  <bruno@clisp.org>
35477
35478         * lib/sigprocmask.h: Remove file.
35479         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35480         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35481         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35482         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35483         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35484         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35485         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35486         HAVE_SIGSET_T as a shell variable.
35487         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35488         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35489         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35490         (Depends-on): Add signal. Remove verify.
35491         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35492         (Include): Mention <signal.h> instead of sigprocmask.h.
35493         * NEWS: Mention the change.
35494         * lib/fatal-signal.c: Don't include sigprocmask.h.
35495
35496 2007-05-01  Bruno Haible  <bruno@clisp.org>
35497
35498         * modules/signal: New file.
35499         * lib/signal_.h: New file.
35500         * m4/signal_h.m4: New file.
35501
35502 2007-05-01  Bruno Haible  <bruno@clisp.org>
35503
35504         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35505         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35506         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35507         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35508
35509 2007-05-01  Bruno Haible  <bruno@clisp.org>
35510
35511         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35512         configure time.
35513         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35514         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35515         * modules/sys_stat (Makefile.am): Substitute their values into
35516         sys/stat.h.
35517
35518 2007-05-01  Bruno Haible  <bruno@clisp.org>
35519
35520         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35521         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35522         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35523
35524 2007-05-01  Bruno Haible  <bruno@clisp.org>
35525
35526         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35527         'assert' module here.
35528
35529 2007-05-01  Bruno Haible  <bruno@clisp.org>
35530
35531         * doc/functions/*.texi: New files.
35532         * doc/functions/google-ranking.txt: New file.
35533         * doc/gnulib.texi (Function Substitutes): New chapter.
35534         (ctime, inet_ntoa): Remove sections.
35535         * doc/ctime.texi: Remove file.
35536         * doc/inet_ntoa.texi: Remove file.
35537         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35538         dependencies.
35539         (%.info): New rule, specifying a --reference-limit.
35540
35541 2007-05-01  Bruno Haible  <bruno@clisp.org>
35542
35543         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35544
35545 2007-05-01  Bruno Haible  <bruno@clisp.org>
35546
35547         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35548         the portability of 'mkdir' to mingw systems.
35549
35550 2007-05-01  Bruno Haible  <bruno@clisp.org>
35551
35552         * doc/headers/google-ranking.txt: New file.
35553
35554 2007-04-30  Eric Blake  <ebb9@byu.net>
35555
35556         Prefer fseeko to fseek.
35557         * modules/getpass (Depends-on): Add fseeko.
35558         * lib/getpass.c (getpass): Use fseeko, not fseek.
35559
35560 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35561
35562         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35563         assumes the sorting is stable, while most qsort implementations
35564         are not.  Use argument addresses to ensure they never compare as
35565         equal.
35566
35567         * tests/test-argp-2.sh (usage-indent test): Fix output
35568         (func_compare): Restore diff options
35569         * tests/test-argp.c: Restore #include "progname.h"
35570
35571 2007-04-29  Bruno Haible  <bruno@clisp.org>
35572
35573         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35575         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35577         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35578         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35579         (TESTS, check_PROGRAMS): Add test-snprintf.
35580         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35581         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35582         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35583         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35584         assertions that fail on HP-UX, OSF/1, or IRIX.
35585         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35586
35587 2007-04-29  Bruno Haible  <bruno@clisp.org>
35588
35589         * MODULES.html.sh (posix_functions): Remove 'contents'.
35590
35591 2007-04-29  Karl Berry  <karl@gnu.org>
35592
35593         * config/srclist.txt (gendocs_template_min): new entry.
35594
35595 2007-04-29  Bruno Haible  <bruno@clisp.org>
35596
35597         Work around fpurge bug on BSD systems.
35598         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35599         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35600         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35601         fpurge to rpl_fpurge if the system already has this function.
35602         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35603         the case where the system already has this function. Correct invariants
35604         on BSD systems.
35605         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35606         BSD systems.
35607
35608 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35609
35610         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35611         proposed by Sven Verdoolaege.
35612
35613         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35614         options.
35615         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35616         (usage and help tests): Update
35617
35618 2007-04-29  Bruno Haible  <bruno@clisp.org>
35619
35620         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35621         Print more information in case of failure. Disable a test on BeOS.
35622
35623 2007-04-29  Bruno Haible  <bruno@clisp.org>
35624
35625         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35626         This helps debugging on systems on which no gdb is available.
35627
35628 2007-04-29  Bruno Haible  <bruno@clisp.org>
35629
35630         * lib/freading.h: Improve comments.
35631         * lib/fwriting.h: Likewise.
35632         * tests/test-freading.c (main): Don't check freading immediately after
35633         repositioning. Needed for glibc.
35634
35635 2007-04-29  Bruno Haible  <bruno@clisp.org>
35636
35637         * lib/freading.c (freading): Trivial simplification.
35638
35639 2007-04-28  Bruno Haible  <bruno@clisp.org>
35640
35641         * tests/test-fwriting.c (main): Also test the interaction between
35642         fflush and fwriting.
35643         * modules/fwriting-tests (Depends-on): Add fflush.
35644
35645         * tests/test-freading.c (main): Also test the interaction between
35646         fflush and freading.
35647         * modules/freading-tests (Depends-on): Add fflush.
35648
35649 2007-04-28  Bruno Haible  <bruno@clisp.org>
35650
35651         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35652         fseeko and ftello.
35653         Suggested by Eric Blake.
35654
35655 2007-04-28  Jim Meyering  <jim@meyering.net>
35656
35657         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35658         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35659         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35660
35661 2007-04-27  Eric Blake  <ebb9@byu.net>
35662
35663         * doc/headers/assert.texi (assert.h): Document assert module use.
35664
35665 2007-04-27  Bruno Haible  <bruno@clisp.org>
35666
35667         * doc/headers/*.texi: New files.
35668         * doc/gnulib.texi (Header File Substitutes): New chapter.
35669         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35670         dependencies.
35671         (standards.info ,standards.html, standards.dvi): Update dependencies.
35672         (mostlyclean, clean): New targets.
35673
35674 2007-04-27  Bruno Haible  <bruno@clisp.org>
35675
35676         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35677         * modules/sysexits (Files, Makefile.am): Update.
35678
35679         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35680         * modules/sys_socket (Files, Makefile.am): Update.
35681
35682         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35683         * modules/sys_stat (Files, Makefile.am): Update.
35684
35685 2007-04-27  Eric Blake  <ebb9@byu.net>
35686
35687         * lib/freading.h: Improve comments.
35688         * lib/fwriting.h: Likewise.
35689         * lib/fflush.c: Likewise.
35690
35691         Fix closein for mingw.
35692         * modules/closein-tests: Add tests for closein.
35693         * tests/test-closein.c: New file.
35694         * tests/test-closein.sh: Likewise.
35695         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35696         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35697
35698 2007-04-27  Bruno Haible  <bruno@clisp.org>
35699
35700         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35701         version is < 6.
35702         * lib/math_.h [__DECC]: Likewise.
35703         * lib/stdio_.h [__DECC]: Likewise.
35704         * lib/stdlib_.h [__DECC]: Likewise.
35705         * lib/string_.h [__DECC]: Likewise.
35706         * lib/time_.h [__DECC]: Likewise.
35707         * lib/wchar_.h [__DECC]: Likewise.
35708         * lib/wctype_.h [__DECC]: Likewise.
35709
35710 2007-04-27  Bruno Haible  <bruno@clisp.org>
35711
35712         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35713
35714 2007-04-27  Bruno Haible  <bruno@clisp.org>
35715
35716         * lib/fflush.c: Add comments.
35717         * modules/fpurge-tests (Depends-on): Add fflush.
35718         * modules/freadable-tests (Depends-on): Likewise.
35719         * modules/fwritable-tests (Depends-on): Likewise.
35720
35721 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35722
35723         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35724         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35725         Report by Bruno Haible <bruno@clisp.org>.
35726
35727 2007-04-26  Eric Blake  <ebb9@byu.net>
35728
35729         Fix fflush on mingw.
35730         * modules/fflush (Depends-on): Add freading.
35731         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35732         but unread data.
35733
35734 2007-04-26  Eric Blake  <ebb9@byu.net>
35735         and Bruno Haible  <bruno@clisp.org>
35736
35737         Implement freading and fwriting.
35738         * lib/freading.c: New file.
35739         * lib/freading.h: Likewise.
35740         * m4/freading.m4: Likewise.
35741         * modules/freading: Likewise.
35742         * modules/freading-tests: Likewise.
35743         * tests/test-freading.c: Likewise.
35744         * lib/fwriting.c: New file.
35745         * lib/fwriting.h: Likewise.
35746         * m4/fwriting.m4: Likewise.
35747         * modules/fwriting: Likewise.
35748         * modules/fwriting-tests: Likewise.
35749         * tests/test-fwriting.c: Likewise.
35750         * MODULES.html.sh (File stream based Input/Output): Mention them.
35751
35752 2007-04-26  Bruno Haible  <bruno@clisp.org>
35753
35754         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35755         'long' when we assume it.
35756         Suggested by Eric Blake.
35757
35758 2007-04-26  Bruno Haible  <bruno@clisp.org>
35759
35760         Ensure fseeko, ftello are declared on glibc systems.
35761         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35762         * modules/fseeko (configure.ac-early): Likewise.
35763         * modules/ftello (configure.ac-early): Likewise.
35764         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35765         AC_FUNC_FSEEKO for this.
35766         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35767         (gl_CHECK_FSEEKO): Remove macro.
35768
35769 2007-04-26  Bruno Haible  <bruno@clisp.org>
35770
35771         * tests/test-fflush.c (main): Also check the ftell result after
35772         fflush and fseek/fseeko.
35773         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35774         file descriptor position cache in the stream.
35775         * lib/fseeko.c (rpl_fseeko): Likewise.
35776
35777 2007-04-26  Bruno Haible  <bruno@clisp.org>
35778
35779         * modules/fflush-tests (Depends-on): Add fseeko.
35780
35781 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35782             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35783
35784         * lib/argz_.h: ensure error_t definition is obtained in same
35785         mechanism system argz.h would have.
35786         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35787         argz facilities are known bad.  Err on the side of caution if
35788         cross-compiling.
35789
35790 2007-04-25  Eric Blake  <ebb9@byu.net>
35791
35792         * lib/fpurge.c (includes): Use stdlib.h for free.
35793         * tests/test-fflush.c (main): Also test fflush-fseeko.
35794
35795 2007-04-25  Bruno Haible  <bruno@clisp.org>
35796
35797         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35798         * lib/fseeko.c: New file.
35799         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35800         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35801         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35802         gl_FUNC_FSEEKO.
35803         (gl_FUNC_FSEEKO): Invoke it.
35804         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35805         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35806         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35807
35808 2007-04-25  Bruno Haible  <bruno@clisp.org>
35809
35810         * modules/fflush (Depends-on): Add ftello.
35811
35812 2007-04-25  Bruno Haible  <bruno@clisp.org>
35813
35814         * modules/ftello-tests: New file.
35815         * tests/test-ftello.c: New file.
35816
35817         * modules/ftello: New file.
35818         * m4/ftello.m4: New file.
35819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35820         HAVE_FTELLO.
35821         * lib/stdio_.h (ftello): New declaration.
35822         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35823         HAVE_FTELLO.
35824
35825 2007-04-25  Bruno Haible  <bruno@clisp.org>
35826
35827         * modules/fseeko-tests: New file.
35828         * tests/test-fseeko.c: New file.
35829
35830         * modules/fseeko: New file.
35831         * m4/fseeko.m4: New file.
35832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35833         HAVE_FSEEKO.
35834         * lib/stdio_.h (fseeko): New declaration.
35835         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35836         HAVE_FSEEKO.
35837
35838 2007-04-25  Bruno Haible  <bruno@clisp.org>
35839
35840         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35841
35842 2007-04-25  Bruno Haible  <bruno@clisp.org>
35843
35844         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35845         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35846         * tests/test-unistd.c: Likewise.
35847         * tests/test-fcntl.c: Likewise.
35848
35849 2007-04-23  Eric Blake  <ebb9@byu.net>
35850
35851         * lib/fflush.c: Fix missing include.
35852         Reported by Bruno Haible.
35853
35854 2007-04-23  Bruno Haible  <bruno@clisp.org>
35855
35856         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35857         Reported by Eric Blake.
35858
35859 2007-04-23  Bruno Haible  <bruno@clisp.org>
35860
35861         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35862
35863 2007-04-23  Bruno Haible  <bruno@clisp.org>
35864
35865         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35866
35867 2007-04-23  Bruno Haible  <bruno@clisp.org>
35868
35869         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35870         Needed on HP-UX 11.
35871
35872 2007-04-16  Eric Blake  <ebb9@byu.net>
35873
35874         Make fflush rely on fpurge.
35875         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35876         open coding all variants.
35877         * modules/fflush (Depends-on): Add fpurge and unistd.
35878         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35879         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35880
35881         Fix --with-tests compilation on cygwin.
35882         * modules/argmatch-tests (Makefile.am): List gnulib library first
35883         in LDADD.
35884         * modules/argp-tests (Makefile.am): Likewise.
35885         * modules/array-list-tests (Makefile.am): Likewise.
35886         * modules/array-oset-tests (Makefile.am): Likewise.
35887         * modules/avltree-list-tests (Makefile.am): Likewise.
35888         * modules/avltree-oset-tests (Makefile.am): Likewise.
35889         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35890         * modules/carray-list-tests (Makefile.am): Likewise.
35891         * modules/dirname-tests (Makefile.am): Likewise.
35892         * modules/frexp-tests (Makefile.am): Likewise.
35893         * modules/isnanl-tests (Makefile.am): Likewise.
35894         * modules/linked-list-tests (Makefile.am): Likewise.
35895         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35896         * modules/lock-tests (Makefile.am): Likewise.
35897         * modules/rbtree-list-tests (Makefile.am): Likewise.
35898         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35899         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35900         * modules/tls-tests (Makefile.am): Likewise.
35901         * modules/tsearch-tests (Makefile.am): Likewise.
35902         * modules/xvasprintf-tests (Makefile.am): Likewise.
35903
35904         Fix fpurge for cygwin.
35905         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35906         value.
35907         * modules/fpurge-tests (Depends-on): Clean up trash.
35908
35909 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35910
35911         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35912
35913         * m4/autobuild.m4: Re-indent.
35914
35915 2007-04-13  Bruno Haible  <bruno@clisp.org>
35916
35917         * modules/fpurge-tests: New file.
35918         * tests/test-fpurge.c: New file.
35919
35920         * modules/fpurge: New file.
35921         * lib/fpurge.h: New file.
35922         * lib/fpurge.c: New file.
35923         * m4/fpurge.m4: New file.
35924
35925 2007-04-13  Bruno Haible  <bruno@clisp.org>
35926
35927         * modules/fbufmode-tests: New file.
35928         * tests/test-fbufmode.c: New file.
35929
35930         * modules/fbufmode: New file.
35931         * lib/fbufmode.h: New file.
35932         * lib/fbufmode.c: New file.
35933         * m4/fbufmode.m4: New file.
35934
35935 2007-04-13  Bruno Haible  <bruno@clisp.org>
35936
35937         * modules/fwritable-tests: New file.
35938         * tests/test-fwritable.c: New file.
35939
35940         * modules/fwritable: New file.
35941         * lib/fwritable.h: New file.
35942         * lib/fwritable.c: New file.
35943         * m4/fwritable.m4: New file.
35944
35945 2007-04-13  Bruno Haible  <bruno@clisp.org>
35946
35947         * modules/freadable-tests: New file.
35948         * tests/test-freadable.c: New file.
35949
35950         * modules/freadable: New file.
35951         * lib/freadable.h: New file.
35952         * lib/freadable.c: New file.
35953         * m4/freadable.m4: New file.
35954
35955 2007-04-13  Bruno Haible  <bruno@clisp.org>
35956
35957         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35958         MOSTLYCLEANFILES.
35959
35960 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35961
35962         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35963         gzip bootstrap.conf to avoid dragging in i18n machinery.
35964         (gnulib_tool_option): Use it.
35965
35966 2007-04-13  Bruno Haible  <bruno@clisp.org>
35967
35968         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35969         %F directives.
35970         * tests/test-vasprintf-posix.c (test_function): Likewise.
35971         * tests/test-snprintf-posix.h (test_function): Likewise.
35972         * tests/test-sprintf-posix.h (test_function): Likewise.
35973         * tests/test-fprintf-posix.h (test_function): Likewise.
35974         * tests/test-printf-posix.h (test_function): Likewise.
35975         * tests/test-fprintf-posix.out: Likewise.
35976
35977 2007-04-13  Bruno Haible  <bruno@clisp.org>
35978
35979         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35980         * modules/tls-tests (configure.ac): Likewise.
35981         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35982
35983 2007-04-13  Bruno Haible  <bruno@clisp.org>
35984
35985         * lib/tls.c (glthread_tls_get): Fix return type.
35986         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35987
35988 2007-04-12  Eric Blake  <ebb9@byu.net>
35989
35990         * modules/gettime (Depends-on): Remove gettime.
35991         Reported by Dmitry V. Levin.
35992
35993 2007-04-12  Bruno Haible  <bruno@clisp.org>
35994
35995         * modules/fflush (Include): Mention <stdio.h>.
35996         * modules/strtoimax (Include): Mention <inttypes.h>.
35997         * modules/strtoumax (Include): Likewise.
35998
35999 2007-04-12  Eric Blake  <ebb9@byu.net>
36000
36001         * .cvsignore: New file.
36002         * .gitignore: Likewise.
36003
36004 2007-04-12  Bruno Haible  <bruno@clisp.org>
36005
36006         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
36007         not before, since $(LDADD) often contains libgnu.a.
36008         * modules/striconv-tests (test_striconv_LDADD): Likewise.
36009         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
36010         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
36011         Needed on Cygwin.
36012
36013 2007-04-12  Eric Blake  <ebb9@byu.net>
36014
36015         Work around glibc's failure to flush stdin on fclose.
36016         * lib/closein.c (close_stdin): Flush stdin before closing.
36017
36018         Work around glibc's failure to reset seekable stdin on exit.
36019         * modules/closein: New module.
36020         * lib/closein.c: New file.
36021         * lib/closein.h: Likewise.
36022         * m4/closein.m4: Likewise.
36023         * MODULES.html.sh (File stream based Input/Output): Document it.
36024
36025 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36026
36027         * gnulib-tool: Rename generated 'autobuild' script to
36028         'do-autobuild' in --create-megatestdir output.
36029
36030         * doc/gnulib.texi (Build robot for gnulib): Fix.
36031
36032 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36033
36034         * modules/sysexits (Depends-on): Add absolute-header.
36035
36036 2007-04-12  Eric Blake  <ebb9@byu.net>
36037
36038         No need to preserve errno on success.
36039         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
36040         Reported by Bruno Haible.
36041
36042 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36043
36044         * MODULES.html.sh (Support for maintaining and releasing
36045         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
36046
36047 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36048
36049         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
36050
36051 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36052
36053         * modules/autobuild: New module.
36054
36055         * m4/autobuild.m4: New file.
36056
36057 2007-04-11  Bruno Haible  <bruno@clisp.org>
36058
36059         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
36060         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
36061         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
36062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
36063         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36064         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36065         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36067         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36068         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36069         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
36070         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36071         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36072         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
36073         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36074         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36075         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
36076         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36077         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36078         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
36079         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36080         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36081         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
36082         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36083         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36084         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
36085         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36086         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36087         Reported by Eric Blake.
36088
36089 2007-04-11  Bruno Haible  <bruno@clisp.org>
36090
36091         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
36092
36093 2007-04-10  Bruno Haible  <bruno@clisp.org>
36094
36095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
36096         for NaN and Infinity. Needed on FreeBSD 6.1.
36097         * tests/test-vasnprintf-posix.c (test_function): Undo last change
36098         regarding results for "%010a" of Infinity and NaN.
36099         * tests/test-vasprintf-posix.c (test_function): Likewise.
36100         * tests/test-snprintf-posix.h (test_function): Likewise.
36101         * tests/test-sprintf-posix.h (test_function): Likewise.
36102         * tests/test-fprintf-posix.h (test_function): Likewise.
36103         * tests/test-printf-posix.h (test_function): Likewise.
36104         * tests/test-fprintf-posix.out: Likewise.
36105
36106 2007-04-10  Bruno Haible  <bruno@clisp.org>
36107
36108         * modules/locale-tests: New file.
36109         * tests/test-locale.c: New file.
36110
36111         * modules/locale: New file.
36112         * lib/locale_.h: New file.
36113         * m4/locale_h.m4: New file.
36114
36115 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
36116             Bruno Haible  <bruno@clisp.org>
36117
36118         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
36119         be determined, test for availability of the copysignf, copysign,
36120         copysignl functions.
36121         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
36122         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
36123         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
36124
36125 2007-04-09  Eric Blake  <ebb9@byu.net>
36126
36127         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
36128         * modules/stdio (Makefile.am): Support fflush.
36129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36130         * modules/fflush: New file.
36131         * lib/fflush.c: Likewise.
36132         * m4/fflush.m4: Likewise.
36133         * modules/fflush-tests: New test.
36134         * tests/test-fflush.c: Likewise.
36135         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
36136
36137 2007-04-06  Bruno Haible  <bruno@clisp.org>
36138
36139         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
36140         (VASNPRINTF): Use signbit for faster determination whether to print a
36141         minus sign.
36142         * modules/vasnprintf (Files): Remove lib/float+.h.
36143         * modules/fprintf-posix (Depends-on): Add signbit.
36144         * modules/snprintf-posix (Depends-on): Likewise.
36145         * modules/sprintf-posix (Depends-on): Likewise.
36146         * modules/vasnprintf-posix (Depends-on): Likewise.
36147         * modules/vasprintf-posix (Depends-on): Likewise.
36148         * modules/vfprintf-posix (Depends-on): Likewise.
36149         * modules/vsnprintf-posix (Depends-on): Likewise.
36150         * modules/vsprintf-posix (Depends-on): Likewise.
36151
36152 2007-04-06  Bruno Haible  <bruno@clisp.org>
36153
36154         * tests/test-frexp.c (main): Test also the sign bit of zero results.
36155         * tests/test-frexpl.c (main): Likewise.
36156         * tests/test-ldexpl.c (main): Likewise.
36157         * modules/frexp-tests (Depends-on): Add signbit.
36158         * modules/frexpl-tests (Depdends-on): Likewise.
36159         * modules/ldexpl-tests (Depdends-on): Likewise.
36160
36161 2007-04-06  Bruno Haible  <bruno@clisp.org>
36162
36163         * modules/signbit-tests: New file.
36164         * tests/test-signbit.c: New file.
36165
36166         * modules/signbit: New file.
36167         * lib/signbitf.c: New file.
36168         * lib/signbitd.c: New file.
36169         * lib/signbitl.c: New file.
36170         * m4/signbit.m4: New file.
36171         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
36172         (signbit): New macro.
36173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
36174         REPLACE_SIGNBIT.
36175         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
36176         REPLACE_FREXPL into math.h.
36177
36178 2007-04-06  Bruno Haible  <bruno@clisp.org>
36179
36180         * modules/isnanf-nolibm-tests: New file.
36181         * tests/test-isnanf.c: New file.
36182
36183         * modules/isnanf-nolibm: New file.
36184         * lib/isnanf.h: New file.
36185         * lib/isnanf.c: New file.
36186         * lib/isnan.c: Consider the USE_FLOAT macro.
36187         * m4/isnanf.m4: New file.
36188
36189 2007-04-06  Bruno Haible  <bruno@clisp.org>
36190
36191         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36192         (Link): New section.
36193
36194         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36195
36196 2007-04-06  Bruno Haible  <bruno@clisp.org>
36197
36198         Assume the 'long double' type.
36199         * m4/longdouble.m4: Remove file.
36200         * config/srclist.txt: Don't mention longdouble.m4.
36201         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36202         * lib/float+.h: Likewise.
36203         * lib/frexp.c: Likewise.
36204         * lib/printf-args.h: Likewise.
36205         * lib/printf-args.c: Likewise.
36206         * lib/printf-frexp.c: Likewise.
36207         * lib/printf-parse.c: Likewise.
36208         * lib/vasnprintf.c: Likewise.
36209         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36210         * m4/intl.m4: Likewise.
36211         * m4/isnanl.m4: Likewise.
36212         * m4/printf.m4: Likewise.
36213         * m4/printf-frexpl.m4: Likewise.
36214         * m4/vasnprintf.m4: Likewise.
36215         * modules/allocsa (Files): Remove m4/longdouble.m4.
36216         * modules/gettext (Files): Likewise.
36217         * modules/relocatable-prog-wrapper (Files): Likewise.
36218         * modules/vasnprintf (Files): Likewise.
36219         * modules/isnanl (Files): Likewise.
36220         (Include): Simplify.
36221         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36222         (Include): Simplify.
36223         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36224         (Include): Simplify.
36225         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36226         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36227         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36228         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36229         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36230         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36231         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36232         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36233         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36234         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36235         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36236         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36237         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36238         * tests/test-isnanl.c: Likewise.
36239         * tests/test-snprintf-posix.h: Likewise.
36240         * tests/test-sprintf-posix.h: Likewise.
36241         * tests/test-vasnprintf-posix.c: Likewise.
36242         * tests/test-vasnprintf-posix2.c: Likewise.
36243         * tests/test-vasprintf-posix.c: Likewise.
36244
36245 2007-04-06  Bruno Haible  <bruno@clisp.org>
36246
36247         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36248         * lib/math_.h [__DECC]: Include the overridden include file through
36249         #include_next, outside the double-inclusion guard.
36250         * lib/stdio_.h [__DECC]: Likewise.
36251         * lib/stdlib_.h [__DECC]: Likewise.
36252         * lib/string_.h [__DECC]: Likewise.
36253         * lib/time_.h [__DECC]: Likewise.
36254         * lib/wchar_.h [__DECC]: Likewise.
36255         * lib/wctype_.h [__DECC]: Likewise.
36256         * lib/inttypes_.h [__DECC]: Likewise.
36257         Reported by Albert Chin <china@thewrittenword.com> in
36258         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36259
36260 2007-04-04  Eric Blake  <ebb9@byu.net>
36261
36262         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36263         1.5.x.
36264
36265 2007-04-04  Bruno Haible  <bruno@clisp.org>
36266
36267         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36268         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36269
36270 2007-04-04  Bruno Haible  <bruno@clisp.org>
36271
36272         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36273         results for "%010a" of Infinity and NaN.
36274         * tests/test-vasprintf-posix.c (test_function): Likewise.
36275         * tests/test-snprintf-posix.h (test_function): Likewise.
36276         * tests/test-sprintf-posix.h (test_function): Likewise.
36277         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36278         * tests/test-printf-posix.h (test_function): Likewise.
36279         * tests/test-fprintf-posix.out: Update.
36280         Needed for FreeBSD 6.1.
36281
36282 2007-04-04  Bruno Haible  <bruno@clisp.org>
36283
36284         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36285         directly used by the gnulib modules nor by gnulib-tool.
36286
36287 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36288
36289         * DEPENDENCIES: Give overall description of version dependency
36290         desirability.  Use more-typical names for apps.
36291         Add shell, coreutils, diffutils, grep, tar, gzip.
36292
36293 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36294
36295         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36296
36297 2007-04-04  Karl Berry  <karl@gnu.org>
36298
36299         * MODULES.html.sh (func_module): missing '.
36300
36301 2007-04-03  Bruno Haible  <bruno@clisp.org>
36302
36303         * modules/argmatch-tests (Makefile.am): New variable
36304         test_argmatch_LDADD.
36305         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36306         * modules/array-list-tests (Makefile.am): New variable
36307         test_array_list_LDADD.
36308         * modules/array-oset-tests (Makefile.am): New variable
36309         test_array_oset_LDADD.
36310         * modules/avltree-list-tests (Makefile.am): New variable
36311         test_avltree_list_LDADD.
36312         * modules/avltree-oset-tests (Makefile.am): New variable
36313         test_avltree_oset_LDADD.
36314         * modules/avltreehash-list-tests (Makefile.am): New variable
36315         test_avltreehash_list_LDADD.
36316         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36317         test_canonicalize_lgpl_LDADD.
36318         * modules/carray-list-tests (Makefile.am): New variable
36319         test_carray_list_LDADD.
36320         * modules/dirname-tests (Makefile.am): New variable
36321         test_dirname_LDADD.
36322         * modules/linked-list-tests (Makefile.am): New variable
36323         test_linked_list_LDADD.
36324         * modules/linkedhash-list-tests (Makefile.am): New variable
36325         test_linkedhash_list_LDADD.
36326         * modules/rbtree-list-tests (Makefile.am): New variable
36327         test_rbtree_list_LDADD.
36328         * modules/rbtree-oset-tests (Makefile.am): New variable
36329         test_rbtree_oset_LDADD.
36330         * modules/rbtreehash-list-tests (Makefile.am): New variable
36331         test_rbtreehash_list_LDADD.
36332         * modules/xvasprintf-tests (Makefile.am): New variable
36333         test_xvasprintf_LDADD.
36334         Reported by Eric Blake.
36335
36336 2007-04-03  Eric Blake  <ebb9@byu.net>
36337
36338         * DEPENDENCIES: Weaken m4 requirements.
36339
36340 2007-04-03  Bruno Haible  <bruno@clisp.org>
36341
36342         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36343         * modules/isnanl-tests (configure.ac): Likewise.
36344
36345 2007-04-03  Ben Pfaff  <blp@gnu.org>
36346
36347         * modules/iconv_open: Add $(srcdir)/ to source directory
36348         references in Makefile fragments that call gperf, to fix VPATH
36349         builds.
36350
36351 2007-04-03  Bruno Haible  <bruno@clisp.org>
36352
36353         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36354         * lib/ldexpl.c: Undo last change.
36355
36356 2007-04-03  Bruno Haible  <bruno@clisp.org>
36357
36358         * modules/printf-frexpl (Depends-on): Undo last change.
36359         (Files): Add m4/ldexpl.m4.
36360
36361 2007-04-03  Bruno Haible  <bruno@clisp.org>
36362
36363         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36364         * modules/isnanl (Link): New section.
36365
36366         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36367         * modules/frexp (Link): New section.
36368
36369         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36370         * modules/frexpl (Link): New section.
36371
36372         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36373         * modules/ldexpl (Link): New section.
36374
36375 2007-04-03  Bruno Haible  <bruno@clisp.org>
36376
36377         * modules/TEMPLATE-EXTENDED: New file.
36378         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36379
36380 2007-04-03  Bruno Haible  <bruno@clisp.org>
36381
36382         * DEPENDENCIES: New file.
36383         Suggested by Simon Josefsson.
36384
36385 2007-04-03  Bruno Haible  <bruno@clisp.org>
36386
36387         * doc/gnulib.texi: Escape @.
36388
36389 2007-04-03  James Youngman  <jay@gnu.org>
36390         and Paul Eggert  <eggert@cs.ucla.edu>
36391
36392         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36393         birthtime on all systems that have birthtime, not just those which
36394         use st_birthtimensec rather than st_birthtim.  Putting zero in
36395         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36396         that the birth time is not available for files on an NFS mount.
36397
36398 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36399
36400         * modules/memxor: Move back from crypto/, suggested by Bruno.
36401         * modules/crypto/hmac-sha1: Fix memxor dependency.
36402
36403         * modules/crypto/gc: Moved from ../.
36404
36405 2007-04-02  Eric Blake  <ebb9@byu.net>
36406
36407         * lib/ldexpl.c (includes): Avoid libm.
36408
36409         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36410
36411 2007-04-02  Bruno Haible  <bruno@clisp.org>
36412
36413         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36414         on IRIX.
36415
36416 2007-04-02  Bruno Haible  <bruno@clisp.org>
36417
36418         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36419         x86 or x86_64 platforms running MacOS X.
36420         Reported by Ryan Schmidt <@ryandesign.com>.
36421
36422 2007-04-02  Bruno Haible  <bruno@clisp.org>
36423
36424         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36425         i386.
36426
36427 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36428
36429         * modules/crypto/arcfour: Moved from ../.
36430         * modules/crypto/arcfour-tests: Moved from ../.
36431         * modules/crypto/arctwo: Moved from ../.
36432         * modules/crypto/arctwo-tests: Moved from ../.
36433         * modules/crypto/des: Moved from ../.
36434         * modules/crypto/des-tests: Moved from ../.
36435         * modules/crypto/gc-arcfour: Moved from ../.
36436         * modules/crypto/gc-arcfour-tests: Moved from ../.
36437         * modules/crypto/gc-arctwo: Moved from ../.
36438         * modules/crypto/gc-arctwo-tests: Moved from ../.
36439         * modules/crypto/gc-des: Moved from ../.
36440         * modules/crypto/gc-des-tests: Moved from ../.
36441         * modules/crypto/gc-hmac-md5: Moved from ../.
36442         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36443         * modules/crypto/gc-hmac-sha1: Moved from ../.
36444         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36445         * modules/crypto/gc-md2: Moved from ../.
36446         * modules/crypto/gc-md2-tests: Moved from ../.
36447         * modules/crypto/gc-md4: Moved from ../.
36448         * modules/crypto/gc-md4-tests: Moved from ../.
36449         * modules/crypto/gc-md5: Moved from ../.
36450         * modules/crypto/gc-md5-tests: Moved from ../.
36451         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36452         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36453         * modules/crypto/gc-random: Moved from ../.
36454         * modules/crypto/gc-rijndael: Moved from ../.
36455         * modules/crypto/gc-rijndael-tests: Moved from ../.
36456         * modules/crypto/gc-sha1: Moved from ../.
36457         * modules/crypto/gc-sha1-tests: Moved from ../.
36458         * modules/crypto/gc-tests: Moved from ../.
36459         * modules/crypto/hmac-md5: Moved from ../.
36460         * modules/crypto/hmac-md5-tests: Moved from ../.
36461         * modules/crypto/hmac-sha1: Moved from ../.
36462         * modules/crypto/hmac-sha1-tests: Moved from ../.
36463         * modules/crypto/md2: Moved from ../.
36464         * modules/crypto/md2-tests: Moved from ../.
36465         * modules/crypto/md4: Moved from ../.
36466         * modules/crypto/md4-tests: Moved from ../.
36467         * modules/crypto/md5: Moved from ../.
36468         * modules/crypto/md5-tests: Moved from ../.
36469         * modules/crypto/memxor: Moved from ../.
36470         * modules/crypto/rijndael: Moved from ../.
36471         * modules/crypto/rijndael-tests: Moved from ../.
36472         * modules/crypto/sha1: Moved from ../.
36473
36474 2007-03-30  James Youngman  <jay@gnu.org>
36475
36476         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36477         rename() to change the ctime of a file (because ctime is unaffected
36478         by rename on jfs2 on AIX 5.1).
36479         (main): Start by doing cleanup, in case a previous run failed leaving
36480         test files behind.
36481
36482 2007-03-31  Bruno Haible  <bruno@clisp.org>
36483
36484         Support old proprietary implementations of iconv.
36485         * modules/iconv_open: New file.
36486         * lib/iconv_.h: New file.
36487         * m4/iconv_h.m4: New file.
36488         * lib/iconv_open.c: New file.
36489         * lib/iconv_open-aix.gperf: New file.
36490         * lib/iconv_open-hpux.gperf: New file.
36491         * lib/iconv_open-irix.gperf: New file.
36492         * lib/iconv_open-osf.gperf: New file.
36493         * m4/iconv_open.m4: New file.
36494         * modules/linebreak (Depends-on): Add iconv_open.
36495         * modules/striconv (Depends-on): Likewise.
36496         * modules/striconveh (Depends-on): Likewise.
36497         * modules/unicodeio (Depends-on): Likewise.
36498         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36499         (iconv_t)(-1).
36500         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36501         conversion if cd is (iconv_t)(-1).
36502         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36503         is not possible.
36504
36505 2007-03-31  Bruno Haible  <bruno@clisp.org>
36506
36507         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36508         work on Solaris either. Protect also second use of "autodetect_jp".
36509
36510 2007-03-31  Bruno Haible  <bruno@clisp.org>
36511
36512         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36513         the function is not present.
36514
36515 2007-03-31  Bruno Haible  <bruno@clisp.org>
36516
36517         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36518         the function is not present.
36519
36520 2007-03-31  Bruno Haible  <bruno@clisp.org>
36521
36522         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36523         a bug in HP-UX iconv_open().
36524
36525 2007-03-31  Bruno Haible  <bruno@clisp.org>
36526
36527         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36528         (Mathematics <math.h>): New section, add fpieee.
36529         (Input/output <stdio.h>): Add fseterr.
36530         (Mathematics <math.h>): New section, add printf-frexp.
36531         (Container data structures): Add sublist.
36532         (Core language properties): Add fpucw, inline.
36533         (Functions for greatest-width integer types <inttypes.h>): Add
36534         imaxabs, imaxdiv, inttypes.
36535         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36536         isnanl-nolibm, ldexp.
36537         (Mathematics <math.h>): New section, add printf-frexpl.
36538         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36539         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36540         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36541         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36542         (Unicode string functions): Add unistr/u*-mbtoucr.
36543         (Java): Add javacomp-script, javaexec-script.
36544         (C#): Add csharpcomp-script, csharpexec-script.
36545         (Support for building libraries and executables): Add havelib,
36546         relocatable-*.
36547         (Support for maintaining and releasing projects): Renamed from
36548         'Support for maintaining and release projects'. Add announce-gen.
36549
36550 2007-03-31  Bruno Haible  <bruno@clisp.org>
36551
36552         * README: Talk primarily about git.
36553         (git and CVS): Renamed from CVS.
36554         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36555         gnulib is available through git.
36556         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36557
36558 2007-03-30  Bruno Haible  <bruno@clisp.org>
36559
36560         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36561         * lib/poll_.h: Likewise.
36562         * lib/stat_.h: Likewise.
36563         * lib/sys_time_.h: Likewise.
36564         * lib/sysexit_.h: Likewise.
36565         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36566         * lib/stdbool_.h: Likewise.
36567         * lib/byteswap_.h: Add double-inclusion guard.
36568
36569 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36570
36571         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36572
36573 2007-03-30  Karl Berry  <karl@gnu.org>
36574
36575         * config/srclist-update: double space after USA in the license
36576         substitution, since that's how it's usually (?) written.
36577
36578 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36579
36580         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36581         reported by Bruno Haible.
36582
36583 2007-03-29  Bruno Haible  <bruno@clisp.org>
36584
36585         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36586         a bug in AIX iconv().
36587
36588 2007-03-29  Bruno Haible  <bruno@clisp.org>
36589
36590         * modules/ldexpl-tests: New file.
36591         * tests/test-ldexpl.c: New file.
36592
36593 2007-03-29  Bruno Haible  <bruno@clisp.org>
36594
36595         * lib/ldexpl.c: Include fpucw.h.
36596         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36597         multiplication.
36598         * modules/ldexpl (Depends-on): Add fpucw.
36599
36600 2007-03-29  Bruno Haible  <bruno@clisp.org>
36601
36602         * modules/ldexpl: New file.
36603         * m4/ldexpl.m4: New file.
36604         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36605         set.
36606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36607         REPLACE_LDEXPL.
36608         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36609         REPLACE_LDEXPL.
36610         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36611         gl_FUNC_LDEXPL_WORKS.
36612         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36613         * modules/mathl (Files): Remove lib/ldexpl.c.
36614         (Depends-on): Add ldexpl.
36615
36616 2007-03-29  Bruno Haible  <bruno@clisp.org>
36617
36618         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36619
36620 2007-03-29  Bruno Haible  <bruno@clisp.org>
36621
36622         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36623         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36624         and possibly also HP-UX.
36625         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36626         work on AIX, IRIX, HP-UX, OSF/1.
36627         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36628         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36629         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36630         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36631         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36632         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36633
36634 2007-03-29  Bruno Haible  <bruno@clisp.org>
36635
36636         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36637
36638 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36639
36640         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36641         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36642
36643 2007-03-29  Eric Blake  <ebb9@byu.net>
36644
36645         * lib/acl-internal.h: Remove redundant include.
36646         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36647         Cygwin when a file is locked.
36648
36649 2007-03-29  Bruno Haible  <bruno@clisp.org>
36650
36651         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36652         file.
36653         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36654
36655 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36656
36657         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36658         try to remove a parent directory if the child couldn't be removed
36659         (except for the first rmdir, which could fail because the child
36660         doesn't exist).  Problem reported by Jeff Blaine in
36661         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36662
36663 2007-03-28  Bruno Haible  <bruno@clisp.org>
36664
36665         * lib/striconveh.c (utf8conv_carefully): New function.
36666         (mem_cd_iconveh_internal): Invoke it.
36667
36668 2007-03-28  Bruno Haible  <bruno@clisp.org>
36669
36670         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36671         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36672         input.
36673         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36674         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36675         unistr/u8-uctomb.
36676
36677 2007-03-28  Bruno Haible  <bruno@clisp.org>
36678
36679         * modules/unistr/u8-mbtoucr: New file.
36680         * lib/unistr/u8-mbtoucr.c: New file.
36681         * modules/unistr/u16-mbtoucr: New file.
36682         * lib/unistr/u16-mbtoucr.c: New file.
36683         * modules/unistr/u16-mbtoucr: New file.
36684         * lib/unistr/u16-mbtoucr.c: New file.
36685         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36686
36687 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36688             Bruno Haible  <bruno@clisp.org>
36689
36690         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36691         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36692         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36693
36694         * m4/stdio_h.m4: Add stubs for vasprintf too.
36695
36696         * modules/stdio: Support vasprintf in sed command.
36697
36698         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36699         vasprintf.h.  Add stdio module indicator.
36700
36701         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36702         vasprintf.h.
36703
36704         * lib/vasprintf.h: File removed.
36705
36706         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36707         * lib/vasprintf.c: Ditto.
36708         * lib/xvasprintf.c: Ditto.
36709         * tests/test-vasprintf-posix.c: Ditto.
36710         * tests/test-vasprintf.c: Ditto.
36711
36712 2007-03-27  Bruno Haible  <bruno@clisp.org>
36713
36714         Make vasnprintf multithread-safe.
36715         * lib/vasnprintf.c (decimal_point_char): New function.
36716         (VASNPRINTF): Use it.
36717         Suggested by Simon Josefsson.
36718
36719 2007-03-27  Eric Blake  <ebb9@byu.net>
36720
36721         Support sub-second birthtime on cygwin.
36722         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36723         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36724         (get_stat_birthtime): Also work with st_birthtim.
36725
36726 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36727
36728         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36729         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36730         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36731         (get_stat_birthtime_ns): Simplify compile-time tests.
36732         (get_stat_birthtime): Change the API to look like
36733         get_stat_mtime etc., except return a negative tv_nsec on error.
36734         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36735         Don't check for "spare" fields.
36736         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36737         or for struct stat.st_birthtime, as these tests aren't used.
36738         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36739
36740 2007-03-27  Bruno Haible  <bruno@clisp.org>
36741
36742         * lib/stat-time.h: Include <sys/stat.h>.
36743
36744 2007-03-27  James Youngman  <jay@gnu.org>
36745
36746         * lib/stat-time.h (get_stat_birthtime): New function for
36747           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36748         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36749           and its variants.
36750         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36751         * modules/stat-time-test: New file.
36752         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36753
36754 2007-03-26  Bruno Haible  <bruno@clisp.org>
36755
36756         Better support of signalling NaNs.
36757         * lib/atanl.c: Include isnanl.h.
36758         (atanl): Perform test for NaN at the beginning of the function and
36759         through a call to isnanl.
36760         * lib/cosl.c: Include isnanl.h.
36761         (cosl): Perform test for NaN at the beginning of the function and
36762         through a call to isnanl.
36763         * lib/ldexpl.c: Include isnanl.h.
36764         (ldexpl): Perform test for NaN through a call to isnanl.
36765         * lib/logl.c: Include isnanl.h.
36766         (logl): Perform test for NaN at the beginning of the function and
36767         through a call to isnanl.
36768         * lib/sinl.c: Include isnanl.h.
36769         (sinl): Perform test for NaN at the beginning of the function and
36770         through a call to isnanl.
36771         * lib/sqrtl.c: Include isnanl.h.
36772         (sqrtl): Perform test for NaN at the beginning of the function and
36773         through a call to isnanl.
36774         * lib/tanl.c: Include isnanl.h.
36775         (tanl): Perform test for NaN at the beginning of the function and
36776         through a call to isnanl.
36777         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36778         * modules/mathl (Depends-on): Add isnanl.
36779
36780 2007-03-26  Eric Blake  <ebb9@byu.net>
36781
36782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36783         regression in logic sense of previous patch.
36784
36785 2007-03-26  Bruno Haible  <bruno@clisp.org>
36786
36787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36788         unportable shell command "if ! ...".
36789         Reported by Ralf Wildenhues.
36790
36791 2007-03-25  Bruno Haible  <bruno@clisp.org>
36792
36793         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36794         <sysexits.h> file, and only add EX_CONFIG.
36795         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36796         absolute file name and whether it is sufficient. Substitute also
36797         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36798         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36799         ABSOLUTE_SYSEXITS_H into sysexits.h.
36800
36801 2007-03-25  Bruno Haible  <bruno@clisp.org>
36802
36803         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36804         hints is NULL.
36805
36806 2007-03-25  Bruno Haible  <bruno@clisp.org>
36807
36808         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36809         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36810
36811 2007-03-25  Bruno Haible  <bruno@clisp.org>
36812
36813         * lib/vasnprintf.c: Include langinfo.h.
36814         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36815         multithread-safe.
36816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36817         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36822         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36825         Reported by Simon Josefsson.
36826
36827 2007-03-25  Bruno Haible  <bruno@clisp.org>
36828
36829         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36830         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36831         * modules/vasnprintf (Depends-on): Add stdint.
36832
36833 2007-03-25  Bruno Haible  <bruno@clisp.org>
36834
36835         * modules/fpieee: New file.
36836         * m4/fpieee.m4: New file.
36837         * modules/isnan-nolibm (Depends-on): Add fpieee.
36838         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36839         * modules/isnanl (Depends-on): Add fpieee.
36840
36841 2007-03-25  Bruno Haible  <bruno@clisp.org>
36842
36843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36844
36845 2007-03-25  Bruno Haible  <bruno@clisp.org>
36846
36847         Avoid test failures on IRIX 6.5.
36848         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36849         (main): Use it.
36850         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36851         macros.
36852         (main): Use them.
36853
36854 2007-03-25  Bruno Haible  <bruno@clisp.org>
36855
36856         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36857         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36858         exists but doesn't work.
36859         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36860         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36862         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36863
36864 2007-03-25  Bruno Haible  <bruno@clisp.org>
36865
36866         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36867         returns inf. Needed on IRIX 6.5.
36868
36869 2007-03-25  Bruno Haible  <bruno@clisp.org>
36870
36871         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36872         (main): Use isnanl instead of x != x idiom.
36873         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36874
36875         * tests/test-frexp.c: Include isnan.h.
36876         (main): Use isnan instead of x != x idiom.
36877         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36878
36879 2007-03-25  Bruno Haible  <bruno@clisp.org>
36880
36881         * tests/test-frexp.c (NaN): New function/macro.
36882         (main): Use it instead of 0.0 / 0.0.
36883         * tests/test-isnan.c (NaN): New function/macro.
36884         (main): Use it instead of 0.0 / 0.0.
36885         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36886         (test_function): Use it instead of 0.0 / 0.0.
36887         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36888         (test_function): Use it instead of 0.0 / 0.0.
36889         * tests/test-snprintf-posix.h (NaN): New function/macro.
36890         (test_function): Use it instead of 0.0 / 0.0.
36891         * tests/test-sprintf-posix.h (NaN): New function/macro.
36892         (test_function): Use it instead of 0.0 / 0.0.
36893         * tests/test-fprintf-posix.h (NaN): New function/macro.
36894         (test_function): Use it instead of 0.0 / 0.0.
36895         * tests/test-printf-posix.h (NaN): New function/macro.
36896         (test_function): Use it instead of 0.0 / 0.0.
36897
36898         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36899
36900 2007-03-25  Bruno Haible  <bruno@clisp.org>
36901
36902         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36903
36904 2007-03-25  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/regexec.c (merge_state_with_log): Make static.
36907
36908 2007-03-25  Bruno Haible  <bruno@clisp.org>
36909
36910         * lib/trigl.c (kernel_rem_pio2): Make static.
36911
36912 2007-03-25  Bruno Haible  <bruno@clisp.org>
36913
36914         * lib/sincosl.c (sincosl_table): Make static.
36915
36916 2007-03-25  Bruno Haible  <bruno@clisp.org>
36917
36918         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36919         if the compiler does not support C99.
36920
36921 2007-03-25  Bruno Haible  <bruno@clisp.org>
36922
36923         * modules/time (Makefile.am): Ensure all rule action lines start with a
36924         tab.
36925
36926 2007-03-24  Bruno Haible  <bruno@clisp.org>
36927
36928         * modules/tsearch-tests: New file.
36929         * tests/test-tsearch.sh: New file.
36930         * tests/test-tsearch.c: New file, mostly copied from glibc.
36931
36932         * modules/search-tests: New file.
36933         * tests/test-search.c: New file.
36934
36935         * modules/search: New file.
36936         * lib/search_.h: New file, incorporating lib/tsearch.h.
36937         * m4/search_h.m4: New file.
36938         * lib/tsearch.h: Remove file.
36939         * lib/tsearch.c: Include search.h instead of tsearch.h.
36940         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36941         HAVE_TSEARCH.
36942         * modules/tsearch (Files): Remove lib/tsearch.h.
36943         (Depends-on): Add search.
36944         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36945         (Include): Change tsearch.h into search.h.
36946
36947 2007-03-24  Bruno Haible  <bruno@clisp.org>
36948
36949         * modules/fpucw: New file.
36950         * lib/fpucw.h: New file.
36951         * lib/frexp.c: Include fpucw.h.
36952         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36953         (FUNC): Use them.
36954         * lib/printf-frexp.c: Include fpucw.h.
36955         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36956         (FUNC): Use them.
36957         * lib/vasnprintf.c: Include fpucw.h.
36958         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36959         'long double' calculations.
36960         * tests/test-frexpl.c: Include fpucw.h.
36961         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36962         * tests/test-printf-frexpl.c: Include fpucw.h.
36963         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36964         * modules/frexpl (Depends-on): Add fpucw.
36965         * modules/printf-frexpl (Depends-on): Likewise.
36966         * modules/fprintf-posix (Depends-on): Likewise.
36967         * modules/snprintf-posix (Depends-on): Likewise.
36968         * modules/sprintf-posix (Depends-on): Likewise.
36969         * modules/vasnprintf-posix (Depends-on): Likewise.
36970         * modules/vasprintf-posix (Depends-on): Likewise.
36971         * modules/vfprintf-posix (Depends-on): Likewise.
36972         * modules/vsnprintf-posix (Depends-on): Likewise.
36973         * modules/vsprintf-posix (Depends-on): Likewise.
36974         * modules/frexpl-tests (Depends-on): Likewise.
36975         * modules/printf-frexpl-tests (Depends-on): Likewise.
36976
36977 2007-03-24  Bruno Haible  <bruno@clisp.org>
36978
36979         * lib/float+.h: New file.
36980         * lib/isnan.c: Include float+.h.
36981         (SIZE): New macro.
36982         (FUNC): Compare only SIZE bytes of the value.
36983         * lib/vasnprintf.c: Include float+.h.
36984         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36985         SIZEOF_LDBL or SIZEOF_DBL bytes.
36986         * modules/isnan-nolibm (Files): Add lib/float+.h.
36987         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36988         * modules/isnanl (Files): Add lib/float+.h.
36989         * modules/vasnprintf (Files): Add lib/float+.h.
36990
36991 2007-03-24  Bruno Haible  <bruno@clisp.org>
36992
36993         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36994         include isnanl-nolibm.h.
36995
36996 2007-03-24  Bruno Haible  <bruno@clisp.org>
36997
36998         * tests/test-read-file.c (main): Don't produce spurious output for
36999         expected situations. Make the test fail if it encountered unexpected
37000         results.
37001
37002 2007-03-24  Bruno Haible  <bruno@clisp.org>
37003
37004         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
37005         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
37006
37007 2007-03-24  Bruno Haible  <bruno@clisp.org>
37008
37009         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
37010
37011 2007-03-24  Bruno Haible  <bruno@clisp.org>
37012
37013         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
37014         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
37015
37016         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
37017         * modules/utf8-ucs4: Turn into a symbolic link to module
37018         unistr/u8-mbtouc.
37019
37020         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
37021         utf8-ucs4-unsafe.
37022         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
37023         unistr/u8-mbtouc-unsafe.
37024
37025         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
37026         * modules/utf16-ucs4: Turn into a symbolic link to module
37027         unistr/u16-mbtouc.
37028
37029         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
37030         utf16-ucs4-unsafe.
37031         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
37032         unistr/u16-mbtouc-unsafe.
37033
37034         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
37035         * modules/ucs4-utf8: Turn into a symbolic link to module
37036         unistr/u8-ubtomb.
37037
37038         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
37039         * modules/ucs4-utf16: Turn into a symbolic link to module
37040         unistr/u16-ubtomb.
37041
37042 2007-03-24  Bruno Haible  <bruno@clisp.org>
37043
37044         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
37045         Enable the function only if HAVE_INLINE.
37046         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
37047         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37048         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
37049         Enable the function only if HAVE_INLINE.
37050         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
37051         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37052         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
37053         Enable the function only if HAVE_INLINE.
37054         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
37055         Enable the function only if HAVE_INLINE.
37056         * modules/utf8-ucs4: Update.
37057         * modules/utf8-ucs4-unsafe: Update.
37058         * modules/utf16-ucs4: Update.
37059         * modules/utf16-ucs4-unsafe: Update.
37060         * modules/ucs4-utf8: Update.
37061         * modules/ucs4-utf16: Update.
37062
37063 2007-03-24  Bruno Haible  <bruno@clisp.org>
37064
37065         * lib/utf8-ucs4.h: Remove file.
37066         * lib/utf8-ucs4-unsafe.h: Remove file.
37067         * lib/utf16-ucs4.h: Remove file.
37068         * lib/utf16-ucs4-unsafe.h: Remove file.
37069         * lib/ucs4-utf8.h: Remove file.
37070         * lib/ucs4-utf16.h: Remove file.
37071         * lib/unistr.h: Include their previous contents.
37072         * m4/utf-ucs4.m4: Remove file.
37073         * m4/ucs4-utf.m4: Remove file.
37074         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
37075         (Depends-on): Add unistr/base.
37076         (configure.ac): Remove gl_UTF_UCS4.
37077         (Makefile.am): Update.
37078         (Include): Change to unistr.h.
37079         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
37080         (Depends-on): Add unistr/base.
37081         (configure.ac): Remove gl_UTF_UCS4.
37082         (Makefile.am): Update.
37083         (Include): Change to unistr.h.
37084         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
37085         (Depends-on): Add unistr/base.
37086         (configure.ac): Remove gl_UTF_UCS4.
37087         (Makefile.am): Update.
37088         (Include): Change to unistr.h.
37089         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
37090         (Depends-on): Add unistr/base.
37091         (configure.ac): Remove gl_UTF_UCS4.
37092         (Makefile.am): Update.
37093         (Include): Change to unistr.h.
37094         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
37095         (Depends-on): Add unistr/base.
37096         (configure.ac): Remove gl_UCS4_UTF.
37097         (Makefile.am): Update.
37098         (Include): Change to unistr.h.
37099         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
37100         (Depends-on): Add unistr/base.
37101         (configure.ac): Remove gl_UCS4_UTF.
37102         (Makefile.am): Update.
37103         (Include): Change to unistr.h.
37104         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
37105         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
37106         utf8-ucs4-unsafe.h.
37107         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
37108         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
37109         utf16-ucs4-unsafe.h.
37110         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
37111         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
37112         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
37113         * lib/unistr/u8-strchr.c: Likewise.
37114         * lib/unistr/u8-strrchr.c: Likewise.
37115         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
37116         * lib/unistr/u16-strchr.c: Likewise.
37117         * lib/unistr/u16-strrchr.c: Likewise.
37118         * lib/striconveh.c: Update.
37119         * lib/linebreak.c: Update.
37120
37121 2007-03-24  Bruno Haible  <bruno@clisp.org>
37122
37123         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
37124         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
37125
37126 2007-03-22  Bruno Haible  <bruno@clisp.org>
37127
37128         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
37129
37130 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37131
37132         * MODULES.html.sh (File system functions): New module write-any-file.
37133         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
37134         * m4/write-any-file.m4: New files.
37135
37136 2007-03-23  Eric Blake  <ebb9@byu.net>
37137
37138         * gnulib-tool: Rearrange space-tab sequences, since some editors
37139         like to eat them.
37140
37141 2007-03-23  Eric Blake  <ebb9@byu.net>
37142
37143         * lib/version-etc.c (version_etc_va): Update license wording to
37144         be more concise.  Recommended by Richard Stallman.
37145
37146 2007-03-22  Bruno Haible  <bruno@clisp.org>
37147
37148         * lib/poll.c (MSG_PEEK): New fallback definition.
37149
37150 2007-03-22  Bruno Haible  <bruno@clisp.org>
37151
37152         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
37153         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
37154         (main): Update.
37155         Fixes a compilation error on BeOS.
37156
37157 2007-03-22  Bruno Haible  <bruno@clisp.org>
37158
37159         * modules/frexpl-tests: New file.
37160         * tests/test-frexpl.c: New file.
37161
37162         * modules/frexpl: New file.
37163         * m4/frexpl.m4: New file.
37164         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
37165         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
37166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
37167         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
37168         (Depends-on): Add frexpl. Remove isnanl-nolibm.
37169         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
37170
37171 2007-03-22  Bruno Haible  <bruno@clisp.org>
37172
37173         * lib/frexpl.c: Share code with lib/frexp.c.
37174         * modules/mathl (Files): Add lib/frexp.c.
37175         (Depends-on): Add isnanl-nolibm.
37176
37177 2007-03-22  Bruno Haible  <bruno@clisp.org>
37178
37179         * modules/printf-frexp (Files): Add m4/frexp.m4.
37180         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37181         only if the found frexp function actually works.
37182
37183 2007-03-22  Bruno Haible  <bruno@clisp.org>
37184
37185         * lib/frexp.c: Remove older implementation that uses divisions.
37186
37187 2007-03-21  Bruno Haible  <bruno@clisp.org>
37188
37189         * modules/frexp-tests: New file.
37190         * tests/test-frexp.c: New file.
37191
37192         * modules/frexp: New file.
37193         * lib/frexp.c: New file.
37194         * m4/frexp.m4: New file.
37195         * lib/math_.h (frexp): New declaration.
37196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37197         REPLACE_FREXP.
37198         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37199
37200 2007-03-21  Bruno Haible  <bruno@clisp.org>
37201
37202         * modules/isnanl-tests: New file.
37203         * tests/test-isnanl.c: New file.
37204
37205         * modules/isnanl: New file.
37206         * lib/isnanl.h: New file.
37207         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37208         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37209         gl_FUNC_ISNANL_WORKS.
37210         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37211         New macros.
37212
37213 2007-03-21  Bruno Haible  <bruno@clisp.org>
37214
37215         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37216         lib/isnanl.h.
37217         (Include): Update.
37218         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37219         * lib/vasnprintf.c: Update.
37220         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37221         tests/test-isnanl.h, remove tests/test-isnanl.c.
37222         (Makefile.am): Update.
37223         * tests/test-isnanl-nolibm.c: New file.
37224         * tests/test-isnanl.h: New file.
37225         * tests/test-isnanl.c: Remove file.
37226
37227 2007-03-21  Jim Meyering  <jim@meyering.net>
37228
37229         When trying to open ".", treat ESTALE like EACCES.
37230         * lib/savewd.c (savewd_save): Resort to forking not just upon
37231         failure with EACCES, but also when errno is ESTALE.
37232
37233 2007-03-20  Bruno Haible  <bruno@clisp.org>
37234
37235         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37236         Needed on AIX 5.1. Reported by Matthew Woehlke.
37237
37238 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37239
37240         Suggestions by Bruno Haible:
37241         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37242         our own.
37243         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37244         * modules/acl (Depends-on): Add gettext.
37245
37246 2007-03-19  Bruno Haible  <bruno@clisp.org>
37247
37248         * modules/iconvme: Remove file.
37249         * lib/iconvme.h: Remove file.
37250         * lib/iconvme.c: Remove file.
37251         * m4/iconvme.m4: Remove file.
37252
37253 2007-03-19  Bruno Haible  <bruno@clisp.org>
37254
37255         * doc/relocatable-maint.texi: Break long shell script line.
37256         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37257
37258 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37259
37260         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37261         handle file_has_acl.
37262         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37263         * lib/acl.c: Move header inclusions and related macro defns into
37264         lib/acl-internal.h.
37265         (S_ISLNK): Remove defn, since that's now done for us.
37266         (file_has_acl): Move to lib/file-has-acl.c.
37267         Call acl_trivial if available.  This is the crucial part of the fix.
37268         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37269         shared within the library.  Rewrite a bit, partly to make it compatible
37270         with the GNU coding style.
37271         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37272         Remove unnecessary double-quotes.
37273         Don't test for acl_to_text; the build will catch that.
37274         Replace acl_entries if it doesn't exist and it is needed.
37275         Check for -lsec and acl_trivial (as used on Solaris 10).
37276         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37277         lib/file-has-acl.c.
37278         (Depends-on): Add sys_stat, for S_ISLNK.
37279
37280 2007-03-19  Ben Pfaff  <blp@gnu.org>
37281
37282         * doc/gnulib.texi: Fix typos.
37283         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37284
37285 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37286
37287         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37288         If size is zero here, buf must be zero.
37289
37290 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37291
37292         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37293         <bruno@clisp.org>.
37294
37295 2007-03-18  Bruno Haible  <bruno@clisp.org>
37296
37297         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37298         Suggested by Eric Blake.
37299
37300 2007-03-18  Ben Pfaff  <blp@gnu.org>
37301
37302         * doc/relocatable.texi: Recommend using as prefix a directory
37303         that does not exist and will never be created.  Based on
37304         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37305         and others.
37306
37307 2007-03-17  Bruno Haible  <bruno@clisp.org>
37308
37309         * lib/fchownat.c: Include lchown.h.
37310
37311 2007-03-17  Bruno Haible  <bruno@clisp.org>
37312
37313         Fix endless loop when the given allocated size was > INT_MAX.
37314         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37315         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37316         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37317         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37318         * lib/sprintf.c (sprintf): Likewise.
37319
37320 2007-03-17  Bruno Haible  <bruno@clisp.org>
37321
37322         * tests/test-argp-2.sh (func_compare): Output a context diff.
37323
37324 2007-03-17  Bruno Haible  <bruno@clisp.org>
37325
37326         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37327         locale's decimal-point character.
37328
37329 2007-03-17  Bruno Haible  <bruno@clisp.org>
37330
37331         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37332         before comparing it. Needed because on some platforms (e.g. x86) a
37333         'long double' occupies less bytes than sizeof (long double).
37334
37335 2007-03-17  Bruno Haible  <bruno@clisp.org>
37336
37337         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37338         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37339         * tests/test-getaddrinfo.c (simple): Likewise.
37340         * tests/test-read-file.c (main): Likewise.
37341
37342 2007-03-17  Bruno Haible  <bruno@clisp.org>
37343
37344         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37345
37346 2007-03-17  Bruno Haible  <bruno@clisp.org>
37347
37348         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37349         unused variable.
37350
37351 2007-03-17  Bruno Haible  <bruno@clisp.org>
37352
37353         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37354         * tests/test-c-strncasecmp.c: Likewise.
37355
37356 2007-03-17  Bruno Haible  <bruno@clisp.org>
37357
37358         * modules/stdlib (Depends-on): Add unistd.
37359         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37360         Needed for MacOS X 10.3.
37361
37362 2007-03-17  Bruno Haible  <bruno@clisp.org>
37363
37364         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37365
37366 2007-03-17  Bruno Haible  <bruno@clisp.org>
37367
37368         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37369
37370 2007-03-17  Bruno Haible  <bruno@clisp.org>
37371
37372         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37373         to reflect files copied from gnulib (with or without modifications).
37374         Suggested by Jim Meyering.
37375
37376 2007-03-17  Eric Blake  <ebb9@byu.net>
37377
37378         * NEWS: Document stdlib change from 2007-02-18.
37379
37380 2007-03-17  Jim Meyering  <jim@meyering.net>
37381
37382         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37383         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37384         someone uses a name containing shell meta-characters.
37385         Reported by Alfred M. Szmidt.
37386
37387         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37388
37389 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37390
37391         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37392         and copy gettext configuration files only if configure.ac contains
37393         a use of AM_GNU_GETTEXT_VERSION.
37394
37395 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37396
37397         * build-aux/bootstrap (gnulib_name): New variable.
37398         (gnulib_tool_options): Use it.
37399
37400 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37401
37402         * tests/test-des.c: Use new namespace.
37403
37404 2007-03-15  Bruno Haible  <bruno@clisp.org>
37405
37406         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37407         Reported by James Youngman <jay@gnu.org>.
37408
37409 2007-03-15  Bruno Haible  <bruno@clisp.org>
37410
37411         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37412         declared prototype. Needed with cc on OSF/1 5.1.
37413
37414 2007-03-15  Bruno Haible  <bruno@clisp.org>
37415
37416         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37417         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37418         (struct gl_list_implementation): Add dispose_fn argument to the
37419         'create_empty', 'create' methods.
37420         (struct gl_list_impl_base): Add field 'dispose_fn'.
37421         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37422         argument.
37423         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37424         dispose_fn argument.
37425         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37426         dispose_fn on the dropped values.
37427         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37428         dispose_fn argument.
37429         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37430         dropped values.
37431         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37432         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37433         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37434         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37435         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37436         argument.
37437         (gl_tree_list_free): Call dispose_fn on the dropped values.
37438         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37439         the dropped values.
37440         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37441         Add dispose_fn argument.
37442         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37443         Call dispose_fn on the dropped values.
37444         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37445         Add dispose_fn argument.
37446         (gl_sublist_create): Initialize the 'dispose_fn' field.
37447         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37448         * tests/test-array_list.c (main): Update.
37449         * tests/test-carray_list.c (main): Update.
37450         * tests/test-avltree_list.c (main): Update.
37451         * tests/test-rbtree_list.c (main): Update.
37452         * tests/test-avltreehash_list.c (main): Update.
37453         * tests/test-rbtreehash_list.c (main): Update.
37454         * tests/test-linked_list.c (main): Update.
37455         * tests/test-linkedhash_list.c (main): Update.
37456         * tests/test-array_oset.c (main): Update.
37457
37458 2007-03-15  Bruno Haible  <bruno@clisp.org>
37459
37460         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37461         (gl_oset_create_empty): Add dispose_fn argument.
37462         (struct gl_oset_implementation): Add dispose_fn argument to
37463         'create_empty' method.
37464         (struct gl_oset_impl_base): Add dispose_fn field.
37465         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37466         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37467         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37468         values.
37469         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37470         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37471         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37472         dropped value.
37473         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37474         dropped value.
37475         * tests/test-array_oset.c (main): Update.
37476         * tests/test-avltree_oset.c (main): Update.
37477         * tests/test-rbtree_oset.c (main): Update.
37478         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37479
37480 2007-03-13  Bruno Haible  <bruno@clisp.org>
37481
37482         * tests/test-stdbool.c (i): Update after last patch.
37483
37484 2007-03-12  Bruno Haible  <bruno@clisp.org>
37485
37486         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37487         the iswprint macro. Needed on Solaris 2.5.1.
37488
37489 2007-03-12  Bruno Haible  <bruno@clisp.org>
37490
37491         * tests/test-printf-frexp.c (main): Declare x as volatile.
37492
37493 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37494
37495         * doc/gnulib.texi (Build robot for gnulib): New section.
37496
37497 2007-03-12  Jim Meyering  <jim@meyering.net>
37498
37499         * build-aux/bootstrap: New file.
37500         * build-aux/bootstrap.conf: New file, from coreutils.
37501
37502 2007-03-11  Bruno Haible  <bruno@clisp.org>
37503
37504         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37505
37506 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37507
37508         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37509         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37510         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37511
37512 2007-03-11  Bruno Haible  <bruno@clisp.org>
37513
37514         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37515         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37516
37517 2007-03-11  Bruno Haible  <bruno@clisp.org>
37518
37519         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37520         formula. Needed for SunPRO C 5.0.
37521
37522 2007-03-11  Bruno Haible  <bruno@clisp.org>
37523
37524         * modules/long-options (Depends-on): Add getopt.
37525
37526 2007-03-11  Bruno Haible  <bruno@clisp.org>
37527
37528         * modules/modechange (Depends-on): Add stdbool.
37529
37530 2007-03-11  Bruno Haible  <bruno@clisp.org>
37531
37532         * modules/i-ring (Depends-on): Add stdbool.
37533
37534 2007-03-11  Bruno Haible  <bruno@clisp.org>
37535
37536         * modules/gc-des (Depends-on): Add stdbool.
37537
37538 2007-03-11  Bruno Haible  <bruno@clisp.org>
37539
37540         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37541
37542 2007-03-11  Bruno Haible  <bruno@clisp.org>
37543
37544         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37545
37546 2007-03-11  Bruno Haible  <bruno@clisp.org>
37547
37548         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37549
37550 2007-03-11  Bruno Haible  <bruno@clisp.org>
37551
37552         * lib/vasnprintf.c (sprintf): Undefine.
37553
37554 2007-03-11  Bruno Haible  <bruno@clisp.org>
37555
37556         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37557         initializers in SunPRO C and Compaq C compilers.
37558
37559 2007-03-11  Bruno Haible  <bruno@clisp.org>
37560
37561         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37562         decrementing code ANSI C compliant.
37563
37564 2007-03-11  Bruno Haible  <bruno@clisp.org>
37565
37566         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37567         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37568
37569 2007-03-11  Bruno Haible  <bruno@clisp.org>
37570
37571         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37572         <stdbool.h> substitute doesn't pass.
37573
37574 2007-03-11  Bruno Haible  <bruno@clisp.org>
37575
37576         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37577
37578 2007-03-11  Bruno Haible  <bruno@clisp.org>
37579
37580         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37581         script, for submission to autobuild.josefsson.org.
37582
37583 2007-03-10  Bruno Haible  <bruno@clisp.org>
37584
37585         * modules/canonicalize-lgpl-tests: New file.
37586         * tests/test-canonicalize-lgpl.sh: New file.
37587         * tests/test-canonicalize-lgpl.c: New file.
37588
37589         * modules/c-strcase-tests: New file.
37590         * tests/test-c-strcase.sh: New file.
37591         * tests/test-c-strcasecmp.c: New file.
37592         * tests/test-c-strncasecmp.c: New file.
37593
37594         * modules/atexit-tests: New file.
37595         * tests/test-atexit.sh: New file.
37596         * tests/test-atexit.c: New file.
37597
37598 2007-03-10  Bruno Haible  <bruno@clisp.org>
37599
37600         * tests/test-binary-io.sh: Use temporary filenames that are not so
37601         likely to clash with those of other tests (in a parallel make).
37602         * tests/test-binary-io.c: Likewise.
37603
37604 2007-03-10  Bruno Haible  <bruno@clisp.org>
37605
37606         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37607         fallback; use #error instead.
37608         Suggested by Simon Josefsson.
37609
37610 2007-03-10  Bruno Haible  <bruno@clisp.org>
37611
37612         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37613         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37614         first and the last.
37615
37616 2007-03-10  Bruno Haible  <bruno@clisp.org>
37617
37618         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37619
37620 2007-03-10  Bruno Haible  <bruno@clisp.org>
37621
37622         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37623         "make distcheck".
37624         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37625         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37626         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37627
37628 2007-03-10  Bruno Haible  <bruno@clisp.org>
37629
37630         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37631         variable.
37632         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37633         variable.
37634
37635 2007-03-09  Eric Blake  <ebb9@byu.net>
37636         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37637
37638         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37639         types are not being provided by gnulib.
37640         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37641         types are supported.
37642
37643 2007-03-10  Bruno Haible  <bruno@clisp.org>
37644
37645         * lib/stdio_.h (__attribute__): New macro.
37646         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37647         vsprintf): Specify __attribute__ __format__ for GCC.
37648         Suggested by Eric Blake.
37649
37650 2007-03-09  Bruno Haible  <bruno@clisp.org>
37651
37652         * modules/printf-posix-tests: New file.
37653         * tests/test-printf-posix.sh: New file.
37654         * tests/test-printf-posix.c: New file.
37655
37656         * modules/printf-posix: New file.
37657         * lib/printf.c: New file.
37658         * m4/printf-posix-rpl.m4: New file.
37659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37660         REPLACE_PRINTF.
37661         * lib/stdio_.h (printf): New declaration.
37662         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37663         ____strfmon____): New macros.
37664         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37665         REPLACE_PRINTF.
37666
37667 2007-03-09  Bruno Haible  <bruno@clisp.org>
37668
37669         * tests/test-vasnprintf-posix2.sh: New file.
37670         * tests/test-vasnprintf-posix2.c: New file.
37671         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37672         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37673         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37674
37675         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37676         a locale dependent decimal point, rather than always '.'.
37677
37678 2007-03-09  Eric Blake  <ebb9@byu.net>
37679
37680         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37681         spite of platforms like Tandem/NSK that define it to -1.
37682
37683 2007-03-08  Bruno Haible  <bruno@clisp.org>
37684
37685         * modules/vprintf-posix-tests: New file.
37686         * tests/test-vprintf-posix.sh: New file.
37687         * tests/test-vprintf-posix.c: New file.
37688         * tests/test-printf-posix.h: New file.
37689
37690         * modules/vprintf-posix: New file.
37691         * lib/vprintf.c: New file.
37692         * m4/vprintf-posix.m4: New file.
37693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37694         REPLACE_VPRINTF.
37695         * lib/stdio_.h (vprintf): New declaration.
37696         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37697         REPLACE_VPRINTF.
37698
37699 2007-03-08  Bruno Haible  <bruno@clisp.org>
37700
37701         * modules/fprintf-posix-tests: New file.
37702         * tests/test-fprintf-posix.sh: New file.
37703         * tests/test-fprintf-posix.c: New file.
37704
37705         * modules/fprintf-posix: New file.
37706         * lib/fprintf.c: New file.
37707         * m4/fprintf-posix.m4: New file.
37708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37709         REPLACE_FPRINTF.
37710         * lib/stdio_.h (fprintf): New declaration.
37711         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37712         REPLACE_FPRINTF.
37713
37714 2007-03-08  Bruno Haible  <bruno@clisp.org>
37715
37716         * modules/vfprintf-posix-tests: New file.
37717         * tests/test-vfprintf-posix.sh: New file.
37718         * tests/test-vfprintf-posix.c: New file.
37719         * tests/test-fprintf-posix.h: New file.
37720         * tests/test-fprintf-posix.out: New file.
37721
37722         * modules/vfprintf-posix: New file.
37723         * lib/vfprintf.c: New file.
37724         * m4/vfprintf-posix.m4: New file.
37725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37726         REPLACE_VFPRINTF.
37727         * lib/stdio_.h (vfprintf): New declaration.
37728         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37729         REPLACE_VFPRINTF.
37730
37731 2007-03-08  Bruno Haible  <bruno@clisp.org>
37732
37733         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37734
37735 2007-03-08  Bruno Haible  <bruno@clisp.org>
37736
37737         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37738         instead of 'expr' invocations.
37739         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37740         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37741         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37742         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37743         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37744         Suggested by Paul Eggert.
37745
37746 2007-03-08  Bruno Haible  <bruno@clisp.org>
37747
37748         * modules/fseterr-tests: New file.
37749         * tests/test-fseterr.c: New file.
37750
37751         * modules/fseterr: New file.
37752         * lib/fseterr.h: New file.
37753         * lib/fseterr.c: New file.
37754
37755 2007-03-08  Bruno Haible  <bruno@clisp.org>
37756
37757         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37758         * lib/getopt_.h: Likewise.
37759         * lib/mbswidth.h: Likewise.
37760         * lib/setenv.h: Likewise.
37761         * lib/vasnprintf.h: Likewise.
37762         * lib/vasprintf.h: Likewise.
37763         * lib/verror.h: Likewise.
37764         * lib/xsetenv.h: Likewise.
37765         * lib/xvasprintf.h: Likewise.
37766
37767 2007-03-08  Jim Meyering  <jim@meyering.net>
37768
37769         * users.txt: Add parted.
37770
37771         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37772
37773 2007-03-07  Bruno Haible  <bruno@clisp.org>
37774
37775         * m4/printf.m4: Make the shell script snippets copy&pastable.
37776
37777 2007-03-02  Bruno Haible  <bruno@clisp.org>
37778
37779         * lib/netinet_in_.h: New file.
37780         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37781         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37782         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37783         (Depends-on): Add absolute-header.
37784         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37785         into netinet/in.h.
37786
37787 2007-03-03  Bruno Haible  <bruno@clisp.org>
37788
37789         * lib/sys_select_.h: New file.
37790         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37791         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37792         * modules/sys_select (Files): Add lib/sys_select_.h.
37793         (Depends-on): Add absolute-header.
37794         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37795         into sys/select.h.
37796
37797 2007-03-02  Bruno Haible  <bruno@clisp.org>
37798
37799         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37800         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37801         values.
37802         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37803         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37804         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37805         * modules/sys_socket (Depends-on): Add absolute-header.
37806         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37807         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37808         (Include): Remove requirement of inclusion of <sys/types.h>.
37809
37810 2007-03-02  Bruno Haible  <bruno@clisp.org>
37811
37812         * lib/byteswap_.h (bswap_32): Fix formula.
37813
37814 2007-03-06  Bruno Haible  <bruno@clisp.org>
37815
37816         * modules/sprintf-posix-tests: New file.
37817         * tests/test-sprintf-posix.c: New file.
37818
37819         * modules/sprintf-posix: New file.
37820         * lib/sprintf.c: New file.
37821         * m4/sprintf-posix.m4: New file.
37822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37823         REPLACE_SPRINTF.
37824         * lib/stdio_.h (sprintf): New declaration.
37825         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37826         REPLACE_SPRINTF.
37827
37828 2007-03-06  Bruno Haible  <bruno@clisp.org>
37829
37830         * modules/vsprintf-posix-tests: New file.
37831         * tests/test-vsprintf-posix.c: New file.
37832         * tests/test-sprintf-posix.h: New file.
37833
37834         * modules/vsprintf-posix: New file.
37835         * lib/vsprintf.c: New file.
37836         * m4/vsprintf-posix.m4: New file.
37837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37838         REPLACE_VSPRINTF.
37839         * lib/stdio_.h (vsprintf): New declaration.
37840         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37841         REPLACE_VSPRINTF.
37842
37843 2007-03-06  Bruno Haible  <bruno@clisp.org>
37844
37845         * modules/vsnprintf (Depend-on): Remove minmax.
37846
37847 2007-03-06  Bruno Haible  <bruno@clisp.org>
37848
37849         * modules/snprintf-posix-tests: New file.
37850         * tests/test-snprintf-posix.c: New file.
37851
37852         * modules/snprintf-posix: New file.
37853         * m4/snprintf-posix.m4: New file.
37854         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37855         gl_FUNC_SNPRINTF.
37856         (gl_FUNC_SNPRINTF): Invoke it.
37857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37858         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37859         is set.
37860         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37861
37862 2007-03-06  Bruno Haible  <bruno@clisp.org>
37863
37864         * modules/vsnprintf-posix-tests: New file.
37865         * tests/test-vsnprintf-posix.c: New file.
37866         * tests/test-snprintf-posix.h: New file.
37867
37868         * modules/vsnprintf-posix: New file.
37869         * m4/vsnprintf-posix.m4: New file.
37870         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37871         gl_FUNC_VSNPRINTF.
37872         (gl_FUNC_VSNPRINTF): Invoke it.
37873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37874         * lib/stdio_.h (vsnprintf): Define as a replacement if
37875         REPLACE_VSNPRINTF is set.
37876         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37877
37878 2007-03-06  Bruno Haible  <bruno@clisp.org>
37879
37880         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37881         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37882
37883 2007-03-06  Bruno Haible  <bruno@clisp.org>
37884
37885         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37886         (asinl): Declare also if HAVE_DECL_ASINL is set.
37887         (atanl): Declare also if HAVE_DECL_ATANL is set.
37888         (ceill): Declare also if HAVE_DECL_CEILL is set.
37889         (cosl): Declare also if HAVE_DECL_COSL is set.
37890         (expl): Declare also if HAVE_DECL_EXPL is set.
37891         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37892         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37893         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37894         (logl): Declare also if HAVE_DECL_LOGL is set.
37895         (sinl): Declare also if HAVE_DECL_SINL is set.
37896         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37897         (tanl): Declare also if HAVE_DECL_TANL is set.
37898         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37900         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37901         declaration of frexpl, ldexpl.
37902         * modules/printf-frexpl (Depends-on): Add math.
37903         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37904
37905 2007-03-05  Bruno Haible  <bruno@clisp.org>
37906
37907         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37908         frexpl and ldexpl are declared.
37909         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37910
37911 2007-03-05  Bruno Haible  <bruno@clisp.org>
37912
37913         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37914         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37915
37916 2007-03-05  Bruno Haible  <bruno@clisp.org>
37917
37918         * lib/stdio_.h: Include <stddef.h>.
37919
37920 2007-03-05  Bruno Haible  <bruno@clisp.org>
37921
37922         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37923
37924 2007-03-05  Bruno Haible  <bruno@clisp.org>
37925
37926         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37927         NetBSD 4, from Ralf Wildenhues.
37928
37929 2007-03-04  Bruno Haible  <bruno@clisp.org>
37930
37931         * lib/vasprintf.h: Update #if logic for the case when the functions
37932         exist but are overridden.
37933
37934 2007-03-04  Bruno Haible  <bruno@clisp.org>
37935
37936         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37937         implementations: glibc-2.4 and MacOS X 10.3.
37938         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37939         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37940         * tests/test-vasprintf-posix.c (test_function): Likewise.
37941
37942 2007-03-04  Bruno Haible  <bruno@clisp.org>
37943
37944         * modules/vasprintf-posix-tests: New file.
37945         * tests/test-vasprintf-posix.c: New file.
37946
37947         * modules/vasprintf-posix: New file.
37948         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37949         defined.
37950         * m4/vasprintf-posix.m4: New file.
37951         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37952         gl_FUNC_VASPRINTF.
37953         (gl_FUNC_VASPRINTF): Invoke it.
37954         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37955         here.
37956         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37957
37958 2007-03-04  Bruno Haible  <bruno@clisp.org>
37959
37960         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37961         REPLACE_GETTIMEOFDAY.
37962         * modules/sys_time (Makefile.am): Likewise.
37963         * m4/sys_time_h.m4: Likewise.
37964         * m4/gettimeofday.m4: Likewise.
37965
37966 2007-03-04  Bruno Haible  <bruno@clisp.org>
37967
37968         * modules/vasnprintf-posix-tests: New file.
37969         * tests/test-vasnprintf-posix.c: New file.
37970
37971         * modules/vasnprintf-posix: New file.
37972         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37973         printf-frexpl.h.
37974         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37975         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37976         REPLACE_VASNPRINTF is defined.
37977         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37978         gl_FUNC_VASNPRINTF.
37979         (gl_FUNC_VASNPRINTF): Invoke it.
37980         * m4/vasnprintf-posix.m4: New file.
37981         * m4/printf.m4: New file.
37982
37983 2007-03-04  Bruno Haible  <bruno@clisp.org>
37984
37985         Compile progreloc.c only if --enable-relocatable is specified.
37986         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37987         if --enable-relocatable was specified.
37988         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37989         lib_SOURCES.
37990
37991 2007-03-04  Jim Meyering  <jim@meyering.net>
37992
37993         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37994         Use it consistently, rather than enumerating errno constants.
37995
37996 2007-03-04  Bruno Haible  <bruno@clisp.org>
37997
37998         * modules/xvasprintf-tests: New file.
37999         * tests/test-xvasprintf.c: New file.
38000
38001         * modules/vasprintf-tests: New file.
38002         * tests/test-vasprintf.c: New file.
38003
38004         * modules/vasnprintf-tests: New file.
38005         * tests/test-vasnprintf.c: New file.
38006
38007         * modules/vsnprintf-tests: New file.
38008         * tests/test-vsnprintf.c: New file.
38009
38010         * modules/snprintf-tests: New file.
38011         * tests/test-snprintf.c: New file.
38012
38013 2007-03-04  Bruno Haible  <bruno@clisp.org>
38014
38015         Compile relocatable.c only if --enable-relocatable is specified.
38016         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
38017         gl_RELOCATABLE_LIBRARY.
38018         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
38019         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
38020         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
38021         gl_RELOCATABLE_LIBRARY.
38022         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
38023         (Makefile.am): Remove lib_SOURCES.
38024         * modules/relocatable-lib-lgpl (configure.ac): Invoke
38025         gl_RELOCATABLE_LIBRARY.
38026         (Makefile.am): Remove lib_SOURCES.
38027         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
38028         always.
38029         * modules/relocatable-prog-wrapper (configure.ac): Invoke
38030         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
38031
38032 2007-03-04  Bruno Haible  <bruno@clisp.org>
38033
38034         * modules/argmatch-tests: New file.
38035         * tests/test-argmatch.c: New file.
38036
38037         * tests/test-allocsa.c (main): Halve the number of loop runs.
38038
38039         * modules/alloca-opt-tests: New file.
38040         * tests/test-alloca-opt.c: New file.
38041
38042 2007-03-04  Jim Meyering  <jim@meyering.net>
38043
38044         Work around difference between Linux ACLs and Solaris 10 ZFS.
38045         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
38046         for EINVAL.
38047
38048 2007-03-03  Bruno Haible  <bruno@clisp.org>
38049
38050         * modules/relocatable-prog (Depends-on): Add back progreloc's
38051         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
38052
38053 2007-03-03  Bruno Haible  <bruno@clisp.org>
38054
38055         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
38056         * modules/relocatable-lib: New file.
38057
38058 2007-03-03  Bruno Haible  <bruno@clisp.org>
38059
38060         * modules/relocatable-prog: Renamed from modules/relocatable.
38061         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
38062
38063 2007-03-03  Bruno Haible  <bruno@clisp.org>
38064
38065         * modules/relocatable-script (Files): Add doc/relocatable.texi,
38066         m4/relocatable-lib.m4.
38067         (Depends-on): Remove 'relocatable'.
38068         (configure.ac): Add gl_RELOCATABLE_NOP.
38069
38070 2007-03-03  Bruno Haible  <bruno@clisp.org>
38071
38072         * modules/relocatable-prog-wrapper: New file.
38073         * modules/relocatable (Depends-on): Add it. Remove all other
38074         dependencies except progname.
38075         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
38076
38077         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
38078         (gl_FUNC_STRERROR): Nop.
38079         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
38080
38081         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
38082         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
38083
38084         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
38085         (gl_FUNC_READLINK): Update.
38086
38087         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
38088
38089 2007-03-03  Bruno Haible  <bruno@clisp.org>
38090
38091         * lib/xreadlink.c: Include <unistd.h> unconditionally.
38092         * modules/xreadlink (Depends-on): Add unistd.
38093         * modules/xreadlink-with-size (Depends-on): Likewise.
38094
38095 2007-03-03  Bruno Haible  <bruno@clisp.org>
38096
38097         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
38098         extracted from gt_FUNC_SETENV.
38099         (gt_FUNC_SETENV): Remove macro.
38100         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
38101         remove gt_FUNC_SETENV.
38102
38103 2007-03-03  Bruno Haible  <bruno@clisp.org>
38104
38105         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
38106         ENABLE_RELOCATABLE here.
38107         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
38108
38109 2007-03-03  Bruno Haible  <bruno@clisp.org>
38110
38111         * modules/rbtreehash-list-tests (Depends-on): Add progname.
38112         * tests/test-rbtreehash_list.c: Include progname.h.
38113         (main): Call set_program_name.
38114
38115         * modules/rbtree-oset-tests (Depends-on): Add progname.
38116         * tests/test-rbtree_oset.c: Include progname.h.
38117         (main): Call set_program_name.
38118
38119         * modules/rbtree-list-tests (Depends-on): Add progname.
38120         * tests/test-rbtree_list.c: Include progname.h.
38121         (main): Call set_program_name.
38122
38123         * modules/linked-list-tests (Depends-on): Add progname.
38124         * tests/test-linked_list.c: Include progname.h.
38125         (main): Call set_program_name.
38126
38127 2007-03-03  Bruno Haible  <bruno@clisp.org>
38128
38129         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
38130         All uses of __restrict changed to _Restrict_.
38131         * lib/glob_.h (__restrict): Remove macro.
38132
38133 2007-03-02  Bruno Haible  <bruno@clisp.org>
38134
38135         * modules/gettext (configure.ac): Require gettext infrastructure
38136         from version 0.16.1.
38137
38138 2007-03-02  Bruno Haible  <bruno@clisp.org>
38139
38140         * modules/linkedhash-list-tests (Depends-on): Add progname.
38141         * tests/test-linkedhash_list.c: Include progname.h.
38142         (main): Call set_program_name.
38143
38144         * modules/carray-list-tests (Depends-on): Add progname.
38145         * tests/test-carray_list.c: Include progname.h.
38146         (main): Call set_program_name.
38147
38148         * modules/avltreehash-list-tests (Depends-on): Add progname.
38149         * tests/test-avltreehash_list.c: Include progname.h.
38150         (main): Call set_program_name.
38151
38152         * modules/avltree-oset-tests (Depends-on): Add progname.
38153         * tests/test-avltree_oset.c: Include progname.h.
38154         (main): Call set_program_name.
38155
38156         * modules/avltree-list-tests (Depends-on): Add progname.
38157         * tests/test-avltree_list.c: Include progname.h.
38158         (main): Call set_program_name.
38159
38160         * modules/array-oset-tests (Depends-on): Add progname.
38161         * tests/test-array_oset.c: Include progname.h.
38162         (main): Call set_program_name.
38163
38164         * modules/array-list-tests (Depends-on): Add progname.
38165         * tests/test-array_list.c: Include progname.h.
38166         (main): Call set_program_name.
38167
38168         * modules/argp-tests (Depends-on): Add progname.
38169         * tests/test-argp.c: Include argp.h first. Include progname.h.
38170         (main): Call set_program_name.
38171
38172 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
38173
38174         * doc/gnulib-tool.texi (Initial import): Reword description of
38175         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
38176         limited effect even if defined after the first system include.
38177
38178 2007-03-01  Bruno Haible  <bruno@clisp.org>
38179
38180         * build-aux/config.libpath: Update to libtool-1.5.22.
38181         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38182
38183 2007-03-01  Bruno Haible  <bruno@clisp.org>
38184
38185         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38186         foo_CFLAGS.
38187         Reported by Ralf Wildenhues.
38188
38189 2007-03-01  Bruno Haible  <bruno@clisp.org>
38190
38191         * build-aux/install-reloc: Remove object files left over by some
38192         compilers.
38193         Reported by Ralf Wildenhues.
38194
38195 2007-03-01  Bruno Haible  <bruno@clisp.org>
38196
38197         * build-aux/install-reloc: Break long lines.
38198
38199 2007-03-01  Bruno Haible  <bruno@clisp.org>
38200
38201         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38202         Reported by Ralf Wildenhues.
38203
38204 2007-03-01  Bruno Haible  <bruno@clisp.org>
38205
38206         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38207         include ordering constraints.
38208
38209 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38210
38211         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38212         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38213         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38214         as another example.
38215         * lib/time_.h: Fix misspelling.
38216         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38217         Require gl_HEADER_TIME_H_DEFAULTS.
38218         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38219         * m4/time_r.m4 (gl_TIME_R): Likewise.
38220         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38221
38222 2007-03-01  Bruno Haible  <bruno@clisp.org>
38223
38224         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38225         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38226
38227 2007-03-01  Jim Meyering  <jim@meyering.net>
38228
38229         * modules/xreadlink (Maintainer): Add my name.
38230         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38231
38232 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38233             Bruno Haible  <bruno@clisp.org>
38234
38235         * build-aux/install-reloc: Compile also c-ctype.c.
38236         * build-aux/relocatable.sh.in: New file.
38237         * doc/relocatable.texi: New file.
38238         * doc/relocatable-maint.texi: New file.
38239         * doc/gnulib.texi: Include relocatable-maint.texi.
38240         * lib/progreloc.c: Include unistd.h unconditionally.
38241         * lib/relocwrapper.c: Include unistd.h unconditionally.
38242         Include c-ctype.h.
38243         (add_dotbin): Use c_tolower.
38244         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38245         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38246         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38247         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38248         to m4/relocatable-lib.m4.
38249         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38250         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38251         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38252         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38253         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38254         * modules/relocatable: New file.
38255         * modules/relocatable-lib: New file.
38256         * modules/relocatable-script: New file.
38257
38258 2007-02-28  Bruno Haible  <bruno@clisp.org>
38259
38260         Import --enable-relocatable infrastructure.
38261         * build-aux/config.libpath: New file, from GNU gettext.
38262         * build-aux/install-reloc: New file, from GNU gettext.
38263         * build-aux/reloc-ldflags: New file, from GNU gettext.
38264         * lib/relocatable.h: New file, from GNU gettext.
38265         * lib/relocatable.c: New file, from GNU gettext.
38266         * lib/relocwrapper.c: New file, from GNU gettext.
38267         * m4/relocatable.m4: New file, from GNU gettext.
38268
38269 2007-02-28  Bruno Haible  <bruno@clisp.org>
38270
38271         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38272
38273         * modules/xreadlink: New file, from GNU gettext with modifications.
38274         * lib/xreadlink.c: New file, from GNU gettext.
38275         * lib/xreadlink.h: Add comments.
38276         (xreadlink): New declaration.
38277
38278         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38279         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38280         lib/xreadlink-with-size.c.
38281         (configure.ac): Remove gl_XREADLINK invocation.
38282         (Makefile.am): Augment lib_SOURCES.
38283         * m4/xreadlink.m4: Remove file.
38284         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38285         (xreadlink_with_size): Renamed from xreadink.
38286         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38287         * modules/canonicalize (Depends-on): Replace xreadlink with
38288         xreadlink-with-size.
38289         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38290
38291 2007-02-25  Jim Meyering  <jim@meyering.net>
38292
38293         * build-aux/announce-gen: When complaining about excess arguments,
38294         list them.
38295
38296 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38297
38298         * README: Document signed integer overflow situation more
38299         accurately.
38300
38301 2007-02-25  Bruno Haible  <bruno@clisp.org>
38302
38303         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38304         'a' or 'A' conversion.
38305
38306 2007-02-25  Bruno Haible  <bruno@clisp.org>
38307
38308         * modules/filename: Renamed from modules/pathname.
38309         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38310         lib/concatpath.c with lib/concat-filename.c.
38311         (Makefile.am): Update.
38312         (Include): Replace pathname.h with filename.h.
38313         * lib/filename.h: Renamed from lib/pathname.h.
38314         (concatenated_filename): Renamed from concatenated_pathname.
38315         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38316         (concatenated_filename): Renamed from concatenated_pathname.
38317         * lib/findprog.c: Include filename.h instead of pathname.h.
38318         (find_in_path): Update.
38319         * lib/javacomp.c: Include filename.h instead of pathname.h.
38320         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38321         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38322         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38323         is_oldgcj_14_13_usable, is_javac_usable): Update.
38324         * lib/javaexec.c: Include filename.h instead of pathname.h.
38325         (execute_java_class): Update.
38326         * modules/findprog: Update.
38327         * modules/javacomp: Update.
38328         * modules/javaexec: Update.
38329         * MODULES.html.sh (File system functions): Add 'filename', remove
38330         'pathname'.
38331
38332 2007-02-25  Bruno Haible  <bruno@clisp.org>
38333
38334         * modules/printf-frexpl-tests: New file.
38335         * tests/test-printf-frexpl.c: New file.
38336
38337         * modules/printf-frexpl: New file.
38338         * lib/printf-frexpl.h: New file.
38339         * lib/printf-frexpl.c: New file.
38340         * m4/printf-frexpl.m4: New file.
38341
38342 2007-02-25  Bruno Haible  <bruno@clisp.org>
38343
38344         * modules/printf-frexp-tests: New file.
38345         * tests/test-printf-frexp.c: New file.
38346
38347         * modules/printf-frexp: New file.
38348         * lib/printf-frexp.h: New file.
38349         * lib/printf-frexp.c: New file.
38350         * m4/printf-frexp.m4: New file.
38351
38352 2007-02-25  Bruno Haible  <bruno@clisp.org>
38353
38354         Assume automake >= 1.10 for the tests.
38355         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38356         * modules/arctwo-tests: Likewise.
38357         * modules/argp-tests: Likewise.
38358         * modules/avltree-list-tests: Likewise.
38359         * modules/avltree-oset-tests: Likewise.
38360         * modules/avltreehash-list-tests: Likewise.
38361         * modules/carray-list-tests: Likewise.
38362         * modules/crc-tests: Likewise.
38363         * modules/des-tests: Likewise.
38364         * modules/gc-arcfour-tests: Likewise.
38365         * modules/gc-arctwo-tests: Likewise.
38366         * modules/gc-des-tests: Likewise.
38367         * modules/gc-hmac-md5-tests: Likewise.
38368         * modules/gc-hmac-sha1-tests: Likewise.
38369         * modules/gc-md2-tests: Likewise.
38370         * modules/gc-md4-tests: Likewise.
38371         * modules/gc-md5-tests: Likewise.
38372         * modules/gc-pbkdf2-sha1-tests: Likewise.
38373         * modules/gc-rijndael-tests: Likewise.
38374         * modules/gc-sha1-tests: Likewise.
38375         * modules/gc-tests: Likewise.
38376         * modules/getaddrinfo-tests: Likewise.
38377         * modules/hmac-md5-tests: Likewise.
38378         * modules/hmac-sha1-tests: Likewise.
38379         * modules/linked-list-tests: Likewise.
38380         * modules/linkedhash-list-tests: Likewise.
38381         * modules/lock-tests: Likewise.
38382         * modules/md2-tests: Likewise.
38383         * modules/md4-tests: Likewise.
38384         * modules/md5-tests: Likewise.
38385         * modules/rbtree-list-tests: Likewise.
38386         * modules/rbtree-oset-tests: Likewise.
38387         * modules/rbtreehash-list-tests: Likewise.
38388         * modules/read-file-tests: Likewise.
38389         * modules/rijndael-tests: Likewise.
38390         * modules/stdint-tests: Likewise.
38391         * modules/tls-tests: Likewise.
38392
38393 2007-02-24  Bruno Haible  <bruno@clisp.org>
38394
38395         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38396         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38397         function; instead check whether isnan with a double argument links.
38398         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38399         function; instead check whether isnan with a 'long double' argument
38400         links.
38401         Reported by Eric Blake <ebb9@byu.net>.
38402
38403 2007-02-24  Bruno Haible  <bruno@clisp.org>
38404
38405         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38406         defined.
38407         * lib/isnanl.c: Remove all code. Just include isnan.c.
38408         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38409
38410 2007-02-25  Jim Meyering  <jim@meyering.net>
38411
38412         Avoid conflicting types for 'unsetenv' on FreeBSD.
38413         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38414         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38415         in stdlib.h.
38416
38417 2007-02-24  Bruno Haible  <bruno@clisp.org>
38418
38419         * modules/isnanl-nolibm-tests: New file.
38420         * tests/test-isnanl.c: New file.
38421
38422         * modules/isnanl-nolibm: New file.
38423         * lib/isnanl.h: New file.
38424         * lib/isnanl.c: New file.
38425         * m4/isnanl.m4: New file.
38426
38427 2007-02-24  Bruno Haible  <bruno@clisp.org>
38428
38429         * modules/isnan-nolibm-tests: New file.
38430         * tests/test-isnan.c: New file.
38431
38432         * modules/isnan-nolibm: New file.
38433         * lib/isnan.h: New file.
38434         * lib/isnan.c: New file.
38435         * m4/isnan.m4: New file.
38436
38437 2007-02-24  Bruno Haible  <bruno@clisp.org>
38438
38439         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38440         assume that an exponent fits in 20 bits.
38441
38442 2007-02-24  Jim Meyering  <jim@meyering.net>
38443
38444         * m4/regex.m4: Update the description of the configure-time option,
38445         --without-included-regex, to state accurately what the defaults are,
38446         and perhaps to give people an idea why using this option is risky.
38447
38448 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38449
38450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38451         loops on small arguments.  This attempts to avoid the problem
38452         Bruno Haible reported for AIX 4.3.2 in
38453         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38454
38455 2007-02-23  Bruno Haible  <bruno@clisp.org>
38456
38457         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38458         Needed for help2man.
38459
38460 2007-02-23  Karl Berry  <karl@gnu.org>
38461
38462         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38463         exists, foo.h should be cvs-ignored, not committed.
38464
38465 2007-02-23  Eric Blake  <ebb9@byu.net>
38466
38467         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38468         * lib/stat-time.h (includes): Likewise.
38469         * lib/utimecmp.c (includes): Likewise.
38470         * lib/utimens.h (includes): Likewise.
38471         * lib/getdate.y (includes): Also include "timespec.h" for use
38472         internal to the module.
38473         * modules/utimens (Depends-on): Revert yesterday's patch.
38474         * modules/nanosleep (Depends-on): Add missing dependency.
38475
38476 2007-02-22  Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/glob.c: Don't include getlogin_r.h.
38479
38480 2007-02-22  Jim Meyering  <jim@meyering.net>
38481
38482         * modules/utimens (Depends-on): Add timespec, required for
38483         utimens.h's inclusion of timespec.h.
38484
38485 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38486
38487         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38488         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38489         Schwab in
38490         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38491         I'll try to think of a better way to fix the Solaris problem.
38492
38493         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38494         like glibc; on Solaris 10, it fails with errno == EINVAL.
38495         POSIX says the behavior is unspecified if the first argument is NULL,
38496         so play it safe and never pass NULL to the system getcwd.
38497
38498 2007-02-21  Jim Meyering  <jim@meyering.net>
38499
38500         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38501         of gettimeofday.  It would conflict with the one now always
38502         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38503         an IRIX 6.5 build failure.
38504
38505 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38506
38507         Minor fixups to port to Solaris 10 with Sun C 5.8.
38508         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38509         * modules/getcwd (Depends-on): Add dirfd.
38510         * lib/putenv.c (putenv): #undef it.
38511         (rpl_putenv): New decl.
38512         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38513
38514 2007-02-20  Bruno Haible  <bruno@clisp.org>
38515
38516         * modules/stdio-tests: New file.
38517         * tests/test-stdio.c: New file.
38518
38519         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38520         (Depends-on): Add stdio.
38521         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38522         (Include): Use <stdio.h> instead of vsnprintf.h.
38523         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38524         HAVE_DECL_VSNPRINTF.
38525         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38526
38527         * modules/snprintf (Files): Remove lib/snprintf.h.
38528         (Depends-on): Add stdio.
38529         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38530         (Include): Use <stdio.h> instead of snprintf.h.
38531         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38532         HAVE_DECL_SNPRINTF.
38533         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38534         * lib/getaddrinfo.c: Likewise.
38535
38536         * modules/stdio: New file.
38537         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38538         * lib/snprintf.h: Remove file.
38539         * lib/vsnprintf.h: Remove file.
38540         * lib/.cppi-disable: Remove snprintf.h.
38541         * m4/stdio_h.m4: New file.
38542         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38543
38544 2007-02-20  Jim Meyering  <jim@meyering.net>
38545
38546         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38547         used by e.g., mingw.  From Bruno Haible.
38548
38549 2007-02-19  Bruno Haible  <bruno@clisp.org>
38550
38551         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38552         warnings.
38553         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38554
38555 2007-02-19  Bruno Haible  <bruno@clisp.org>
38556
38557         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38558         from mingw users.
38559
38560 2007-02-19  Bruno Haible  <bruno@clisp.org>
38561
38562         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38563         warnings.
38564         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38565
38566 2007-02-19  Jim Meyering  <jim@meyering.net>
38567
38568         Don't use FD after a successful "fdopendir (fd)".
38569         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38570         Reset it by calling dirfd on the just-obtained DIR*.
38571
38572         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38573         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38574
38575 2007-02-18  Bruno Haible  <bruno@clisp.org>
38576
38577         * lib/readlink.c: Include <unistd.h>.
38578         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38579         HAVE_READLINK.
38580         * modules/readlink (Depends-on): Add unistd.
38581         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38582         (Include): Add <unistd.h>.
38583
38584         * lib/getlogin_r.h: Remove file.
38585         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38586         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38587         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38588         HAVE_DECL_GETLOGIN_R.
38589         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38590         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38591         (Include): Use <unistd.h> instead of getlogin_r.h.
38592
38593         * lib/getcwd.h: Remove file.
38594         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38595         * lib/xgetcwd.c: Likewise.
38596         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38597         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38598         * modules/getcwd (Files): Remove lib/getcwd.h.
38599         (Depends-on): Add unistd.
38600         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38601         (Include): Use <unistd.h> instad of getcwd.h.
38602
38603         * lib/ftruncate.c: Include <unistd.h> first.
38604         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38605         Set HAVE_FTRUNCATE.
38606         * modules/ftruncate (Depends-on): Add unistd.
38607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38608
38609         * lib/fchdir.c: Include <unistd.h> first.
38610         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38612         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38613         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38614         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38615
38616         * lib/dup2.c: Include <unistd.h> first.
38617         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38618         HAVE_DUP2.
38619         * modules/dup2 (Depends-on): Add unistd.
38620         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38621
38622         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38623         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38624         REPLACE_CHOWN. Don't define chown as a macro here.
38625         * modules/chown (Depends-on): Add unistd.
38626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38627
38628         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38629         Add definition for GL_LINK_WARNING.
38630         (chown, dup2): New declarations.
38631         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38632         link warning.
38633         (ftruncate): New declaration.
38634         (getcwd): New declaration, taken from old getcwd.h.
38635         (getlogin_r): New declaration, taken from old getlogin_r.h.
38636         (readlink): New declaration.
38637         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38638         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38639         (gl_PREREQ_UNISTD): Remove macro.
38640         (gl_UNISTD_MODULE_INDICATOR): New macro.
38641         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38642         many new variables. Don't set UNISTD_H.
38643         * modules/unistd (Description): Change.
38644         (Depends-on): Add link-warning.
38645         (configure.ac): Update.
38646         (Makefile.am): Create unistd.h always. Substitute many new variables
38647         into it.
38648
38649 2007-02-18  Bruno Haible  <bruno@clisp.org>
38650
38651         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38652         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38653         HAVE_GETSUBOPT.
38654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38655         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38656         * lib/getsubopt.h: Remove file.
38657         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38658         (Depends-on): Add stdlib.
38659         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38660         (Includes): Use <stdlib.h> instead of getsubopt.h.
38661         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38662         Set HAVE_GETSUBOPT.
38663         * lib/getsubopt.c: Don't include getsubopt.h.
38664
38665 2007-02-18  Bruno Haible  <bruno@clisp.org>
38666
38667         * modules/fchdir (Depends-on): Add dup2.
38668
38669 2007-02-18  Bruno Haible  <bruno@clisp.org>
38670
38671         * lib/stdlib_.h: Handle glibc's special invocation convention
38672         specially.
38673
38674 2007-02-18  Bruno Haible  <bruno@clisp.org>
38675
38676         * modules/stdlib-tests: New file.
38677         * tests/test-stdlib.c: New file.
38678
38679         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38680         (Depends-on): Add stdlib.
38681         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38682         (Includes): Use <stdlib.h> instead of mkstemp.h.
38683         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38684         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38685         * lib/mkstemp.c: Don't include mkstemp.h.
38686         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38687         * lib/stdlib--.h: Don't include mkstemp.h.
38688
38689         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38690         (Depends-on): Add stdlib.
38691         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38692         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38693         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38694         HAVE_MKDTEMP.
38695         * lib/mkdtemp.c: Don't include mkdtemp.h.
38696         * lib/clean-temp.c: Don't include mkdtemp.h.
38697
38698         * modules/exit (Files): Remove lib/exit.h.
38699         (Depends-on): Add stdlib.
38700         (Makefile.am): Remove lib_SOURCES.
38701         (Include): Use <stdlib.h> instead of exit.h.
38702         * lib/argmatch.c: Don't include exit.h.
38703         * lib/execute.c: Likewise.
38704         * lib/pagealign_alloc.c: Likewise.
38705         * lib/pipe.c: Likewise.
38706         * lib/wait-process.c: Likewise.
38707         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38708         * lib/exitfail.c: Likewise.
38709         * lib/savewd.c: Likewise.
38710         * lib/xsetenv.c: Likewise.
38711
38712         * modules/stdlib: New file.
38713         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38714         and extra comments about mkstemp().
38715         * lib/exit.h: Remove file.
38716         * lib/mkdtemp.h: Remove file.
38717         * lib/mkstemp.h: Remove file.
38718         * m4/stdlib_h.m4: New file.
38719         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38720
38721 2007-02-18  Bruno Haible  <bruno@clisp.org>
38722
38723         * modules/math-tests: New file.
38724         * tests/test-math.c: New file.
38725
38726         * modules/math: New file.
38727         * modules/mathl (Files): Remove lib/mathl.h.
38728         (Depends-on): Add math.
38729         (Makefile.am): Don't mention mathl.h.
38730         (Include): Use <math.h> instead of mathl.h.
38731         * lib/math_.h: New file.
38732         * lib/mathl.h: Remove file.
38733         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38734         mathl.h.
38735         * lib/asinl.c: Likewise.
38736         * lib/atanl.c: Likewise.
38737         * lib/ceill.c: Likewise.
38738         * lib/cosl.c: Likewise.
38739         * lib/expl.c: Likewise.
38740         * lib/floorl.c: Likewise.
38741         * lib/frexpl.c: Likewise.
38742         * lib/ldexpl.c: Likewise.
38743         * lib/logl.c: Likewise.
38744         * lib/sincosl.c: Likewise.
38745         * lib/sinl.c: Likewise.
38746         * lib/sqrtl.c: Likewise.
38747         * lib/tanl.c: Likewise.
38748         * lib/trigl.c: Likewise.
38749         * m4/math_h.m4: New file.
38750         * MODULES.html.sh (Mathematics): Add math.
38751
38752 2007-02-17  Bruno Haible  <bruno@clisp.org>
38753
38754         * modules/wctype-tests: New file.
38755         * tests/test-wctype.c: New file.
38756
38757         * modules/wchar-tests: New file.
38758         * tests/test-wchar.c: New file.
38759
38760         * modules/unistd-tests: New file.
38761         * tests/test-unistd.c: New file.
38762
38763         * modules/time-tests: New file.
38764         * tests/test-time.c: New file.
38765
38766         * modules/sysexits-tests: New file.
38767         * tests/test-sysexits.c: New file.
38768
38769         * modules/sys_time-tests: New file.
38770         * tests/test-sys_time.c: New file.
38771
38772         * modules/sys_stat-tests: New file.
38773         * tests/test-sys_stat.c: New file.
38774
38775         * modules/sys_socket-tests: New file.
38776         * tests/test-sys_socket.c: New file.
38777
38778         * modules/sys_select-tests: New file.
38779         * tests/test-sys_select.c: New file.
38780
38781         * modules/string-tests: New file.
38782         * tests/test-string.c: New file.
38783
38784         * modules/stdbool-tests: New file.
38785         * tests/test-stdbool.c: New file.
38786
38787         * modules/netinet_in-tests: New file.
38788         * tests/test-netinet_in.c: New file.
38789
38790         * modules/inttypes-tests: New file.
38791         * tests/test-inttypes.c: New file.
38792
38793         * modules/fcntl-tests: New file.
38794         * tests/test-fcntl.c: New file.
38795
38796         * modules/byteswap-tests: New file.
38797         * tests/test-byteswap.c: New file.
38798
38799         * modules/arpa_inet-tests: New file.
38800         * tests/test-arpa_inet.c: New file.
38801
38802 2007-02-17  Bruno Haible  <bruno@clisp.org>
38803
38804         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38805         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38806         if the corresponding module is not enabled. Emit link warnings if
38807         the function is used nevertheless.
38808         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38809         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38810         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38811         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38812         * modules/inttypes (Depends-on): Add link-warning.
38813         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38814         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38815         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38816         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38817         * modules/imaxdiv (configure.ac): Likewise.
38818         * modules/strtoimax (configure.ac): Likewise.
38819         * modules/strtoumax (configure.ac): Likewise.
38820
38821 2007-02-17  Bruno Haible  <bruno@clisp.org>
38822
38823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38824         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38825         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38826         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38827
38828 2007-02-17  Bruno Haible  <bruno@clisp.org>
38829
38830         * modules/link-warning: New file.
38831         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38832         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38833         * modules/string (Depends-on): Add link-warning.
38834         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38835         string.h.
38836         * MODULES.html.sh (Support for building libraries and executables): Add
38837         link-warning.
38838
38839 2007-02-17  Bruno Haible  <bruno@clisp.org>
38840
38841         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38842         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38843         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38844         long lines.
38845
38846 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38847             Bruno Haible  <bruno@clisp.org>
38848
38849         * modules/tmpfile: New file.
38850         * lib/tmpfile.c: New file.
38851         * m4/tmpfile.m4: New file.
38852         * MODULES.html.sh (func_all_modules): New section "Input/output".
38853
38854 2007-02-15  Bruno Haible  <bruno@clisp.org>
38855
38856         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38857         (supports_delete_on_close): New function.
38858         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38859
38860 2007-02-14  Bruno Haible  <bruno@clisp.org>
38861
38862         * modules/mbspcasecmp-tests: New file.
38863         * tests/test-mbspcasecmp.sh: New file.
38864         * tests/test-mbspcasecmp.c: New file.
38865
38866         New module mbspcasecmp.
38867         * modules/mbspcasecmp: New file.
38868         * lib/mbspcasecmp.c: New file.
38869         * lib/string_.h (strncasecmp): Change warning message.
38870         (mbspcasecmp): New declaration.
38871         * m4/mbspcasecmp.m4: New file.
38872         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38873         GNULIB_MBSPCASECMP.
38874         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38875         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38876
38877 2007-02-14  Bruno Haible  <bruno@clisp.org>
38878
38879         * modules/mbsncasecmp-tests: New file.
38880         * tests/test-mbsncasecmp.sh: New file.
38881         * tests/test-mbsncasecmp.c: New file.
38882
38883         New module mbsncasecmp.
38884         * modules/mbsncasecmp: New file.
38885         * lib/mbsncasecmp.c: New file.
38886         * lib/string_.h (mbsncasecmp): New declaration.
38887         * m4/mbsncasecmp.m4: New file.
38888         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38889         GNULIB_MBSNCASECMP.
38890         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38891         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38892
38893 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38894
38895         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38896         Verify that it doesn't overlap with our flags.
38897         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38898         do not have the desired effect in multibyte locales; instead, use
38899         mbscasecmp.
38900         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38901         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38902         we don't require GNU fnmatch ourselves (if our users require it, they
38903         should do so explicitly).
38904
38905         Fix regex code so it doesn't rely on strcasecmp.
38906         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38907         Otherwise, include gnulib's langinfo.h.
38908         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38909         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38910         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38911         * modules/regex (FILES): Remove m4/codeset.m4.
38912         (Depends-on): Add localcharset.  Remove strcase.
38913
38914 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38915
38916         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38917         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38918
38919 2007-02-13  Bruno Haible  <bruno@clisp.org>
38920
38921         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38922         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38923
38924 2007-02-12  Bruno Haible  <bruno@clisp.org>
38925
38926         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38927         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38928         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38929         time warning rather than a link error.
38930
38931 2007-02-12  Bruno Haible  <bruno@clisp.org>
38932
38933         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38934         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38935         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38936
38937 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38938
38939         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38940         args, not 2.
38941
38942 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38943
38944         New module 'time', so that apps can include <time.h> as per
38945         POSIX and GNU instead of separate include files like time_r.h
38946         and timegm.h.  This implementation tries out a simpler approach
38947         for replacing decls in standard include files (as compared to
38948         the string module), somewhat as an experiment.
38949
38950         * config/srclist.txt: Comment out mktime.c for now.
38951         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38952         since it doesn't apply any more.  Use generic wording instead.
38953         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38954         'time'.
38955         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38956         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38957         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38958         Don't include <sys/types.h>; no longer needed since we assume C89.
38959         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38960         * lib/strftime.c: Likewise.
38961         * lib/time_r.c: Likewise.
38962         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38963         * lib/nanosleep.c: Include <time.h> first, to check interface.
38964         * lib/strptime.c: Likewise.
38965         * lib/time_r.c: Likewise.
38966         * lib/timegm.c: Likewise.
38967         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38968         needed.
38969         * lib/timegm.c: Don't include timegm.h; no longer needed.
38970         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38971         time.h now handles any problems in that area.
38972         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38973         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38974         that time.h defines struct timespec.
38975         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38976         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38977         handles that.
38978         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38979         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38980         needed.  Set REPLACE_LOCALTIME.
38981         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38982         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38983         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38984         nanosleep; time_h.m4 now does that.  Don't require
38985         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38986         module handles this now.
38987         * modules/getdate (Depends-on): Remove timespec.  Add time.
38988         * modules/nanosleep (Depends-on): Likewise.
38989         * modules/stat-time (Depends-on): Likewise.
38990         * modules/nanosleep (Include): Include time.h, not timespec.h.
38991         * modules/strptime (Files): Remove lib/strptime.h.
38992         (Depends-on): Add extensions, time.
38993         (Include): Include time.h, not strptime.h.
38994         * modules/time_r (Files): Remove lib/time_r.h.
38995         (Depends-on): Add time.
38996         (Include): Include time.h, not time_r.h.
38997         * modules/timegm: Likewise.
38998         * modules/timespec (Description): Now does timespec-related decls
38999         of our own, instead of struct timespec itself.
39000         (Depends-on): Add time; remove extensions.
39001         (Maintainer): Add self.
39002         * modules/utimecmp (Depends-on): Add time; remove timespec.
39003         * modules/utimens (Depends-on): Likewise.
39004         * modules/xnanosleep (Depends-on): Likewise.
39005
39006 2007-02-11  Bruno Haible  <bruno@clisp.org>
39007
39008         * lib/c-strstr.c: Include allocsa.h.
39009         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39010         * lib/c-strcasestr.c: Include allocsa.h.
39011         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39012         * lib/strcasestr.c: Include allocsa.h.
39013         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39014         * lib/mbsstr.c: Include allocsa.h.
39015         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39016         allocsa/freesa instead of malloc/free.
39017         * lib/mbscasestr.c: Include allocsa.h.
39018         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39019         allocsa/freesa instead of malloc/free.
39020         * modules/c-strstr (Depends-on): Add allocsa.
39021         * modules/c-strcasestr (Depends-on): Likewise.
39022         * modules/strcasestr (Depends-on): Likewise.
39023         * modules/mbsstr (Depends-on): Likewise.
39024         * modules/mbscasestr (Depends-on): Likewise.
39025
39026 2007-02-11  Bruno Haible  <bruno@clisp.org>
39027
39028         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
39029
39030         * modules/mbsspn-tests: New file.
39031         * tests/test-mbsspn.sh: New file.
39032         * tests/test-mbsspn.c: New file.
39033
39034 2007-02-11  Bruno Haible  <bruno@clisp.org>
39035
39036         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
39037
39038         * modules/mbspbrk-tests: New file.
39039         * tests/test-mbspbrk.sh: New file.
39040         * tests/test-mbspbrk.c: New file.
39041
39042 2007-02-11  Bruno Haible  <bruno@clisp.org>
39043
39044         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
39045         unneeded cast.
39046
39047         * modules/mbscspn-tests: New file.
39048         * tests/test-mbscspn.sh: New file.
39049         * tests/test-mbscspn.c: New file.
39050
39051 2007-02-11  Bruno Haible  <bruno@clisp.org>
39052
39053         * modules/mbscasecmp-tests: New file.
39054         * tests/test-mbscasecmp.sh: New file.
39055         * tests/test-mbscasecmp.c: New file.
39056
39057 2007-02-11  Bruno Haible  <bruno@clisp.org>
39058
39059         Ensure O(n) worst-case complexity of mbscasestr.
39060         * lib/mbscasestr.c: Include stdbool.h.
39061         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39062         functions.
39063         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
39064         the bookkeeping indicates that it's worth it.
39065         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
39066
39067         * modules/mbscasestr-tests: New file.
39068         * tests/test-mbscasestr1.c: New file.
39069         * tests/test-mbscasestr2.sh: New file.
39070         * tests/test-mbscasestr2.c: New file.
39071         * tests/test-mbscasestr3.sh: New file.
39072         * tests/test-mbscasestr3.c: New file.
39073         * tests/test-mbscasestr4.sh: New file.
39074         * tests/test-mbscasestr4.c: New file.
39075         * m4/locale-tr.m4: New file.
39076
39077 2007-02-11  Bruno Haible  <bruno@clisp.org>
39078
39079         Ensure O(n) worst-case complexity of mbsstr.
39080         * lib/mbsstr.c: Include stdbool.h.
39081         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39082         functions.
39083         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
39084         bookkeeping indicates that it's worth it.
39085         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
39086
39087         * modules/mbsstr-tests: New file.
39088         * tests/test-mbsstr1.c: New file.
39089         * tests/test-mbsstr2.sh: New file.
39090         * tests/test-mbsstr2.c: New file.
39091         * tests/test-mbsstr3.sh: New file.
39092         * tests/test-mbsstr3.c: New file.
39093         * m4/locale-fr.m4: New file.
39094
39095 2007-02-11  Bruno Haible  <bruno@clisp.org>
39096
39097         * lib/mbsrchr.c (mbsrchr): Fix bug.
39098
39099         * modules/mbsrchr-tests: New file.
39100         * tests/test-mbsrchr.sh: New file.
39101         * tests/test-mbsrchr.c: New file.
39102
39103 2007-02-11  Bruno Haible  <bruno@clisp.org>
39104
39105         * lib/mbschr.c (mbschr): Fix bug.
39106
39107         * modules/mbschr-tests: New file.
39108         * tests/test-mbschr.sh: New file.
39109         * tests/test-mbschr.c: New file.
39110         * m4/locale-zh.m4: New file.
39111
39112 2007-02-11  Bruno Haible  <bruno@clisp.org>
39113
39114         Support for copying multibyte string iterators.
39115         * lib/mbiter.h: Include <string.h>.
39116         (mbiter_multi_copy): New function.
39117         (mbi_copy): New macro.
39118         * lib/mbuiter.h: Include <string.h>.
39119         (mbuiter_multi_copy): New function.
39120         (mbui_copy): New macro.
39121
39122 2007-02-11  Bruno Haible  <bruno@clisp.org>
39123
39124         New module mbslen.
39125         * modules/mbslen: New file.
39126         * lib/mbslen.c: New file.
39127         * lib/string_.h (mbslen): New declaration.
39128         * m4/mbslen.m4: New file.
39129         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39130         GNULIB_MBSLEN.
39131         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
39132         * MODULES.html.sh (Internationalization functions): Add mbslen.
39133
39134 2007-02-11  Bruno Haible  <bruno@clisp.org>
39135
39136         Ensure O(n) worst-case complexity of strcasestr substitute.
39137         * lib/strcasestr.c: Include stdbool.h.
39138         (knuth_morris_pratt): New function.
39139         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39140         bookkeeping indicates that it's worth it.
39141         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
39142
39143         * modules/strcasestr-tests: New file.
39144         * tests/test-strcasestr.c: New file.
39145
39146 2007-02-11  Bruno Haible  <bruno@clisp.org>
39147
39148         Ensure O(n) worst-case complexity of c_strcasestr.
39149         * lib/c-strcasestr.c: Include stdbool.h, string.h.
39150         (knuth_morris_pratt): New function.
39151         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
39152         the bookkeeping indicates that it's worth it.
39153         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
39154
39155         * modules/c-strcasestr-tests: New file.
39156         * tests/test-c-strcasestr.c: New file.
39157
39158 2007-02-11  Bruno Haible  <bruno@clisp.org>
39159
39160         Ensure O(n) worst-case complexity of c_strstr.
39161         * lib/c-strstr.c: Include stdbool.h, string.h.
39162         (knuth_morris_pratt): New function.
39163         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39164         bookkeeping indicates that it's worth it.
39165         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
39166
39167         * lib/c-strstr.c: Complete rewrite for maintainability.
39168
39169         * modules/c-strstr-tests: New file.
39170         * tests/test-c-strstr.c: New file.
39171
39172 2007-02-11  Bruno Haible  <bruno@clisp.org>
39173
39174         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
39175         5.2.1 and earlier, whereby \055 was treated just like the range
39176         delimiter '-'.
39177         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39178
39179 2007-02-08  Bruno Haible  <bruno@clisp.org>
39180
39181         * modules/regex (Depends-on): Add stdbool.
39182         Reported by Dalibor Topic <robilad@kaffe.org>.
39183
39184 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39185
39186         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39187         Prefer returning from main to exiting from it.
39188         Remove unnecessary parens after sizeof.
39189
39190 2007-02-05  Bruno Haible  <bruno@clisp.org>
39191
39192         New module mbssep.
39193         * modules/mbssep: New file.
39194         * lib/mbssep.c: New file.
39195         * lib/string_.h (strsep): Add a conditional link warning.
39196         (mbssep): New declaration.
39197         * m4/mbssep.m4: New file.
39198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39199         GNULIB_MBSSEP.
39200         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39201         * MODULES.html.sh (Internationalization functions): Add mbssep.
39202
39203 2007-02-05  Bruno Haible  <bruno@clisp.org>
39204
39205         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39206         Optimize search in case of 1 delimiter.
39207
39208 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39209
39210         * lib/acl.h: Include sys/types.h before sys/acl.h.
39211
39212 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39213
39214         Merge upstream fix for glibc bugzilla #3957:
39215
39216         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39217
39218         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39219         bit for RE_HAT_LISTS_NOT_NEWLINE.
39220         (build_charclass_op): Remove bogus comment.
39221
39222 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39223
39224         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39225
39226 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39227
39228         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39229         * lib/memmem.c [!defined _LIBC]: Include config.h.
39230
39231 2007-02-04  Bruno Haible  <bruno@clisp.org>
39232
39233         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39234         warning message.
39235
39236 2007-02-04  Bruno Haible  <bruno@clisp.org>
39237
39238         New module mbstok_r.
39239         * modules/mbstok_r: New file.
39240         * lib/mbstok_r.c: New file.
39241         * lib/string_.h (strtok_r): Change argument names to match the
39242         comments. Add a conditional link warning.
39243         (mbstok_r): New declaration.
39244         * m4/mbstok_r.m4: New file.
39245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39246         GNULIB_MBSTOK_R.
39247         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39248         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39249
39250 2007-02-04  Bruno Haible  <bruno@clisp.org>
39251
39252         New module mbsspn.
39253         * modules/mbsspn: New file.
39254         * lib/mbsspn.c: New file.
39255         * lib/string_.h (strspn): Add a conditional link warning.
39256         (mbsspn): New declaration.
39257         * m4/mbsspn.m4: New file.
39258         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39259         GNULIB_MBSSPN.
39260         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39261         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39262
39263 2007-02-04  Bruno Haible  <bruno@clisp.org>
39264
39265         New module mbspbrk.
39266         * modules/mbspbrk: New file.
39267         * lib/mbspbrk.c: New file.
39268         * lib/string_.h (strpbrk): Add a conditional link warning.
39269         (mbspbrk): New declaration.
39270         * m4/mbspbrk.m4: New file.
39271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39272         GNULIB_MBSPBRK.
39273         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39274         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39275
39276 2007-02-04  Bruno Haible  <bruno@clisp.org>
39277
39278         New module mbscspn.
39279         * modules/mbscspn: New file.
39280         * lib/mbscspn.c: New file.
39281         * lib/string_.h (strcspn): Add a conditional link warning.
39282         (mbscspn): New declaration.
39283         * m4/mbscspn.m4: New file.
39284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39285         GNULIB_MBSCSPN.
39286         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39287         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39288
39289 2007-02-04  Bruno Haible  <bruno@clisp.org>
39290
39291         New module mbscasestr, reduced goal of strcasestr.
39292         * modules/mbscasestr: New file.
39293         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39294         (mbscasestr): Renamed from strcasestr.
39295         * lib/strcasestr.c: Don't include mbuiter.h.
39296         (strcasestr): Remove support for multibyte locales.
39297         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39298         Change the conditional link warning.
39299         (mbscasestr): New declaration.
39300         * m4/mbscasestr.m4: New file.
39301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39302         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39303         REPLACE_STRCASESTR.
39304         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39305         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39306         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39307         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39308         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39309         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39310         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39311         (Depends-on): Remove mbuiter.
39312         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39313
39314 2007-02-04  Bruno Haible  <bruno@clisp.org>
39315
39316         Simplify handling of strncasecmp.
39317         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39318         the conditional link warning.
39319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39320         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39321         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39322         * modules/strcase (configure.ac): Don't invoke
39323         gl_STRING_MODULE_INDICATOR.
39324         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39325
39326 2007-02-04  Bruno Haible  <bruno@clisp.org>
39327
39328         New module mbscasecmp, reduced goal of strcasecmp.
39329         * modules/mbscasecmp: New file.
39330         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39331         (mbscasecmp): Renamed from strcasecmp.
39332         * lib/strcasecmp.c: Don't include mbuiter.h.
39333         (strcasecmp): Remove support for multibyte locales.
39334         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39335         Change the conditional link warning.
39336         (mbscasecmp): New declaration.
39337         * m4/mbscasecmp.m4: New file.
39338         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39339         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39340         REPLACE_STRCASECMP.
39341         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39342         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39343         GNULIB_MBSCASECMP.
39344         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39345         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39346         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39347         (Depends-on): Remove mbuiter.
39348         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39349
39350 2007-02-04  Bruno Haible  <bruno@clisp.org>
39351
39352         New module mbsstr. Remove module strstr.
39353         * modules/mbsstr: New file.
39354         * modules/strstr: Remove file.
39355         * lib/mbsstr.c: Renamed from lib/strstr.c.
39356         (mbsstr): Renamed from strstr.
39357         * lib/string_.h (strstr): Remove declaration. Change the conditional
39358         link warning.
39359         (mbsstr): New declaration.
39360         * m4/mbsstr.m4: New file.
39361         * m4/strstr.m4: Remove file.
39362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39363         REPLACE_STRSTR.
39364         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39365         Don't initialize GNULIB_STRSTR.
39366         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39367         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39368         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39369         (Support for systems lacking ANSI C 89): Remove strstr.
39370
39371 2007-02-04  Bruno Haible  <bruno@clisp.org>
39372
39373         New module mbsrchr.
39374         * modules/mbsrchr: New file.
39375         * lib/mbsrchr.c: New file.
39376         * lib/string_.h (strrchr): Add a conditional link warning.
39377         (mbsrchr): New declaration.
39378         * m4/mbsrchr.m4: New file.
39379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39380         GNULIB_MBSRCHR.
39381         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39382         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39383
39384 2007-02-04  Bruno Haible  <bruno@clisp.org>
39385
39386         New module mbschr.
39387         * modules/mbschr: New file.
39388         * lib/mbschr.c: New file.
39389         * lib/string_.h (strchr): Add a conditional link warning.
39390         (mbschr): New declaration.
39391         * m4/mbschr.m4: New file.
39392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39393         GNULIB_MBSCHR.
39394         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39395         * MODULES.html.sh (Internationalization functions): Add mbschr.
39396
39397 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39398
39399         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39400
39401         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39402
39403 2007-02-04  Bruno Haible  <bruno@clisp.org>
39404
39405         New module description section 'configure.ac-early'.
39406         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39407         (func_get_autoconf_early_snippet): New function.
39408         (func_import, func_create_testdir): Use it. Remove special cases for
39409         modules 'extensions' and 'lock'.
39410         * modules/extensions (configure.ac-early): Require
39411         gl_USE_SYSTEM_EXTENSIONS.
39412         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39413
39414 2007-02-04  Bruno Haible  <bruno@clisp.org>
39415
39416         Make use of gcj-4.3's -fsource and -ftarget option.
39417         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39418         and if so try the options -fsource and -ftarget.
39419         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39420         source_version, ftarget_option, target_version arguments.
39421         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39422         (is_envjavac_oldgcj_14_14_usable): Renamed from
39423         is_envjavac_gcj_14_14_usable.
39424         (is_envjavac_oldgcj_14_13_usable): Renamed from
39425         is_envjavac_gcj_14_13_usable.
39426         (is_gcj_present): Update.
39427         (is_gcj_43, is_gcj43_usable): New functions.
39428         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39429         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39430         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39431         try the options -fsource and -ftarget.
39432
39433 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39434
39435         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39436         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39437         larger value.
39438
39439 2007-02-03  Jim Meyering  <jim@meyering.net>
39440
39441         Give tools a better chance to allocate space for very large buffers.
39442         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39443
39444         Make pwd and readlink work also when run with an unreadable parent dir
39445         on systems with openat support.
39446         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39447         provided getcwd function, even when we have openat support.
39448         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39449
39450 2007-02-02  Bruno Haible  <bruno@clisp.org>
39451
39452         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39453         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39454         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39455         portability problems if one of these functions is only used on specific
39456         platforms.
39457         Reported by Paul Eggert.
39458
39459 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39460
39461         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39462         is causing more trouble than it's curing.
39463         * lib/regex_internal.h (__mempcpy): Remove.
39464         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39465         (and make the code a tad smaller to boot).
39466         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39467
39468 2007-02-02  Jim Meyering  <jim@meyering.net>
39469
39470         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39471         section, not in the Makefile.am: one.
39472
39473 2007-02-02  Eric Blake  <ebb9@byu.net>
39474
39475         * lib/strchrnul.c: Always include config.h first.
39476
39477         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39478         gnulib strstr is not necessary here.
39479
39480 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39481
39482         * m4/socklen.m4: Fix typo.
39483
39484 2007-02-02  Eric Blake  <ebb9@byu.net>
39485
39486         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39487         * modules/netinet_in (Makefile.am): Likewise.
39488
39489 2007-02-01  Bruno Haible  <bruno@clisp.org>
39490
39491         * lib/string_.h (GL_LINK_WARNING): New macro.
39492         (strcasecmp, strstr, strcasestr): If provided by the system,
39493         conditionally define as a macro that leads to a warning instead of to
39494         an error.
39495         (strncasecmp): Conditionally define as a macro that leads to a warning.
39496
39497 2007-02-01  Karl Berry  <karl@gnu.org>
39498
39499         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39500
39501 2007-02-01  Bruno Haible  <bruno@clisp.org>
39502
39503         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39504         renamings.
39505
39506 2007-02-01  Eric Blake  <ebb9@byu.net>
39507
39508         * modules/regex (Depends-on): Revert dependence on mempcpy.
39509         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39510         module's definition of mempcpy.
39511         Reported by Paul Eggert.
39512
39513 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39514
39515         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39516         the symbol XYZ before redefining it.  This fixes a problem with
39517         programs that don't use XYZ, when compiled on systems that define
39518         XYZ to something else.
39519
39520 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39521
39522         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39523         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39524         writeable to group or other and (2) is intended to have a special
39525         mode bit that is set or cleared.  In such a case, the directory
39526         should be neither group- nor other-writeable until the special
39527         mode bits are right.
39528
39529 2007-01-31  Eric Blake  <ebb9@byu.net>
39530
39531         * modules/mountlist (Depends-on): Add strstr.
39532
39533         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39534         bug.
39535         * modules/string (Makefile.am): Remove redundant replacement.
39536         * modules/regex (Depends-on): Add mempcpy.
39537
39538 2007-01-31  Bruno Haible  <bruno@clisp.org>
39539
39540         New module description field 'Link'.
39541         * gnulib-tool (func_usage): Document --extract-link-directive.
39542         (sed_extract_prog): Recognize 'Link' directive.
39543         (func_get_link_directive): New function.
39544         (func_import): Show summary of link directives.
39545         Handle --extract-link-directive option.
39546         * modules/acl (Link): New section.
39547         * modules/clock-time (Link): New section.
39548         * modules/euidaccess (Link): New section.
39549         * modules/gettext (Link): New section.
39550         * modules/iconv (Link): New section.
39551         * modules/lock (Link): New section.
39552         * modules/nanosleep (Link): New section.
39553         * modules/readline (Link): New section.
39554
39555 2007-01-27  Bruno Haible  <bruno@clisp.org>
39556
39557         Enforce the use of gnulib modules for unportable <string.h> functions.
39558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39559         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39560         (gl_HEADER_STRING_H_BODY): Require it.
39561         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39562         the symbol XYZ to one that gives a link error.
39563         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39564         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39565         * modules/mempcpy (configure.ac): Likewise.
39566         * modules/memrchr (configure.ac): Likewise.
39567         * modules/stpcpy (configure.ac): Likewise.
39568         * modules/stpncpy (configure.ac): Likewise.
39569         * modules/strcase (configure.ac): Likewise.
39570         * modules/strcasestr (configure.ac): Likewise.
39571         * modules/strchrnul (configure.ac): Likewise.
39572         * modules/strdup (configure.ac): Likewise.
39573         * modules/strndup (configure.ac): Likewise.
39574         * modules/strnlen (configure.ac): Likewise.
39575         * modules/strpbrk (configure.ac): Likewise.
39576         * modules/strsep (configure.ac): Likewise.
39577         * modules/strstr (configure.ac): Likewise.
39578         * modules/strtok_r (configure.ac): Likewise.
39579
39580 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39581
39582         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39583
39584 2007-01-30  Jim Meyering  <jim@meyering.net>
39585
39586         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39587
39588 2007-01-29  Bruno Haible  <bruno@clisp.org>
39589
39590         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39591         * lib/execute.c: Likewise.
39592         * lib/pipe.c: Likewise.
39593         * lib/printf-args.h: Likewise.
39594         * lib/printf-args.c: Likewise.
39595         * lib/printf-parse.c: Likewise.
39596         * lib/vasnprintf.c: Likewise.
39597
39598 2007-01-29  Eric Blake  <ebb9@byu.net>
39599
39600         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39601         declaration.
39602
39603 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39604
39605         * lib/strptime.h (strptime): Use 'restrict' for args where
39606         POSIX requires this.
39607         * lib/strptime.c (strptime): Likewise.
39608         Change license notice from LGPL to GPL, since gnulib-tool will
39609         change this as needed.
39610         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39611         defined.
39612         Include "strptime.h" first, to check interface.
39613         Do not #undef _LIBC and _NL_CURRENT.
39614         Do not include <stdlib.h>; no longer needed.
39615         Include "time_r.h" and declare ptime_locale_status
39616         only if _LIBC is not defined.
39617         (__P): Remove unused macro.
39618         (match_string): Bring back glibc version, but use it only if _LIBC
39619         is defined.
39620         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39621         Remove unnecessary assertion and abort() call.
39622         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39623         * m4/strptime.m4: Fix serial number comment.
39624         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39625         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39626         (Depends-on): Add time_r.
39627
39628 2007-01-29  Bruno Haible  <bruno@clisp.org>
39629
39630         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39631         strptime.
39632         * modules/strptime (Depends-on): Add stdbool.
39633         * lib/strptime.h: Include <time.h> always. Add comments.
39634
39635 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39636
39637         * modules/strptime: New file.
39638         * lib/strptime.h: New file.
39639         * lib/strptime.c: New file.
39640         * m4/strptime.m4: New file.
39641
39642 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39643
39644         * MODULES.html.sh: New module mpsort.
39645         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39646
39647         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39648         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39650         All uses changed.
39651         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39652         All uses changed.
39653         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39654         to _Restrict_.
39655         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39656         the parameter matches the prototype.
39657
39658 2007-01-28  Jim Meyering  <jim@meyering.net>
39659
39660         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39661         sys/time.h here, reverting that part of the previous patch:
39662         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39663
39664 2007-01-28  Bruno Haible  <bruno@clisp.org>
39665
39666         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39667         value of $(SYS_TIME_H).
39668         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39669         remove it conditionally, too. [added by Jim Meyering]
39670         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39671         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39672         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39673         GETTIMEOFDAY_REPLACEMENT to 1.
39674
39675 2007-01-28  Bruno Haible  <bruno@clisp.org>
39676
39677         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39678         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39679         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39680         Set UNISTD_H instead of UNISTD_H2.
39681         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39682
39683 2007-01-28  Bruno Haible  <bruno@clisp.org>
39684
39685         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39686         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39687
39688 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39689
39690         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39691         (func_create_testdir): Ensure C locale for `grep' and `tr'
39692         character ranges.
39693         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39694         ACLOCAL_AMFLAGS parsing state machine.
39695
39696 2007-01-27  Bruno Haible  <bruno@clisp.org>
39697
39698         * modules/unistr/base: Update.
39699
39700 2007-01-27  Bruno Haible  <bruno@clisp.org>
39701
39702         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39703         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39704         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39705         modules/unistr/u32-mbtouc.
39706         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39707         * lib/unistr.h: Update.
39708         * lib/linebreak.c: Update.
39709         * modules/unistr/u32-mbtouc: Renamed from
39710         modules/unistr/u32-mbtouc-safe.
39711         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39712         * lib/unistr.h: Update.
39713         * lib/unistr/u32-to-u8.c: Update.
39714         * lib/unistr/u32-to-u16.c: Update.
39715
39716 2007-01-27  Bruno Haible  <bruno@clisp.org>
39717
39718         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39719         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39720         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39721         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39722         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39723         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39724         modules/unistr/u16-mbtouc.
39725         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39726         * lib/unistr.h: Update.
39727         * lib/linebreak.c: Update.
39728         * modules/linebreak: Update.
39729         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39730         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39731         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39732         * modules/unistr/u16-mbtouc: Renamed from
39733         modules/unistr/u16-mbtouc-safe.
39734         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39735         * lib/unistr.h: Update.
39736         * lib/unistr/u16-to-u8.c: Update.
39737         * modules/unistr/u16-to-u8: Update.
39738         * lib/unistr/u16-to-u32.c: Update.
39739         * modules/unistr/u16-to-u32: Update.
39740
39741 2007-01-27  Bruno Haible  <bruno@clisp.org>
39742
39743         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39744         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39745         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39746         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39747         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39748         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39749         modules/unistr/u8-mbtouc.
39750         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39751         * lib/unistr.h: Update.
39752         * lib/striconveh.c: Update.
39753         * modules/striconveh: Update.
39754         * lib/linebreak.c: Update.
39755         * modules/linebreak: Update.
39756         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39757         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39758         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39759         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39760         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39761         * lib/unistr.h: Update.
39762         * lib/striconveh.c: Update.
39763         * modules/striconveh: Update.
39764         * lib/unistr/u8-to-u16.c: Update.
39765         * modules/unistr/u8-to-u16: Update.
39766         * lib/unistr/u8-to-u32.c: Update.
39767         * modules/unistr/u8-to-u32: Update.
39768
39769 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39770
39771         Sync from Libtool.
39772         * lib/argz.c: Do not include strings.h nor memory.h, include
39773         string.h unconditionally.  Patch by Simon Josefsson.
39774
39775 2007-01-27  Bruno Haible  <bruno@clisp.org>
39776
39777         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39778         from gl_HEADER_STRING_H_BODY.
39779         (gl_HEADER_STRING_H_BODY): Require it.
39780         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39781         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39782         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39783         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39784         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39785         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39787         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39788         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39789         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39790         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39791         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39792         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39793         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39794         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39795
39796 2007-01-27  Bruno Haible  <bruno@clisp.org>
39797
39798         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39799         check_PROGRAMS into noinst_PROGRAMS.
39800         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39801         check_PROGRAMS in this case.
39802         (func_import): Set for_test to false.
39803         (func_create_testdir): Set for_test to true.
39804
39805 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39806             Bruno Haible  <bruno@clisp.org>
39807
39808         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39809         (Depends-on): Add string.
39810         (Includes): Use <string.h> instead of strcasestr.h.
39811         * modules/string (Makefile.am): Also substitute the value of
39812         REPLACE_STRCASESTR.
39813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39814         assume strcasestr is declared in <string.h> not <strings.h>. Also
39815         set REPLACE_STRCASESTR.
39816         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39817         REPLACE_STRCASESTR.
39818         * lib/strcasestr.h: Remove file.
39819         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39820         * lib/string_.h (strcasestr): New declaration.
39821
39822 2007-01-27  Bruno Haible  <bruno@clisp.org>
39823
39824         * lib/string_.h: Use 'extern'.
39825
39826 2007-01-27  Jim Meyering  <jim@meyering.net>
39827
39828         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39829         of set-but-not-used local, "q".
39830
39831         * lib/mempcpy.c: Include <config.h> before <string.h>.
39832         This fixes a compilation error on HP-UX, due to the system's
39833         "restrict"-using mempcpy prototype.
39834
39835 2007-01-26  Bruno Haible  <bruno@clisp.org>
39836
39837         Small optimization.
39838         * lib/javacomp.c: Include c-strstr.h.
39839          (is_envjavac_gcj): Use c_strstr instead of strstr.
39840         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39841
39842 2007-01-26  Bruno Haible  <bruno@clisp.org>
39843
39844         * MODULES.html.sh (Unicode string functions): Add the new modules.
39845
39846         * modules/uniconv/u32-strconv-to-locale: New file.
39847         * lib/uniconv/u32-strconv-to-locale.c: New file.
39848
39849         * modules/uniconv/u16-strconv-to-locale: New file.
39850         * lib/uniconv/u16-strconv-to-locale.c: New file.
39851
39852         * modules/uniconv/u8-strconv-to-locale: New file.
39853         * lib/uniconv/u8-strconv-to-locale.c: New file.
39854
39855         * modules/uniconv/u32-strconv-from-locale: New file.
39856         * lib/uniconv/u32-strconv-from-locale.c: New file.
39857
39858         * modules/uniconv/u16-strconv-from-locale: New file.
39859         * lib/uniconv/u16-strconv-from-locale.c: New file.
39860
39861         * modules/uniconv/u8-strconv-from-locale: New file.
39862         * lib/uniconv/u8-strconv-from-locale.c: New file.
39863
39864         * modules/uniconv/u32-strconv-to-enc: New file.
39865         * lib/uniconv/u32-strconv-to-enc.c: New file.
39866         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39867         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39868
39869         * modules/uniconv/u16-strconv-to-enc: New file.
39870         * lib/uniconv/u16-strconv-to-enc.c: New file.
39871         * lib/uniconv/u-strconv-to-enc.h: New file.
39872         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39873         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39874
39875         * modules/uniconv/u8-strconv-to-enc: New file.
39876         * lib/uniconv/u8-strconv-to-enc.c: New file.
39877         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39878         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39879
39880         * modules/uniconv/u32-strconv-from-enc: New file.
39881         * lib/uniconv/u32-strconv-from-enc.c: New file.
39882         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39883         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39884
39885         * modules/uniconv/u16-strconv-from-enc: New file.
39886         * lib/uniconv/u16-strconv-from-enc.c: New file.
39887         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39888         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39889
39890         * modules/uniconv/u8-strconv-from-enc: New file.
39891         * lib/uniconv/u8-strconv-from-enc.c: New file.
39892         * lib/uniconv/u-strconv-from-enc.h: New file.
39893         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39894         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39895
39896         * modules/uniconv/u32-conv-from-enc: New file.
39897         * lib/uniconv/u32-conv-from-enc.c: New file.
39898         * modules/uniconv/u32-conv-from-enc-tests: New file.
39899         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39900
39901         * modules/uniconv/u16-conv-from-enc: New file.
39902         * lib/uniconv/u16-conv-from-enc.c: New file.
39903         * lib/uniconv/u-conv-from-enc.h: New file.
39904         * modules/uniconv/u16-conv-from-enc-tests: New file.
39905         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39906
39907         * modules/uniconv/u8-conv-from-enc: New file.
39908         * lib/uniconv/u8-conv-from-enc.c: New file.
39909         * modules/uniconv/u8-conv-from-enc-tests: New file.
39910         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39911
39912         * modules/uniconv/base: New file.
39913         * lib/uniconv.h: New file.
39914
39915 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39916
39917         * doc/gnulib-tool.texi (Initial import): Update to match current
39918         behavior with strdup module.
39919         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39920         * lib/memmem.h: Remove; all uses removed.  This is now done
39921         by <string.h>.
39922         * lib/mempcpy.h: Likewise.
39923         * lib/memrchr.h: Likewise.
39924         * lib/stpcpy.h: Likewise.
39925         * lib/stpncpy.h: Likewise.
39926         * lib/strcase.h: Likewise.
39927         * lib/strchrnul.h: Likewise.
39928         * lib/strdup.h: Likewise.
39929         * lib/strndup.h: Likewise.
39930         * lib/strnlen.h: Likewise.
39931         * lib/strpbrk.h: Likewise.
39932         * lib/strsep.h: Likewise.
39933         * lib/strstr.h: Likewise.
39934         * lib/strtok_r.h: Likewise.
39935         * lib/string_.h: New file.
39936         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39937         Rely on <string.h> instead.
39938         * lib/canon-host.c: Likewise.
39939         * lib/chdir-long.c: Likewise.
39940         * lib/concatpath.c: Likewise.
39941         * lib/exclude.c: Likewise.
39942         * lib/fchdir.c: Likewise.
39943         * lib/getaddrinfo.c: Likewise.
39944         * lib/getcwd.c: Likewise.
39945         * lib/getsubopt.c: Likewise.
39946         * lib/glob.c: Likewise.
39947         * lib/hard-locale.c: Likewise.
39948         * lib/iconvme.c: Likewise.
39949         * lib/javacomp.c: Likewise.
39950         * lib/mempcpy.c: Likewise.
39951         * lib/memrchr.c: Likewise.
39952         * lib/regex_internal.h: Likewise.
39953         * lib/stpncpy.c: Likewise.
39954         * lib/strcasecmp.c: Likewise.
39955         * lib/strchrnul.c: Likewise.
39956         * lib/strdup.c: Likewise.
39957         * lib/striconv.c: Likewise.
39958         * lib/striconveh.c: Likewise.
39959         * lib/striconveha.c: Likewise.
39960         * lib/strncasecmp.c: Likewise.
39961         * lib/strndup.c: Likewise.
39962         * lib/strnlen.c: Likewise.
39963         * lib/strsep.c: Likewise.
39964         * lib/strstr.c: Likewise.
39965         * lib/strtok_r.c: Likewise.
39966         * lib/userspec.c: Likewise.
39967         * lib/w32spawn.h: Likewise.
39968         * lib/xstrndup.c: Likewise.
39969         * lib/mountlist.c (strstr): Remove decl.
39970         * m4/string_h.m4: New file.
39971         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39972         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39973         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39974         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39975         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39976         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39977         Set REPLACE_STRCASECMP if necessary.
39978         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39979         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39980         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39981         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39982         HAVE_DECL_STRDUP if necessary.
39983         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39984         since gl_FUNC_STRNDUP does that now.
39985         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39986         Check for decl here...
39987         (gl_PREREQ_STRNLEN): ... not here.
39988         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39989         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39990         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39991         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39992         necessary.
39993         * modules/string: New file.
39994         * modules/memmem (Files): Remove special-purpose include file.
39995         (Depends-on): Add string.
39996         (Include): Include <string.h>, not the removed file.
39997         * modules/mempcpy: Likewise.
39998         * modules/memrchr: Likewise.
39999         * modules/stpcpy: Likewise.
40000         * modules/stpncpy: Likewise.
40001         * modules/strcase: Likewise.
40002         * modules/strchrnul: Likewise.
40003         * modules/strdup: Likewise.
40004         * modules/strndup: Likewise.
40005         * modules/strnlen: Likewise.
40006         * modules/strpbrk: Likewise.
40007         * modules/strsep: Likewise.
40008         * modules/strstr: Likewise.
40009         * modules/strtok_r: Likewise.
40010         * tests/test-dirname.c: Don't include "strdup.h", since
40011         <string.h> now suffices.
40012         * tests/test-memmem.c: Don't include "memmem.h", since
40013         <string.h> now suffices.
40014
40015 2007-01-25  Bruno Haible  <bruno@clisp.org>
40016
40017         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
40018         *resultp is 0.
40019
40020         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
40021         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
40022         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
40023         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
40024
40025         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
40026         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
40027         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
40028         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
40029         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
40030         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
40031
40032 2007-01-24  Bruno Haible  <bruno@clisp.org>
40033
40034         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
40035         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
40036         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
40037         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
40038         gl_FUNC_FTS_CORE.
40039         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
40040         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
40041         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40042         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
40043         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
40044         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
40045         gl_FUNC_FCHOWNAT.
40046         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
40047         gl_FUNC_STRFTIME.
40048         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
40049         Reported by Ralf Wildenhues.
40050
40051 2007-01-24  Bruno Haible  <bruno@clisp.org>
40052
40053         Drop AC_REQUIRE calls that are redundant with the module dependencies.
40054         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
40055         gl_GETADDRINFO.
40056         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
40057         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
40058         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
40059
40060 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
40061
40062         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
40063         Don't use 'exit'; just return from 'main'.
40064         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
40065
40066         * lib/fnmatch_.h: Readjust white space and comments to match
40067         glibc, to avoid spurious diffs.
40068
40069 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40070
40071         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
40072         2004-12-01 change by Jakub Jelinek, since this code won't compile
40073         if !LIBC.  Problem reported by Bob Proulx.
40074
40075 2007-01-23  Bruno Haible  <bruno@clisp.org>
40076
40077         * lib/striconveh.c: Include c-strcaseeq.h.
40078         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
40079         * modules/striconveh (Depends-on): Add c-strcaseeq.
40080
40081 2007-01-23  Bruno Haible  <bruno@clisp.org>
40082
40083         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
40084
40085         * modules/c-strcaseeq: New file.
40086         * lib/c-strcaseeq.h: New file.
40087
40088         * modules/streq: New file.
40089         * lib/streq.h: New file.
40090
40091 2007-01-23  Bruno Haible  <bruno@clisp.org>
40092
40093         * modules/striconveha-tests: New file.
40094         * tests/test-striconveha.c: New file.
40095
40096         * lib/striconveha.h: Include <stdbool.h>.
40097         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
40098         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
40099         (mem_iconveha_notranslit): Renamed from mem_iconveha.
40100         (mem_iconveha): New function.
40101         (str_iconveha_notranslit): Renamed from str_iconveha.
40102         (str_iconveha): New function.
40103         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
40104         c-strcase.
40105
40106 2007-01-23  Bruno Haible  <bruno@clisp.org>
40107
40108         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
40109         encodings without forgiving before trying any encoding with handler.
40110         (str_iconveha): Try all encodings without forgiving before trying any
40111         encoding with handler.
40112
40113 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40114
40115         Import the following changes from libc.
40116
40117         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40118
40119         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
40120
40121         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
40122
40123         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
40124         normal_bracket label.
40125
40126         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
40127
40128         [BZ #361]
40129         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
40130         to normal_bracket after fetching the next character.
40131
40132 2007-01-22  Bruno Haible  <bruno@clisp.org>
40133
40134         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
40135         argument.
40136         * lib/striconveh.c (iconv_carefully_1): New function.
40137         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
40138         argument.
40139         (str_cd_iconveh): Update.
40140         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
40141         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
40142         * tests/test-striconveh.c (MAGIC): New macro.
40143         (new_offsets): New function.
40144         (main): Test call with and without offsets.
40145
40146 2007-01-22  Bruno Haible  <bruno@clisp.org>
40147
40148         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
40149         * modules/sys_select (Makefile.am): Likewise.
40150         * modules/sys_socket (Makefile.am): Likewise.
40151         * modules/sys_time (Makefile.am): Likewise.
40152
40153 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40154
40155         * modules/gettimeofday (License): Change from GPL to LGPL, since
40156         gettimeofday is a library function.
40157
40158 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40159
40160         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
40161
40162 2007-01-21  Bruno Haible  <bruno@clisp.org>
40163
40164         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
40165
40166 2007-01-21  Bruno Haible  <bruno@clisp.org>
40167
40168         * modules/striconveha: New file.
40169         * lib/striconveha.h: New file.
40170         * lib/striconveha.c: New file.
40171         * MODULES.html.sh (Internationalization functions): Add striconveha.
40172         * lib/striconv.c (str_iconv): Optimize the case of an empty input
40173         string.
40174         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
40175
40176 2007-01-21  Bruno Haible  <bruno@clisp.org>
40177
40178         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40179         * lib/striconveh.c (str_iconveh): Likewise.
40180
40181 2007-01-21  Bruno Haible  <bruno@clisp.org>
40182
40183         * lib/striconveh.h (mem_iconveh): New declaration.
40184         * lib/striconveh.c (mem_iconveh): New function.
40185         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40186
40187 2007-01-21  Bruno Haible  <bruno@clisp.org>
40188
40189         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40190
40191         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40192         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40193         original result buffer.
40194         (str_cd_iconveh): Update.
40195         * tests/test-striconveh.c (main): Update.
40196
40197         * lib/striconv.h (mem_cd_iconv): Change specification.
40198         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40199         result buffer.
40200         (str_cd_iconv): Update.
40201         * tests/test-striconv.c (main): Update.
40202
40203 2007-01-21  Bruno Haible  <bruno@clisp.org>
40204
40205         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40206
40207 2007-01-20  Jim Meyering  <jim@meyering.net>
40208
40209         * lib/userspec.c (parse_with_separator): If a user or group string
40210         starts with "+", skip the corresponding name-to-ID look-up, since
40211         such a look-up must fail: user and group names may not include "+".
40212
40213 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40214
40215         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40216         since we now assume the sys_time module.
40217         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40218         check for sys/time.h; no longer needed.
40219         * modules/poll (Depends-on): Depend on sys_time.
40220
40221 2007-01-18  Bruno Haible  <bruno@clisp.org>
40222
40223         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40224         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40225
40226         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40227         gettimeofday.
40228
40229         * tests/test-gettimeofday.c: Include <time.h>.
40230         (dummy): Remove variable.
40231
40232         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40233         gl_HEADER_SYS_TIME_H.
40234         (gl_HEADER_SYS_TIME_H): New macro.
40235
40236         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40237         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40238         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40239         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40240         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40241         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40242         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40243         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40244         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40245         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40246         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40247
40248         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40249         last change; it caused a compilation error when cross-compiling to
40250         Cygwin.
40251
40252 2007-01-18  Jim Meyering  <jim@meyering.net>
40253
40254         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40255         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40256         than the race-prone "test -d sys || mkdir sys".
40257         (configure.ac): Use AC_PROG_MKDIR_P.
40258         * modules/sys_select: Likewise.
40259         * modules/sys_socket: Likewise.
40260         * modules/sys_time: Likewise.
40261
40262 2007-01-18  Eric Blake  <ebb9@byu.net>
40263
40264         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40265         replace gettimeofday.
40266         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40267         name, to avoid infinite recursion.
40268
40269 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40270
40271         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40272         module sys_time.
40273         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40274         assume timespec.h defines struct timeval.
40275         * lib/settime.c: Likewise.
40276         * lib/utimens.c: Likewise.
40277         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40278         since we now assume the gettimeofday module.
40279         * lib/tempname.c (__gen_tempname): Likewise.
40280         * lib/gettimeofday.h: Remove.
40281         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40282         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40283         Include <time.h>, for 'time()'.
40284         (localtime_buffer_addr): Also use this workaround if
40285         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40286         to simplify the uses.  All uses changed.
40287         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40288         that #undef is inside {}, and 'const' follows type name consistently.
40289         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40290         (gettimeofday): Do not use the maximum possible value for
40291         tv->tv_usec, since that might break usages other than ls.c.
40292         Instead, we'll leave ls.c alone.  This undoes today's patch
40293         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40294         we've never observed the problem but might as well keep the
40295         canary.
40296         * lib/nanosleep.c: Include timespec.h first, for interface check.
40297         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40298         now assume the sys_time module.
40299         * lib/tempname.c: Likewise.
40300         * lib/timespec.h: Likewise.
40301         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40302         needed.
40303         * lib/strftime.c: Likewise.
40304         * lib/timespec.h: Likewise.
40305         * lib/posixtm.c: Include posixtm.h first, for interface check.
40306         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40307         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40308         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40309         * lib/sys_time_.h: New file.
40310         * lib/timespec.h (struct timespec): Use long int, not long.
40311         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40312         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40313         Remove obsolescent call to AC_HEADER_TIME.
40314         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40315         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40316         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40317         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40318         Likewise.
40319         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40320         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40321         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40322         into the sys_time module.  Check for gettimeofday just once.
40323         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40324         for gettimeofday signature to just check the signature.  Merely
40325         compile it, since linking doesn't test signature.  Improve test for
40326         whether gettimeofday.o is actually needed.
40327         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40328         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40329         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40330         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40331         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40332         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40333         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40334         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40335         than worrying about sys/time.h.
40336         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40337         Don't bother worrying about TIME_WITH_SYS_TIME.
40338         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40339         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40340         * m4/sys_time_h.m4: New file.
40341         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40342         Don't include sys/time.h.  Return from main rather than exiting.
40343         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40344         all uses changed.
40345         * modules/gethrxtime (Depends-on): Add sys_time.
40346         * modules/gettime (Depends-on): Likewise.
40347         * modules/gettimeofday (Depends-on): Likewise.
40348         * modules/nanosleep (Depends-on): Likewise.
40349         * modules/settime (Depends-on): Likewise.
40350         * modules/tempname (Depends-on): Likewise.
40351         * modules/utimens (Depends-on): Likewise.
40352         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40353         (Include:) Change back to <sys/time.h>.
40354         (Maintainer:) Add self.
40355         * modules/sys_time: New file.
40356         * modules/tempname (Depends-on): Add gettimeofday.
40357         * tests/test-gettimeofday.c: Include <sys/time.h>
40358         rather than gettimeofday.h.
40359
40360 2007-01-17  Bruno Haible  <bruno@clisp.org>
40361
40362         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40363         the license default to GPL.
40364         (func_create_testdir): Don't complain if a module is LGPL and its
40365         tests module depends on GPLed modules.
40366
40367 2007-01-17  Bruno Haible  <bruno@clisp.org>
40368
40369         * lib/gettimeofday.c (gettimeofday): Add code for the case
40370         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40371         maximum possible value for tv->tv_usec, rather than the minimum one.
40372
40373 2005-10-08  Martin Lambers  <marlam@marlam.de>
40374 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40375 2007-01-16  Bruno Haible  <bruno@clisp.org>
40376
40377         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40378         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40379         gl_FUNC_GETTIMEOFDAY.
40380         (Include): Add gettimeofday.h.
40381         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40382         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40383         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40384         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40385         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40386         * lib/gettimeofday.h: New file.
40387         * lib/gettimeofday.c: Include <sys/timeb.h>.
40388         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40389         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40390         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40391         fall back on time().
40392
40393         * tests/test-gettimeofday.c: New file.
40394         * modules/gettimeofday-tests: New file.
40395
40396 2007-01-16  Eric Blake  <ebb9@byu.net>
40397
40398         * modules/fnmatch (Depends-on): Depend on wchar.
40399         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40400         * m4/fnmatch.m4: Likewise.
40401         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40402         * m4/mbchar.m4: Likewise.
40403         * modules/mbswidth (Depends-on): Depend on wchar.
40404         * lib/mbswidth.c: Assume <wchar.h>.
40405         * m4/mbswidth.m4: Likewise.
40406         * modules/quotearg (Depends-on): Depend on wchar.
40407         * lib/quotearg.c: Assume <wchar.h>.
40408         * m4/quotearg.m4: Likewise.
40409         * modules/regex (Depends-on): Depend on wchar.
40410         * lib/regex_internal.h: Assume <wchar.h>.
40411         * m4/regex.m4: Likewise.
40412         * modules/stdint (Depends-on): Depend on wchar.
40413         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40414         * m4/stdint.m4: Likewise.
40415         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40416         * modules/strftime (Depends-on): Depend on wchar.
40417         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40418         * modules/strtol (Depends-on): Depend on wchar.
40419         * lib/strtol.c: Assume <wchar.h>.
40420         * modules/wcwidth (Depends-on): Depend on wchar.
40421         * lib/wcwidth.h: Assume <wchar.h>.
40422         * m4/wcwidth.m4: Likewise.
40423
40424 2007-01-16  Bruno Haible  <bruno@clisp.org>
40425
40426         * modules/csharpexec-script: New, created from...
40427         * modules/csharpexec: ... this.
40428
40429 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40430
40431         * modules/javaexec-script: New, created from...
40432         * modules/javaexec: ... this.
40433
40434 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40435
40436         * modules/poll (Dependencies): Add sys_select.
40437
40438 2007-01-15  Jim Meyering  <jim@meyering.net>
40439
40440         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40441         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40442         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40443         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40444
40445 2007-01-15  Bruno Haible  <bruno@clisp.org>
40446
40447         * modules/striconveh: New file.
40448         * lib/striconveh.h: New file.
40449         * lib/striconveh.c: New file.
40450         * MODULES.html.sh (Internationalization functions): Add striconveh.
40451
40452         * modules/striconveh-tests: New file.
40453         * tests/test-striconveh.c: New file.
40454
40455 2007-01-15  Bruno Haible  <bruno@clisp.org>
40456
40457         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40458         not from GNU libiconv or GNU libc.
40459
40460 2007-01-15  Bruno Haible  <bruno@clisp.org>
40461
40462         * doc/gnulib-intro.texi (Copyright): Explain the different license
40463         terms for module descriptions, autoconf macros, tests, documentation.
40464
40465 2007-01-14  Bruno Haible  <bruno@clisp.org>
40466
40467         * modules/striconv-tests: New file.
40468         * tests/test-striconv.c: New file.
40469
40470 2007-01-14  Bruno Haible  <bruno@clisp.org>
40471
40472         * modules/iconv-tests: New file.
40473         * tests/test-iconv.c: New file.
40474
40475 2007-01-14  Bruno Haible  <bruno@clisp.org>
40476
40477         * gnulib-tool (func_get_license): For test modules, use the license of
40478         the main module.
40479
40480 2007-01-14  Bruno Haible  <bruno@clisp.org>
40481
40482         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40483         if iconv is found to exist.
40484
40485 2007-01-14  Bruno Haible  <bruno@clisp.org>
40486
40487         * modules/c-ctype-tests: New file.
40488         * tests/test-c-ctype.c: New file.
40489
40490 2007-01-14  Bruno Haible  <bruno@clisp.org>
40491
40492         * modules/binary-io-tests: New file.
40493         * tests/test-binary-io.sh: New file.
40494         * tests/test-binary-io.c: New file.
40495
40496 2007-01-14  Bruno Haible  <bruno@clisp.org>
40497
40498         * modules/array-oset-tests: New file.
40499         * tests/test-array_oset.c: New file.
40500
40501 2007-01-14  Bruno Haible  <bruno@clisp.org>
40502
40503         * modules/array-list-tests: New file.
40504         * tests/test-array_list.c: New file.
40505
40506 2007-01-14  Bruno Haible  <bruno@clisp.org>
40507
40508         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40509         and make.
40510         Reported by Simon Josefsson in
40511         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40512
40513 2007-01-14  Bruno Haible  <bruno@clisp.org>
40514
40515         * modules/allocsa-tests: New file.
40516         * tests/test-allocsa.c: New file.
40517
40518 2007-01-14  Bruno Haible  <bruno@clisp.org>
40519
40520         * modules/fchdir (Depends-on): Add absolute-header.
40521         * modules/unistd (Depends-on): Likewise.
40522
40523 2006-12-30  Bruno Haible  <bruno@clisp.org>
40524
40525         * modules/fchdir: New file.
40526         * modules/unistd (Files): Add lib/unistd_.h.
40527         (Makefile.am): Generate unistd.h from unistd_.h.
40528         * lib/fchdir.c: New file.
40529         * lib/dirent_.h: New file.
40530         * lib/unistd_.h: New file.
40531         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40532         * m4/fchdir.m4: New file.
40533         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40534         (gl_HEADER_UNISTD): Invoke it.
40535         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40536         function.
40537         * lib/backupfile.c (opendir, closedir): Undefine.
40538         * lib/chown.c (open, close): Undefine.
40539         * lib/clean-temp.c (open, close): Undefine.
40540         * lib/copy-file.c (open, close): Undefine.
40541         * lib/execute.c (open, close): Undefine.
40542         * lib/fsusage.c (open, close): Undefine.
40543         * lib/gc-gnulib.c (open, close): Undefine.
40544         * lib/getcwd.c (opendir, closedir): Undefine.
40545         * lib/glob.c (opendir, closedir): Undefine.
40546         * lib/javacomp.c (open, close): Undefine.
40547         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40548         * lib/openat-proc.c (open, close): Undefine.
40549         * lib/pagealign_alloc.c (open, close): Undefine.
40550         * lib/pipe.c (open, close): Undefine.
40551         * lib/progreloc.c (open, close): Undefine.
40552         * lib/savedir.c (opendir, closedir): Undefine.
40553         * lib/utime.c (open, close): Undefine.
40554         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40555
40556 2007-01-10  Bruno Haible  <bruno@clisp.org>
40557
40558         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40559
40560 2007-01-12  Eric Blake  <ebb9@byu.net>
40561
40562         Provide a robust <wchar.h>.  Further simplifications are now
40563         possible in other modules, but not included here.
40564         * modules/wchar: New module.
40565         * m4/wchar.m4: New file.
40566         * lib/wchar_.h: Likewise.
40567         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40568         of the new module.
40569         * MODULES.html.sh (Extended multibyte and wide character utilities):
40570         New section.
40571
40572 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40573
40574         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40575         to a reasonable default for memory allocation.
40576         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40577         file system that reports garbage st_size values for symlinks.
40578         Problem reported by Liyang Hu.
40579
40580 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40581
40582         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40583         Emacs .#* auto-save files).
40584
40585 2007-01-11  Bruno Haible  <bruno@clisp.org>
40586
40587         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40588         directory.
40589
40590 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40591
40592         Use @...@ consistently in lib/wctype_.h.
40593         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40594         on it being set to 1 or 0.
40595         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40596         go back to AC_SUBSTing it.
40597         * modules/wctype (Makefile.am): Undo previous change.
40598
40599 2007-01-10  Eric Blake  <ebb9@byu.net>
40600
40601         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40602         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40603         * modules/wctype (Makefile.am): Likewise.
40604         Reported by Chris McGuire.
40605
40606 2007-01-10  Jim Meyering  <jim@meyering.net>
40607
40608         fts.c: a small readability/maintainability improvement
40609         * lib/fts.c (fts_read): Make this code slightly more readable and
40610         maintainable by hoisting the "sp->fts_cur = p" assignments to
40611         immediately follow the statements that set P.  Derived from
40612         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40613
40614 2007-01-10  Eric Blake  <ebb9@byu.net>
40615
40616         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40617         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40619         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40620         Reported by Chris McGuire.
40621
40622 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40623
40624         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40625         in sed script.
40626
40627 2007-01-09  Bruno Haible  <bruno@clisp.org>
40628
40629         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40630         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40631         variables.
40632         (func_module): Use them.
40633
40634 2007-01-09  Bruno Haible  <bruno@clisp.org>
40635
40636         * modules/unistr/base: New file.
40637         * lib/unistr.h: New file.
40638
40639         * modules/unistr/u8-to-u16: New file.
40640         * lib/unistr/u8-to-u16.c: New file.
40641
40642         * modules/unistr/u8-to-u32: New file.
40643         * lib/unistr/u8-to-u32.c: New file.
40644
40645         * modules/unistr/u16-to-u8: New file.
40646         * lib/unistr/u16-to-u8.c: New file.
40647
40648         * modules/unistr/u16-to-u32: New file.
40649         * lib/unistr/u16-to-u32.c: New file.
40650
40651         * modules/unistr/u32-to-u8: New file.
40652         * lib/unistr/u32-to-u8.c: New file.
40653
40654         * modules/unistr/u32-to-u16: New file.
40655         * lib/unistr/u32-to-u16.c: New file.
40656
40657         * modules/unistr/u8-check: New file.
40658         * modules/unistr/u16-check: New file.
40659         * modules/unistr/u32-check: New file.
40660         * lib/unistr/u8-check.c: New file.
40661         * lib/unistr/u16-check.c: New file.
40662         * lib/unistr/u32-check.c: New file.
40663
40664         * modules/unistr/u8-chr: New file.
40665         * modules/unistr/u16-chr: New file.
40666         * modules/unistr/u32-chr: New file.
40667         * lib/unistr/u8-chr.c: New file.
40668         * lib/unistr/u16-chr.c: New file.
40669         * lib/unistr/u32-chr.c: New file.
40670
40671         * modules/unistr/u8-cmp: New file.
40672         * modules/unistr/u16-cmp: New file.
40673         * modules/unistr/u32-cmp: New file.
40674         * lib/unistr/u8-cmp.c: New file.
40675         * lib/unistr/u16-cmp.c: New file.
40676         * lib/unistr/u32-cmp.c: New file.
40677
40678         * modules/unistr/u8-cpy: New file.
40679         * modules/unistr/u16-cpy: New file.
40680         * modules/unistr/u32-cpy: New file.
40681         * lib/unistr/u8-cpy.c: New file.
40682         * lib/unistr/u16-cpy.c: New file.
40683         * lib/unistr/u32-cpy.c: New file.
40684         * lib/unistr/u-cpy.h: New file.
40685
40686         * modules/unistr/u8-cpy-alloc: New file.
40687         * modules/unistr/u16-cpy-alloc: New file.
40688         * modules/unistr/u32-cpy-alloc: New file.
40689         * lib/unistr/u8-cpy-alloc.c: New file.
40690         * lib/unistr/u16-cpy-alloc.c: New file.
40691         * lib/unistr/u32-cpy-alloc.c: New file.
40692         * lib/unistr/u-cpy-alloc.h: New file.
40693
40694         * modules/unistr/u8-endswith: New file.
40695         * modules/unistr/u16-endswith: New file.
40696         * modules/unistr/u32-endswith: New file.
40697         * lib/unistr/u8-endswith.c: New file.
40698         * lib/unistr/u16-endswith.c: New file.
40699         * lib/unistr/u32-endswith.c: New file.
40700         * lib/unistr/u-endswith.h: New file.
40701
40702         * modules/unistr/u8-mblen: New file.
40703         * modules/unistr/u16-mblen: New file.
40704         * modules/unistr/u32-mblen: New file.
40705         * lib/unistr/u8-mblen.c: New file.
40706         * lib/unistr/u16-mblen.c: New file.
40707         * lib/unistr/u32-mblen.c: New file.
40708
40709         * modules/unistr/u8-mbtouc: New file.
40710         * modules/unistr/u16-mbtouc: New file.
40711         * modules/unistr/u32-mbtouc: New file.
40712         * lib/unistr/u8-mbtouc.c: New file.
40713         * lib/unistr/u16-mbtouc.c: New file.
40714         * lib/unistr/u32-mbtouc.c: New file.
40715
40716         * modules/unistr/u8-mbtouc-safe: New file.
40717         * modules/unistr/u16-mbtouc-safe: New file.
40718         * modules/unistr/u32-mbtouc-safe: New file.
40719         * lib/unistr/u8-mbtouc-safe.c: New file.
40720         * lib/unistr/u16-mbtouc-safe.c: New file.
40721         * lib/unistr/u32-mbtouc-safe.c: New file.
40722
40723         * modules/unistr/u8-move: New file.
40724         * modules/unistr/u16-move: New file.
40725         * modules/unistr/u32-move: New file.
40726         * lib/unistr/u8-move.c: New file.
40727         * lib/unistr/u16-move.c: New file.
40728         * lib/unistr/u32-move.c: New file.
40729         * lib/unistr/u-move.h: New file.
40730
40731         * modules/unistr/u8-next: New file.
40732         * modules/unistr/u16-next: New file.
40733         * modules/unistr/u32-next: New file.
40734         * lib/unistr/u8-next.c: New file.
40735         * lib/unistr/u16-next.c: New file.
40736         * lib/unistr/u32-next.c: New file.
40737
40738         * modules/unistr/u8-prev: New file.
40739         * modules/unistr/u16-prev: New file.
40740         * modules/unistr/u32-prev: New file.
40741         * lib/unistr/u8-prev.c: New file.
40742         * lib/unistr/u16-prev.c: New file.
40743         * lib/unistr/u32-prev.c: New file.
40744
40745         * modules/unistr/u8-set: New file.
40746         * modules/unistr/u16-set: New file.
40747         * modules/unistr/u32-set: New file.
40748         * lib/unistr/u8-set.c: New file.
40749         * lib/unistr/u16-set.c: New file.
40750         * lib/unistr/u32-set.c: New file.
40751         * lib/unistr/u-set.h: New file.
40752
40753         * modules/unistr/u8-startswith: New file.
40754         * modules/unistr/u16-startswith: New file.
40755         * modules/unistr/u32-startswith: New file.
40756         * lib/unistr/u8-startswith.c: New file.
40757         * lib/unistr/u16-startswith.c: New file.
40758         * lib/unistr/u32-startswith.c: New file.
40759         * lib/unistr/u-startswith.h: New file.
40760
40761         * modules/unistr/u8-stpcpy: New file.
40762         * modules/unistr/u16-stpcpy: New file.
40763         * modules/unistr/u32-stpcpy: New file.
40764         * lib/unistr/u8-stpcpy.c: New file.
40765         * lib/unistr/u16-stpcpy.c: New file.
40766         * lib/unistr/u32-stpcpy.c: New file.
40767         * lib/unistr/u-stpcpy.h: New file.
40768
40769         * modules/unistr/u8-stpncpy: New file.
40770         * modules/unistr/u16-stpncpy: New file.
40771         * modules/unistr/u32-stpncpy: New file.
40772         * lib/unistr/u8-stpncpy.c: New file.
40773         * lib/unistr/u16-stpncpy.c: New file.
40774         * lib/unistr/u32-stpncpy.c: New file.
40775         * lib/unistr/u-stpncpy.h: New file.
40776
40777         * modules/unistr/u8-strcat: New file.
40778         * modules/unistr/u16-strcat: New file.
40779         * modules/unistr/u32-strcat: New file.
40780         * lib/unistr/u8-strcat.c: New file.
40781         * lib/unistr/u16-strcat.c: New file.
40782         * lib/unistr/u32-strcat.c: New file.
40783         * lib/unistr/u-strcat.h: New file.
40784
40785         * modules/unistr/u8-strchr: New file.
40786         * modules/unistr/u16-strchr: New file.
40787         * modules/unistr/u32-strchr: New file.
40788         * lib/unistr/u8-strchr.c: New file.
40789         * lib/unistr/u16-strchr.c: New file.
40790         * lib/unistr/u32-strchr.c: New file.
40791
40792         * modules/unistr/u8-strcmp: New file.
40793         * modules/unistr/u16-strcmp: New file.
40794         * modules/unistr/u32-strcmp: New file.
40795         * lib/unistr/u8-strcmp.c: New file.
40796         * lib/unistr/u16-strcmp.c: New file.
40797         * lib/unistr/u32-strcmp.c: New file.
40798
40799         * modules/unistr/u8-strcpy: New file.
40800         * modules/unistr/u16-strcpy: New file.
40801         * modules/unistr/u32-strcpy: New file.
40802         * lib/unistr/u8-strcpy.c: New file.
40803         * lib/unistr/u16-strcpy.c: New file.
40804         * lib/unistr/u32-strcpy.c: New file.
40805         * lib/unistr/u-strcpy.h: New file.
40806
40807         * modules/unistr/u8-strcspn: New file.
40808         * modules/unistr/u16-strcspn: New file.
40809         * modules/unistr/u32-strcspn: New file.
40810         * lib/unistr/u8-strcspn.c: New file.
40811         * lib/unistr/u16-strcspn.c: New file.
40812         * lib/unistr/u32-strcspn.c: New file.
40813         * lib/unistr/u-strcspn.h: New file.
40814
40815         * modules/unistr/u8-strdup: New file.
40816         * modules/unistr/u16-strdup: New file.
40817         * modules/unistr/u32-strdup: New file.
40818         * lib/unistr/u8-strdup.c: New file.
40819         * lib/unistr/u16-strdup.c: New file.
40820         * lib/unistr/u32-strdup.c: New file.
40821         * lib/unistr/u-strdup.h: New file.
40822
40823         * modules/unistr/u8-strlen: New file.
40824         * modules/unistr/u16-strlen: New file.
40825         * modules/unistr/u32-strlen: New file.
40826         * lib/unistr/u8-strlen.c: New file.
40827         * lib/unistr/u16-strlen.c: New file.
40828         * lib/unistr/u32-strlen.c: New file.
40829         * lib/unistr/u-strlen.h: New file.
40830
40831         * modules/unistr/u8-strmblen: New file.
40832         * modules/unistr/u16-strmblen: New file.
40833         * modules/unistr/u32-strmblen: New file.
40834         * lib/unistr/u8-strmblen.c: New file.
40835         * lib/unistr/u16-strmblen.c: New file.
40836         * lib/unistr/u32-strmblen.c: New file.
40837
40838         * modules/unistr/u8-strmbtouc: New file.
40839         * modules/unistr/u16-strmbtouc: New file.
40840         * modules/unistr/u32-strmbtouc: New file.
40841         * lib/unistr/u8-strmbtouc.c: New file.
40842         * lib/unistr/u16-strmbtouc.c: New file.
40843         * lib/unistr/u32-strmbtouc.c: New file.
40844
40845         * modules/unistr/u8-strncat: New file.
40846         * modules/unistr/u16-strncat: New file.
40847         * modules/unistr/u32-strncat: New file.
40848         * lib/unistr/u8-strncat.c: New file.
40849         * lib/unistr/u16-strncat.c: New file.
40850         * lib/unistr/u32-strncat.c: New file.
40851         * lib/unistr/u-strncat.h: New file.
40852
40853         * modules/unistr/u8-strncmp: New file.
40854         * modules/unistr/u16-strncmp: New file.
40855         * modules/unistr/u32-strncmp: New file.
40856         * lib/unistr/u8-strncmp.c: New file.
40857         * lib/unistr/u16-strncmp.c: New file.
40858         * lib/unistr/u32-strncmp.c: New file.
40859
40860         * modules/unistr/u8-strncpy: New file.
40861         * modules/unistr/u16-strncpy: New file.
40862         * modules/unistr/u32-strncpy: New file.
40863         * lib/unistr/u8-strncpy.c: New file.
40864         * lib/unistr/u16-strncpy.c: New file.
40865         * lib/unistr/u32-strncpy.c: New file.
40866         * lib/unistr/u-strncpy.h: New file.
40867
40868         * modules/unistr/u8-strnlen: New file.
40869         * modules/unistr/u16-strnlen: New file.
40870         * modules/unistr/u32-strnlen: New file.
40871         * lib/unistr/u8-strnlen.c: New file.
40872         * lib/unistr/u16-strnlen.c: New file.
40873         * lib/unistr/u32-strnlen.c: New file.
40874         * lib/unistr/u-strnlen.h: New file.
40875
40876         * modules/unistr/u8-strpbrk: New file.
40877         * modules/unistr/u16-strpbrk: New file.
40878         * modules/unistr/u32-strpbrk: New file.
40879         * lib/unistr/u8-strpbrk.c: New file.
40880         * lib/unistr/u16-strpbrk.c: New file.
40881         * lib/unistr/u32-strpbrk.c: New file.
40882         * lib/unistr/u-strpbrk.h: New file.
40883
40884         * modules/unistr/u8-strrchr: New file.
40885         * modules/unistr/u16-strrchr: New file.
40886         * modules/unistr/u32-strrchr: New file.
40887         * lib/unistr/u8-strrchr.c: New file.
40888         * lib/unistr/u16-strrchr.c: New file.
40889         * lib/unistr/u32-strrchr.c: New file.
40890
40891         * modules/unistr/u8-strspn: New file.
40892         * modules/unistr/u16-strspn: New file.
40893         * modules/unistr/u32-strspn: New file.
40894         * lib/unistr/u8-strspn.c: New file.
40895         * lib/unistr/u16-strspn.c: New file.
40896         * lib/unistr/u32-strspn.c: New file.
40897         * lib/unistr/u-strspn.h: New file.
40898
40899         * modules/unistr/u8-strstr: New file.
40900         * modules/unistr/u16-strstr: New file.
40901         * modules/unistr/u32-strstr: New file.
40902         * lib/unistr/u8-strstr.c: New file.
40903         * lib/unistr/u16-strstr.c: New file.
40904         * lib/unistr/u32-strstr.c: New file.
40905         * lib/unistr/u-strstr.h: New file.
40906
40907         * modules/unistr/u8-strtok: New file.
40908         * modules/unistr/u16-strtok: New file.
40909         * modules/unistr/u32-strtok: New file.
40910         * lib/unistr/u8-strtok.c: New file.
40911         * lib/unistr/u16-strtok.c: New file.
40912         * lib/unistr/u32-strtok.c: New file.
40913         * lib/unistr/u-strtok.h: New file.
40914
40915         * modules/unistr/u8-uctomb: New file.
40916         * modules/unistr/u16-uctomb: New file.
40917         * modules/unistr/u32-uctomb: New file.
40918         * lib/unistr/u8-uctomb.c: New file.
40919         * lib/unistr/u16-uctomb.c: New file.
40920         * lib/unistr/u32-uctomb.c: New file.
40921
40922         * MODULES.html.sh (Unicode string functions): Add the new modules.
40923
40924 2007-01-08  Bruno Haible  <bruno@clisp.org>
40925
40926         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40927         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40928         subdirectories.
40929
40930 2007-01-08  Karl Berry  <karl@gnu.org>
40931
40932         * doc/error.texi: mention that main() fns must set program_name
40933         when progname is used.
40934
40935 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40936
40937         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40938         WCTYPE_H is empty, for the benefit of builds from non-distclean
40939         directories.  Problem reported by Eric Blake in
40940         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40941
40942 2007-01-08  Bruno Haible  <bruno@clisp.org>
40943
40944         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40945         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40946         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40947         PROVIDE_CANONICALIZE_FILENAME_MODE.
40948         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40949
40950 2007-01-08  Bruno Haible  <bruno@clisp.org>
40951
40952         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40953         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40954         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40955         * lib/fts.c: Likewise.
40956         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40957
40958 2006-12-25  Bruno Haible  <bruno@clisp.org>
40959
40960         * modules/utf8-ucs4-safe: New file.
40961         * lib/utf8-ucs4-safe.h: New file.
40962         * lib/unistr/utf8-ucs4-safe.c: New file.
40963
40964         * modules/utf16-ucs4-safe: New file.
40965         * lib/utf16-ucs4-safe.h: New file.
40966         * lib/unistr/utf16-ucs4-safe.c: New file.
40967
40968         * MODULES.html.sh (Unicode string functions): Add the new modules.
40969
40970 2007-01-08  Bruno Haible  <bruno@clisp.org>
40971
40972         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40973         (Depends-on): Add unitypes.
40974         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40975         (u8_mbtouc_aux): Move out to separate file.
40976         (u8_mbtouc): Use ucs4_t, uint8_t types.
40977         * lib/unistr/utf8-ucs4.c: New file.
40978
40979         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40980         (Depends-on): Add unitypes.
40981         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40982         (u16_mbtouc_aux): Move out to separate file.
40983         (u16_mbtouc): Use ucs4_t, uint16_t types.
40984         * lib/unistr/utf16-ucs4.c: New file.
40985
40986         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40987         (Depends-on): Add unitypes.
40988         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40989         (u8_uctomb_aux): Move out to separate file.
40990         (u8_uctomb): Use ucs4_t, uint8_t types.
40991         * lib/unistr/ucs4-utf8.c: New file.
40992
40993         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40994         (Depends-on): Add unitypes.
40995         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40996         (u16_uctomb_aux): Move out to separate file.
40997         (u16_uctomb): Use ucs4_t, uint16_t types.
40998         * lib/unistr/ucs4-utf16.c: New file.
40999
41000 2006-12-25  Bruno Haible  <bruno@clisp.org>
41001
41002         * modules/unitypes: New file.
41003         * lib/unitypes.h: New file.
41004         * MODULES.html.sh (func_all_modules): New section "Unicode string
41005         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
41006         this section. Add unitypes.
41007
41008 2007-01-08  Bruno Haible  <bruno@clisp.org>
41009
41010         Avoid variable names that conflict with those from libtool.
41011         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
41012         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
41013         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
41014         library_names_spec to acl_library_names_spec, hardcode_* to
41015         acl_hardcode_*.
41016         Reported by Ralf Wildenhues.
41017
41018 2007-01-08  Bruno Haible  <bruno@clisp.org>
41019
41020         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
41021         definition.
41022         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
41023         definition.
41024         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
41025         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
41026         definition.
41027         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
41028         definition.
41029         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
41030         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
41031         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
41032         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
41033         definition.
41034         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
41035         definition.
41036         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
41037         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
41038         GC_USE_<algorithm>.
41039         * lib/gc-libgcrypt.c: Likewise.
41040         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
41041         * modules/gc-arctwo (configure.ac): Likewise.
41042         * modules/gc-des (configure.ac): Likewise.
41043         * modules/gc-hmac-md5 (configure.ac): Likewise.
41044         * modules/gc-hmac-sha1 (configure.ac): Likewise.
41045         * modules/gc-md2 (configure.ac): Likewise.
41046         * modules/gc-md4 (configure.ac): Likewise.
41047         * modules/gc-md5 (configure.ac): Likewise.
41048         * modules/gc-random (configure.ac): Likewise.
41049         * modules/gc-rijndael (configure.ac): Likewise.
41050         * modules/gc-sha1 (configure.ac): Likewise.
41051
41052 2007-01-08  Bruno Haible  <bruno@clisp.org>
41053
41054         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
41055         macro definition.
41056         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
41057         definition.
41058         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
41059         definition.
41060         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
41061         * modules/fcntl-safer (configure.ac): Likewise.
41062         * modules/fopen-safer (configure.ac): Likewise.
41063         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
41064         GNULIB_FWRITEERROR macro definition.
41065
41066 2007-01-08  Bruno Haible  <bruno@clisp.org>
41067
41068         * m4/gnulib-common.m4: New file.
41069         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
41070         (func_get_filelist): Add m4/gnulib-common.m4.
41071
41072 2007-01-08  Bruno Haible  <bruno@clisp.org>
41073
41074         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
41075         command.
41076
41077 2007-01-08  Jim Meyering  <jim@meyering.net>
41078
41079         Use a more robust test for a "can't happen" condition.
41080         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
41081         narrowed the st_size value.  Presuming the "can't happen" condition
41082         is true, that narrowing could conceivably convert an invalid st_size
41083         value into a valid one.  Instead, use a change based on Matthew
41084         Woehlke's original patch.
41085
41086         Slight readability improvement: use an assert-like macro
41087         in place of literal "abort ()" uses.
41088         * lib/fts.c (fts_assert): Define.
41089         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
41090         Use this macro instead of a bare 'abort'.
41091
41092 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41093
41094         Don't worry about using IRIX 5.3's wctype.h broken definitions;
41095         simply work around them.
41096         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
41097         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
41098         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
41099         declaring.
41100         Don't bother to define as macros, since the standard doesn't require it.
41101         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
41102         longer worry about IRIX 5.3.
41103         (HAVE_WCTYPE_CTMP_BUG): Remove.
41104
41105 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41106
41107         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
41108         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
41109         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41110         Problems reported by Georg Schwarz for IRIX 5.3.
41111
41112         * gnulib-tool (autoconf_minversion): Take the maximum version number
41113         found, not the minimum.  Problem reported by James Youngman.
41114
41115 2007-01-03  Karl Berry  <karl@gnu.org>
41116
41117         * doc/error.texi: new file, explaining interaction with progname.
41118         * doc/gnulib.texi: include it.  Update copyright.
41119
41120 2007-01-03  Simon Josefsson  <simon@josefsson.org>
41121
41122         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
41123         AC_CANONICAL_HOST, to improve autobuild outputs.
41124
41125 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
41126             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41127
41128         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
41129         sockets, server sockets, and other file descriptors.  Count errors
41130         to compute the return value.  Reorder the code a bit to be easier
41131         to follow.  Don't set event bits that were not requested (except
41132         POLLERR and POLLHUP).
41133
41134 2007-01-01  Bruno Haible  <bruno@clisp.org>
41135
41136         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
41137
41138 2007-01-03  Jim Meyering  <jim@meyering.net>
41139
41140         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
41141
41142 2007-01-02  Bruno Haible  <bruno@clisp.org>
41143
41144         * modules/settime (Include): Require timespec.h.
41145         * modules/nanosleep (Include): Likewise.
41146
41147 2007-01-01  Bruno Haible  <bruno@clisp.org>
41148
41149         * gnulib-tool (func_emit_copyright_notice): Bump year.
41150         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
41151
41152 2007-01-01  Bruno Haible  <bruno@clisp.org>
41153
41154         Improve support for OpenBSD.
41155         * build-aux/config.rpath (libname_spec): Export.
41156         (library_names_spec): New variable. Export.
41157         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
41158         library_names_spec from the config.rpath output. Locate shared library
41159         through the name pattern in library_names_spec.
41160
41161 2007-01-01  Eric Blake  <ebb9@byu.net>
41162
41163         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
41164
41165 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
41166
41167         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
41168         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
41169         assume the C locale, and avoid an "eval" that could cause trouble.
41170         Problem with SORT reported by Bob Proulx.
41171
41172         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
41173         Define.  Trivial patch from Henning Nielsen Lund, originally
41174         sent to bug-grep@gnu.org today.
41175
41176 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41177
41178         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41179         struct stat.  Problem reported by Henning Nielsen Lund.
41180         * lib/acl.c: Include acl.h first, to check interface.  Don't
41181         bother to include sys/types.h and sys/stat.h again.
41182
41183 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41184
41185         Import the following change from libc; problem reported by
41186         Sven Verdoolaege.
41187
41188         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41189
41190         [BZ #1373]
41191         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41192
41193 2006-12-28  Jim Meyering  <jim@meyering.net>
41194
41195         * build-aux/announce-gen: Do not assume that the package
41196         builds any of tar.gz, tar.bz2, and .xdelta files.
41197         Suggestion from Simon Josefsson.
41198
41199 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41200
41201         * modules/announce-gen: New file.
41202
41203 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41204
41205         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41206         handles its gotchas now.
41207         * lib/mbswidth.c: Likewise.
41208         * lib/wcwidth.h: Likewise.
41209         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41210         and iswcntrl; the wctype module does this stuff now.
41211         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41213         * modules/mbchar (Depends-on): Add wctype.
41214         * modules/mbswidth (Depends-on): Likewise.
41215         * modules/wcwidth (Depends-on): Likewise.
41216
41217 2006-12-27  Eric Blake  <ebb9@byu.net>
41218
41219         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41220         module uses more than what <wctype.h> is required to provide.
41221
41222 2006-12-26  Eric Blake  <ebb9@byu.net>
41223
41224         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41225
41226 2006-12-26  Eric Blake  <ebb9@byu.net>
41227
41228         * modules/absolute-header: New module.
41229         * modules/fcntl (Depends-on): Depend on it.
41230         * modules/inttypes (Depends-on): Likewise.
41231         * modules/stdint (Depends-on): Likewise.
41232         * modules/sys_stat (Depends-on): Likewise.
41233         * modules/wctype (Depends-on): Likewise.
41234         * MODULES.html.sh (Support for building libraries and
41235         executables): Document it.
41236
41237 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41238
41239         * gnulib-tool (SED): Remove, undoing previous change.
41240         The problem was that it broke coreutils on Solaris, because
41241         "sed --posix" leaked into a makefile.
41242         (sed): New alias, if 'alias' and GNU sed.
41243
41244 2006-12-24  Jim Meyering  <jim@meyering.net>
41245
41246         Work around an fchownat bug in glibc-2.4:
41247         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41248         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41249         in spite of the -P option.
41250         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41251         New macros.
41252         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41253         * modules/openat (Files): Add lib/fchownat.c.
41254         * lib/openat.c (fchownat): Don't define here.  Move to...
41255         * lib/fchownat.c: ...this new file.
41256
41257 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41258
41259         Fix bug reported by Bruno Haible in
41260         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41261         where quotearg.c didn't compile on Mac OS X 10.2 because it
41262         lacks <wchar.h> and wint_t.
41263         * lib/wctype_.h (__wctype_wint_t): New type.
41264         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41265         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41266         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41267         Arg is now of type __wctype_wint_t, not wint_t.
41268         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41269         substitute HAVE_WINT_T.
41270         * modules/wctype (Files): Add m4/wint_t.m4.
41271         (wctype.h): Substitute HAVE_WINT_T.
41272
41273 2006-12-23  Bruno Haible  <bruno@clisp.org>
41274
41275         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41276
41277 2006-12-23  Bruno Haible  <bruno@clisp.org>
41278
41279         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41280         S_ISLNK.
41281         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41282         mingw.
41283
41284 2006-12-22  Bruno Haible  <bruno@clisp.org>
41285
41286         * lib/copy-file.c: Include acl.h.
41287         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41288         Close the file descriptors only after being done with copy_acl.
41289         * modules/copy-file (Depends-on): Add acl.
41290
41291 2006-12-22  Bruno Haible  <bruno@clisp.org>
41292
41293         * gnulib-tool (SED): New variable.
41294         Use $SED instead of sed everywhere.
41295
41296 2006-12-22  Bruno Haible  <bruno@clisp.org>
41297
41298         * modules/no-c++: New file.
41299         * m4/no-c++.m4: New file.
41300         * MODULES.html.sh (Support for building libraries and executables):
41301         Add no-c++.
41302
41303 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41304
41305         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41306         Include <limits.h>, and use its INT_MAX to rewrite the
41307         j loop so that it does not overflow 'int'.  Problem reported by
41308         Ralf Wildenhues in
41309         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41310         Play it safe by shifting left by 1 rather than multiplying by 2,
41311         as GCC is less likely to optimize this away when the value
41312         is signed (when it assumes overflow leads to undefined behavior).
41313         Also, don't assume time_t uses two's complement.
41314
41315 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41316
41317         * MODULES.html.sh: New module wctype.
41318         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41319         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41320         <wctype.h>, since the new wctype module should fix this.
41321         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41322         the wctype module should arrange for it.
41323         * lib/regex_internal.h: Likewise.
41324         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41325         since the wctype module should handle this now.
41326         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41327         * modules/fnmatch (Depends-on): Add wctype.
41328         * modules/quotearg (Depends-on): Likewise.
41329         * modules/regex (Depends-on): Likewise.
41330
41331 2006-12-19  Bruno Haible  <bruno@clisp.org>
41332
41333         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41334         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41335
41336 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41337
41338         * modules/savewd (Depends-on): Fix dependency on fcntl.
41339
41340 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41341
41342         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41343         conforms to C99, rather than relying on the user's environment
41344         setting of STDINT_H.
41345
41346 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41347         and Eric Blake  <ebb9@byu.net>
41348
41349         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41350         This is more consistent with the other defines here.
41351         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41352         Port to z/OS.  Problem reported by Paul Gilmartin.
41353         Change local vars to use gl_ prefix rather than ac_.
41354         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41355         with other defines.
41356         * modules/double-slash-root: New module.
41357         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41358         (Depends-on): Add double-slash-root.
41359         * MODULES.html.sh (File system functions): Mention new module.
41360
41361 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41362
41363         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41364         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41365         This is for the benefit of gzip, which doesn't do i18n.
41366
41367 2006-12-12  Jim Meyering  <jim@meyering.net>
41368
41369         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41370         Reported by Andreas Schwab <schwab@suse.de>.
41371
41372 2006-12-12  Bruno Haible  <bruno@clisp.org>
41373
41374         Merge these changes.
41375         2006-09-05  Bruno Haible  <bruno@clisp.org>
41376         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41377         iconv_alloc succeeded.
41378         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41379         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41380         test for " && dest " at the end - dest is always != NULL there. Call
41381         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41382         with 2xNULL arguments, also to flush the state storage. Handle the
41383         IRIX iconv behaviour. Realloc the final result, to throw away unused
41384         memory.
41385
41386 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41387
41388         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41389         and fchmodat unconditionally, since glibc 2.4 has them.
41390         Problem reported by Arkadiusz Miskiewicz.
41391
41392 2006-12-10  Bruno Haible  <bruno@clisp.org>
41393
41394         * gnulib-tool (func_import): Show the include files only for those
41395         modules that are copied and specified.
41396         Reported by Karl Berry.
41397
41398 2006-12-08  Jim Meyering  <jim@meyering.net>
41399
41400         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41401         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41402
41403         * build-aux/announce-gen: Add two new options, both optional:
41404         --bootstrap-tools=TOOL_LIST
41405               a comma-separated list of tools, e.g.,
41406               autoconf,automake,bison,gnulib
41407         --gnulib-snapshot-date=DATE
41408               if gnulib is in the bootstrap tool list,
41409               then report this as the snapshot date.
41410               If not specified, use the current date/time.
41411               If you specify a date here, be sure it's UTC.
41412
41413 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41414
41415         * tests/test-argp-2.sh: Fix test to match actual output.
41416         (func_compare): Fix sed script to be portable.
41417
41418 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41419
41420         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41421         workaround for this case.  It is not autoconfigured now; offhand
41422         it's hard to see how to autoconfigure it.
41423
41424 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41425
41426         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41427         a directory that is about to be chowned.  Such a directory's
41428         initial file permissions should permit the owner only and this
41429         should not be changed until after the chown, since the group and
41430         other bits would be incorrect if they granted permission before
41431         the chown.
41432
41433         Fix porting problem for iswctype reported by Georg Schwarz in:
41434         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41435         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41436         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41437         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41438         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41439
41440 2006-12-03  Jim Meyering  <jim@meyering.net>
41441
41442         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41443         p->fts_statp may not yet be defined.
41444         (fts_read): Instead, set it in the caller, once p->fts_statp is
41445         sure to be defined, and corresponds to a top-level directory.
41446         This bug made du -x fail.  Here's the coreutils test case:
41447         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41448         Reported by Mike Frysinger.
41449
41450 2006-12-01  Jim Meyering  <jim@meyering.net>
41451
41452         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41453         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41454         Reported by Simon Josefsson.
41455
41456 2006-11-30  Jim Meyering  <jim@meyering.net>
41457
41458         * m4/warning.m4: Use the all-permissive copyright notice
41459         recommended by RMS (rather than LGPL).
41460         * m4/vararrays.m4: Likewise.
41461         * m4/flexmember.m4: Likewise.
41462
41463 2006-11-29  Bruno Haible  <bruno@clisp.org>
41464
41465         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41466         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41467         using +=.
41468         Reported by Simon Josefsson <simon@josefsson.org>.
41469
41470 2006-11-28  James Youngman <jay@gnu.org>
41471
41472         * README: Advise users that they might find the bug-gnulib@gnu.org
41473         and autotools-announce@gnu.org mailing lists useful.
41474
41475 2006-11-28  Bruno Haible  <bruno@clisp.org>
41476
41477         * m4/ptrdiff_max.m4: Remove file.
41478
41479 2006-11-21  Bruno Haible  <bruno@clisp.org>
41480
41481         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41482         _AC_COMPUTE_INT.
41483         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41484         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41485         _AC_COMPUTE_INT.
41486         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41487         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41488         _AC_COMPUTE_INT.
41489         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41490
41491 2006-11-28  Jim Meyering  <jim@meyering.net>
41492
41493         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41494         warning from "gcc -Wshadow" about shadowing the builtin.
41495
41496 2006-11-27  Bruno Haible  <bruno@clisp.org>
41497
41498         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41499         _AC_COMPUTE_INT.
41500         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41501
41502 2006-11-27  Bruno Haible  <bruno@clisp.org>
41503             Paul Eggert  <eggert@cs.ucla.edu>
41504
41505         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41506
41507 2006-11-26  Bruno Haible  <bruno@clisp.org>
41508
41509         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41510         noinst_LTLIBRARIES.
41511
41512 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41513             Bruno Haible  <bruno@clisp.org>
41514
41515         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41516         if compiling with "gcc -ansi".
41517
41518 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41519
41520         Fix some incompatibilities with gcc -ansi -pedantic.
41521         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41522         if compiling pedantically with GCC, unless it's C99 or later.
41523         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41524         it mishandles gcc -ansi -pedantic as well.
41525         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41526         if gcc -pedantic.
41527         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41528         initializers for struct if -pedantic, unless it's C99 or later.
41529
41530 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41531
41532         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41533         Don't close an fd more than once. Identical atimes indicate
41534         success, not failure.
41535
41536 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41537
41538         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41539
41540 2006-11-23  Jim Meyering  <jim@meyering.net>
41541
41542         * build-aux/announce-gen: New file.  From coreutils.
41543
41544 2006-11-22  Jim Meyering  <jim@meyering.net>
41545
41546         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41547         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41548         (fts_read): Use a temporary to narrow the overused st_size member
41549         before using it in a switch statement.  Reported by Matthew Woehlke.
41550
41551         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41552         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41553
41554 2006-11-20  Bruno Haible  <bruno@clisp.org>
41555
41556         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41557         changequote instead of pairs of brackets.
41558         Reported by Andreas Schwab <schwab@suse.de>.
41559
41560 2006-11-21  Jim Meyering  <jim@meyering.net>
41561
41562         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41563         so as to remain compatible with older compilers.
41564         Patch from Michael Deutschmann.
41565
41566 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41567
41568         * MODULES.html.sh (File system functions): Add openat.
41569
41570         * lib/openat.h (rpl_fstatat): New macro, if
41571         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41572         (fstatat): Define to rpl_fstatat under the same conditions,
41573         unless COMPILING_FSTATAT.
41574         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41575         seems to have the bug.
41576         * lib/fstatat.c: New file.
41577         * modules/openat (Files): Add it.
41578
41579 2006-11-20  Bruno Haible  <bruno@clisp.org>
41580
41581         * Makefile: New file.
41582
41583 2006-11-20  Jim Meyering  <jim@meyering.net>
41584
41585         The beginnings of syntax-related checks for gnulib.
41586         * lib/Makefile: New file.
41587         * lib/t-idcache: New script.  Ensure that the two halves of
41588         idcache.c stay in sync.
41589
41590         * lib/idcache.c: Adjust comments in user- and group- portions to
41591         be more accurate, and to be consistent with one another.
41592
41593 2006-11-20  Jim Meyering  <jim@meyering.net>
41594
41595         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41596         continue using the flexible array member (thus, this module performs
41597         half as many malloc calls), with the addition that...
41598         (getgroup, getuser): Consistently record a non-match via an empty
41599         "name" string, and map an empty string match to a NULL return value.
41600         * modules/idcache (Depends-on): Re-add flexmember.
41601
41602         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41603         (getuidbyname, getgroup, getgidbyname): Likewise.
41604
41605         Use cleaner syntax: NULL rather than 0.
41606         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41607
41608 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41609
41610         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41611         It mishandled the case where the group was missing.
41612         Problem reported by Greg Schafer.
41613         * modules/idcache: Likewise.
41614
41615 2006-11-18  Jim Meyering  <jim@meyering.net>
41616
41617         * check-module (%exempt_header): Add exception for some
41618         conditionally-included headers.
41619
41620         * modules/i-ring (Depends-on): Add verify.
41621         (License): Change to LGPL.
41622
41623 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41624
41625         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41626         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41627         and inttostr.h.  Use snprintf rather than uinttostr, so that
41628         LGPLed code doesn't depend on GPLed.
41629
41630 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41631
41632         * modules/inline (License): Change from GPL to LGPL.
41633
41634 2006-11-17  Jim Meyering  <jim@meyering.net>
41635
41636         * modules/d-type (License): Switch to LGPL.
41637
41638 2006-11-15  Bruno Haible  <bruno@clisp.org>
41639
41640         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41641
41642 2006-11-15  Eric Blake  <ebb9@byu.net>
41643
41644         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41645         the module dependency.
41646
41647 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41648             Bruno Haible  <bruno@clisp.org>
41649
41650         * gnulib-tool (func_create_testdir): Add license consistency check.
41651
41652 2006-11-15  Eric Blake  <ebb9@byu.net>
41653
41654         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41655         random "(cached)" in configure output.
41656
41657 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41658
41659         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41660         test for conforming inttypes.h is both announced and cached.
41661
41662         * MODULES.html.sh (seen_modules, seen_files): New variables.
41663         (func_module): Rewrite to use a few less gnulib-tool and sed
41664         invocations.  Avoid a couple of quadratic algorithms for ...
41665         (missed_modules, missed_files): ... these, with ...
41666         (func_append, func_tmpdir): ... these new functions, from
41667         gnulib-tool.  Analogously, install traps for cleanup.
41668
41669         * tests/test-gc.c (main): Remove unused variables.
41670         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41671
41672 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41673
41674         * modules/inttostr (License): Change to LGPL.
41675
41676 2006-11-14  Eric Blake  <ebb9@byu.net>
41677
41678         * modules/tempname (License): Change to LGPL.
41679
41680 2006-11-14  Eric Blake  <ebb9@byu.net>
41681
41682         * doc/functions.texi (Function Portability): *printf functions on
41683         Cygwin now understand all POSIX size specifiers.
41684
41685 2006-11-14  Bruno Haible  <bruno@clisp.org>
41686
41687         * modules/c-ctype (License): Change to LGPL.
41688
41689 2006-11-12  Bruno Haible  <bruno@clisp.org>
41690
41691         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41692         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41693         for GNOME libraries, for which the include files are installed in
41694         subdirectories of $prefix/include.
41695
41696 2006-11-12  Bruno Haible  <bruno@clisp.org>
41697
41698         * m4/lib-link.m4: Require at least autoconf-2.54.
41699         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41700         name to underscores for the --with option.
41701
41702 2006-11-13  Bruno Haible  <bruno@clisp.org>
41703
41704         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41705         the tests directory.
41706         Reported by Ralf Wildenhues.
41707
41708 2006-11-13  Bruno Haible  <bruno@clisp.org>
41709
41710         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41711         (func_emit_initmacro_end): Undo the override here.
41712         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41713         Works around the famous automake error in coreutils.
41714
41715 2006-11-13  Eric Blake  <ebb9@byu.net>
41716
41717         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41718         element, not its node.
41719
41720 2006-11-12  Bruno Haible  <bruno@clisp.org>
41721
41722         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41723         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41724
41725 2006-11-12  Bruno Haible  <bruno@clisp.org>
41726
41727         * gnulib-tool: New option --local-symlink.
41728         (func_usage): Document it.
41729         (lsymbolic): New variable.
41730         (func_import, func_create_testdir): If --symlink was not specified,
41731         test whether --local-symlink was specified and the file comes from
41732         the local_gnulib_dir.
41733
41734 2006-11-12  Bruno Haible  <bruno@clisp.org>
41735
41736         * gnulib-tool (func_ln): New function.
41737         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41738
41739 2006-11-12  Bruno Haible  <bruno@clisp.org>
41740
41741         Finish support for source files in subdirectories.
41742         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41743         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41744         AUTOMAKE_OPTIONS.
41745         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41746
41747 2006-11-12  Bruno Haible  <bruno@clisp.org>
41748
41749         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41750         EXTRA_lib_SOURCES augmentation.
41751         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41752
41753 2006-11-12  Jim Meyering  <jim@meyering.net>
41754
41755         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41756         file descriptors.  This also averts a failure on systems with
41757         native openat support when a traversed directory lacks "x" access.
41758         * lib/fts_.h: Include "i-ring.h"
41759         (struct FTS) [fts_fd_ring]: New member.
41760         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41761         (FCHDIR): Add parentheses.
41762         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41763         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41764         When descending, rather than simply closing the previous
41765         fts_cwd_fd value, push that file descriptor onto the ring.
41766         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41767         (fts_open): Initialize the new fd_ring member.
41768         (fts_close): Clear the ring.
41769         (fts_safe_changedir): When possible, use our new fd_ring to skip
41770         the diropen and fstat and dev/ino comparison that would normally
41771         accompany a virtual `chdir ("..")'.
41772
41773         * modules/fts (Depends-on): Add i-ring.
41774         * modules/i-ring: New module.
41775         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41776         * m4/i-ring.m4: New file.
41777
41778 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41779
41780         * gnulib-tool (func_create_testdir): Fix replacement of
41781         `build-aux' in configure.ac.  Run autotools in gltests
41782         subdirectory.
41783         (func_create_testdir, func_create_megatestdir, test): There is
41784         no need for '--force' in most autotool invocations in a new
41785         tree.  Actually fail the whole test if any of the tools, or the
41786         configure or make stages fail.
41787
41788         Sync from Automake.
41789         * build-aux/gnupload: Revert last change.  Add pointer to upload
41790         instructions of the GNU Maintenance Instructions.
41791         Suggestion by Karl Berry.
41792
41793 2006-11-10  Jim Meyering  <jim@meyering.net>
41794
41795         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41796
41797 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41798
41799         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41800         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41801         (bind_textdomain_codeset) [! ENABLE_NLS]:
41802         Evaluate all the arguments.  That way, callers get compatible behavior
41803         if the arguments have side effects.  Also, it avoids some GCC
41804         diagnostics in some cases; Joel E. Denny reported problems when Bison
41805         was configured with --enable-gcc-warnigs.
41806
41807 2006-11-10  Jim Meyering  <jim@meyering.net>
41808
41809         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41810         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41811         account.
41812
41813 2006-11-10  Jim Meyering  <jim@meyering.net>
41814
41815         * modules/inline: New file/module.
41816         * modules/xalloc (Files): Remove m4/inline.m4.
41817         (Depends-on): Add inline, instead.
41818         * modules/oset: Likewise.
41819         * modules/list: Likewise.
41820
41821 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41822
41823         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41824         Problem reported by Matthew Woehlke.
41825
41826 2006-11-09  Bruno Haible  <bruno@clisp.org>
41827
41828         * lib/tempname.c (gen_tempname): Remove variant that invokes
41829         __gen_tempname.
41830         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41831         __gen_tempname.
41832
41833 2006-11-08  Bruno Haible  <bruno@clisp.org>
41834
41835         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41836         to 'yes' instead of 'cross-compiling'.
41837
41838 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41839
41840         * lib/quotearg.h (quotearg_free): New decl.
41841         * lib/quotearg.c (quotearg_free): New function.
41842         (slot0, nslots, slotvec0, slotvec):
41843         Now file-scope so that quotearg_free can get at them.
41844
41845 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41846
41847         Sync from Automake.
41848         * build-aux/gnupload: Add missing 'gnu' to example URL.
41849         Report by Karl Berry.
41850
41851 2006-11-08  Bruno Haible  <bruno@clisp.org>
41852
41853         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41854         Suggested by Paul Eggert.
41855
41856 2006-11-08  Jim Meyering  <jim@meyering.net>
41857
41858         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41859         It's already included if !_LIBC.
41860         (fts_safe_changedir): Add a comment.
41861
41862 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41863
41864         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41865         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41866         Matthew Woehlke.
41867
41868         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41869         definitions up, to avoid colliding with change below.
41870         (static_inline) [HAVE_INLINE]: New macro.
41871         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41872         Provide extern decls when !HAVE_INLINE.  Do not define unless
41873         static_inline is defined, either by us or by xmalloc.c.  Use
41874         static_inline rather than static inline.
41875         (XCALLOC): Optimize sizeof(T) = 1 case.
41876         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41877
41878 2006-11-07  Bruno Haible  <bruno@clisp.org>
41879
41880         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41881         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41882         AC_C_INLINE.
41883         * modules/xalloc (Files): Add m4/inline.m4.
41884
41885 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41886
41887         * README: Fix typo.
41888         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41889         (Miscellanous Notes): ...from this.
41890
41891 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41892
41893         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41894         Mention that offsetof should be used instead of sizeof.
41895         From Bruno Haible.
41896
41897 2006-11-07  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41900
41901 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41902
41903         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41904         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41905         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41906         (gl_tree_add_before, gl_tree_add_after):
41907         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41908         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41909         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41910         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41911         (gl_linked_add_after, gl_linked_add_at): Likewise.
41912         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41913         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41914         (gl_tree_add_before, gl_tree_add_after): Likewise.
41915         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41916         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41917         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41918
41919 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41920
41921         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41922
41923 2006-11-06  Bruno Haible  <bruno@clisp.org>
41924
41925         * m4/inline.m4: New file.
41926         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41927         * modules/list (Files): Add m4/inline.m4.
41928         * modules/oset (Files): Likewise.
41929
41930 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41931
41932         * lib/idcache.c: Include <stddef.h>, for offsetof.
41933         (struct userid.name): Change from char * to a flexible array member.
41934         All uses changed.
41935         * modules/idcache (Depends-on): Add flexmember.
41936
41937         * MODULES.html.sh (Core language properties): New module flexmember.
41938         * modules/flexmember, m4/flexmember.m4: New files.
41939
41940         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41941         inline functions that are identical with the old xnmalloc_inline,
41942         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41943         that we can avoid some unnecessary integer multiplications and
41944         divisions in the common case where the element size is known at
41945         compile time.
41946         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41947         needed.
41948         (xnboundedmalloc): Remove.
41949         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41950         arguments, for consistency with rest of this header.
41951         (xcharalloc): Rewrite using XNMALLOC.
41952         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41953         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41954         versions have been moved to lib/xalloc.h and renamed to be the
41955         non-*_inline versions.
41956         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41957         and xnrealloc functions, since those functions are now inline and
41958         now call us.
41959         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41960         renaming described above.
41961         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41962         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41963         captures the dependency in AC_C_INLINE.
41964
41965         New module canonicalize-lgpl, proposed by Charles Wilson in
41966         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41967         with a few small changes afterwards.
41968         * MODULES.html.sh (File system functions): New module
41969         canonicalize-lgpl.
41970         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41971         and canonicalize_file_name.
41972         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41973         * modules/canonicalize-lgpl: New files.
41974
41975 2006-11-05  Bruno Haible  <bruno@clisp.org>
41976
41977         * gnulib-tool (func_import, func_create_testdir): Create directories
41978         also for files in subdirectories of lib/.
41979
41980 2006-11-05  Bruno Haible  <bruno@clisp.org>
41981
41982         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41983         ANSI C compliant.
41984
41985 2006-11-03  Bruno Haible  <bruno@clisp.org>
41986
41987         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41988         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41989         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41990         (xnboundedmalloc): New inline function.
41991         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41992         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41993         xmalloc.
41994         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41995         xmalloc.
41996         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41997         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41998         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41999         xmalloc.
42000         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42001         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
42002         xmalloc.
42003         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
42004         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42005         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
42006         xmalloc.
42007         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42008         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
42009         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42010         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
42011         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
42012         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
42013         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
42014
42015 2006-11-03  Bruno Haible  <bruno@clisp.org>
42016
42017         * lib/c-ctype.h [C++]: Define functions without name mangling.
42018         * lib/fwriteerror.h [C++]: Likewise.
42019         * lib/gcd.h [C++]: Likewise.
42020         * lib/linebreak.h [C++]: Likewise.
42021
42022 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
42023
42024         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
42025         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
42026         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
42027         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42028         Check for functions and headers just once.
42029         Check for declaration of canonicalize_file_name.
42030         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
42031
42032 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42033
42034         * gnulib-tool (func_import): Fix typo in actioncmd.
42035
42036 2006-11-02  Bruno Haible  <bruno@clisp.org>
42037
42038         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
42039         newline sequence in the Makefile.am snippet as a space, like "make"
42040         does.
42041         Reported by Roger Persson <perrog@gmail.com>.
42042
42043 2006-11-01  Bruno Haible  <bruno@clisp.org>
42044
42045         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
42046         already declared in <string.h>.
42047         * lib/strcase.h (strncasecmp): Don't declare it if yes.
42048
42049 2006-11-01  Bruno Haible  <bruno@clisp.org>
42050
42051         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
42052         * lib/strcase.h: Include <string.h>.
42053         (strcasecmp): Define to rpl_strcasecmp here.
42054
42055 2006-11-01  Bruno Haible  <bruno@clisp.org>
42056
42057         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
42058
42059 2006-11-01  Eric Blake  <ebb9@byu.net>
42060
42061         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
42062
42063         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
42064
42065 2006-10-29  Bruno Haible  <bruno@clisp.org>
42066
42067         Make it compile in C++ mode.
42068         * lib/full-write.c (full_rw): Add a cast.
42069
42070 2006-11-01  Bruno Haible  <bruno@clisp.org>
42071
42072         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
42073         be POSIX compliant.
42074         Reported by Roger Persson <perrog@gmail.com>.
42075
42076 2006-11-01  Eric Blake  <ebb9@byu.net>
42077
42078         * lib/getopt_.h: Fix comments.
42079
42080 2006-10-31  Eric Blake  <ebb9@byu.net>
42081
42082         * modules/tmpdir (Depends-on): Add sys_stat.
42083         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
42084         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
42085         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
42086         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
42087         tempname.
42088
42089 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42090
42091         Avoid some C++ diagnostics reported by Bruno Haible.
42092         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
42093         xmalloc.
42094         (quotearg_alloc): Use xcharalloc rather than xmalloc.
42095         (struct slotvec): Move to top level.
42096         (quotearg_n_options): Rewrite to avoid xmalloc.
42097         * lib/xalloc.h (xcharalloc): New function.
42098         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
42099         [defined __cplusplus]: Add function template that provides result
42100         type propagation.  This part of the change is from Bruno Haible.
42101
42102 2006-10-29  Bruno Haible  <bruno@clisp.org>
42103
42104         Make it compile in C++ mode.
42105         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
42106         * lib/strnlen1.c (strnlen1): Cast memchr result.
42107         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
42108         * lib/clean-temp.c (string_equals, string_hash): Add casts.
42109         (create_temp_dir): Rename local variable 'template'.
42110         (compile_csharp_using_sscli): Add cast.
42111         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
42112         * lib/findprog.c (find_in_path): Likewise.
42113         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
42114         * lib/wait-process.c (register_slave_subprocess): Likewise.
42115
42116 2006-10-22  Bruno Haible  <bruno@clisp.org>
42117
42118         * modules/tsearch: New file.
42119         * lib/tsearch.h: New file.
42120         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
42121         * m4/tsearch.m4: New file.
42122         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
42123
42124 2006-10-29  Eric Blake  <ebb9@byu.net>
42125
42126         * lib/arcfour.c: Assume config.h.
42127         * lib/arctwo.c: Likewise.
42128         * lib/base64.c: Likewise.
42129         * lib/check-version.c: Likewise.
42130         * lib/crc.c: Likewise.
42131         * lib/des.c: Likewise.
42132         * lib/gc-gnulib.c: Likewise.
42133         * lib/gc-libgcrypt.c: Likewise.
42134         * lib/gc-pbkdf2-sha1.c: Likewise.
42135         * lib/getaddrinfo.c: Likewise.
42136         * lib/getdelim.c: Likewise.
42137         * lib/getline.c: Likewise.
42138         * lib/hmac-md5.c: Likewise.
42139         * lib/hmac-sha1.c: Likewise.
42140         * lib/iconvme.c: Likewise.
42141         * lib/md2.c: Likewise.
42142         * lib/md4.c: Likewise.
42143         * lib/memxor.c: Likewise.
42144         * lib/read-file.c: Likewise.
42145         * lib/readline.c: Likewise.
42146         * lib/rijndael-alg-fst.c: Likewise.
42147         * lib/rijndael-api-fst.c: Likewise.
42148         * lib/xgetdomainname.c: Likewise.
42149
42150 2006-10-28  Eric Blake  <ebb9@byu.net>
42151
42152         * lib/xstrndup.c: Assume config.h.
42153
42154 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42155
42156         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
42157         stat-macros.h is now for our own macros, whereas stat_h is for
42158         macros in the <sys/stat.h> name space.
42159         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
42160         (STAT_MACROS_H): Remove.
42161         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
42162         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
42163         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
42164         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
42165         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
42166         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
42167         Move these macros to ...
42168         * lib/stat_.h: here.  Don't include stat-macros.h.
42169         * lib/canonicalize.c: Don't include stat-macros.h.
42170         * lib/chown.c: Likewise.
42171         * lib/euidaccess.c: Likewise.
42172         * lib/file-type.c: Likewise.
42173         * lib/filemode.c: Likewise.
42174         * lib/glob.c: Likewise.
42175         * lib/isapipe.c: Likewise.
42176         * lib/lchown.c: Likewise.
42177         * lib/lstat.c: Likewise.
42178         * lib/mkdir-p.c: Likewise.
42179         * lib/rmdir.c: Likewise.
42180         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42181         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42182         unless mkdir isn't declared, to speed up 'configure'.
42183         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42184         would define all the S_* symbols.
42185         * modules/canonicalize (Depends-on):
42186         Depend on sys_stat, not stat-macros.
42187         * modules/chown: Likewise.
42188         * modules/euidaccess: Likewise.
42189         * modules/filemode: Likewise.
42190         * modules/file-type: Likewise.
42191         * modules/glob: Likewise.
42192         * modules/isapipe: Likewise.
42193         * modules/lchown: Likewise.
42194         * modules/lstat: Likewise.
42195         * modules/mkancesdirs: Likewise.
42196         * modules/rmdir: Likewise.
42197         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42198         * modules/modechange: Likewise.
42199         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42200         (configure.ac): Remove gl_STAT_MACROS.
42201         * modules/sys_stat (Depends-on): Remove stat-macros.
42202
42203 2006-10-27  Bruno Haible  <bruno@clisp.org>
42204
42205         * m4/signed.m4: Remove file.
42206         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42207         invocation.
42208         * modules/vasnprintf (Files): Remove m4/signed.m4.
42209
42210 2006-10-27  Bruno Haible  <bruno@clisp.org>
42211
42212         Update to GNU gettext 0.16.
42213         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42214         m4/inttypes-h.m4, m4/signed.m4.
42215         * m4/gettext.m4: Update to GNU gettext 0.16.
42216         * m4/intl.m4: New file, from GNU gettext.
42217         * m4/intldir.m4: New file, from GNU gettext.
42218         * config/srclist.txt: Update
42219
42220 2006-10-27  Eric Blake  <ebb9@byu.net>
42221
42222         * MODULES.html.sh: Document tempname.
42223         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42224         dependencies.
42225         (Files): Move lib/tempname.c...
42226         * modules/tempname: ...to this new module.
42227         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42228         (gl_PREREQ_TEMPNAME): Move...
42229         * m4/tempname.m4: ...to this new file.
42230         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42231         * modules/sys_stat (Depends-on): Add stat-macros.
42232         * lib/stat_.h (includes): Pick up stat macros.
42233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42234         if stat macros are broken.
42235         * lib/tempname.c (includes): No need to include "stat-macros.h".
42236         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42237         (direxists, __path_search) [!_LIBC]: Don't compile these in
42238         gnulib; the tmpdir module covers that.
42239         * lib/tempname.h: New file.
42240
42241 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42242
42243         * COPYING: Explain how gnulib-tool converts licence headers.
42244         Almost all wording by Eric Blake.
42245
42246 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42247
42248         * lib/mbchar.h (is_basic_table): Make read-only.
42249         * lib/mbchar.c (is_basic_table): Likewise.
42250         Reported by John Darrington.
42251
42252 2006-10-25  Bruno Haible  <bruno@clisp.org>
42253
42254         * lib/progname.h (set_program_name): Undefine before defining.
42255
42256 2006-10-25  Bruno Haible  <bruno@clisp.org>
42257
42258         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42259         false for non-gcc C++ compilers.
42260         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42261
42262 2006-10-24  Bruno Haible  <bruno@clisp.org>
42263
42264         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42265         iconv implementations like Irix iconv.
42266
42267 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42268
42269         * modules/vararrays: New file.
42270         * m4/vararrays.m4: New file, taken from diffutils.
42271         * MODULES.html.sh: New module vararrays.
42272
42273 2006-10-24  Karl Berry  <karl@gnu.org>
42274
42275         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42276         Don't call GNU Unix.
42277
42278 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42279
42280         * users.txt: Add Libtool.
42281
42282         Sync from Libtool:
42283
42284         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42285
42286         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42287         to gnulib's policy of including config.h unconditionally.
42288
42289 2006-10-24  Bruno Haible  <bruno@clisp.org>
42290
42291         * modules/wcwidth (Files): Add m4/wint_t.m4.
42292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42293         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42294
42295 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42296
42297         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42298         to pacify GCC with some -W flags enabled.  Problem reported by
42299         Bruno Haible.
42300
42301 2006-10-24  Jim Meyering  <jim@meyering.net>
42302
42303         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42304         Reported by Karl Berry.
42305
42306 2006-10-23  Bruno Haible  <bruno@clisp.org>
42307
42308         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42309
42310 2006-10-24  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/gl_list.h: Use C comment style, not C++ comment style.
42313
42314 2006-10-23  Eric Blake  <ebb9@byu.net>
42315
42316         * lib/getaddrinfo.c (includes): Add missing include.
42317
42318 2006-10-23  Bruno Haible  <bruno@clisp.org>
42319             Paul Eggert  <eggert@cs.ucla.edu>
42320
42321         Ability to rename obstack_free.
42322         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42323         obstack_free.
42324         (obstack_free): Invoke the __obstack_free macro.
42325         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42326
42327 2006-10-23  Bruno Haible  <bruno@clisp.org>
42328             Paul Eggert  <eggert@cs.ucla.edu>
42329
42330         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42331         __argc, __argv from the declaration. (They are defined as macros on
42332         mingw.)
42333
42334 2006-10-22  Bruno Haible  <bruno@clisp.org>
42335
42336         * doc/gnulib-intro.texi: New file.
42337         * doc/gnulib.texi: Include it.
42338
42339 2006-10-21  Bruno Haible  <bruno@clisp.org>
42340
42341         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42342         "Introduction", "Miscellanous Notes", "Particular Modules".
42343
42344 2006-10-21  Bruno Haible  <bruno@clisp.org>
42345
42346         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42347         Change mostlyclean-local rule to avoid sh syntax error from bash
42348         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42349
42350 2006-10-23  Jim Meyering  <jim@meyering.net>
42351
42352         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42353         in place of snprintf.
42354
42355         * modules/inttostr (Files): Add lib/uinttostr.c.
42356         * lib/uinttostr.c (inttostr): New file/function.
42357         * lib/inttostr.h (uinttostr): Declare.
42358         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42359         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42360         Add uinttostr.
42361         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42362
42363 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42364
42365         * lib/canonicalize.c (ELOOP): Define if not already defined.
42366         Problem reported by Bruno Haible in
42367         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42368
42369 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42370
42371         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42372         Problem reported by Perry Smith and Ville Laurikari.
42373
42374         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42375         uses.
42376
42377 2006-10-19  Bruno Haible  <bruno@clisp.org>
42378
42379         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42380         for mingw.
42381
42382 2006-10-19  Bruno Haible  <bruno@clisp.org>
42383
42384         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42385         Needed for mingw.
42386
42387 2006-10-19  Bruno Haible  <bruno@clisp.org>
42388
42389         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42390
42391 2006-10-19  Bruno Haible  <bruno@clisp.org>
42392
42393         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42394         it.
42395
42396 2006-10-19  Bruno Haible  <bruno@clisp.org>
42397
42398         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42399         invocation.
42400
42401 2006-10-19  Bruno Haible  <bruno@clisp.org>
42402
42403         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42404         mountlist by default.
42405
42406 2006-10-16  Bruno Haible  <bruno@clisp.org>
42407
42408         * lib/c-strstr.c: Include c-strstr.h.
42409
42410 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42411
42412         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42413         in a slash.
42414
42415 2006-10-18  Bruno Haible  <bruno@clisp.org>
42416
42417         * lib/lock.h [C++]: Wrap definitions in extern "C".
42418
42419 2006-10-18  Bruno Haible  <bruno@clisp.org>
42420
42421         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42422         gl_LIBOBJS list.
42423
42424 2006-10-18  Bruno Haible  <bruno@clisp.org>
42425
42426         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42427
42428 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42429
42430         * lib/xstrtol.h: Include gettext.h.
42431         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42432         Problem reported by Eric Blake.
42433         * modules/xstrtol (Depends-on): Add gettext-h.
42434
42435 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42436
42437         * lib/strftime.c (advance): New macro.
42438         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42439         incomplete type, so you can't add 0 to it.  Problem and patch
42440         reported by Eelco Dolstra for dietlibc.
42441
42442 2006-10-18  Jim Meyering  <jim@meyering.net>
42443
42444         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42445         type for a local, and rename it: s/up/user_proc/.
42446
42447 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42448
42449         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42450         READ_UTMP_USER_PROCESS.
42451         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42452
42453 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42454
42455         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42456         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42457
42458 2006-10-17  Eric Blake  <ebb9@byu.net>
42459
42460         * lib/sigprocmask.c (sigprocmask): Fix typo.
42461
42462         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42463
42464         * modules/clean-temp (Makefile.am): Don't add to make output...
42465         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42466         config.h.
42467
42468 2006-10-17  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42471         differently if DEFAULT_TEXT_DOMAIN is set.
42472
42473 2006-10-16  Bruno Haible  <bruno@clisp.org>
42474
42475         * lib/clean-temp.c: Include fwriteerror.h.
42476
42477 2006-10-16  Bruno Haible  <bruno@clisp.org>
42478
42479         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42480
42481 2006-10-16  Bruno Haible  <bruno@clisp.org>
42482
42483         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42484         * lib/sigprocmask.h: Include <sys/types.h>.
42485         (sigset_t): Use the system's definition if present.
42486
42487 2006-10-17  Eric Blake  <ebb9@byu.net>
42488
42489         * lib/xvasprintf.c (includes): Assume config.h.
42490         * lib/xasprintf.c (includes): Likewise.
42491
42492 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42493
42494         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42495         at least as wide as intmax_t.
42496
42497 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42498
42499         (Imported from Automake.)
42500         * build-aux/gnupload: Update to version 1.1 of directive file.
42501
42502 2006-10-16  Eric Blake  <ebb9@byu.net>
42503
42504         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42505         match Automake 1.10a.
42506
42507 2006-10-14  Bruno Haible  <bruno@clisp.org>
42508
42509         * modules/sigprocmask: New file.
42510         * lib/sigprocmask.h: New file.
42511         * lib/sigprocmask.c: New file.
42512         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42513         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42514         request sigprocmask.o.
42515         (gl_PREREQ_SIGPROCMASK): New macro.
42516         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42517         (Depends-on): Add sigprocmask.
42518         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42519         gt_SIGNALBLOCKING. Test for 'raise' only once.
42520         * lib/fatal-signal.c: Include sigprocmask.h.
42521         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42522         unblock_fatal_signals): Define always.
42523         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42524         sigprocmask.
42525
42526 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42527
42528         Sync from Automake.
42529         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42530         which incorrectly sets the mode of an existing destination
42531         directory.  In some cases the unpatched install-sh could do the
42532         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42533         system.  We hope this is rare in practice, but it's clearly worth
42534         fixing.  Problem reported by Alex Unleashed in
42535         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42536         Also, don't bother to check for -m bugs unless we're using -m;
42537         suggested by Stepan Kasal.
42538
42539 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42540
42541         Sync from Automake.
42542         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42543         `-c' flag, so they appear at the same position as in %FASTDEP%
42544         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42545         which ignores unknown options only after the first non-option.
42546         Bug report against M4 by Nelson H. F. Beebe.
42547
42548 2006-10-13  Jim Meyering  <jim@meyering.net>
42549
42550         Fix a bug in yesterday's change.
42551         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42552         p->fts_statp->st_dev would be used uninitialized.
42553         Ensures that we always call fts_stat on the very first entry.
42554         Miklos Szeredi reported that find -xdev stopped working.
42555
42556 2006-10-12  Bruno Haible  <bruno@clisp.org>
42557
42558         * gnulib-tool (func_get_automake_snippet): Append an automatically
42559         computed EXTRA_DIST augmentation.
42560         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42561         * modules/alloca-opt (Makefile.am): Likewise.
42562         * modules/allocsa (Makefile.am): Likewise.
42563         * modules/arcfour (Makefile.am): Likewise.
42564         * modules/arctwo (Makefile.am): Likewise.
42565         * modules/argmatch (Makefile.am): Likewise.
42566         * modules/argz (Makefile.am): Likewise.
42567         * modules/atexit (Makefile.am): Likewise.
42568         * modules/backupfile (Makefile.am): Likewise.
42569         * modules/byteswap (Makefile.am): Likewise.
42570         * modules/c-strtod (Makefile.am): Likewise.
42571         * modules/c-strtold (Makefile.am): Likewise.
42572         * modules/calloc (Makefile.am): Likewise.
42573         * modules/canon-host (Makefile.am): Likewise.
42574         * modules/canonicalize (Makefile.am): Likewise.
42575         * modules/chdir-long (Makefile.am): Likewise.
42576         * modules/chdir-safer (Makefile.am): Likewise.
42577         * modules/check-version (Makefile.am): Likewise.
42578         * modules/chown (Makefile.am): Likewise.
42579         * modules/cloexec (Makefile.am): Likewise.
42580         * modules/close-stream (Makefile.am): Likewise.
42581         * modules/closeout (Makefile.am): Likewise.
42582         * modules/crc (Makefile.am): Likewise.
42583         * modules/csharpexec (Makefile.am): Likewise.
42584         * modules/cycle-check (Makefile.am): Likewise.
42585         * modules/des (Makefile.am): Likewise.
42586         * modules/dev-ino (Makefile.am): Likewise.
42587         * modules/dirfd (Makefile.am): Likewise.
42588         * modules/dirname (Makefile.am): Likewise.
42589         * modules/dup2 (Makefile.am): Likewise.
42590         * modules/eealloc (Makefile.am): Likewise.
42591         * modules/error (Makefile.am): Likewise.
42592         * modules/euidaccess (Makefile.am): Likewise.
42593         * modules/exclude (Makefile.am): Likewise.
42594         * modules/exitfail (Makefile.am): Likewise.
42595         * modules/fcntl-safer (Makefile.am): Likewise.
42596         * modules/fcntl (Makefile.am): Likewise.
42597         * modules/file-type (Makefile.am): Likewise.
42598         * modules/fileblocks (Makefile.am): Likewise.
42599         * modules/filemode (Makefile.am): Likewise.
42600         * modules/filenamecat (Makefile.am): Likewise.
42601         * modules/fnmatch (Makefile.am): Likewise.
42602         * modules/fopen-safer (Makefile.am): Likewise.
42603         * modules/fpending (Makefile.am): Likewise.
42604         * modules/fprintftime (Makefile.am): Likewise.
42605         * modules/free (Makefile.am): Likewise.
42606         * modules/fsusage (Makefile.am): Likewise.
42607         * modules/ftruncate (Makefile.am): Likewise.
42608         * modules/fts (Makefile.am): Likewise.
42609         * modules/gc-arcfour (Makefile.am): Likewise.
42610         * modules/gc-des (Makefile.am): Likewise.
42611         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42612         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42613         * modules/gc-md4 (Makefile.am): Likewise.
42614         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42615         * modules/gc-sha1 (Makefile.am): Likewise.
42616         * modules/gc (Makefile.am): Likewise.
42617         * modules/getaddrinfo (Makefile.am): Likewise.
42618         * modules/getcwd (Makefile.am): Likewise.
42619         * modules/getdelim (Makefile.am): Likewise.
42620         * modules/getdomainname (Makefile.am): Likewise.
42621         * modules/getgroups (Makefile.am): Likewise.
42622         * modules/gethostname (Makefile.am): Likewise.
42623         * modules/gethrxtime (Makefile.am): Likewise.
42624         * modules/getline (Makefile.am): Likewise.
42625         * modules/getloadavg (Makefile.am): Likewise.
42626         * modules/getlogin_r (Makefile.am): Likewise.
42627         * modules/getndelim2 (Makefile.am): Likewise.
42628         * modules/getopt (Makefile.am): Likewise.
42629         * modules/getpagesize (Makefile.am): Likewise.
42630         * modules/getpass-gnu (Makefile.am): Likewise.
42631         * modules/getpass (Makefile.am): Likewise.
42632         * modules/getsubopt (Makefile.am): Likewise.
42633         * modules/gettime (Makefile.am): Likewise.
42634         * modules/gettimeofday (Makefile.am): Likewise.
42635         * modules/getugroups (Makefile.am): Likewise.
42636         * modules/getusershell (Makefile.am): Likewise.
42637         * modules/glob (Makefile.am): Likewise.
42638         * modules/group-member (Makefile.am): Likewise.
42639         * modules/hard-locale (Makefile.am): Likewise.
42640         * modules/hash (Makefile.am): Likewise.
42641         * modules/hmac-md5 (Makefile.am): Likewise.
42642         * modules/hmac-sha1 (Makefile.am): Likewise.
42643         * modules/human (Makefile.am): Likewise.
42644         * modules/idcache (Makefile.am): Likewise.
42645         * modules/imaxabs (Makefile.am): Likewise.
42646         * modules/imaxdiv (Makefile.am): Likewise.
42647         * modules/inet_ntop (Makefile.am): Likewise.
42648         * modules/inet_pton (Makefile.am): Likewise.
42649         * modules/intprops (Makefile.am): Likewise.
42650         * modules/inttostr (Makefile.am): Likewise.
42651         * modules/inttypes (Makefile.am): Likewise.
42652         * modules/isapipe (Makefile.am): Likewise.
42653         * modules/javaversion (Makefile.am): Likewise.
42654         * modules/lchmod (Makefile.am): Likewise.
42655         * modules/lchown (Makefile.am): Likewise.
42656         * modules/localcharset (Makefile.am): Likewise.
42657         * modules/long-options (Makefile.am): Likewise.
42658         * modules/lstat (Makefile.am): Likewise.
42659         * modules/malloc (Makefile.am): Likewise.
42660         * modules/mathl (Makefile.am): Likewise.
42661         * modules/mbchar (Makefile.am): Likewise.
42662         * modules/md2 (Makefile.am): Likewise.
42663         * modules/md4 (Makefile.am): Likewise.
42664         * modules/md5 (Makefile.am): Likewise.
42665         * modules/memcasecmp (Makefile.am): Likewise.
42666         * modules/memchr (Makefile.am): Likewise.
42667         * modules/memcmp (Makefile.am): Likewise.
42668         * modules/memcoll (Makefile.am): Likewise.
42669         * modules/memcpy (Makefile.am): Likewise.
42670         * modules/memmem (Makefile.am): Likewise.
42671         * modules/memmove (Makefile.am): Likewise.
42672         * modules/mempcpy (Makefile.am): Likewise.
42673         * modules/memrchr (Makefile.am): Likewise.
42674         * modules/memset (Makefile.am): Likewise.
42675         * modules/memxor (Makefile.am): Likewise.
42676         * modules/mkancesdirs (Makefile.am): Likewise.
42677         * modules/mkdir-p (Makefile.am): Likewise.
42678         * modules/mkdir (Makefile.am): Likewise.
42679         * modules/mkdtemp (Makefile.am): Likewise.
42680         * modules/mkstemp (Makefile.am): Likewise.
42681         * modules/mktime (Makefile.am): Likewise.
42682         * modules/modechange (Makefile.am): Likewise.
42683         * modules/mountlist (Makefile.am): Likewise.
42684         * modules/nanosleep (Makefile.am): Likewise.
42685         * modules/obstack (Makefile.am): Likewise.
42686         * modules/openat (Makefile.am): Likewise.
42687         * modules/pagealign_alloc (Makefile.am): Likewise.
42688         * modules/pathmax (Makefile.am): Likewise.
42689         * modules/physmem (Makefile.am): Likewise.
42690         * modules/poll (Makefile.am): Likewise.
42691         * modules/posixtm (Makefile.am): Likewise.
42692         * modules/posixver (Makefile.am): Likewise.
42693         * modules/putenv (Makefile.am): Likewise.
42694         * modules/quote (Makefile.am): Likewise.
42695         * modules/quotearg (Makefile.am): Likewise.
42696         * modules/raise (Makefile.am): Likewise.
42697         * modules/read-file (Makefile.am): Likewise.
42698         * modules/readline (Makefile.am): Likewise.
42699         * modules/readlink (Makefile.am): Likewise.
42700         * modules/readtokens (Makefile.am): Likewise.
42701         * modules/readutmp (Makefile.am): Likewise.
42702         * modules/realloc (Makefile.am): Likewise.
42703         * modules/regex (Makefile.am): Likewise.
42704         * modules/rename-dest-slash (Makefile.am): Likewise.
42705         * modules/rename (Makefile.am): Likewise.
42706         * modules/rijndael (Makefile.am): Likewise.
42707         * modules/rmdir (Makefile.am): Likewise.
42708         * modules/rpmatch (Makefile.am): Likewise.
42709         * modules/safe-read (Makefile.am): Likewise.
42710         * modules/safe-write (Makefile.am): Likewise.
42711         * modules/same-inode (Makefile.am): Likewise.
42712         * modules/same (Makefile.am): Likewise.
42713         * modules/save-cwd (Makefile.am): Likewise.
42714         * modules/savedir (Makefile.am): Likewise.
42715         * modules/setenv (Makefile.am): Likewise.
42716         * modules/settime (Makefile.am): Likewise.
42717         * modules/sha1 (Makefile.am): Likewise.
42718         * modules/sig2str (Makefile.am): Likewise.
42719         * modules/snprintf (Makefile.am): Likewise.
42720         * modules/stat-macros (Makefile.am): Likewise.
42721         * modules/stat-time (Makefile.am): Likewise.
42722         * modules/stdbool (Makefile.am): Likewise.
42723         * modules/stdint (Makefile.am): Likewise.
42724         * modules/stdlib-safer (Makefile.am): Likewise.
42725         * modules/stpcpy (Makefile.am): Likewise.
42726         * modules/stpncpy (Makefile.am): Likewise.
42727         * modules/strcase (Makefile.am): Likewise.
42728         * modules/strcasestr (Makefile.am): Likewise.
42729         * modules/strchrnul (Makefile.am): Likewise.
42730         * modules/strcspn (Makefile.am): Likewise.
42731         * modules/strdup (Makefile.am): Likewise.
42732         * modules/strerror (Makefile.am): Likewise.
42733         * modules/strftime (Makefile.am): Likewise.
42734         * modules/strndup (Makefile.am): Likewise.
42735         * modules/strnlen (Makefile.am): Likewise.
42736         * modules/strpbrk (Makefile.am): Likewise.
42737         * modules/strsep (Makefile.am): Likewise.
42738         * modules/strstr (Makefile.am): Likewise.
42739         * modules/strtod (Makefile.am): Likewise.
42740         * modules/strtoimax (Makefile.am): Likewise.
42741         * modules/strtok_r (Makefile.am): Likewise.
42742         * modules/strtol (Makefile.am): Likewise.
42743         * modules/strtoll (Makefile.am): Likewise.
42744         * modules/strtoul (Makefile.am): Likewise.
42745         * modules/strtoull (Makefile.am): Likewise.
42746         * modules/strtoumax (Makefile.am): Likewise.
42747         * modules/strverscmp (Makefile.am): Likewise.
42748         * modules/sys_socket (Makefile.am): Likewise.
42749         * modules/sys_stat (Makefile.am): Likewise.
42750         * modules/sysexits (Makefile.am): Likewise.
42751         * modules/time_r (Makefile.am): Likewise.
42752         * modules/timegm (Makefile.am): Likewise.
42753         * modules/timespec (Makefile.am): Likewise.
42754         * modules/tmpfile-safer (Makefile.am): Likewise.
42755         * modules/trim (Makefile.am): Likewise.
42756         * modules/unistd-safer (Makefile.am): Likewise.
42757         * modules/unlinkdir (Makefile.am): Likewise.
42758         * modules/unlocked-io (Makefile.am): Likewise.
42759         * modules/userspec (Makefile.am): Likewise.
42760         * modules/utime (Makefile.am): Likewise.
42761         * modules/utimecmp (Makefile.am): Likewise.
42762         * modules/utimens (Makefile.am): Likewise.
42763         * modules/vasnprintf (Makefile.am): Likewise.
42764         * modules/vasprintf (Makefile.am): Likewise.
42765         * modules/vsnprintf (Makefile.am): Likewise.
42766         * modules/xalloc (Makefile.am): Likewise.
42767         * modules/xgetcwd (Makefile.am): Likewise.
42768         * modules/xnanosleep (Makefile.am): Likewise.
42769         * modules/xreadlink (Makefile.am): Likewise.
42770         * modules/xstrtod (Makefile.am): Likewise.
42771         * modules/xstrtol (Makefile.am): Likewise.
42772         * modules/xstrtold (Makefile.am): Likewise.
42773         * modules/yesno (Makefile.am): Likewise.
42774         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42775
42776 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42777
42778         * modules/error (Makefile.am): Distribute files through
42779         EXTRA_DIST, not lib_SOURCES.
42780
42781 2006-10-12  Eric Blake  <ebb9@byu.net>
42782
42783         * modules/error (Makefile.am): Distribute files in /lib.
42784         * modules/obstack (Makefile.am): Likewise.
42785
42786 2006-10-12  Bruno Haible  <bruno@clisp.org>
42787
42788         * modules/acl (Makefile.am): Distribute all files in lib/ through
42789         EXTRA_DIST.
42790         * modules/arcfour (Makefile.am): Likewise.
42791         * modules/arctwo (Makefile.am): Likewise.
42792         * modules/argmatch (Makefile.am): Likewise.
42793         * modules/argz (Makefile.am): Likewise.
42794         * modules/atexit (Makefile.am): Likewise.
42795         * modules/backupfile (Makefile.am): Likewise.
42796         * modules/c-strtod (Makefile.am): Likewise.
42797         * modules/c-strtold (Makefile.am): Likewise.
42798         * modules/calloc (Makefile.am): Likewise.
42799         * modules/canon-host (Makefile.am): Likewise.
42800         * modules/canonicalize (Makefile.am): Likewise.
42801         * modules/chdir-long (Makefile.am): Likewise.
42802         * modules/chdir-safer (Makefile.am): Likewise.
42803         * modules/check-version (Makefile.am): Likewise.
42804         * modules/chown (Makefile.am): Likewise.
42805         * modules/cloexec (Makefile.am): Likewise.
42806         * modules/close-stream (Makefile.am): Likewise.
42807         * modules/closeout (Makefile.am): Likewise.
42808         * modules/crc (Makefile.am): Likewise.
42809         * modules/cycle-check (Makefile.am): Likewise.
42810         * modules/des (Makefile.am): Likewise.
42811         * modules/dirfd (Makefile.am): Likewise.
42812         * modules/dirname (Makefile.am): Likewise.
42813         * modules/dup2 (Makefile.am): Likewise.
42814         * modules/euidaccess (Makefile.am): Likewise.
42815         * modules/exclude (Makefile.am): Likewise.
42816         * modules/exitfail (Makefile.am): Likewise.
42817         * modules/fcntl-safer (Makefile.am): Likewise.
42818         * modules/file-type (Makefile.am): Likewise.
42819         * modules/fileblocks (Makefile.am): Likewise.
42820         * modules/filemode (Makefile.am): Likewise.
42821         * modules/filenamecat (Makefile.am): Likewise.
42822         * modules/fnmatch (Makefile.am): Likewise.
42823         * modules/fopen-safer (Makefile.am): Likewise.
42824         * modules/fpending (Makefile.am): Likewise.
42825         * modules/fprintftime (Makefile.am): Likewise.
42826         * modules/free (Makefile.am): Likewise.
42827         * modules/fsusage (Makefile.am): Likewise.
42828         * modules/ftruncate (Makefile.am): Likewise.
42829         * modules/fts (Makefile.am): Likewise.
42830         * modules/gc (Makefile.am): Likewise.
42831         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42832         * modules/getaddrinfo (Makefile.am): Likewise.
42833         * modules/getcwd (Makefile.am): Likewise.
42834         * modules/getdelim (Makefile.am): Likewise.
42835         * modules/getdomainname (Makefile.am): Likewise.
42836         * modules/getgroups (Makefile.am): Likewise.
42837         * modules/gethostname (Makefile.am): Likewise.
42838         * modules/gethrxtime (Makefile.am): Likewise.
42839         * modules/getline (Makefile.am): Likewise.
42840         * modules/getloadavg (Makefile.am): Likewise.
42841         * modules/getlogin_r (Makefile.am): Likewise.
42842         * modules/getopt (Makefile.am): Likewise.
42843         * modules/getpass (Makefile.am): Likewise.
42844         * modules/getpass-gnu (Makefile.am): Likewise.
42845         * modules/getsubopt (Makefile.am): Likewise.
42846         * modules/gettime (Makefile.am): Likewise.
42847         * modules/gettimeofday (Makefile.am): Likewise.
42848         * modules/getugroups (Makefile.am): Likewise.
42849         * modules/getusershell (Makefile.am): Likewise.
42850         * modules/glob (Makefile.am): Likewise.
42851         * modules/group-member (Makefile.am): Likewise.
42852         * modules/hard-locale (Makefile.am): Likewise.
42853         * modules/hash (Makefile.am): Likewise.
42854         * modules/hmac-md5 (Makefile.am): Likewise.
42855         * modules/hmac-sha1 (Makefile.am): Likewise.
42856         * modules/human (Makefile.am): Likewise.
42857         * modules/idcache (Makefile.am): Likewise.
42858         * modules/imaxabs (Makefile.am): Likewise.
42859         * modules/imaxdiv (Makefile.am): Likewise.
42860         * modules/inet_ntop (Makefile.am): Likewise.
42861         * modules/inet_pton (Makefile.am): Likewise.
42862         * modules/inttostr (Makefile.am): Likewise.
42863         * modules/isapipe (Makefile.am): Likewise.
42864         * modules/lchown (Makefile.am): Likewise.
42865         * modules/long-options (Makefile.am): Likewise.
42866         * modules/lstat (Makefile.am): Likewise.
42867         * modules/malloc (Makefile.am): Likewise.
42868         * modules/mathl (Makefile.am): Likewise.
42869         * modules/mbchar (Makefile.am): Likewise.
42870         * modules/md2 (Makefile.am): Likewise.
42871         * modules/md4 (Makefile.am): Likewise.
42872         * modules/md5 (Makefile.am): Likewise.
42873         * modules/memcasecmp (Makefile.am): Likewise.
42874         * modules/memchr (Makefile.am): Likewise.
42875         * modules/memcmp (Makefile.am): Likewise.
42876         * modules/memcoll (Makefile.am): Likewise.
42877         * modules/memcpy (Makefile.am): Likewise.
42878         * modules/memmem (Makefile.am): Likewise.
42879         * modules/memmove (Makefile.am): Likewise.
42880         * modules/mempcpy (Makefile.am): Likewise.
42881         * modules/memrchr (Makefile.am): Likewise.
42882         * modules/memset (Makefile.am): Likewise.
42883         * modules/memxor (Makefile.am): Likewise.
42884         * modules/mkancesdirs (Makefile.am): Likewise.
42885         * modules/mkdir (Makefile.am): Likewise.
42886         * modules/mkdir-p (Makefile.am): Likewise.
42887         * modules/mkdtemp (Makefile.am): Likewise.
42888         * modules/mkstemp (Makefile.am): Likewise.
42889         * modules/mktime (Makefile.am): Likewise.
42890         * modules/modechange (Makefile.am): Likewise.
42891         * modules/mountlist (Makefile.am): Likewise.
42892         * modules/nanosleep (Makefile.am): Likewise.
42893         * modules/openat (Makefile.am): Likewise.
42894         * modules/pagealign_alloc (Makefile.am): Likewise.
42895         * modules/physmem (Makefile.am): Likewise.
42896         * modules/poll (Makefile.am): Likewise.
42897         * modules/posixtm (Makefile.am): Likewise.
42898         * modules/posixver (Makefile.am): Likewise.
42899         * modules/putenv (Makefile.am): Likewise.
42900         * modules/quote (Makefile.am): Likewise.
42901         * modules/quotearg (Makefile.am): Likewise.
42902         * modules/raise (Makefile.am): Likewise.
42903         * modules/read-file (Makefile.am): Likewise.
42904         * modules/readline (Makefile.am): Likewise.
42905         * modules/readlink (Makefile.am): Likewise.
42906         * modules/readtokens (Makefile.am): Likewise.
42907         * modules/readutmp (Makefile.am): Likewise.
42908         * modules/realloc (Makefile.am): Likewise.
42909         * modules/regex (Makefile.am): Likewise.
42910         * modules/rename (Makefile.am): Likewise.
42911         * modules/rename-dest-slash (Makefile.am): Likewise.
42912         * modules/rijndael (Makefile.am): Likewise.
42913         * modules/rmdir (Makefile.am): Likewise.
42914         * modules/rpmatch (Makefile.am): Likewise.
42915         * modules/safe-read (Makefile.am): Likewise.
42916         * modules/safe-write (Makefile.am): Likewise.
42917         * modules/same (Makefile.am): Likewise.
42918         * modules/save-cwd (Makefile.am): Likewise.
42919         * modules/savedir (Makefile.am): Likewise.
42920         * modules/setenv (Makefile.am): Likewise.
42921         * modules/settime (Makefile.am): Likewise.
42922         * modules/sha1 (Makefile.am): Likewise.
42923         * modules/sig2str (Makefile.am): Likewise.
42924         * modules/snprintf (Makefile.am): Likewise.
42925         * modules/stdlib-safer (Makefile.am): Likewise.
42926         * modules/stpcpy (Makefile.am): Likewise.
42927         * modules/stpncpy (Makefile.am): Likewise.
42928         * modules/strcase (Makefile.am): Likewise.
42929         * modules/strcasestr (Makefile.am): Likewise.
42930         * modules/strchrnul (Makefile.am): Likewise.
42931         * modules/strcspn (Makefile.am): Likewise.
42932         * modules/strdup (Makefile.am): Likewise.
42933         * modules/strerror (Makefile.am): Likewise.
42934         * modules/strftime (Makefile.am): Likewise.
42935         * modules/strndup (Makefile.am): Likewise.
42936         * modules/strnlen (Makefile.am): Likewise.
42937         * modules/strpbrk (Makefile.am): Likewise.
42938         * modules/strsep (Makefile.am): Likewise.
42939         * modules/strstr (Makefile.am): Likewise.
42940         * modules/strtod (Makefile.am): Likewise.
42941         * modules/strtoimax (Makefile.am): Likewise.
42942         * modules/strtok_r (Makefile.am): Likewise.
42943         * modules/strtol (Makefile.am): Likewise.
42944         * modules/strtoll (Makefile.am): Likewise.
42945         * modules/strtoul (Makefile.am): Likewise.
42946         * modules/strtoull (Makefile.am): Likewise.
42947         * modules/strtoumax (Makefile.am): Likewise.
42948         * modules/strverscmp (Makefile.am): Likewise.
42949         * modules/time_r (Makefile.am): Likewise.
42950         * modules/timegm (Makefile.am): Likewise.
42951         * modules/tmpfile-safer (Makefile.am): Likewise.
42952         * modules/unistd-safer (Makefile.am): Likewise.
42953         * modules/unlinkdir (Makefile.am): Likewise.
42954         * modules/userspec (Makefile.am): Likewise.
42955         * modules/utime (Makefile.am): Likewise.
42956         * modules/utimecmp (Makefile.am): Likewise.
42957         * modules/utimens (Makefile.am): Likewise.
42958         * modules/vasnprintf (Makefile.am): Likewise.
42959         * modules/vasprintf (Makefile.am): Likewise.
42960         * modules/vsnprintf (Makefile.am): Likewise.
42961         * modules/xalloc (Makefile.am): Likewise.
42962         * modules/xgetcwd (Makefile.am): Likewise.
42963         * modules/xnanosleep (Makefile.am): Likewise.
42964         * modules/xreadlink (Makefile.am): Likewise.
42965         * modules/xstrtod (Makefile.am): Likewise.
42966         * modules/xstrtol (Makefile.am): Likewise.
42967         * modules/xstrtold (Makefile.am): Likewise.
42968         * modules/yesno (Makefile.am): Likewise.
42969
42970 2006-10-12  Jim Meyering  <jim@meyering.net>
42971
42972         * m4/getloadavg.m4: Revert the change below.
42973
42974         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42975         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42976         fail with a symlink, which is what coreutils' ./bootstrap now
42977         creates by default.
42978
42979 2006-10-12  Bruno Haible  <bruno@clisp.org>
42980
42981         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42982         mingw.
42983         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42984         MSVC and mingw explicitly.
42985
42986 2006-10-11  Simon Josefsson  <jas@extundo.com>
42987             Bruno Haible  <bruno@clisp.org>
42988
42989         Add support for multiple gnulib-tool invocations in the scope of a
42990         single configure.ac file.
42991         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42992         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42993         with the same contents as the _LIBADD variable.
42994         (func_emit_initmacro_start, func_emit_initmacro_end,
42995         func_emit_initmacro_done): New functions.
42996         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42997         gl_LIBOBJS and gl_LTLIBOBJS.
42998
42999 2006-10-11  Bruno Haible  <bruno@clisp.org>
43000
43001         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
43002         (func_create_testdir): Don't create po/Makefile.am, don't invoke
43003         autoreconf. Instead, invoke autopoint explicitly but move back the
43004         *.m4 files from gnulib.
43005
43006 2006-10-11  Bruno Haible  <bruno@clisp.org>
43007
43008         * gnulib-tool (func_usage): Make module names after --create-testdir
43009         optional.
43010         (func_create_testdir): If no module was specified, use nearly all
43011         modules.
43012
43013 2006-10-12  Jim Meyering  <jim@meyering.net>
43014
43015         Big performance improvement for fts-based tools that use FTS_NOSTAT.
43016         Avoid spurious inode-mismatch problems on non-POSIX file systems.
43017         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
43018         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
43019         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
43020         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
43021         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
43022         (fts_set_stat_required): New function.
43023         (fts_open): Defer the calls to fts_stat, if possible or requested.
43024         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
43025         into fts_stat itself.
43026         (fts_read): Perform any required (deferred) fts_stat call.
43027         (fts_build): Likewise, for the directory we're about to open and read.
43028         In the readdir loop, carefully decide whether each entry will require
43029         an eventual call to fts_stat, using dirent.d_type info if available.
43030         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
43031         a command line argument into this function.  Update all callers.
43032         Map a return value of FTS_DOT to FTS_D for a command line argument.
43033         * modules/fts (Depends-on): Add d-type.  Alphabetize.
43034         Thanks to Miklos Szeredi for his tenacity and for the initial
43035         bug report about "find" failing on a FUSE-based file system.
43036
43037         * lib/fts.c (fts_open): Use consistent indentation.
43038
43039 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43040
43041         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
43042         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
43043         reported by Jim Meyering.  All uses of cache variables renamed
43044         to match Autoconf's.
43045         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
43046         the other one.
43047
43048         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43049         Fix misspelling in diagnostic.
43050
43051 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43052
43053         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
43054         defined.  Problem reported by Matthew Woehlke.
43055
43056         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
43057         Add support for Tandem NonStop R series.
43058         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
43059         Use new macro.
43060
43061         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
43062         (has_trailing_slash): Omit size arg; all callers changed.
43063         Omit 'inline', since it doesn't help performance and we'd
43064         need to configure it.
43065         Don't count //, ///, etc. as having a trailing slash.
43066         As a side effect, this removes a C99ism reported by Matthew Woehlke.
43067         (rpl_rename_dest_slash): On failure, use rename's errno rather
43068         than (in some cases) an incorrect or junk errno.
43069         Simplify code by removing need to compute length; this does
43070         cause it to make two passes instead of one over the file name,
43071         but it's worth it.
43072
43073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
43074         change, since Autoconf's version may no longer be appropriate now
43075         that we are using CVS Autoconf's version.  Add support for Tandem.
43076
43077 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43078             Bruno Haible  <bruno@clisp.org>
43079
43080         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
43081         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
43082         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
43083         gl_AC_TYPE_LONG_LONG.
43084
43085         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
43086         instead of HAVE_LONG_LONG.
43087         * lib/printf-args.c (printf_fetchargs): Likewise.
43088         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43089         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43090         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
43091         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
43092         gl_AC_TYPE_LONG_LONG.
43093
43094 2006-10-11  Bruno Haible  <bruno@clisp.org>
43095
43096         * m4/longlong.m4: Add comments.
43097         * m4/ulonglong.m4: Likewise.
43098
43099 2006-10-10  Bruno Haible  <bruno@clisp.org>
43100
43101         Make it possible to #define stpcpy, strdup to aliases.
43102         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
43103         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
43104
43105 2006-10-10  Bruno Haible  <bruno@clisp.org>
43106
43107         Make it possible to #define gcd to an alias.
43108         * lib/gcd.c: Include config.h.
43109
43110 2006-10-10  Bruno Haible  <bruno@clisp.org>
43111
43112         Make it possible to #define c_isascii to an alias.
43113         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
43114         defined. Undefine the macros before defining them, to avoid gcc
43115         warnings.
43116         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
43117         define NO_C_CTYPE_MACROS early.
43118
43119 2006-10-10  Bruno Haible  <bruno@clisp.org>
43120
43121         Make it possible to #define set_program_name to an alias.
43122         * lib/progname.c: Don't undefine set_program_name; instead, undefine
43123         ENABLE_RELOCATABLE early.
43124
43125 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43126
43127         Port to Tandem NSK OSS, which has 64-bit signed int but at most
43128         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
43129         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
43130         More generally, don't assume that 64-bit signed int is available
43131         if unsigned int is, and vice versa.
43132         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
43133         unsigned symbols, not on their signed counterparts.
43134         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
43135         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
43136         (UINT64_C, UINTMAX_C):
43137         Likewise.
43138         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
43139         unsigned counterparts.
43140         (Have_long_long, Unsigned): New macros.
43141         (Int): Renamed from INT.
43142         (strtoimax): Use the new macros.
43143         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
43144         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
43145         * modules/inttypes (inttypes.h): Substitute
43146         HAVE_UNSIGNED_LONG_LONG_INT.
43147         * modules/stdint (stdint.h): Likewise.
43148         (Files): Add m4/ulonglong.m4.
43149
43150 2006-10-10  Bruno Haible  <bruno@clisp.org>
43151
43152         Fix a gcc -Wshadow warning.
43153         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
43154         to 'bucket'.
43155         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
43156         gl_linked_indexof_from_to): Likewise.
43157         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
43158         Likewise.
43159         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
43160         Likewise.
43161         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
43162         Reported by Eric Blake.
43163
43164 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43165
43166         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
43167         for NetBSD.  Problem reported by Bruno Haible.
43168
43169 2006-10-09  Jim Meyering  <jim@meyering.net>
43170
43171         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
43172         Patch from Bruno Haible.
43173
43174 2006-10-09  Jim Meyering  <jim@meyering.net>
43175
43176         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43177         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43178         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43179
43180 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43181
43182         Don't include <config.h> twice; this doesn't work in some cases,
43183         e.g., when config.h has "#define intmax_t long long int" and
43184         we include <config.h>, <inttypes.h>, <config.h> in that order.
43185         Problem reported by Matthew Woehlke in:
43186         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43187         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43188         * lib/fts-cycle.c: Don't include config.h.
43189         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43190         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43191         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43192         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43193         inttypes.h.
43194         * lib/xstrtoumax.c: Likewise.
43195         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43196         __strtol and the like, so that this module is more like its siblings.
43197         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43198         Remove; no longer needed now that we assume gnulib inttypes.h.
43199
43200 2006-10-08  Bruno Haible  <bruno@clisp.org>
43201
43202         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43203         option.
43204
43205 2006-10-07  Jim Meyering  <jim@meyering.net>
43206
43207         * modules/inttypes (inttypes.h): Revert what seems to have been
43208         an inadvertent part of today's change: use "|", not "/" in the
43209         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43210
43211 2006-10-07  Bruno Haible  <bruno@clisp.org>
43212
43213         * modules/sublist: New file.
43214
43215 2006-10-07  Bruno Haible  <bruno@clisp.org>
43216
43217         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43218         * modules/argz (argz.h): Likewise.
43219         * modules/arpa_inet (arpa/inet.h): Likewise.
43220         * modules/byteswap (byteswap.h): Likewise.
43221         * modules/configmake (configmake.h): Likewise.
43222         * modules/fcntl (fcntl.h): Likewise.
43223         * modules/fnmatch (fnmatch.h): Likewise.
43224         * modules/getopt (getopt.h): Likewise.
43225         * modules/glob (glob.h): Likewise.
43226         * modules/inttypes (inttypes.h): Likewise.
43227         * modules/netinet_in (netinet/in.h): Likewise.
43228         * modules/poll (poll.h): Likewise.
43229         * modules/stdbool (stdbool.h): Likewise.
43230         * modules/stdint (stdint.h): Likewise.
43231         * modules/sys_select (sys/select.h): Likewise.
43232         * modules/sys_socket (sys/socket.h): Likewise.
43233         * modules/sys_stat (sys/stat.h): Likewise.
43234         * modules/sysexits (sysexits.h): Likewise.
43235         * modules/unistd (unistd.h): Likewise.
43236         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43237         Add a "DO NOT EDIT" comment to the generated file.
43238         (func_import): Likewise for gnulib-comp.m4.
43239
43240 2006-10-07  Bruno Haible  <bruno@clisp.org>
43241
43242         * lib/gl_sublist.h: New file.
43243         * lib/gl_sublist.c: New file.
43244
43245 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43246
43247         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43248         name (relative to the original working directory) and the file
43249         name component (relative to the temporary working directory).  All
43250         callers changed.
43251         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43252         * lib/mkdir-p.c (make_dir_parents): Likewise.
43253         * lib/mkdir-p.h (make_dir_parents): Likewise.
43254
43255 2006-10-06  Eric Blake  <ebb9@byu.net>
43256
43257         Define several macros for use by the clean-temp module.
43258         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43259         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43260         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43261
43262         * lib/clean-temp.h (close_stream_temp): New declaration.
43263         * lib/clean-temp.c (includes): Pull in headers according to what
43264         other modules are in use.
43265         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43266
43267 2006-10-06  Bruno Haible  <bruno@clisp.org>
43268
43269         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43270         instead of fopen, fwriteerror.
43271
43272 2006-10-06  Bruno Haible  <bruno@clisp.org>
43273
43274         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43275         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43276         int.
43277         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43278         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43279         Return an error indicator.
43280         Suggested by Eric Blake.
43281
43282 2006-10-06  Bruno Haible  <bruno@clisp.org>
43283
43284         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43285         Reported by Eric Blake.
43286
43287 2006-10-06  Bruno Haible  <bruno@clisp.org>
43288
43289         * modules/closeout (Description): Mention stderr too.
43290
43291 2006-10-06  Bruno Haible  <bruno@clisp.org>
43292         and Paul Eggert  <eggert@cs.ucla.edu>
43293
43294         * lib/closeout.c (close_stdout): Also close stderr.
43295         * lib/closeout.h: Update comment.
43296
43297 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43298
43299         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43300         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43301         * lib/dirchownmod.c: Include lchown.h.
43302         * lib/lchown.c: Don't include files that lchown.h now includes.
43303         Don't declare chown, since lchown.h now does that.
43304         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43305         (lchown): Define to rpl_chown if lchown is declared but
43306         does not exist.  Declare using a prototype if lchown is not
43307         declared.  Add a copyright notice.
43308         * lib/mkstemp.h: Include <unistd.h>.
43309         * lib/openat.c: Include lchown.h.
43310
43311         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43312         we now test for that separately.
43313         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43314         rather than O_NOFOLLOW, when testing whether it's possible to
43315         avoid a race condition reliably.
43316         * lib/savewd.c (savewd_chdir): Likewise.
43317
43318         Remove macros that are no longer needed now that stdint.h is
43319         reliable.
43320         * lib/fsusage.c (UINTMAX_MAX): Remove.
43321         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43322         * lib/utimecmp.c (SIZE_MAX): Remove.
43323
43324         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43325
43326         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43327         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43328         O_NOATIME works.
43329
43330 2006-10-05  Bruno Haible  <bruno@clisp.org>
43331
43332         * lib/gl_list.h (gl_sortedlist_search_from_to,
43333         gl_sortedlist_indexof_from_to): New declarations.
43334         (gl_list_implementation): New fields sortedlist_search_from_to,
43335         sortedlist_indexof_from_to.
43336         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43337         inline functions.
43338         * lib/gl_list.c (gl_sortedlist_search_from_to,
43339         gl_sortedlist_indexof_from_to): New functions.
43340         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43341         function.
43342         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43343         (gl_array_sortedlist_search_from_to): New function.
43344         (gl_array_list_implementation): Update.
43345         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43346         function.
43347         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43348         (gl_carray_sortedlist_search_from_to): New function.
43349         (gl_carray_list_implementation): Update.
43350         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43351         gl_linked_sortedlist_indexof_from_to): New functions.
43352         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43353         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43354         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43355         gl_tree_sortedlist_indexof_from_to): New functions.
43356         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43357         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43358         Update.
43359         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43360         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43361         Update.
43362
43363 2006-10-05  Bruno Haible  <bruno@clisp.org>
43364
43365         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43366         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43367         (struct gl_list_implementation): Add fields search_from_to,
43368         indexof_from_to. Remove fields search, indexof.
43369         (gl_list_search): Use the search_from_to method.
43370         (gl_list_search_from, gl_list_search_from_to): New functions.
43371         (gl_list_indexof): Use the indexof_from_to method.
43372         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43373         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43374         (gl_list_search_from, gl_list_search_from_to): New functions.
43375         (gl_list_indexof): Use the indexof_from_to method.
43376         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43377         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43378         gl_array_indexof. Add start_index, end_index arguments.
43379         (gl_array_search_from_to): Renamed from gl_array_search. Add
43380         start_index, end_index arguments.
43381         (gl_array_remove, gl_array_list_implementation): Update.
43382         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43383         gl_carray_indexof. Add start_index, end_index arguments.
43384         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43385         start_index, end_index arguments.
43386         (gl_carray_remove, gl_carray_list_implementation): Update.
43387         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43388         gl_linked_search. Add start_index, end_index arguments.
43389         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43390         start_index, end_index arguments.
43391         (gl_linked_remove): Update.
43392         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43393         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43394         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43395         field to 'size_t'.
43396         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43397         gl_tree_search. Add start_index, end_index arguments.
43398         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43399         start_index, end_index arguments.
43400         (gl_tree_remove): Update.
43401         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43402         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43403         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43404         function.
43405         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43406         gl_tree_search. Add start_index, end_index arguments.
43407         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43408         start_index, end_index arguments.
43409         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43410         Update.
43411         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43412
43413 2006-10-05  Bruno Haible  <bruno@clisp.org>
43414
43415         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43416
43417         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43418         fwriteerror_temp): New declarations.
43419         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43420         (descriptors): New variable.
43421         (cleanup): First, close the descriptors.
43422         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43423         fclose_temp, fwriteerror_temp): New functions.
43424
43425 2006-10-04  Jim Meyering  <jim@meyering.net>
43426
43427         * lib/fts.c (fts_open): Tiny comment change.
43428
43429 2006-10-04  Bruno Haible  <bruno@clisp.org>
43430
43431         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43432         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43433         gl_LOCK_BODY.
43434         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43435         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43436         gl_LOCK_EARLY_BODY.
43437         (gl_LOCK): Require gl_LOCK_BODY.
43438
43439 2006-10-04  Bruno Haible  <bruno@clisp.org>
43440
43441         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43442         (gl_oset_search_atleast): New declaration.
43443         (struct gl_oset_implementation): Add field 'search_atleast'.
43444         (gl_oset_search_atleast): New inline function.
43445         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43446         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43447         (gl_array_oset_implementation): Update.
43448         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43449         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43450         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43451
43452 2006-10-04  Bruno Haible  <bruno@clisp.org>
43453
43454         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43455
43456 2006-10-03  Bruno Haible  <bruno@clisp.org>
43457
43458         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43459         from gl_avltreehash_list_implementation.
43460
43461 2006-10-03  Bruno Haible  <bruno@clisp.org>
43462
43463         * lib/gl_oset.c (gl_oset_add): Fix return type.
43464
43465 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43466
43467         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43468
43469 2006-10-02  Eric Blake  <ebb9@byu.net>
43470
43471         * modules/strnlen (Depends-on): Add extensions.
43472
43473 2006-10-02  Eric Blake  <ebb9@byu.net>
43474
43475         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43476         definition in 2.60+.
43477
43478 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43479
43480         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43481         checks.
43482
43483 2006-10-02  Bruno Haible  <bruno@clisp.org>
43484
43485         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43486         to the AUTOMAKE_OPTIONS.
43487         Reported by Jim Meyering.
43488
43489 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43490
43491         Work around bug in Solaris 10 /proc file system:
43492         /proc/self/fd/NNN/.. isn't the parent directory of
43493         the directory whose file descriptor is NNN.  This needs to
43494         be worked around at run time, not compile time, since a
43495         program might be built on Solaris 8, where things work, and
43496         run on Solaris 10.
43497         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43498         to use the following interface instead:
43499         (OPENAT_BUFFER_SIZE): New macro.
43500         (openat_proc_name): New function.
43501         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43502         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43503         Likewise.
43504         * lib/openat-proc.c: New file.
43505         * modules/openat (Files): Add lib/openat-proc.c.
43506         (Depends-on): Add same-inode, stdbool.
43507         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43508
43509 2006-09-29  Bruno Haible  <bruno@clisp.org>
43510
43511         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43512         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43513         argument. Set stdout_closed before testing for ferror, not after.
43514         (fwriteerror, fwriteerror_no_ebadf): New functions.
43515
43516 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43517
43518         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43519
43520 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43521
43522         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43523         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43524
43525 2006-09-28  Jim Meyering  <jim@meyering.net>
43526
43527         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43528         Include <unistd.h>.
43529
43530 2006-09-28  Bruno Haible  <bruno@clisp.org>
43531
43532         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43533         * modules/linkedhash-list (Depends-on): Likewise.
43534         * modules/rbtreehash-list (Depends-on): Likewise.
43535
43536 2006-09-28  Bruno Haible  <bruno@clisp.org>
43537
43538         * lib/strndup.h: Simplify the redefinition of strndup.
43539         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43540         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43541
43542 2006-09-28  Bruno Haible  <bruno@clisp.org>
43543
43544         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43545         * lib/gl_linkedhash_list.c: Likewise.
43546         * lib/gl_rbtreehash_list.c: Likewise.
43547
43548 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43549
43550         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43551         getaddrinfo.
43552
43553         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43554         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43555         it causes <stdio_ext.h> to cause a compile-time error.
43556         Problem reported by Nelson H. F. Beebe.
43557         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43558         of HAVE_DECL___PENDING.
43559
43560         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43561         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43562         declaration.
43563
43564 2006-09-27  Jim Meyering  <jim@meyering.net>
43565
43566         This file could end up with a definition for a function
43567         named __strndup, rather than rpl_strndup on a system with
43568         incomplete weak_alias support.
43569         * lib/strndup.c (strndup): Rename from __strndup.
43570         Remove #defines that used to map __strndup to strndup.
43571         Don't use K&R prototypes.
43572         Remove LIBC-related code, since this file is not sync'd with glibc.
43573         * lib/strndup.h: Revamp, accordingly.
43574         * m4/strndup.m4: Modernize.
43575
43576 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43577
43578         * modules/savewd (Depends-on): Add 'raise'.
43579         * lib/savewd.c: Include <signal.h>, for 'raise'.
43580
43581 2006-09-26  Jim Meyering  <jim@meyering.net>
43582
43583         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43584         when we detect Darwin 8.7.0's acl_get_file bug.
43585         Rearrange to perform the new (below) run-test while $LIBS
43586         contains any acl-related library.  Set USE_ACL at the end.
43587         (gl_ACL_GET_FILE): New function.
43588
43589 2006-09-26  Eric Blake  <ebb9@byu.net>
43590
43591         * lib/verror.c: Include <config.h> unconditionally.
43592
43593 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43594
43595         * modules/clock-time (Maintainer): Add self.
43596         * modules/getlogin_r (Depends-on): Add extensions.
43597
43598 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43599
43600         * modules/clock-time: New module.
43601         * modules/nanosleep (Depends-on): Add clock-time.
43602         * modules/gethrxtime (Depends-on): Likewise.
43603         * modules/gettime (Depends-on): Likewise.
43604         * modules/settime (Depends-on): Likewise.
43605
43606         * modules/fts-lgpl: Depend on openat.
43607         * modules/mkancesdirs: Depend on savewd.
43608         * modules/mkdir-p: Likewise.
43609
43610 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43611
43612         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43613
43614         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43615         `gl_have_arbitrary_file_name_length_limit' to
43616         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43617         actually works between configure runs.
43618
43619 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43620             Bruno Haible  <bruno@clisp.org>
43621
43622         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43623
43624 2006-09-25  Jim Meyering  <jim@meyering.net>
43625
43626         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43627         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43628
43629 2006-09-25  Eric Blake  <ebb9@byu.net>
43630
43631         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43632         exec's in 2006-09-18 patch when shuffling fds.
43633
43634 2006-09-25  Bruno Haible  <bruno@clisp.org>
43635
43636         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43637         Reported by Jim Meyering.
43638
43639 2006-09-24  Jim Meyering  <jim@meyering.net>
43640
43641         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43642         compare a pointer against a literal "0".  That caused failures with
43643         at least HP-UX's hpcc.
43644
43645 2006-09-22  Simon Josefsson  <jas@extundo.com>
43646
43647         * modules/gc-sha1:
43648         * modules/gc-md4:
43649         * modules/gc-hmac-sha1:
43650         * modules/gc-hmac-md5:
43651         * modules/gc-des:
43652         * modules/gc-arcfour: Distribute more files.
43653
43654 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43655
43656         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43657         (gl_linked_iterator_from_to): Initialize struct completely.
43658         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43659         (gl_tree_iterator_from_to): Likewise
43660         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43661         * lib/gl_array_list.c [lint] (gl_array_iterator)
43662         (gl_array_iterator_from_to): Likewise.
43663         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43664         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43665         (gl_carray_iterator_from_to): Likewise.
43666
43667         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43668         * lib/md4.c (md4_process_block): Remove unused variable.
43669         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43670         parentheses for clarity.
43671
43672 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43673
43674         * modules/bison-i18n (Depends-on): Add gettext.
43675
43676 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43677
43678         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43679         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43680         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43681         also add missing comma that caused broken test.
43682         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43683         stdlib.h, for `abort'.
43684         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43685         variables.
43686         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43687         include unistd.h if present, for `rmdir'.
43688         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43689         variables.
43690         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43691         in the process include standard headers for prototypes.
43692         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43693         gets declared on GNU/Linux.
43694         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43695         unistd.h, for `rmdir'.
43696         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43697
43698         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43699         always true.
43700         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43701
43702         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43703
43704 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43705
43706         * gnulib-tool (func_version): Create output all at once.  This
43707         may help avoid triggering unnecessary SIGPIPEs, and at any
43708         rate it doesn't hurt.
43709
43710 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43711             Bruno Haible  <bruno@clisp.org>
43712
43713         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43714         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43715         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43716
43717         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43718         (gl_FUNC_VASPRINTF): Invoke it.
43719
43720 2006-09-22  Bruno Haible  <bruno@clisp.org>
43721
43722         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43723         getloadavg.c as first argument.
43724
43725 2006-09-22  Bruno Haible  <bruno@clisp.org>
43726
43727         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43728         at the beginning of the gl_INIT macro.
43729         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43730         gl_GETLOADAVG.
43731
43732 2006-09-22  Bruno Haible  <bruno@clisp.org>
43733
43734         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43735         module.
43736         Suggested by Ralf Wildenhues.
43737
43738 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43739
43740         Import this patch from libc:
43741
43742         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43743
43744         * lib/regex_internal.c (re_string_reconstruct): Handle
43745         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43746         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43747         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43748         re_string_context_at.
43749
43750         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43751         now requires it.
43752         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43753         gl_REGEX now does it for us.
43754         (gl_REGEX): Add test taken from
43755         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43756
43757         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43758         Check that large offsets work.  Modernize Autoconf usages.
43759         Prefer "yes" to mean a good thing rather than a bad.
43760         Don't put "#define mkstemp" in config.h, as this might interfere
43761         with standard system headers that "#define mkstemp mkstemp64".
43762
43763         * modules/mkstemp (Depends-on): Add extensions, so that
43764         mkstemp is visible on some platforms.
43765         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43766         (Include): Change to "mkstemp.h" from <stdlib.h>.
43767         (Files): Add mkstemp.h.
43768
43769         * lib/mkstemp.h: New file, since some standard headers
43770         #define mkstemp.
43771         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43772         Include "mkstemp.h".
43773         Make the _LIBC code resemble glibc original more,
43774         e.g., use K&R style.
43775         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43776         (mkstemp): Remove, since mkstemp.h does this for us.
43777         * lib/stdlib--.h: Include mkstemp.h.
43778
43779         Import this patch from libc:
43780
43781         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43782
43783         * lib/tempname.c (__gen_tempname): Change attempts_min
43784         into a macro.  Use preprocessor to decide how to initialize
43785         attempts [Coverity CID 67].
43786
43787 2006-09-20  Bruno Haible  <bruno@clisp.org>
43788
43789         * lib/mkdtemp.c: Import from libc.
43790         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43791                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43792                 attempts_min into a macro.  Use preprocessor to decide how to
43793                 initialize attempts [Coverity CID 67].
43794         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43795                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43796                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43797
43798 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43799
43800         * gnulib-tool (func_exit): New function, to allow to pass the
43801         exit status portably through the trap.  Use everywhere.
43802         (--help, --version): Signal a write error.
43803         (trap): catch SIGPIPE, for write errors.
43804         Exit at the end of the trap, with the correct exit status.
43805
43806 2006-09-19  Karl Berry  <karl@gnu.org>
43807
43808         * doc/gnulib.texi: note about the license texinfo files.
43809
43810 2006-09-19  Eric Blake  <ebb9@byu.net>
43811
43812         * gnulib-tool: Avoid space-tab.
43813
43814 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43815
43816         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43817         that prevented coreutils 6.1 from building.  Problem reported
43818         by Petter Reinholdtsen.
43819
43820 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43821
43822         * gnulib-tool (avoidlist): Fix typo that broke options like
43823         --avoid=lock that are used by coreutils bootstrap.
43824
43825 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43826
43827         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43828         more systematically.
43829
43830 2006-09-18  Jim Meyering  <jim@meyering.net>
43831
43832         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43833
43834 2006-09-18  Bruno Haible  <bruno@clisp.org>
43835
43836         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43837
43838 2006-09-18  Bruno Haible  <bruno@clisp.org>
43839
43840         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43841         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43842         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43843         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43844         * m4/gettext.m4: Require autoconf >= 2.52.
43845         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43846         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43847         of gl_cv_header_inttypes_h.
43848
43849 2006-09-18  Bruno Haible  <bruno@clisp.org>
43850
43851         * lib/javaversion.c: Include configmake.h.
43852
43853 2006-09-18  Bruno Haible  <bruno@clisp.org>
43854
43855         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43856         avoid that the while loops be executed in a subshell.
43857
43858 2006-09-18  Bruno Haible  <bruno@clisp.org>
43859
43860         * MODULES.html.sh (func_module): Break long lines.
43861         Suggested by Bruce Korb <bkorb@gnu.org>.
43862
43863 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43864
43865         Speed up by a factor of 1.12.
43866         * gnulib-tool (nl): New variable.
43867         (func_import): Rewrite include directive extraction to only read each
43868         directive once.
43869
43870 2006-09-17  Bruno Haible  <bruno@clisp.org>
43871
43872         * modules/javaversion (Makefile.am): Remove DEFS setting.
43873         (Depends-on): Add configmake, for PKGDATADIR definition.
43874
43875 2006-09-17  Bruno Haible  <bruno@clisp.org>
43876
43877         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43878
43879 2006-09-17  Bruno Haible  <bruno@clisp.org>
43880
43881         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43882         (func_modules_transitive_closure, func_modules_add_dummy,
43883         func_modules_to_filelist, func_import, func_create_testdir,
43884         func_create_megatestdir, ...): Use it wherever possible.
43885         Suggested by Ralf Wildenhues.
43886
43887 2006-09-16  Karl Berry  <karl@gnu.org>
43888
43889         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43890         to avoid sectioning errors.
43891         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43892         [ifinfo]: blank line after @center-ed titles.
43893         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43894         Spell FSF address consistently with others.
43895         (These changes approved by rms.)
43896
43897 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43898
43899         Speed up by a factor of 1.61.
43900         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43901         already checked module names again.
43902
43903 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43904
43905         Speed up by a factor of 1.13.
43906         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43907         for new_files, and the input to func_add_or_update.
43908
43909 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43910
43911         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43912         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43913
43914 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43915
43916         * modules/mkancesdirs (Depends-on): Add fcntl.
43917         * modules/savewd: New file.
43918         * MODULES.html.sh (File system functions): Add savewd.
43919
43920         * modules/configmake (Makefile.am): Add support for the
43921         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43922
43923 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43924
43925         * m4/savewd.m4: New file.
43926
43927 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43928
43929         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43930         (dirchownmod): New arg FD.  All callers changed.
43931         Use FD rather than opening the directory ourself, as opening is
43932         now the caller's responsibility.
43933         * lib/dirchownmod.h: Likewise.
43934         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43935         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43936         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43937         (test_dir): Remove.
43938         (mkancesdirs): Return length of prefix of FILE that has already
43939         been made, or -2 if there is a child doing the work.  Redo
43940         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43941         ".", and treat ".." specially since it might stray back into
43942         already-created areas.  Use a subprocess if necessary.  New arg
43943         WD; all users changed.  MAKE_DIR function should now return 1
43944         if it creates a directory that is not readable.  Return -2 if
43945         a child process is spun off.
43946         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43947         Adjust signature to match code.
43948         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43949         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43950         all users changed.
43951         * lib/savewd.c, lib/savewd.h: New files.
43952
43953 2006-09-15  Jim Meyering  <jim@meyering.net>
43954
43955         * modules/rename-dest-slash: New module.
43956         * MODULES.html.sh (posix_compat): Add it here.
43957
43958         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43959
43960 2006-09-15  Jim Meyering  <jim@meyering.net>
43961
43962         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43963         file.
43964
43965         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43966
43967 2006-09-15  Jim Meyering  <jim@meyering.net>
43968
43969         * lib/rename-dest-slash.c (has_trailing_slash): Use
43970         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43971         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43972         test before testing whether SRC is a directory.
43973         Suggestions from Bruno Haible.
43974
43975         Avoid a warning about an unused variable.
43976         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43977         into the #ifdef block where it's used.
43978
43979         * lib/rename-dest-slash.c: New file.
43980
43981 2006-09-14  Bruno Haible  <bruno@clisp.org>
43982
43983         * lib/allocsa.c: Include <config.h> unconditionally.
43984         * lib/asnprintf.c: Likewise.
43985         * lib/asprintf.c: Likewise.
43986         * lib/c-strcasecmp.c: Likewise.
43987         * lib/c-strcasestr.c: Likewise.
43988         * lib/c-strncasecmp.c: Likewise.
43989         * lib/c-strstr.c: Likewise.
43990         * lib/classpath.c: Likewise.
43991         * lib/clean-temp.c: Likewise.
43992         * lib/concatpath.c: Likewise.
43993         * lib/copy-file.c: Likewise.
43994         * lib/csharpcomp.c: Likewise.
43995         * lib/csharpexec.c: Likewise.
43996         * lib/execute.c: Likewise.
43997         * lib/fatal-signal.c: Likewise.
43998         * lib/findprog.c: Likewise.
43999         * lib/fwriteerror.c: Likewise.
44000         * lib/gl_array_list.c: Likewise.
44001         * lib/gl_array_oset.c: Likewise.
44002         * lib/gl_avltree_list.c: Likewise.
44003         * lib/gl_avltree_oset.c: Likewise.
44004         * lib/gl_avltreehash_list.c: Likewise.
44005         * lib/gl_carray_list.c: Likewise.
44006         * lib/gl_linked_list.c: Likewise.
44007         * lib/gl_linkedhash_list.c: Likewise.
44008         * lib/gl_list.c: Likewise.
44009         * lib/gl_oset.c: Likewise.
44010         * lib/gl_rbtree_list.c: Likewise.
44011         * lib/gl_rbtree_oset.c: Likewise.
44012         * lib/gl_rbtreehash_list.c: Likewise.
44013         * lib/imaxabs.c: Likewise.
44014         * lib/imaxdiv.c: Likewise.
44015         * lib/javacomp.c: Likewise.
44016         * lib/javaexec.c: Likewise.
44017         * lib/javaversion.c: Likewise.
44018         * lib/linebreak.c: Likewise.
44019         * lib/localcharset.c: Likewise.
44020         * lib/lock.c: Likewise.
44021         * lib/mbchar.c: Likewise.
44022         * lib/mbswidth.c: Likewise.
44023         * lib/mkdtemp.c: Likewise.
44024         * lib/pipe.c: Likewise.
44025         * lib/printf-args.c: Likewise.
44026         * lib/printf-parse.c: Likewise.
44027         * lib/progname.c: Likewise.
44028         * lib/progreloc.c: Likewise.
44029         * lib/readlink.c: Likewise.
44030         * lib/sh-quote.c: Likewise.
44031         * lib/stpcpy.c: Likewise.
44032         * lib/stpncpy.c: Likewise.
44033         * lib/strcasecmp.c: Likewise.
44034         * lib/strcasestr.c: Likewise.
44035         * lib/strcspn.c: Likewise.
44036         * lib/striconv.c: Likewise.
44037         * lib/strncasecmp.c: Likewise.
44038         * lib/strnlen1.c: Likewise.
44039         * lib/strstr.c: Likewise.
44040         * lib/strtok_r.c: Likewise.
44041         * lib/tls.c: Likewise.
44042         * lib/tmpdir.c: Likewise.
44043         * lib/unicodeio.c: Likewise.
44044         * lib/unsetenv.c: Likewise.
44045         * lib/vasnprintf.c: Likewise.
44046         * lib/vasprintf.c: Likewise.
44047         * lib/wait-process.c: Likewise.
44048         * lib/xallocsa.c: Likewise.
44049         * lib/xsetenv.c: Likewise.
44050         * lib/xstriconv.c: Likewise.
44051
44052 2006-09-13  Simon Josefsson  <jas@extundo.com>
44053
44054         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
44055         that internally, suggested by Ralf Wildenhues
44056         <Ralf.Wildenhues@gmx.de>.
44057
44058 2006-09-13  Simon Josefsson  <jas@extundo.com>
44059
44060         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
44061         @LIBOBJS@.
44062         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44063
44064 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44065
44066         * lib/_fpending.c: Include <config.h> unconditionally, since we no
44067         longer worry about uses that don't define HAVE_CONFIG_H.
44068         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
44069         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
44070         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
44071         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
44072         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
44073         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
44074         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
44075         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
44076         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
44077         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
44078         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
44079         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
44080         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
44081         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
44082         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
44083         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
44084         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
44085         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
44086         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
44087         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
44088         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
44089         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
44090         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
44091         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
44092         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
44093         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
44094         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
44095         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
44096         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
44097         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
44098         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
44099         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
44100         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
44101         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
44102         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
44103         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
44104         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
44105         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
44106         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
44107         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
44108         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
44109         Likewise.
44110
44111 2006-09-13  Eric Blake  <ebb9@byu.net>
44112
44113         * lib/getopt.c: Fix typo in last commit.
44114
44115 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44116
44117         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
44118         dgettext.
44119
44120 2006-09-12  Jim Meyering  <jim@meyering.net>
44121
44122         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
44123         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
44124         Reported by Nelson H. F. Beebe.
44125
44126 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44127
44128         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
44129         program_invocation_name and program_invocation_short_name are
44130         initialized.
44131         * lib/argp-namefrob.h: Move declarations of program_invocation_name
44132         and program_invocation_short_name to argp.h, so they are visible
44133         to user programs.
44134         * lib/argp.h: Likewise
44135
44136 2006-09-10  Bruno Haible  <bruno@clisp.org>
44137
44138         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44139         m4/inttypes_h.m4, m4/uintmax_t.m4.
44140
44141 2006-09-10  Bruno Haible  <bruno@clisp.org>
44142
44143         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
44144         gl_AC_TYPE_UINTMAX_T.
44145
44146 2006-09-10  Bruno Haible  <bruno@clisp.org>
44147
44148         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
44149
44150 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44151
44152         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
44153         convention.  Text proposed by Bruno Haible.
44154         (struct argp_option): Document the use of N_() wrappers.
44155
44156         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
44157         '\v', and translate the two parts separately, instead of feeding
44158         the whole string to gettext.  This allows to exclude
44159         '\v' from the strings visible to the translator by writing doc
44160         strings as N_("..") "\v" N_("..").
44161
44162 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
44163
44164         * config/srclist.txt: Undo latest change; the bug was fixed.
44165
44166 2006-09-09  Bruno Haible  <bruno@clisp.org>
44167
44168         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
44169         assignments if building a library without libtool.
44170         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
44171         in func_emit_lib_Makefile_am.
44172         (func_import): When building a static library libfoo.a, arrange to
44173         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
44174         (func_create_testdir): Likewise.
44175         * modules/gc (configure.ac, Makefile.am): If building statically,
44176         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44177         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44178         * modules/striconv (configure.ac, Makefile.am): Likewise.
44179         Based on a suggestion by Ralf Wildenhues.
44180
44181 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44182
44183         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44184         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44185         Also:
44186
44187         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44188         Add year_2050_test to catch glibc bug 2821
44189         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44190
44191         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44192         Prefer #ifdef to #if.
44193
44194         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44195         Return from 'main' instead of calling 'exit'.
44196
44197 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44198
44199         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44200         returned the maximum time_t value rather than (time_t) -1.
44201         Problem originally reported by William Bardwell
44202         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44203
44204         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44205         Moved to here ...
44206         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44207         ... from here.
44208
44209 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44210
44211         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44212         2821 is fixed.
44213
44214 2006-09-08  Jim Meyering  <jim@meyering.net>
44215
44216         Don't make generated files read-only.  That would bother too many
44217         people.  However, do retain the ability to work when targets are
44218         read-only: remove the destination and temporary files before writing
44219         them (when generated via sed or echo), or by using the -f option for
44220         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44221         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44222         * modules/byteswap, modules/configmake, modules/fcntl:
44223         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44224         * modules/localcharset, modules/netinet_in, modules/poll:
44225         * modules/stdbool, modules/stdint, modules/sys_select:
44226         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44227
44228 2006-09-08  Jim Meyering  <jim@meyering.net>
44229
44230         Avoid new build failure on FreeBSD 6.0.
44231         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44232         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44233         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44234
44235 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44236
44237         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44238
44239 2006-09-07  Jim Meyering  <jim@meyering.net>
44240
44241         Fix global typo in last change: use chmod u-w, not chmod u-x.
44242         Spotted by Paul Eggert and Bruce Korb.
44243         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44244         * modules/byteswap, modules/configmake, modules/fcntl:
44245         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44246         * modules/localcharset, modules/netinet_in, modules/poll:
44247         * modules/stdbool, modules/stdint, modules/sys_select:
44248         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44249
44250 2006-09-06  Jim Meyering  <jim@meyering.net>
44251
44252         Make generated files be read-only.
44253         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44254         Ensure that each generated file is now read-only.
44255         * modules/argz: Likewise.
44256         * modules/arpa_inet: Likewise.
44257         * modules/byteswap: Likewise.
44258         * modules/configmake: Likewise.
44259         * modules/fcntl: Likewise.
44260         * modules/fnmatch: Likewise.
44261         * modules/getopt: Likewise.
44262         * modules/glob: Likewise.
44263         * modules/inttypes: Likewise.
44264         * modules/netinet_in: Likewise.
44265         * modules/poll: Likewise.
44266         * modules/stdbool: Likewise.
44267         * modules/stdint: Likewise.
44268         * modules/sys_select: Likewise.
44269         * modules/sys_socket: Likewise.
44270         * modules/sys_stat: Likewise.
44271         * modules/sysexits: Likewise.
44272         * modules/localcharset: Same as above, but continue using temporary
44273         file named "t-$@" (why different?) rather than the "$@-t" used
44274         everywhere else.
44275
44276         * modules/sysexits (Makefile.am): Replace literal occurrences
44277         of "sysexit.h" more readable, and more consistent, "$@".
44278
44279 2006-09-06  Bruno Haible  <bruno@clisp.org>
44280
44281         * modules/striconv: New file.
44282         * modules/xstriconv: New file.
44283         * MODULES.html.sh (Internationalization functions): Add striconv,
44284         xstriconv.
44285
44286 2006-09-06  Bruno Haible  <bruno@clisp.org>
44287
44288         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44289         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44290         not using libtool correctly.
44291
44292 2006-09-06  Bruno Haible  <bruno@clisp.org>
44293
44294         * lib/striconv.h: New file.
44295         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44296         iconvstring.c.
44297         * lib/xstriconv.h: New file.
44298         * lib/xstriconv.c: New file.
44299
44300 2006-09-06  Bruno Haible  <bruno@clisp.org>
44301
44302         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44303         lib_..._LDFLAGS.
44304
44305 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44306
44307         * lib/argz_.h: Sync from Libtool.
44308
44309         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44310                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44311
44312         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44313
44314 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44315
44316         * modules/trim: New file.
44317
44318 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44319
44320         * lib/trim.h: New file.
44321         * lib/trim.c: New file.
44322
44323 2006-09-05  Bruno Haible  <bruno@clisp.org>
44324
44325         * MODULES.html.sh (String handling): Add trim.
44326
44327 2006-09-04  Karl Berry  <karl@gnu.org>
44328
44329         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44330         until next release.
44331
44332 2006-09-03  Bruno Haible  <bruno@clisp.org>
44333
44334         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44335         correctly.
44336
44337 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44338
44339         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44340         not gl_GETLOADAVG.  Omit unneeded semicolons.
44341         Problems reported by Ralf Wildenhues in
44342         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44343         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44344         at the end, which is the usual gnulib style.
44345
44346         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44347         of doing all the work ourselves.
44348         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44349         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44350
44351 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44352
44353         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44354         Problem reported by Ralf Wildenhues in
44355         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44356
44357         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44358         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44359
44360 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44361
44362         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44363         yesterday's patch by changing test -n to test -z.
44364
44365 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44366
44367         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44368         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44369         the former is now obsolescent.
44370
44371         * modules/chdir-long (Depends-on): Add fcntl.
44372
44373 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44374
44375         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44376         obsolescent, and programs should use gnulib instead.
44377         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44378         but with prefixes changed.
44379
44380 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44381
44382         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44383         or stdbool.h, because they might not exist while configuring.
44384
44385         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44386         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44387         does that for us.
44388         (O_DIRECTORY): Remove.
44389
44390 2006-08-31  Eric Blake  <ebb9@byu.net>
44391
44392         * gnulib-tool: Don't let emacs change spaces to TAB.
44393
44394 2006-08-31  Bruno Haible  <bruno@clisp.org>
44395
44396         * gnulib-tool: When calling func_import more than once, do it in a
44397         subshell.
44398         Reported by Eric Blake <ebb9@byu.net>.
44399
44400 2006-08-31  Bruno Haible  <bruno@clisp.org>
44401
44402         * gnulib-tool (nl): Remove variable.
44403         (sed_transform_lib_file): Use more robust test for config-h module.
44404         (func_import): Fix typo in 2006-08-25 patch.
44405
44406 2006-08-31  Bruno Haible  <bruno@clisp.org>
44407
44408         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44409         specified, augment Makefile.am variables instead of assigning them.
44410
44411 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44412
44413         Work around a bug in both the Linux and SunOS 64-bit kernels:
44414         nanosleep mishandles sleeps for longer than 2**31 seconds.
44415         Problem reported by Frank v Waveren in
44416         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44418         Check for nanosleep bug.
44419         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44420
44421 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44422
44423         Work around a bug in both the Linux and SunOS 64-bit kernels:
44424         nanosleep mishandles sleeps for longer than 2**31 seconds.
44425         Problem reported by Frank v Waveren in
44426         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44427         * lib/nanosleep.c (BILLION): New constant.
44428         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44429         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44430         implementation.
44431
44432 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44433
44434         * modules/nanosleep (Depends-on): Add gettime.
44435
44436 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44437         and Simon Josefsson  <jas@extundo.com>
44438         and Oskar Liljeblad  <oskar@osk.mine.nu>
44439
44440         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44441         * gnulib-tool (func_import): New license type 'unmodifiable license
44442         text'.
44443         * modules/fdl: Use it.  Longer description.
44444         * module/gpl, module/lgpl: New files.
44445
44446 2006-08-30  Jim Meyering  <jim@meyering.net>
44447
44448         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44449         shadowing the parameter.
44450
44451 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44452
44453         Sync from Libtool:
44454
44455         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44456
44457         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44458         sharing with gnulib.  Report by Eric Blake.
44459
44460 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44461
44462         * modules/isapipe: New file.
44463         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44464
44465 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44466
44467         * modules/configmake (Makefile.am): Add a comment, and omit
44468         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44469         by Bruno Haible.
44470
44471 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44472
44473         * m4/isapipe.m4: New file.
44474
44475 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44476
44477         * lib/isapipe.c, lib/isapipe.h: New files.
44478
44479 2006-08-29  Jim Meyering  <jim@meyering.net>
44480
44481         * modules/configmake (Makefile.am): Make configmake.h depend on
44482         Makefile.  Otherwise, a stale configmake.h could hang around.
44483
44484 2006-08-29  Eric Blake  <ebb9@byu.net>
44485
44486         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44487         resolution of upstream bug 3044.
44488
44489 2006-08-29  Bruno Haible  <bruno@clisp.org>
44490
44491         * modules/localcharset (Depends-on): Add configmake.
44492         (Makefile.am): Remove setting of LIBDIR through DEFS.
44493
44494 2006-08-29  Bruno Haible  <bruno@clisp.org>
44495
44496         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44497         defined.
44498
44499 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44500
44501         * modules/fcntl: New file.
44502         * modules/chdir-safer (Depends-on): Add fcntl.
44503         * modules/fts: Likewise.
44504         * modules/mkdir-p: Likewise.
44505
44506         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44507         This undoes the most recent change, since we're now addressing the
44508         problem in a different way.
44509
44510         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44511         into output, since the output might be called Makefile.am even
44512         if $makefile_name is something different.
44513         (func_import): Use $makefile_am rather than
44514         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44515         empty.
44516
44517         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44518
44519 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44520
44521         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44522         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44523         recent change to stdint.m4, since we're now addressing the problem in a
44524         different way.
44525
44526 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44527
44528         * m4/fcntl_h.m4: New file.
44529
44530 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44531
44532         * lib/fcntl_.h: New file.
44533         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44534         the fcntl module.
44535         * lib/dirchownmod.c: Likewise.
44536         * lib/fts.c: Likewise.
44537
44538         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44539         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44540         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44541         just before including <inttypes.h>, to avoid circular inclusion.
44542
44543 2006-08-28  Jim Meyering  <jim@meyering.net>
44544
44545         * doc/visibility.texi: Actually read and correct the grammar of the
44546         sentence affected by yesterday's change.
44547
44548 2006-08-28  Eric Blake  <ebb9@byu.net>
44549
44550         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44551         needs wrapper.
44552
44553 2006-08-28  Eric Blake  <ebb9@byu.net>
44554
44555         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44556
44557 2006-08-28  Eric Blake  <ebb9@byu.net>
44558
44559         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44560
44561 2006-08-28  Bruno Haible  <bruno@clisp.org>
44562
44563         * modules/c-strstr: New file, from GNU gettext.
44564         * MODULES.html.sh (String handling): Add c-strstr.
44565
44566 2006-08-28  Bruno Haible  <bruno@clisp.org>
44567
44568         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44569         macros.
44570         Reported by Eric Blake.
44571
44572 2006-08-28  Bruno Haible  <bruno@clisp.org>
44573
44574         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44575         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44576         * lib/vasprintf.c: Include errno.h, limits.h.
44577         (EOVERFLOW): New fallback definition.
44578         (vasprintf): Test here whether the string length is > INT_MAX.
44579         * lib/vsnprintf.c: Include errno.h, limits.h.
44580         (EOVERFLOW): New fallback definition.
44581         (vsnprintf): Fix bug when generated string was too long for the buffer.
44582         Test here whether the string length is > INT_MAX.
44583
44584 2006-08-28  Bruno Haible  <bruno@clisp.org>
44585
44586         * lib/inttypes_.h (SCNX*): Remove definitions.
44587         Reported by Eric Blake.
44588
44589 2006-08-28  Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/c-strstr.h: New file, from GNU gettext.
44592         * lib/c-strstr.c: New file, from GNU gettext.
44593
44594 2006-08-28  Bruno Haible  <bruno@clisp.org>
44595
44596         * gnulib-tool: Reorder some statements.
44597
44598 2006-08-28  Bruno Haible  <bruno@clisp.org>
44599
44600         * gnulib-tool: New option --makefile-name.
44601         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44602         $makefile_name.
44603         (func_import): Write $makefile_name to the cache file, and read it from
44604         there unless explicitly specified. Use $makefile_name as file name
44605         instead of Makefile.am. Adjust the recommendations accordingly.
44606
44607 2006-08-28  Bruno Haible  <bruno@clisp.org>
44608
44609         * gnulib-tool (func_verify_module): Check against misapplying patch.
44610
44611 2006-08-28  Bruno Haible  <bruno@clisp.org>
44612
44613         * gnulib-tool (func_relativize, func_relconcat): New functions.
44614         Give an error if --local-dir is given with --update.
44615         Remove trailing slashes from $local_gnulib_dir.
44616         (func_import): Store the relativized $local_gnulib_dir in
44617         gnulib-cache.m4, and read it from there if not specified explicitly.
44618
44619 2006-08-28  Bruno Haible  <bruno@clisp.org>
44620
44621         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44622         is the current directory. Respect also $local_gnulib_dir.
44623
44624 2006-08-28  Bruno Haible  <bruno@clisp.org>
44625             Simon Josefsson  <jas@extundo.com>
44626
44627         BeOS portability.
44628         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44629
44630 2006-08-27  Jim Meyering  <jim@meyering.net>
44631
44632         * doc/visibility.texi: Remove duplicate word: "pointer".
44633
44634 2006-08-26  Bruno Haible  <bruno@clisp.org>
44635
44636         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44637         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44638         (Makefile.am): Create inttypes.h from inttypes_.h.
44639         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44640
44641         * modules/imaxabs: New file.
44642
44643         * modules/imaxdiv: New file.
44644
44645 2006-08-26  Bruno Haible  <bruno@clisp.org>
44646
44647         * m4/inttypes.m4: New file.
44648         * m4/_inttypes_h.m4: Remove file.
44649         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44650         PRI_MACROS_BROKEN.
44651         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44652
44653         * m4/imaxabs.m4: New file.
44654
44655         * m4/imaxdiv.m4: New file.
44656
44657 2006-08-26  Bruno Haible  <bruno@clisp.org>
44658
44659         * lib/inttypes_.h: New file.
44660         * lib/inttypes.h: Remove file.
44661         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44662
44663         * lib/imaxabs.c: New file.
44664
44665         * lib/imaxdiv.c: New file.
44666
44667 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44668
44669         New config-h module, so that "make" output needn't be cluttered
44670         by -DHAVE_CONFIG_H.
44671         * MODULES.html.sh (Support for building libraries and executables):
44672         Add config-h.
44673         * modules/config-h: New file.
44674         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44675         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44676         the config-h module is used.
44677
44678         New configmake module, so that "make" output needn't be cluttered
44679         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44680         * MODULES.html.sh (Support for building libraries and executables):
44681         Add configmake.
44682         * modules/configmake: New file.
44683
44684 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44685
44686         * m4/config-h.m4: New file.
44687
44688 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44689
44690         * config/srclist.txt: Add elisp-comp.
44691
44692 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44693
44694         * MODULES.html.sh (Support for building libraries and executables):
44695         Add elisp-comp.
44696         * build-aux/elisp-comp: New file.
44697         * modules/elisp-comp: New file.
44698
44699 2006-08-24  Bruno Haible  <bruno@clisp.org>
44700
44701         * gnulib-tool (func_create_testdir): Use non-default values of
44702         sourcebase and m4base.
44703
44704 2006-08-24  Bruno Haible  <bruno@clisp.org>
44705
44706         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44707         HTML structure.
44708
44709 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44710
44711         * modules/openat (Depends-on): Add lchown.
44712
44713 2006-08-23  Bruno Haible  <bruno@clisp.org>
44714
44715         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44716         of gl_LOCK_EARLY instead of gl_LOCK.
44717
44718 2006-08-23  Bruno Haible  <bruno@clisp.org>
44719
44720         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44721         on OSF/1 to no.
44722         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44723
44724 2006-08-23  Bruno Haible  <bruno@clisp.org>
44725
44726         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44727         as unusable.
44728
44729         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44730         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44731         (gl_LOCK): New macro.
44732
44733 2006-08-22  Simon Josefsson  <jas@extundo.com>
44734
44735         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44736         to md5 module.
44737
44738 2006-08-22  Simon Josefsson  <jas@extundo.com>
44739
44740         * MODULES.html.sh: Add "Support for maintaining and release
44741         projects".
44742
44743         * build-aux/gnupload: New file, from coreutils.
44744
44745 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44746
44747         Avoid the need for AC_LIBSOURCES in m4 macros.
44748         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44749         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44750         * modules/check-version (EXTRA_DIST): Add check-version.h.
44751         * modules/crc (EXTRA_DIST): Add crc.h.
44752         * modules/des (EXTRA_DIST): Add des.h.
44753         * modules/gc (EXTRA_DIST): Add gc.h.
44754         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44755         * modules/getline (EXTRA_DIST): Add getline.h.
44756         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44757         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44758         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44759         * modules/md2 (EXTRA_DIST): Add md2.h.
44760         * modules/md4 (EXTRA_DIST): Add md4.h.
44761         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44762         * modules/read-file (EXTRA_DIST): Add read-file.h.
44763         * modules/readline (EXTRA_DIST): Add readline.h.
44764         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44765         rijndael-api-fst.h.
44766
44767 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44768
44769         * m4/rijndael.m4 (gl_ARCFOUR):
44770         * m4/arctwo.m4 (gl_ARCTWO):
44771         * m4/check-version.m4 (gl_CHECK_VERSION):
44772         * m4/crc.m4 (gl_CRC):
44773         * m4/des.m4 (gl_DES):
44774         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44775         * m4/gc.m4 (gl_GC):
44776         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44777         * m4/getline.m4 (gl_FUNC_GETLINE):
44778         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44779         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44780         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44781         * m4/md2.m4 (gl_MD2):
44782         * m4/md4.m4 (gl_MD4):
44783         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44784         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44785         * m4/readline.m4 (gl_FUNC_READLINE):
44786         * m4/rijndael.m4 (gl_RIJNDAEL):
44787         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44788         to get the necessary .h files and whatnot.
44789
44790 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44791
44792         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44793         gnulib rather than the other way around.
44794         * config/srclistvars.sh (COREUTILS): Remove.
44795
44796 2006-08-22  Jim Meyering  <jim@meyering.net>
44797
44798         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44799
44800         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44801
44802 2006-08-22  Eric Blake  <ebb9@byu.net>
44803
44804         * modules/regexprops-generic: New file.
44805         * MODULES.html.sh (Support for building documentation): List it.
44806
44807 2006-08-22  Eric Blake  <ebb9@byu.net>
44808
44809         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44810         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44811         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44812         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44813
44814 2006-08-22  Bruno Haible  <bruno@clisp.org>
44815
44816         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44817         and lib_LTLIBRARIES like the other lib_* variables.
44818
44819 2006-08-22  Bruno Haible  <bruno@clisp.org>
44820
44821         * build-aux/x-to-1.in: New file, from GNU gettext.
44822
44823 2006-08-22  Bruno Haible  <bruno@clisp.org>
44824
44825         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44826         <utmpx.h> exists.
44827
44828 2006-08-22  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44831         <utmpx.h> exists.
44832
44833 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44834
44835         BeOS portability.
44836         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44837         exist.
44838         Problem reported by Bruno Haible.
44839
44840 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44841
44842         Avoid the need for AC_LIBSOURCES in m4 macros.
44843         * modules/acl (EXTRA_DIST): Add acl.h.
44844         * modules/argmatch (Files): Add m4/argmatch.m4.
44845         (configure.ac): Add gl_ARGMATCH.
44846         (EXTRA_DIST): Renamed from lib_SOURCES, for
44847         consistency with the other modules.  Remove argmatch.c.
44848         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44849         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44850         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44851         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44852         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44853         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44854         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44855         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44856         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44857         * modules/closeout (EXTRA_DIST): Add closeout.h.
44858         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44859         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44860         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44861         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44862         dirname.h; remove basename.c and stripslash.c.
44863         * modules/exclude (EXTRA_DIST): Add exclude.h.
44864         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44865         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44866         * modules/file-type (EXTRA_DIST): Add file-type.h.
44867         * modules/filemode (EXTRA_DIST): Add filemode.h.
44868         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44869         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44870         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44871         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44872         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44873         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44874         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44875         * modules/getdate (EXTRA_DIST): Add getdate.c.
44876         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44877         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44878         * modules/getpass (EXTRA_DIST): Add getpass.h.
44879         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44880         * modules/group-member (EXTRA_DIST): Add group-member.h.
44881         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44882         * modules/hash (EXTRA_DIST): Add hash.h.
44883         * modules/human (EXTRA_DIST): Add human.h.
44884         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44885         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44886         * modules/lchown (EXTRA_DIST): Add lchown.h.
44887         * modules/long-options (EXTRA_DIST): Add long-options.h.
44888         * modules/lstat (EXTRA_DIST): Add lstat.h.
44889         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44890         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44891         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44892         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44893         * modules/memxor (EXTRA_DIST): Add memxor.h.
44894         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44895         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44896         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44897         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44898         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44899         * modules/physmem (EXTRA_DIST): Add physmem.h.
44900         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44901         * modules/posixver (EXTRA_DIST): Add posixver.h.
44902         * modules/quote (EXTRA_DIST): Add quote.h.
44903         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44904         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44905         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44906         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44907         regex_internal.h regexec.c.
44908         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44909         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44910         * modules/same (EXTRA_DIST): Add same.h.
44911         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44912         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44913         * modules/savedir (EXTRA_DIST): Add savedir.h.
44914         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44915         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44916         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44917         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44918         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44919         * modules/strdup (EXTRA_DIST): Add strdup.h.
44920         * modules/strftime (EXTRA_DIST): Add strftime.h.
44921         * modules/strndup (EXTRA_DIST): Add strndup.h.
44922         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44923         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44924         * modules/time_r (EXTRA_DIST): Add time_r.h.
44925         * modules/timespec (EXTRA_DIST): Add timespec.h.
44926         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44927         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44928         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44929         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44930         * modules/userspec (EXTRA_DIST): Add userspec.h.
44931         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44932         * modules/utimens (EXTRA_DIST): Add utimens.h.
44933         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44934         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44935         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44936         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44937         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44938         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44939         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44940         * modules/yesno (EXTRA_DIST): Add yesno.h.
44941
44942 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44943
44944         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44945
44946         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44947         * m4/dev-ino.m4, same-inode.m4: Remove.
44948
44949         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44950         * m4/acl.m4 (AC_FUNC_ACL):
44951         * m4/backupfile.m4 (gl_BACKUPFILE):
44952         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44953         * m4/canon-host.m4 (gl_CANON_HOST):
44954         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44955         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44956         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44957         * m4/cloexec.m4 (gl_CLOEXEC):
44958         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44959         * m4/closeout.m4 (gl_CLOSEOUT):
44960         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44961         * m4/dirname.m4 (gl_DIRNAME):
44962         * m4/exclude.m4 (gl_EXCLUDE):
44963         * m4/exitfail.m4 (gl_EXITFAIL):
44964         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44965         * m4/file-type.m4 (gl_FILE_TYPE):
44966         * m4/filemode.m4 (gl_FILEMODE):
44967         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44968         * m4/fpending.m4 (gl_FUNC_FPENDING):
44969         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44970         * m4/fts.m4 (gl_FUNC_FTS):
44971         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44972         * m4/getdate.m4 (gl_GETDATE):
44973         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44974         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44975         * m4/getpass.m4 (gl_FUNC_GETPASS):
44976         * m4/gettime.m4 (gl_GETTIME):
44977         * m4/getugroups.m4 (gl_GETUGROUPS):
44978         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44979         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44980         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44981         * m4/hash.m4 (gl_HASH):
44982         * m4/idcache.m4 (gl_IDCACHE):
44983         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44984         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44985         * m4/long-options.m4 (gl_LONG_OPTIONS):
44986         * m4/lstat.m4 (gl_FUNC_LSTAT):
44987         * m4/md5.m4 (gl_MD5):
44988         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44989         * m4/memcoll.m4 (gl_MEMCOLL):
44990         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44991         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44992         * m4/memxor.m4 (gl_MEMXOR):
44993         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44994         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44995         * m4/modechange.m4 (gl_MODECHANGE):
44996         * m4/mountlist.m4 (gl_MOUNTLIST):
44997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44998         * m4/openat.m4 (gl_FUNC_OPENAT):
44999         * m4/pathmax.m4 (gl_PATHMAX):
45000         * m4/physmem.m4 (gl_PHYSMEM):
45001         * m4/posixtm.m4 (gl_POSIXTM):
45002         * m4/posixver.m4 (gl_POSIXVER):
45003         * m4/quote.m4 (gl_QUOTE):
45004         * m4/quotearg.m4 (gl_QUOTEARG):
45005         * m4/readtokens.m4 (gl_READTOKENS):
45006         * m4/readutmp.m4 (gl_READUTMP):
45007         * m4/regex.m4 (gl_REGEX):
45008         * m4/safe-read.m4 (gl_SAFE_READ):
45009         * m4/safe-write.m4 (gl_SAFE_WRITE):
45010         * m4/same.m4 (gl_SAME):
45011         * m4/save-cwd.m4 (gl_SAVE_CWD):
45012         * m4/savedir.m4 (gl_SAVEDIR):
45013         * m4/settime.m4 (gl_SETTIME):
45014         * m4/sha1.m4 (gl_SHA1):
45015         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
45016         * m4/stat-macros.m4 (gl_STAT_MACROS):
45017         * m4/stat-time.m4 (gl_STAT_TIME):
45018         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
45019         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
45020         * m4/strdup.m4 (gl_FUNC_STRDUP):
45021         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
45022         * m4/strndup.m4 (gl_FUNC_STRNDUP):
45023         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
45024         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
45025         * m4/time_r.m4 (gl_TIME_R):
45026         * m4/timespec.m4 (gl_TIMESPEC):
45027         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
45028         * m4/unlinkdir.m4 (gl_UNLINKDIR):
45029         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
45030         * m4/userspec.m4 (gl_USERSPEC):
45031         * m4/utimecmp.m4 (gl_UTIMECMP):
45032         * m4/utimens.m4 (gl_UTIMENS):
45033         * m4/xalloc.m4 (gl_XALLOC):
45034         * m4/xgetcwd.m4 (gl_XGETCWD):
45035         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
45036         * m4/xreadlink.m4 (gl_XREADLINK):
45037         * m4/xstrtod.m4 (gl_XSTRTOD):
45038         * m4/yesno.m4 (gl_YESNO):
45039         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
45040         to get the necessary .h files and whatnot.
45041
45042 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
45043             Bruno Haible  <bruno@clisp.org>
45044
45045         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
45046         /bin/sh understanding of '!' conditional negation.
45047
45048 2006-08-21  Jim Meyering  <jim@meyering.net>
45049
45050         * modules/openat (Depends-on): Really alphabetize.
45051
45052         * modules/acl (Depends-on): Add error and quote.
45053
45054         * check-module (find_included_lib_files): Add at-func.c to the
45055         ok-to-include-more-than-once white list.
45056
45057         * modules/openat (Depends-on): Add lstat.  Alphabetize.
45058
45059 2006-08-21  Bruno Haible  <bruno@clisp.org>
45060
45061         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45062         Emit a pkgdata_DATA variable only if some snippets add contents to it.
45063         Reported by Martin Lambers <marlam@marlam.de>.
45064
45065 2006-08-21  Bruno Haible  <bruno@clisp.org>
45066
45067         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
45068         specify an installation location, don't emit a noinst_LIBRARIES or
45069         noinst_LTLIBRARIES assignment.
45070
45071 2006-08-21  Bruno Haible  <bruno@clisp.org>
45072
45073         BeOS portability.
45074         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
45075         BeOS has mbrtowc() but no <wctype.h>.
45076
45077 2006-08-21  Bruno Haible  <bruno@clisp.org>
45078
45079         BeOS portability.
45080         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
45081         exist.
45082
45083 2006-08-21  Bruno Haible  <bruno@clisp.org>
45084
45085         BeOS portability.
45086         * lib/mbchar.h: Include <wctype.h> only if it exists.
45087
45088 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45089
45090         Remove files that are no longer needed by their respective modules.
45091         * m4/obstack.m4: Remove.
45092         * m4/strerror_r.m4: Remove.
45093         * m4/uint32_t.m4: Remove.
45094         * m4/uintptr_t.m4: Remove.
45095         * m4/ullong_max.m4: Remove.
45096         * m4/xstrtoimax.m4: Remove.
45097         * m4/xstrtoumax.m4: Remove.
45098
45099         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
45100         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
45101         dependencies now capture this.
45102
45103         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
45104         Do not use AC_LIBSOURCES, since gnulib modules now do this.
45105         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
45106         * m4/human.m4 (gl_HUMAN): Likewise.
45107         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
45108         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
45109
45110         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
45111
45112         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
45113         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
45114         stdint.
45115         * m4/human.m4 (gl_HUMAN): Likewise.
45116         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
45117         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
45118         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45119         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45120         * m4/xstrtol (gl_XSTRTOL): Likewise.
45121
45122         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
45123         AC_TYPE_LONG_LONG_INT.
45124         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45125         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
45126         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
45127         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45128
45129         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
45130         on stdbool.
45131
45132         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
45133         (gl_PREREQ_XSTRTOUL): Remove.
45134
45135         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
45136
45137         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
45138         mode.
45139
45140 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45141
45142         Add and change modules to make it easier for coreutils to use
45143         gnulib-tool.
45144         * modules/backupfile (Files): Remove m4/d-ino.m4.
45145         (Depends-on): Add d-ino.
45146         * modules/cycle-check (Depends-on): Add stdint.
45147         (lib_SOURCES): Add cycle-check.h.
45148         * modules/d-ino: New module.
45149         * modules/d-type: New module.
45150         * modules/error (Files): Remove m4/strerror_r.m4.
45151         * modules/filemode (Files): Add m4/st_dm_mode.m4.
45152         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
45153         m4/inttypes_h.m4, m4/uintmax_t.m4.
45154         (Depends-on): Add stdint.
45155         (lib_SOURCES): Add fsusage.h.
45156         * modules/getcwd (Files): Remove d-ino.m4.
45157         (Depends-on): Add d-ino.
45158         * modules/getndelim2 (Depends-on): Add stdint.
45159         * modules/glob (Files): Remove m4/d-type.m4.
45160         (Depends-on): Add d-type.
45161         * modules/host-os: New module.
45162         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
45163         m4/inttypes_h.m4, m4/uintmax_t.m4.
45164         * Depends-on: Add stdint.
45165         (lib_SOURCES): Add human.h.
45166         * modules/inttostr (Files): Remove m4/intmax_t.m4,
45167         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
45168         m4/uintmax_t.m4, m4/ulonglong.m4.
45169         (Depends-on): Add stdint.
45170         (EXTRA_DIST): Add inttostr.h.
45171         * modules/lchmod: New module.
45172         * modules/link-follow: New module.
45173         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
45174         (Depends-on): Add lchmod.
45175         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
45176         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45177         (Depends-on): Add stdint.
45178         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45179         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45180         (Depends-on): Add stdint.
45181         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45182         * modules/perl: New module.
45183         * modules/regex (Depends-on): Add stdint.
45184         * modules/rmdir-errno: New module.
45185         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45186         m4/intmax_t.m4.
45187         (Depends-on): Add stdint.
45188         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45189         m4/uintmax_t.m4.
45190         (Depends-on): Add stdint.
45191         * modules/unlink-busy: New module.
45192         * modules/utimecmp (Depends-on): Add stdint.
45193         * modules/uptime: New module.
45194         * modules/winsz-ioctl: New module.
45195         * modules/winsz-termios: New module.
45196         * modules/xnanosleep (Depends-on): Add nanosleep.
45197         * modules/ullong_max: Remove.
45198         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45199         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45200         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45201         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45202         (Depends-on): Add inttypes.
45203         (lib_SOURCES): Add xstrtol.h.
45204         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45205         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45206         * MODULES.html.sh: Move 'assert' into the assert section.
45207         Move 'dummy' into the linking section.
45208         Remove ullong_max.
45209         Add section for compatibility checks for POSIX:2001 functions,
45210         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45211         winsz-ioctl, and winsz-termios into it.
45212         Add lchmod.
45213         Add top-level Misc section and put host-os, perl, and uptime
45214         into it.
45215
45216 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45217
45218         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45219         now assume the stdint module.  Do not include inttypes.h.
45220         * lib/fsusage.h: Likewise.
45221         * lib/getndelim2.c: Likewise.
45222         * lib/human.h: Likewise.
45223         * lib/inttostr.h: Likewise.
45224         * lib/obstack.c: Likewise.
45225         * lib/regex_internal.h: Likewise.
45226         * lib/tempname.c: Likewise.
45227         * lib/utimecmp.c: Likewise.
45228         * lib/xstrtol.h: Likewise.
45229
45230         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45231
45232         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45233         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45234         * lib/xtime.h: Likewise.
45235
45236 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45237
45238         * modules/openat (Files): Add lib/fchmodat.c.
45239         Fixes problem reported by Jay Youngman.
45240
45241 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45242
45243         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45244         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45245
45246 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45247             Bruno Haible  <bruno@clisp.org>
45248
45249         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45250         and is a script that invokes bison. Tighten the code. Add comments.
45251
45252 2006-08-18  Jim Meyering  <jim@meyering.net>
45253
45254         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45255         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45256         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45257         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45258
45259 2006-08-18  Bruno Haible  <bruno@clisp.org>
45260
45261         * modules/bison-i18n: New file.
45262         * MODULES.html.sh (Internationalization functions): Add it.
45263
45264 2006-08-18  Bruno Haible  <bruno@clisp.org>
45265
45266         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45267         sys/statvfs.h. When getmntinfo was found, check its declaration and
45268         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45269
45270 2006-08-18  Bruno Haible  <bruno@clisp.org>
45271
45272         * m4/bison-i18n.m4: New file, from bison.
45273
45274 2006-08-18  Bruno Haible  <bruno@clisp.org>
45275
45276         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45277         (ME_DUMMY): Treat "kernfs" as a dummy.
45278         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45279
45280 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45281
45282         Update from coreutils.
45283
45284         2006-08-15  Jim Meyering  <jim@meyering.net>
45285
45286         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45287
45288         2006-01-17  Jim Meyering  <jim@meyering.net>
45289
45290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45291
45292         2006-01-11  Jim Meyering  <jim@meyering.net>
45293
45294         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45295         Check for the lchmod function.
45296
45297 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45298
45299         Update from coreutils.
45300
45301         * lib/__fpending.h: Add copyright notice.
45302         * lib/fprintftime.h: Likewise.
45303         * lib/savedir.c: Use (C) in copyright notice.
45304         * lib/savedir.h: Likewise.
45305
45306         2006-08-15  Jim Meyering  <jim@meyering.net>
45307
45308         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45309         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45310         in support of the EXPECTED_ERRNO macro.
45311         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45312         definitions.  Instead, define the appropriate symbols and include
45313         "at-func.c".
45314         * lib/mkdirat.c (mkdirat): Likewise.
45315         * lib/fchmodat.c (fchmodat): Likewise.
45316         (ENOSYS): Remove definition.
45317         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45318         it.  Don't include "unistd--.h" -- it wasn't ever used.
45319
45320         2006-01-17  Jim Meyering  <jim@meyering.net>
45321
45322         Rewrite fts.c not to change the current working directory,
45323         by using openat, fstatat, fdopendir, etc..
45324
45325         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45326         (HAVE_OPENAT_SUPPORT): Define.
45327         [_LIBC] (fchdir): Don't undef or define; no longer used.
45328         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45329         Now, this `function' always succeeds, and consumes its file descriptor
45330         parameter -- so callers must not close such FDs.  Update callers.
45331         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45332         (diropen): Add parameter, SP.  Adjust all callers.
45333         Implement using diropen_fd, rather than open.
45334         (fts_open): Initialize new member, fts_cwd_fd.
45335         Remove fts_rft-setting code.
45336         (fts_close): Close fts_cwd_fd, if necessary.
45337         (__opendir2): Define in terms of opendir or opendirat,
45338         depending on whether the FST_NOCHDIR flag is set.
45339         (fts_build): Since fts_safe_changedir consumes its FD, and since
45340         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45341         and close the dup'd file descriptor upon failure.
45342         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45343         (fts_safe_changedir): Tweak semantics to reflect that this function
45344         now calls cwd_advance_fd and hence consumes its FD argument.
45345         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45346         [struct FTS] (fts_rft): Remove now-unused member.
45347         [struct FTS] (fts_cycle.state): Improve comment.
45348
45349         * lib/openat.c (openat_needs_fchdir): New function.
45350         * lib/openat.h (openat_needs_fchdir): Declare it.
45351
45352 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45353
45354         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45355         Problem and fix reported by Pádraig Brady in
45356         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45357
45358 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45359
45360         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45361
45362 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45363
45364         * lib/memcoll.c (memcoll): Optimize for the common case where the
45365         arguments are bytewise equal.
45366
45367 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45368
45369         * doc/regexprops-generic.texi: Add a copyright notice.
45370
45371 2006-08-15  Bruno Haible  <bruno@clisp.org>
45372
45373         * modules/tmpdir (License): Change to LGPL.
45374
45375 2006-08-15  Bruno Haible  <bruno@clisp.org>
45376
45377         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45378         module.
45379
45380 2006-08-14  Simon Josefsson  <jas@extundo.com>
45381
45382         * config/srclist.txt: Add gnupload.
45383
45384 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45385
45386         Change copyright notice from LGPL 2 to GPL 2, since that's the
45387         standard form used in the gnulib repository.
45388         * tests/test-lock.c: Likewise.
45389         * tests/test-stdint.c: Likewise.
45390         * tests/test-tls.c: Likewise.
45391
45392         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45393         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45394         Add copyright notice.
45395
45396         * check-module: Add copyright notice.  Output a copyright
45397         notice if "--version" is specified.
45398         * modules/COPYING: New file.
45399         * tests/test-getaddrinfo.c: Add copyright notice.
45400         * tests/test-verify.c: Likewise.
45401
45402 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45403
45404         Change copyright notice from LGPL 2 to GPL 2, since that's the
45405         standard form used in the gnulib repository.
45406         * lib/lock.c: LGPL -> GPL.
45407         * lib/lock.h: Likewise.
45408         * lib/strnlen1.c: Likewise.
45409         * lib/strnlen1.h: Likewise.
45410         * lib/tls.c: Likewise.
45411         * lib/tls.h: Likewise.
45412         * lib/tmpdir.c: Likewise.
45413
45414         * lib/TODO: Remove; this belongs only in coreutils.
45415
45416 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45417
45418         Add copyright notices to long-enough files that lack them, since
45419         otherwise the files aren't clearly free.  Use the same notice that
45420         getdate.texi already uses.
45421         * doc/alloca-opt.texi: Add copyright notice.
45422         * doc/alloca.texi: Likewise.
45423         * doc/ctime.texi: Likewise.
45424         * doc/functions.texi: Likewise.
45425         * doc/gcd.texi: Likewise.
45426         * doc/gnulib-tool.texi: Likewise.
45427         * doc/inet_ntoa.texi: Likewise.
45428         * doc/visibility.texi: Likewise.
45429
45430         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45431         * doc/quote.texi: Add copyright notice.
45432
45433         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45434         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45435         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45436         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45437         is now obsolete, and give a pointer to the Sun list.
45438         Add copyright notice.
45439
45440 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45441
45442         * config/srclistvars.sh: Add copyright notice.
45443
45444 2006-08-14  Eric Blake  <ebb9@byu.net>
45445
45446         Import the following change from libc:
45447
45448         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45449
45450         Upstream bug 2997.
45451         * lib/misc/error.c: Add space between program name and message if file
45452         name is missing.
45453
45454 2006-08-12  Karl Berry  <karl@gnu.org>
45455
45456         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45457         remove, these originate in gnulib now.
45458
45459 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45460
45461         * doc/Makefile (standards.info standards.html standards.dvi):
45462         Also depend on make-stds.texi.
45463
45464 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45465
45466         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45467         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45468
45469         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45470         in wchar_t.  Problem reported by Eric Blake.
45471
45472         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45473         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45474         Also, help the compiler to keep LEN in a register.
45475
45476 2006-08-11  Eric Blake  <ebb9@byu.net>
45477
45478         * users.txt: Sort.  Add tar.
45479
45480 2006-08-11  Bruno Haible  <bruno@clisp.org>
45481
45482         * users.txt: New file.
45483
45484 2006-08-11  Bruno Haible  <bruno@clisp.org>
45485
45486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45487         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45488
45489 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45490
45491         * modules/snprintf (Depends-on): Remove minmax.
45492         (Maintainer): Add self and Bruno.
45493
45494 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45495
45496         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45497         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45498         (EOVERFLOW): Define if the system does not.
45499         Do not include "minmax.h"; it wasn't used.
45500         (snprintf): Don't assume size_t promotes to an unsigned type.
45501         Fix bug when generated string was too long for the buffer: the
45502         buffer's contents are supposed to be the initial prefix of the
45503         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45504         exceeds INT_MAX; do the check ourselves.
45505
45506         Import the following changes from libc:
45507
45508         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45509
45510         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45511         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45512         set wc to the byte which couldn't be converted.
45513         (re_string_reconstruct): Don't clear valid_raw_len before calling
45514         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45515         tip_context using re_string_context_at.
45516
45517         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45518
45519         * lib/posix/regex.h: g++ still cannot handled [restrict].
45520
45521         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45522
45523         * lib/posix/regex.h: Remove special handling for VMS.
45524
45525 2006-08-10  Jim Meyering  <jim@meyering.net>
45526
45527         * modules/same-inode: New module.
45528         * modules/dev-ino: New module.
45529         * modules/cycle-check: Depend on these modules, rather than simply
45530         including their .h files.
45531         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45532         required via m4/cycle-check.m4.
45533         * modules/same: Depend on new same-inode module, rather than
45534         including same-inode.h.
45535         * modules/chdir-safer: New file.
45536
45537         * modules/chown (Depends-on): Add stat-macros.
45538
45539 2006-08-10  Jim Meyering  <jim@meyering.net>
45540
45541         * m4/cycle-check.m4: New file.
45542         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45543         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45544
45545 2006-08-10  Eric Blake  <ebb9@byu.net>
45546
45547         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45548         in from original proposal.
45549
45550 2006-08-10  Eric Blake  <ebb9@byu.net>
45551         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45552
45553         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45554         namespace.
45555
45556 2006-08-10  Bruno Haible  <bruno@clisp.org>
45557
45558         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45559         as well.
45560
45561 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45562
45563         Sync from coreutils.
45564
45565         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45566
45567         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45568         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45569
45570 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45571
45572         * modules/restrict: Remove; no longer needed now that we assume
45573         Autoconf 2.59 or later.
45574         * MODULES.html.sh: Remove 'restrict'.
45575         * modules/argp (Depends-on): Remove 'restrict'.
45576         * modules/base64 (Depends-on): Likewise.
45577         * modules/gc (Depends-on): Likewise.
45578         * modules/getaddrinfo (Depends-on): Likewise.
45579         * modules/glob (Depends-on): Likewise.
45580         * modules/inet_ntop (Depends-on): Likewise.
45581         * modules/inet_pton (Depends-on): Likewise.
45582         * modules/memxor (Depends-on): Likewise.
45583         * modules/regex (Depends-on): Likewise.
45584         * modules/strtok_r (Depends-on): Likewise.
45585         * modules/time_r (Depends-on): Likewise.
45586
45587 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45588
45589         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45590         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45591         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45592         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45593         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45594         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45595         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45596         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45597
45598         Merge from coreutils.
45599         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45600         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45601         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45602         * m4/time_r.m4 (gl_TIME_R): Likewise.
45603
45604 2006-08-09  Karl Berry  <karl@gnu.org>
45605
45606         * config/srclist.txt: no more gettext-tools, per Bruno.
45607
45608 2006-08-08  Eric Blake  <ebb9@byu.net>
45609
45610         * modules/verror: New module.
45611         * MODULES.html.sh: Document it.
45612
45613 2006-08-08  Eric Blake  <ebb9@byu.net>
45614
45615         * lib/verror.h, lib/verror.c: New files.
45616
45617 2006-08-08  Eric Blake  <ebb9@byu.net>
45618
45619         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45620         verror_at_line output complies with GNU Coding Standards even when
45621         file is NULL.
45622
45623 2006-08-07  Bruno Haible  <bruno@clisp.org>
45624
45625         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45626         versions of AIX.
45627         Reported by Ralf Wildenhues.
45628
45629 2006-08-07  Bruno Haible  <bruno@clisp.org>
45630
45631         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45632         in an AC_DEFUN. Needed so that the autoconf snippets can use
45633         AC_REQUIRE.
45634
45635 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45636
45637         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45638         Initialize pkgdata_DATA.
45639         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45640         overriding it.
45641
45642 2006-08-06  Eric Blake  <ebb9@byu.net>
45643
45644         * lib/error.h: Fold in some upstream changes from glibc.
45645         * lib/error.c: Likewise.
45646
45647 2006-08-04  Bruno Haible  <bruno@clisp.org>
45648
45649         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45650         Make the mostlyclean-local rule depend on mostlyclean-generic.
45651         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45652
45653 2006-07-31  Bruno Haible  <bruno@clisp.org>
45654
45655         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45656         <stdlib.h>, <string.h>.
45657
45658 2006-07-30  Bruno Haible  <bruno@clisp.org>
45659
45660         * modules/readlink (License): Change to LGPL.
45661
45662 2006-07-30  Bruno Haible  <bruno@clisp.org>
45663
45664         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45665         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45666         set PKGDATADIR to point to it.
45667
45668 2006-07-30  Bruno Haible  <bruno@clisp.org>
45669
45670         * modules/csharpexec (configure.ac): Comment out macro invocation.
45671         * modules/javaexec (configure.ac): Likewise.
45672         * modules/javacomp-script (configure.ac): Likewise.
45673
45674         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45675
45676 2006-07-30  Bruno Haible  <bruno@clisp.org>
45677
45678         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45679         linked-list.
45680
45681 2006-07-30  Bruno Haible  <bruno@clisp.org>
45682
45683         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45684
45685 2006-07-30  Bruno Haible  <bruno@clisp.org>
45686
45687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45688         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45689         get removed.
45690
45691 2006-07-29  Bruno Haible  <bruno@clisp.org>
45692
45693         Make it possible for gnulib-tool to work with locally modified or
45694         augmented gnulib repositories.
45695         * gnulib-tool (func_usage): Document --local-dir option.
45696         (local_gnulib_dir): New variable.
45697         Handle --local-dir option.
45698         (func_lookup_file): New function.
45699         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45700         (func_get_description, func_get_filelist, func_get_description,
45701         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45702         func_get_automake_snippet, func_get_include_directive,
45703         func_get_license, func_get_maintainer): Use func_lookup_file.
45704         (func_import, func_create_testdir): Use func_lookup_file.
45705
45706 2006-07-29  Bruno Haible  <bruno@clisp.org>
45707
45708         * modules/setenv (Depends-on): Add unistd.
45709
45710 2006-07-29  Bruno Haible  <bruno@clisp.org>
45711
45712         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45713
45714 2006-07-29  Bruno Haible  <bruno@clisp.org>
45715
45716         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45717
45718 2006-07-29  Bruno Haible  <bruno@clisp.org>
45719
45720         * gnulib-tool (import, update): If there is no Makefile.am, look at
45721         aclocal.m4, instead of bailing out.
45722
45723 2006-07-29  Bruno Haible  <bruno@clisp.org>
45724
45725         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45726         Categorize the options by when they are useful.
45727
45728 2006-07-29  Bruno Haible  <bruno@clisp.org>
45729
45730         * gnulib-tool (func_usage): Document option --no-libtool.
45731         Handle option --no-libtool.
45732         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45733         for changed semantics of $libtool variable.
45734         (func_import): Likewise. If libtool is not used, show this through
45735         an option --no-libtool.
45736         (func_create_testdir): Update.
45737
45738 2006-07-29  Bruno Haible  <bruno@clisp.org>
45739
45740         * gnulib-tool (func_import): Extend error message about missing
45741         --doc-base.
45742
45743 2006-07-29  Bruno Haible  <bruno@clisp.org>
45744
45745         * gnulib-tool (func_import): Don't create the $docbase directory if
45746         there is no file to store there.
45747
45748 2006-07-29  Bruno Haible  <bruno@clisp.org>
45749
45750         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45751         relevant, look for configure.ac there, not in the current directory.
45752         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45753
45754 2006-07-29  Bruno Haible  <bruno@clisp.org>
45755
45756         * gnulib-tool (SORT): New variable.
45757         (func_usage): Undocument --assume-autoconf option.
45758         Remove --assume-autoconf option handling.
45759         (autoconf_minversion): Determine from the contents of configure.ac.
45760         (func_import): Remove autoconf_minversion handling.
45761         Suggested by Eric Blake.
45762
45763 2006-07-29  Bruno Haible  <bruno@clisp.org>
45764
45765         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45766
45767 2006-07-29  Bruno Haible  <bruno@clisp.org>
45768
45769         * config/srclist.txt (*setenv.[ch]): Remove rules.
45770
45771 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45772
45773         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45774
45775 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45776
45777         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45778         arpa/inet.h.
45779
45780 2006-07-28  Simon Josefsson  <jas@extundo.com>
45781
45782         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45783         * modules/inet_pton (Depends-on): Likewise.
45784
45785 2006-07-28  Simon Josefsson  <jas@extundo.com>
45786
45787         * m4/netinet_in_h.m4: New file.
45788
45789 2006-07-28  Simon Josefsson  <jas@extundo.com>
45790
45791         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45792         #include's.
45793
45794 2006-07-28  Simon Josefsson  <jas@extundo.com>
45795
45796         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45797         #include's.
45798
45799 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45800
45801         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45802         setgid on directories only if they set these bits.
45803         * lib/modechange.h: Remove obsolete comment about masks.
45804
45805 2006-07-28  Eric Blake  <ebb9@byu.net>
45806
45807         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45808         macro expansion.
45809
45810 2006-07-28  Bruno Haible  <bruno@clisp.org>
45811
45812         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45813
45814 2006-07-28  Bruno Haible  <bruno@clisp.org>
45815
45816         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45817
45818 2006-07-28  Bruno Haible  <bruno@clisp.org>
45819
45820         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45821         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45822         Define fallbacks.
45823         Avoids link error on FreeBSD 4.x.
45824         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45825
45826         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45827         encoding.
45828         * lib/mbswidth.c (iswcntrl): Likewise.
45829
45830 2006-07-27  Bruno Haible  <bruno@clisp.org>
45831
45832         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45833         test.
45834
45835 2006-07-27  Bruno Haible  <bruno@clisp.org>
45836
45837         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45838         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45839         defined.
45840
45841 2006-07-26  Eric Blake  <ebb9@byu.net>
45842
45843         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45844
45845 2006-07-26  Eric Blake  <ebb9@byu.net>
45846
45847         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45848         like mingw that lack mkstemp.
45849         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45850         avoid compilation warning on mingw.
45851
45852 2006-07-26  Bruno Haible  <bruno@clisp.org>
45853
45854         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45855         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45856         INT_FAST*_MIN, INTPTR_MIN.
45857
45858 2006-07-25  Bruno Haible  <bruno@clisp.org>
45859
45860         * modules/version-etc (Depends-on): Add stdarg.
45861
45862 2006-07-25  Bruno Haible  <bruno@clisp.org>
45863
45864         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45865         complex commands.
45866
45867 2006-07-25  Bruno Haible  <bruno@clisp.org>
45868
45869         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45870         defined in <stdarg.h> or config.h.
45871
45872 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45873
45874         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45875         (gl_STDIO_SAFER): Remove.
45876
45877 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45878
45879         * MODULES.html.sh (File stream based Input/Output):
45880         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45881         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45882         * modules/fopen-safer, modules/tmpfile-safer: New files.
45883         * modules/stdio-safer: Remove.
45884
45885 2006-07-24  Bruno Haible  <bruno@clisp.org>
45886
45887         * modules/tmpdir: New file.
45888         * MODULES.html.sh (File system functions): Add it.
45889
45890 2006-07-24  Bruno Haible  <bruno@clisp.org>
45891
45892         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45893         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45894
45895 2006-07-24  Bruno Haible  <bruno@clisp.org>
45896
45897         * modules/clean-temp: New file.
45898
45899 2006-07-24  Bruno Haible  <bruno@clisp.org>
45900
45901         * m4/tmpdir.m4: New file, from GNU gettext.
45902
45903 2006-07-24  Bruno Haible  <bruno@clisp.org>
45904
45905         * lib/tmpdir.h: New file, from GNU gettext.
45906         * lib/tmpdir.c: New file, from GNU gettext.
45907
45908 2006-07-24  Bruno Haible  <bruno@clisp.org>
45909
45910         * lib/clean-temp.h: New file, from GNU gettext.
45911         * lib/clean-temp.c: New file, from GNU gettext.
45912
45913 2006-07-23  Eric Blake  <ebb9@byu.net>
45914
45915         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45916         (Depends-on): Add binary-io.
45917
45918 2006-07-23  Eric Blake  <ebb9@byu.net>
45919
45920         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45921
45922 2006-07-23  Eric Blake  <ebb9@byu.net>
45923
45924         * lib/tmpfile-safer.c: New file.
45925         * lib/stdio-safer.h (fopen_safer): Add prototype.
45926         * lib/stdio--.h (tmpfile): Make safer.
45927
45928 2006-07-23  Bruno Haible  <bruno@clisp.org>
45929
45930         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45931         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45932         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45933         gl_linked_remove_at): Use it.
45934
45935 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45936         and Simon Josefsson <jas@extundo.com>
45937
45938         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45939
45940         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45941
45942 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45943
45944         * modules/close-stream: New file.
45945         * modules/closeout (Description): Make it clear that it exits
45946         with a diagnostic on error.
45947         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45948         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45949
45950 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45951
45952         * m4/close-stream.m4: New file.
45953
45954 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45955
45956         * lib/close-stream.c, lib/close-stream.h: New files.
45957
45958 2006-07-22  Bruno Haible  <bruno@clisp.org>
45959
45960         Merge from GNU gettext 0.15.
45961
45962         2006-05-01  Bruno Haible  <bruno@clisp.org>
45963
45964                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45965
45966         2006-07-22  Bruno Haible  <bruno@clisp.org>
45967
45968                 * modules/javaversion: New file.
45969                 * MODULES.html.sh (Java): Add javaversion.
45970
45971         2006-03-12  Bruno Haible  <bruno@clisp.org>
45972
45973                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45974
45975         2005-12-04  Bruno Haible  <bruno@clisp.org>
45976
45977                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45978                 (untested).
45979
45980         2006-06-21  Bruno Haible  <bruno@clisp.org>
45981
45982                 Avoid warnings from recent versions of mcs.
45983                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45984                 -o, -L, -r any more. Use options documented since mcs-1.0
45985                 instead. Similarly for -g.
45986
45987         2005-12-04  Bruno Haible  <bruno@clisp.org>
45988
45989                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45990                 .resources, not .resource.
45991
45992         2005-07-09  Bruno Haible  <bruno@clisp.org>
45993
45994                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45995                 add a .dll suffix.
45996                 Reported by Mark Junker <mjscod@gmx.de>.
45997
45998         2006-07-22  Bruno Haible  <bruno@clisp.org>
45999
46000                 * modules/gettext: Upgrade to gettext-0.15.
46001                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
46002                 m4/visibility.m4.
46003                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
46004
46005 2006-07-22  Bruno Haible  <bruno@clisp.org>
46006
46007         Merge from GNU gettext 0.15.
46008
46009         2006-03-25  Bruno Haible  <bruno@clisp.org>
46010
46011                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
46012
46013         2006-07-21  Bruno Haible  <bruno@clisp.org>
46014
46015                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
46016                 "1.1".
46017
46018         2006-05-09  Bruno Haible  <bruno@clisp.org>
46019
46020                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
46021                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
46022                 for the conftestver execution.
46023
46024         2006-05-01  Bruno Haible  <bruno@clisp.org>
46025
46026                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
46027                 optional target-version argument. Verify that the compiler
46028                 groks source of the specified source-version, or add -source
46029                 option as necessary. Verify that the compiler produces
46030                 bytecode in the specified target-version, or add -target and
46031                 -source options as necessary. Make the result of the test
46032                 available as variable CONF_JAVAC. Also log error output in
46033                 config.log.
46034
46035         2006-03-11  Bruno Haible  <bruno@clisp.org>
46036
46037                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
46038
46039         2006-05-09  Bruno Haible  <bruno@clisp.org>
46040
46041                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
46042                 CLASSPATH_SEPARATOR to a semicolon.
46043
46044         2006-03-12  Bruno Haible  <bruno@clisp.org>
46045
46046                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
46047                 available as variable CONF_JAVA, for subsequent autoconf
46048                 tests. Also log error output in config.log.
46049
46050         2006-07-19  Bruno Haible  <bruno@clisp.org>
46051
46052                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
46053                 that getline works on glibc2 systems. Needed to avoid trouble
46054                 in relocatable.c.
46055                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
46056
46057         2005-12-04  Bruno Haible  <bruno@clisp.org>
46058
46059                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
46060                 launcher (untested).
46061
46062         2005-12-04  Bruno Haible  <bruno@clisp.org>
46063
46064                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
46065
46066         2006-07-22  Bruno Haible  <bruno@clisp.org>
46067
46068                 * gettext.m4: Update from GNU gettext-0.15.
46069                 * nls.m4: Likewise.
46070                 * po.m4: Likewise.
46071                 * inttypes-pri.m4: Likewise.
46072                 * inttypes-h.m4: Renamed from inttypes.m4.
46073                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
46074
46075 2006-07-22  Bruno Haible  <bruno@clisp.org>
46076
46077         Merge from GNU gettext 0.15.
46078
46079         2005-07-05  Bruno Haible  <bruno@clisp.org>
46080
46081                 * printf-args.c (printf_fetchargs): Work around broken
46082                 definition of wint_t on mingw.
46083
46084         2005-02-12  Bruno Haible  <bruno@clisp.org>
46085
46086                 * xallocsa.h: Add extern "C" for C++.
46087
46088         2006-05-17  Bruno Haible  <bruno@clisp.org>
46089
46090                 Cygwin portability.
46091                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
46092
46093         2006-04-30  Bruno Haible  <bruno@clisp.org>
46094
46095                 * progreloc.c: Include <mach-o/dyld.h> if available.
46096                 (find_executable): Use _NSGetExecutablePath when possible.
46097
46098         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46099
46100                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
46101                 function.
46102
46103         2005-12-29  Bruno Haible  <bruno@clisp.org>
46104
46105                 * progreloc.c (set_program_name_and_installdir): Fix
46106                 compilation error.
46107
46108         2005-12-04  Bruno Haible  <bruno@clisp.org>
46109
46110                 Cygwin portability.
46111                 * progreloc.c: Include <windows.h> also on Cygwin.
46112                 (find_executable): Add support for Cygwin.
46113                 (set_program_name_and_installdir): Handle also platforms with
46114                 nonempty EXEEXT.
46115
46116         2006-07-11  Bruno Haible  <bruno@clisp.org>
46117
46118                 * javacomp.c: Fix a comment.
46119                 Reported by Jim Meyering.
46120
46121         2006-04-30  Bruno Haible  <bruno@clisp.org>
46122
46123                 * javacomp.h (compile_java_class): Add source_version,
46124                 target_version arguments.
46125                 * javacomp.c: Rewritten to choose only a compiler that
46126                 respects the specified source_version and target_version.
46127
46128         2006-06-27  Bruno Haible  <bruno@clisp.org>
46129
46130                 Assume correct S_ISDIR macro.
46131                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
46132
46133         2006-07-22  Bruno Haible  <bruno@clisp.org>
46134
46135                 * javaversion.h: New file, from GNU gettext.
46136                 * javaversion.c: New file, from GNU gettext.
46137                 * javaversion.java: New file, from GNU gettext.
46138                 * javaversion.class: New file, from GNU gettext.
46139
46140         2006-05-17  Bruno Haible  <bruno@clisp.org>
46141
46142                 Cygwin portability.
46143                 * javaexec.c (execute_java_class): Test for jview program
46144                 also on Cygwin.
46145
46146         2006-04-09  Bruno Haible  <bruno@clisp.org>
46147
46148                 * fatal-signal.c: Don't include string.h.
46149                 (at_fatal_signal): Use a copying loop instead of memcpy.
46150
46151         2005-12-04  Bruno Haible  <bruno@clisp.org>
46152
46153                 * csharpexec.c: Add support for 'clix' launcher (untested).
46154                 (execute_csharp_using_sscli): New function.
46155                 (execute_csharp_program): Call it.
46156
46157         2006-06-21  Bruno Haible  <bruno@clisp.org>
46158
46159                 Avoid warnings from recent versions of mcs.
46160                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
46161                 -o, -L, -r any more. Use options documented since mcs-1.0
46162                 instead. Similarly for -g.
46163
46164         2005-07-09  Bruno Haible  <bruno@clisp.org>
46165
46166                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
46167                 add a .dll suffix.
46168                 Reported by Mark Junker <mjscod@gmx.de>.
46169
46170         2006-06-17  Bruno Haible  <bruno@clisp.org>
46171
46172                 * config.charset: Update for NetBSD 3.0.
46173
46174         2006-05-17  Bruno Haible  <bruno@clisp.org>
46175
46176                 Cygwin portability.
46177                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46178
46179         2006-05-16  Bruno Haible  <bruno@clisp.org>
46180
46181                 * localcharset.c [CYGWIN]: Include <windows.h>.
46182                 (get_charset_aliases): For Cygwin, return the same CPxxx
46183                 aliases list as under WIN32.
46184                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46185                 the environment variables. Fall back to GetACP().
46186
46187         2006-04-05  Bruno Haible  <bruno@clisp.org>
46188
46189                 * config.charset: Update Juan Manuel Guerrero's address.
46190
46191         2005-02-12  Bruno Haible  <bruno@clisp.org>
46192
46193                 * allocsa.h: Add extern "C" for C++.
46194
46195         2005-02-10  Bruno Haible  <bruno@clisp.org>
46196
46197                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46198                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46199
46200         2006-07-22  Bruno Haible  <bruno@clisp.org>
46201
46202                 * gettext.h: Update to GNU gettext-0.15.
46203
46204 2006-07-22  Bruno Haible  <bruno@clisp.org>
46205
46206         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46207         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46208         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46209
46210 2006-07-21  Eric Blake  <ebb9@byu.net>
46211
46212         * modules/stdlib-safer: New file.
46213         * MODULES.html.sh (File stream based Input/Output): Add
46214         stdlib-safer.
46215
46216 2006-07-21  Eric Blake  <ebb9@byu.net>
46217
46218         * lib/stdlib-safer.h: New file from coreutils, required by
46219         stdlib--.h.
46220
46221 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46222
46223         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46224
46225 2006-07-20  Bruno Haible  <bruno@clisp.org>
46226
46227         * gnulib-tool: Recognize new option --assume-autoconf.
46228         (autoconf_minversion): New variable.
46229         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46230
46231 2006-07-20  Bruno Haible  <bruno@clisp.org>
46232
46233         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46234
46235 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46236
46237         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46238         Reindent and repaginate.
46239
46240 2006-07-19  Derek Price  <derek@ximbiot.com>
46241
46242         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46243         Correct grammar.
46244
46245 2006-07-17  Bruno Haible  <bruno@clisp.org>
46246
46247         * modules/list: New file.
46248         * modules/array-list: New file.
46249         * modules/carray-list, modules/carray-list-tests: New files.
46250         * modules/linked-list, modules/linked-list-tests: New files.
46251         * modules/avltree-list, modules/avltree-list-tests: New files.
46252         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46253         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46254         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46255         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46256         * modules/oset: New file.
46257         * modules/array-oset: New file.
46258         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46259         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46260         * tests/test-carray_list.c: New file.
46261         * tests/test-linked_list.c: New file.
46262         * tests/test-avltree_list.c: New file.
46263         * tests/test-rbtree_list.c: New file.
46264         * tests/test-linkedhash_list.c: New file.
46265         * tests/test-avltreehash_list.c: New file.
46266         * tests/test-rbtreehash_list.c: New file.
46267         * tests/test-avltree_oset.c: New file.
46268         * tests/test-rbtree_oset.c: New file.
46269         * MODULES.html.sh (Container data structures): New section.
46270
46271 2006-07-17  Bruno Haible  <bruno@clisp.org>
46272
46273         * m4/gl_list.m4: New file.
46274
46275 2006-07-17  Bruno Haible  <bruno@clisp.org>
46276
46277         * lib/gl_list.h: New file.
46278         * lib/gl_list.c: New file.
46279         * lib/gl_array_list.h: New file.
46280         * lib/gl_array_list.c: New file.
46281         * lib/gl_carray_list.h: New file.
46282         * lib/gl_carray_list.c: New file.
46283         * lib/gl_linked_list.h: New file.
46284         * lib/gl_linked_list.c: New file.
46285         * lib/gl_anylinked_list1.h: New file.
46286         * lib/gl_anylinked_list2.h: New file.
46287         * lib/gl_avltree_list.h: New file.
46288         * lib/gl_avltree_list.c: New file.
46289         * lib/gl_anyavltree_list1.h: New file.
46290         * lib/gl_anyavltree_list2.h: New file.
46291         * lib/gl_rbtree_list.h: New file.
46292         * lib/gl_rbtree_list.c: New file.
46293         * lib/gl_anyrbtree_list1.h: New file.
46294         * lib/gl_anyrbtree_list2.h: New file.
46295         * lib/gl_anytree_list1.h: New file.
46296         * lib/gl_anytree_list2.h: New file.
46297         * lib/gl_linkedhash_list.h: New file.
46298         * lib/gl_linkedhash_list.c: New file.
46299         * lib/gl_anyhash_list1.h: New file.
46300         * lib/gl_anyhash_list2.h: New file.
46301         * lib/gl_avltreehash_list.h: New file.
46302         * lib/gl_avltreehash_list.c: New file.
46303         * lib/gl_rbtreehash_list.h: New file.
46304         * lib/gl_rbtreehash_list.c: New file.
46305         * lib/gl_anytreehash_list1.h: New file.
46306         * lib/gl_anytreehash_list2.h: New file.
46307
46308         * lib/gl_oset.h: New file.
46309         * lib/gl_oset.c: New file.
46310         * lib/gl_array_oset.h: New file.
46311         * lib/gl_array_oset.c: New file.
46312         * lib/gl_avltree_oset.h: New file.
46313         * lib/gl_avltree_oset.c: New file.
46314         * lib/gl_rbtree_oset.h: New file.
46315         * lib/gl_rbtree_oset.c: New file.
46316         * lib/gl_anytree_oset.h: New file.
46317
46318 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46319
46320         * m4/mkancesdirs.m4: New file.
46321         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46322         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46323         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46324         it.
46325
46326 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46327
46328         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46329         * lib/mkancesdirs.h: New files.
46330         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46331         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46332         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46333         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46334         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46335         callers changed.  Revamp internals significantly, by not
46336         attempting to create directories that are temporarily more
46337         permissive than the final results.  Do not attempt to use
46338         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46339         This removes some race conditions, fixes some bugs, and simplifies
46340         things.  Use new dirchownmod function to do owner and mode changes.
46341         * lib/mkdir-p.h: Likewise.
46342         * lib/modechange.c (octal_to_mode): New function.
46343         (struct mode_change): New member mentioned.
46344         (make_node_op_equals): New arg mentioned.  All callers changed.
46345         (mode_compile): Keep track of which mode bits the user has explicitly
46346         mentioned.
46347         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46348         New arg PMODE_BITS, to keep track of which mode bits the user
46349         mentioned; it treats S_ISUID and S_ISGID speciall.
46350         All callers changed.
46351         * lib/modechange.h: Likewise.
46352
46353 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46354
46355         * MODULES.html.sh: Add mkancestors.
46356         * modules/mkancesdirs: New module.
46357         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46358         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46359         The chdir-safer and afs files are now orphans; I'll remove them
46360         unless someone speaks up.
46361         Add lib/dirchownmod.c, lib/dirchownmod.h.
46362         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46363         Add lchown, mkancesdirs.
46364         (Maintainer): Add self.
46365
46366 2006-07-15  Karl Berry  <karl@gnu.org>
46367
46368         * gnulib-tool: help message wording/arrangement.
46369
46370 2006-07-14  Simon Josefsson  <jas@extundo.com>
46371
46372         * doc/gnulib.texi (Libtool and Windows): New section.
46373
46374 2006-07-12  Simon Josefsson  <jas@extundo.com>
46375
46376         * modules/gendocs (License): Fix license, approved by Karl.
46377
46378 2006-07-12  Eric Blake  <ebb9@byu.net>
46379
46380         * MODULES.html.sh: Add gendocs.
46381
46382 2006-07-11  Eric Blake  <ebb9@byu.net>
46383
46384         * modules/fdl: New module, to install doc/fdl.texi.
46385         * MODULES.html.sh: Add new section for documentation modules.
46386         * gnulib-tool: Avoid space-tab.
46387         (--doc-base): New option, to manage files from doc.
46388
46389 2006-07-11  Eric Blake  <ebb9@byu.net>
46390
46391         * m4/absolute-header.m4: Fix comments to match recent change.
46392
46393 2006-07-11  Eric Blake  <ebb9@byu.net>
46394
46395         * gnulib-tool: List --doc-base before --tests-base.
46396
46397 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46398
46399         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46400
46401 2006-07-11  Bruno Haible  <bruno@clisp.org>
46402
46403         * README: Mention where to put documentation.
46404
46405 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46406
46407         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46408
46409 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46410
46411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46412         to stdint.m4.
46413
46414 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46415
46416         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46417         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46418         "no/such/file/stdint.h" when there is no such file, so that
46419         the resulting C code can be parsed by dodgy compilers.
46420         Problems reported by Bob Proulx.
46421
46422 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46423
46424         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46425         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46426         macros into the GNU _D_EXACT_NAMLEN.
46427         * lib/savedir.c:  Likewise.
46428         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46429
46430 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46431         and Paul Eggert  <eggert@cs.ucla.edu>
46432
46433         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46434         * m4/savedir.m4:
46435         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46436         macros into the GNU _D_EXACT_NAMLEN.
46437
46438 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46439
46440         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46441         around the absolute name, to work around a problem with the HP-UX
46442         11.23 native C compiler, reported by Bob Proulx.
46443
46444 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46445
46446         * doc/maintain.texi, make-stds.texi: Sync from
46447         <http://savannah.gnu.org/projects/gnustandards>.
46448
46449 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46450
46451         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46452
46453 2006-07-09  Jim Meyering  <jim@meyering.net>
46454
46455         * m4/glob.m4: Remove a doubled word in a comment.
46456
46457 2006-07-09  Jim Meyering  <jim@meyering.net>
46458
46459         * lib/argp-pv.c: Remove a doubled word in a comment.
46460         * lib/check-version.c (check_version): Likewise.
46461         * lib/javacomp.c (compile_java_class): Likewise.
46462
46463 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46464
46465         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46466         for the benefit of people using Autoconf 2.60.  If you want to
46467         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46468         (or m4/onceonly.m4, if pre-2.57) manually.
46469
46470 2006-07-08  Jim Meyering  <jim@meyering.net>
46471
46472         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46473         comment.
46474         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46475         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46476         comment.
46477
46478 2006-07-08  Jim Meyering  <jim@meyering.net>
46479
46480         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46481
46482 2006-07-07  Simon Josefsson  <jas@extundo.com>
46483
46484         * tests/test-crc.c: Change expected crc value, the test vector
46485         were probably computed using the old broken crc.c?
46486
46487 2006-07-06  Simon Josefsson  <jas@extundo.com>
46488
46489         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46490         now the canonical place for the M4 file).
46491
46492         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46493         from the sys_socket dependency now.
46494
46495         * modules/inet_pton (Files): Ditto.
46496
46497         * modules/inet_ntop (Files): Ditto.
46498
46499 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46500
46501         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46502         not gl_PREREQ_GETUSERSHELL.
46503
46504 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46505
46506         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46507         with only one argument, for Autoconf 2.60.
46508         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46509         expand to nothing, so add a shell command to avoid syntax error.
46510         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46511
46512 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46513
46514         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46515
46516 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46517
46518         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46519         no longer needed.  Check for isblank decl.
46520         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46521         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46522         of existence.
46523
46524 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46525
46526         * lib/getloadavg.c: Use __VMS, not VMS.
46527         * lib/getopt.c: Likewise.
46528         * lib/getpagesize.h: Likewise.
46529         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46530         and probably does not work.
46531
46532 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46533
46534         * lib/.cppi-disable: Add wcwidth.
46535         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46536         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46537         (ISGRAPH): Remove.  All uses changed to isgraph.
46538         (FOLD) [!defined _LIBC]: Remove special case.
46539         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46540         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46541         HAVE_ISBLANK.
46542         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46543         case.
46544
46545 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46546
46547         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46548         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46549         brackets.  Other minor changes to suppress some compiler
46550         warnings.
46551
46552 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46553         and Paul Eggert  <eggert@cs.ucla.edu>
46554
46555         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46556         of invoking obsolescent AC_HEADER_DIRENT macro.
46557         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46558         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46559         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46560         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46561         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46562         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46563         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46564         * m4/readdir.m4: Remove; no longer needed.
46565
46566 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46567         and Paul Eggert  <eggert@cs.ucla.edu>
46568
46569         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46570         Don't worry about this obsolete case any more.
46571         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46572         directories.
46573         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46574         worry about this obsolete case any more.
46575         * lib/fts.c: Likewise.
46576         * lib/getcwd.c: Likewise.
46577         * lib/glob.h: Likewise.
46578         * lib/savedir.c: Likewise.
46579
46580 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46581
46582         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46583         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46584         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46585         needed.
46586         All uses removed.
46587         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46588         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46589         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46590         needed.
46591         * m4/getdate.m4 (gl_GETDATE): Likewise.
46592         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46593         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46594         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46595         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46596         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46597         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46598         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46599         needed.
46600
46601 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46602
46603         * lib/memcasecmp.c: Include <limits.h>.
46604         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46605         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46606         Don't assume isdigit succeeds only on '0' through '9'.
46607
46608 2006-07-05  Eric Blake  <ebb9@byu.net>
46609
46610         * modules/getaddrinfo (Depends-on): Add snprintf.
46611
46612 2006-07-05  Eric Blake  <ebb9@byu.net>
46613
46614         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46615         to avoid 'header present but could not be compiled' on cygwin.
46616
46617 2006-07-05  Eric Blake  <ebb9@byu.net>
46618
46619         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46620         missing from netdb.h.
46621         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46622
46623 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46624
46625         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46626         no longer needed.
46627         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46628         * m4/getdate.m4 (gl_GETDATE): Likewise.
46629         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46630         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46631         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46632         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46633         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46634
46635 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46636
46637         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46638         All uses of is_space replaced by isspace.
46639         * lib/exit.h: Don't talk about STDC_HEADERS.
46640         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46641         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46642         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46643         replaced by isprint etc.
46644         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46645         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46646         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46647         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46648         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46649         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46650
46651 2006-07-05  Bruno Haible  <bruno@clisp.org>
46652
46653         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46654         the function exists, before testing against AIX.
46655         Reported by Martin Lambers <marlam@marlam.de>.
46656
46657 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46658
46659         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46660         From Mark D. Baushke.
46661
46662 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46663
46664         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46665         to the absolute name, not just one, to bypass Sun C 5.8's
46666         "warning: #include of /usr/include/... may be non-portable".
46667
46668 2006-07-04  Eric Blake  <ebb9@byu.net>
46669
46670         * modules/dirname-tests: New test module.
46671         * tests/test-dirname.c: New file, replacing dirname.c
46672         TEST_DIRNAME section that was recently deleted.
46673
46674 2006-07-04  Bruno Haible  <bruno@clisp.org>
46675
46676         Assume ANSI C header files and <ctype.h> functions.
46677         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46678         (mbsnwidth): Use isprint, iscntrl instead.
46679
46680 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46681
46682         Merge from coreutils.
46683         * MODULES.html.sh: Add xstrtold.
46684         * modules/xstrtold: New file.
46685         * modules/cycle-check (Files): Add lib/same-inode.h.
46686         * modules/dirname (Files): Add m4/double-slash-root.m4.
46687         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46688         * modules/mkdir-p (Files): Add lib/same-inode.h.
46689         * modules/same (Files): Add lib/same-inode.h.
46690
46691 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46692
46693         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46694         This is to keep the terminology clean; POSIX talks about
46695         "absolute pathnames", not "full pathnames", but the GNU
46696         Coding Standards say to use "path" for something else;
46697         so use "absolute" to keep both sides happy.
46698         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46699         Set gl_absolute_header, not gl_full_header_path.
46700         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46701         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46702         All uses changed.
46703
46704         Merge from coreutils.
46705
46706         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46707
46708         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46709         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46710         want to require the building of c-strtod.o.
46711         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46712         needs -lm directly.
46713         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46714
46715         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46716
46717         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46718         --as-needed option if available.  Problem reported by Albert Chin in
46719         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46720         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46721         cc merely issues a bunch of annoying warnings for --as-needed
46722         (this problem was reported by Bob Proulx).  Also, try linking with
46723         -lm to detect a bug in binutils 2.16 (this problem was reported
46724         by Ralf Wildenhues).
46725
46726         2006-06-18  Jim Meyering  <jim@meyering.net>
46727
46728         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46729         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46730         macro.
46731         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46732         also check for glibc-2.4's abort-inducing bug.
46733
46734         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46735         Low-probability clean-up should be to use rmdir to get rid of
46736         the just-created directory, not unlink.
46737
46738         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46739         configure fail, and request a bug report to inform us about it.
46740         Add a comment that, barring reports to the contrary, in 2007 we'll
46741         assume ftruncate is universally available.
46742
46743         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46744
46745         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46746
46747         2006-03-12  Jim Meyering  <jim@meyering.net>
46748
46749         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46750         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46751         * m4/same.m4 (gl_SAME): Likewise.
46752         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46753
46754         2006-03-11  Eric Blake  <ebb9@byu.net>
46755
46756         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46757         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46758         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46759         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46760
46761 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46762
46763         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46764         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46765         reported by Mark D. Baushke, one in
46766         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46767
46768         Merge from coreutils.
46769
46770         * lib/.cppi-disable: Add stdint_.h.
46771         * lib/.cvsignore: Add stdint.h.
46772
46773         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46774
46775         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46776         both double and long double versions.
46777         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46778         * lib/xstrtold.c: New file.
46779         * lib/xstrtod.h (xstrtold): New decl.
46780
46781         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46782
46783         * lib/filemode.c (setst): Remove.
46784         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46785         (arguably) clearer, and the generated code is a bit smaller on my
46786         Debian GNU/Linux stable x86 host.
46787
46788         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46789
46790         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46791         Assume that filemode.h includes sys/types.h and sys/stat.h.
46792         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46793         (ftypelet): Reorder to put common cases first, for efficiency.
46794         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46795         to do 'M'.
46796         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46797         of 10, for compatibility with FreeBSD.  All callers changed.
46798         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46799         types that can't be deduced solely from st_mode.  First arg is now a
46800         const pointer.
46801         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46802         (strmode): Renamed from mode_string.
46803         (filemodestring): New decl.
46804         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46805         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46806         needed.
46807         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46808
46809         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46810
46811         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46812         fsusage.h now does that.  Include fsusage.h first, to test interface.
46813         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46814         at most one method (the old code could have generated decls that
46815         didn't conform to C89, not that this was ever exercised).
46816         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46817
46818         2006-03-19  Jim Meyering  <jim@meyering.net>
46819
46820         Work even in a chroot where d_ino values for entries in "/"
46821         don't match the stat.st_ino values for the same names.
46822         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46823         number, iterate through all entries again, using lstat instead.
46824         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46825         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46826
46827         * lib/getcwd.c (__getcwd): Clarify a comment.
46828         Use memcpy in place of a call to strcpy.
46829
46830         2006-03-12  Jim Meyering  <jim@meyering.net>
46831
46832         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46833         matches that of the current directory (which we're about to chdir ".."
46834         out of), then save the dev-ino of the parent, instead.
46835
46836         * lib/same-inode.h (SAME_INODE): New file/macro.
46837         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46838         Include "same-inode.h", instead.
46839         * lib/same.c: Likewise.
46840         * lib/cycle-check.h: Include "same-inode.h".
46841         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46842         * lib/cycle-check.c (SAME_INODE): Remove definition.
46843         * lib/root-dev-ino.h: Include "same-inode.h".
46844
46845         2006-03-11  Eric Blake  <ebb9@byu.net>
46846
46847         * lib/same.c (same_name): s/base_name/last_component/
46848         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46849         * lib/filenamecat.c (file_name_concat): Likewise.
46850
46851         2006-03-11  Eric Blake  <ebb9@byu.net>,
46852                     Paul Eggert  <eggert@cs.ucla.edu>
46853
46854         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46855         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46856         drive prefix.
46857         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46858         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46859         (last_component): New method.
46860         * lib/dirname.c (dir_len): Determine when drive letters need a
46861         subsequent slash.  Preserve // when it is special.
46862         (dir_name): Don't append dot when drive letter is absolute.
46863         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46864         * lib/basename.c (base_name): New semantics - malloc the result.
46865         Preserve // when it is special.  Preserve relative files that look
46866         like drive letters.
46867         (base_len): Preserve // when it is special.
46868         (last_component): New method, similar to old base_name semantics.
46869         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46870         base_name.  Strip redundant slashes from ///.
46871
46872 2006-07-03  Jim Meyering  <jim@meyering.net>
46873
46874         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46875         macro is used before the first cycle_check call.
46876
46877 2006-07-03  Eric Blake  <ebb9@byu.net>
46878
46879         * modules/dirname (Depends-on): Add xstrndup.
46880
46881 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46882
46883         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46884         test cases, so that config.log is a bit easier to follow.
46885
46886 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46887
46888         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46889         both are 64 bits, since this seems to be the tradition, and this
46890         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46891         we ever run into a host that prefers long long to long in this
46892         case, we'll need another configure-time test.  Problem reported by
46893         Jim Meyering.
46894
46895 2006-07-02  Eric Blake  <ebb9@byu.net>
46896
46897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46898
46899 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46900
46901         * modules/inttypes (Depends-on): No longer depends on stdint.
46902         * modules/stdint (Description): Say more about assumptions.
46903         Say that the fast types might differ.  Say macros are used.
46904         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46905         (Makefile.am): Revise list of substituted symbols to match
46906         new stdint.m4.
46907         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46908         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46909         * tests/test-stdint.c (verify_same_types)
46910         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46911         the code conforms to C99/C89.
46912         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46913         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46914
46915 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46916
46917         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46918         but fix a bug, by requiring at least 64 bits.
46919         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46920         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46921         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46922         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46923
46924         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46925         changes.  Make 2.59 a prerequisite.  Check and substitute for
46926         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46927         inttypes.h.  Do not use special include files; just use the
46928         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46929         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46930         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46931         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46932         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46933         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46934         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46935         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46936         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46937         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46938         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46939         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46940         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46941         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46942         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46943         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46944         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46945         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46946         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46947         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46948         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46949         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46950         not check for things that C99 does not require, e.g., int8_t.  If
46951         a test isn't needed unless <stdint.h> isn't working, and is
46952         unlikely to be needed for any other reason, then don't do it
46953         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46954         size_t, since we assume C89 freestanding at least.  Do not check
46955         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46956         the right thing even if the types are not defined.  Instead use:
46957         (gl_STDINT_TYPE_PROPERTIES): New macro.
46958         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46959         testing whether <sys/types.h> clashes, as Autoconf does this for
46960         us now.  All uses removed.
46961         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46962         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46963         (gl_CHECK_TYPE_SAME):
46964         Remove; no longer needed.
46965         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46966         exists, since we'll return 0 anyway in that case.
46967         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46968
46969 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46970
46971         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46972         possible collision with system files.
46973         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46974         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46975         WCHAR_MIN and WCHAR_MAX in this case.
46976         (<stddef.h>): Do not include; no longer needed.
46977         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46978         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46979         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46980         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46981         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46982         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46983         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46984         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46985         !defined(__c99))]: Include in this case too, since it's harmless
46986         now.
46987         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46988         dangerous to do so.
46989         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46990         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46991         (_STDINT_MIN, _STDINT_MAX): New macros.
46992         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46993         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46994         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46995         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46996         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46997         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46998         macros, not typedefs; this simplifies things quite a bit.
46999         Use long int for all types narrower than int64_t.
47000         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
47001         Define in terms of long long int or int64_t or long int,
47002         not int64_t or int32_t.  This saves some compile-time testing.
47003         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
47004         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
47005         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
47006         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
47007         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
47008         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
47009         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
47010         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
47011         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
47012         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
47013         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47014         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47015         undef any previous version and define our own version, for
47016         simplicity and consistency with the new macros for types.
47017         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47018         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47019         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
47020         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
47021         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
47022         @WINT_T_SUFFIX@ to keep things simple here.
47023         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
47024         Simplify by assuming typical 8/16/32/64 host, since we're
47025         already doing that elsewhere anyway.
47026         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
47027         and assume long long int is 64 bits if available.  This
47028         speeds up 'configure'.
47029
47030 2006-07-01  Eric Blake  <ebb9@byu.net>
47031
47032         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
47033         Reported by Andreas Buening.
47034
47035 2006-07-01  Eric Blake  <ebb9@byu.net>
47036
47037         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
47038
47039 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
47040
47041         * lib/getaddrinfo.c: fixed typo
47042
47043 2006-06-29  Jim Meyering  <jim@meyering.net>
47044
47045         * modules/strftime (Maintainer): Add my name, since with the
47046         FPRINTFTIME changes strftime.c has forked from glibc.
47047
47048 2006-06-29  Eric Blake  <ebb9@byu.net>
47049
47050         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
47051
47052 2006-06-29  Eric Blake  <ebb9@byu.net>
47053
47054         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
47055
47056 2006-06-29  Eric Blake  <ebb9@byu.net>
47057
47058         * lib/stat_.h: New file.
47059
47060 2006-06-29  Eric Blake  <ebb9@byu.net>
47061
47062         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
47063         unused static function.
47064
47065 2006-06-29  Eric Blake  <ebb9@byu.net>
47066
47067         * doc/functions.texi (Function Portability): Document missing lstat
47068         on mingw.
47069
47070 2006-06-29  Eric Blake  <ebb9@byu.net>
47071
47072         * MODULES.html.sh: Add sys_stat.
47073         * modules/sys_stat: New module.
47074         * modules/mkstemp (Depends-on): Add sys_stat.
47075
47076 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47077
47078         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
47079
47080 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47081
47082         * m4/c-bs-a.m4: Removed.
47083
47084 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47085
47086         * lib/strftime.c: Assume strftime() exists.
47087
47088 2006-06-29  Derek Price  <derek@ximbiot.com>
47089
47090         * modules/c-bs-a: Removed - \a is C89.
47091         * MODULES.html.sh: Remove c-bs-a.
47092
47093 2006-06-29  Bruno Haible  <bruno@clisp.org>
47094
47095         * modules/wcwidth (License): Change to LGPL.
47096
47097 2006-06-28  Simon Josefsson  <jas@extundo.com>
47098
47099         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
47100         on _WIN32.
47101
47102         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
47103         getnameinfo.
47104
47105 2006-06-28  Simon Josefsson  <jas@extundo.com>
47106
47107         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
47108
47109 2006-06-28  Simon Josefsson  <jas@extundo.com>
47110
47111         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
47112         functions there.  It will succeed on Windows XP, but on Windows
47113         2000 and (presumably) earlier, it will fail, and use the internal
47114         re-implementation.
47115         (use_win32_p): New function.
47116         (getaddrinfo): Use strtoul on servname, to support numeric ports.
47117         Support AI_NUMERICSERV to disable getservbyname.
47118         (getnameinfo): New function, only supports
47119         NI_NUMERICHOST|NI_NUMERICSERV for now.
47120
47121         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
47122         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
47123         getnameinfo.
47124
47125 2006-06-28  Eric Blake  <ebb9@byu.net>
47126
47127         * modules/wcwidth: New file.
47128         * modules/mbchar (Depends-on): Add wcwidth.
47129         * modules/mbswidth (Depends-on): Add wcwidth.
47130         * MODULES.html.sh: Add wcwidth.
47131
47132 2006-06-28  Eric Blake  <ebb9@byu.net>
47133
47134         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
47135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
47136
47137 2006-06-28  Eric Blake  <ebb9@byu.net>
47138
47139         * lib/xvasprintf.h: Fix comments.
47140
47141 2006-06-28  Eric Blake  <ebb9@byu.net>
47142
47143         * lib/mbchar.h (wcwidth): Include wcwidth.h.
47144         * lib/mbswidth.c (wcwidth): Move from here...
47145         * lib/wcwidth.h: ...to this new file.
47146
47147 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47148
47149         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
47150
47151         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
47152         it's obsolete.
47153         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
47154
47155 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47156
47157         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
47158         Autoconf 2.60 says this stuff was obsolete.
47159
47160 2006-06-28  Bruno Haible  <bruno@clisp.org>
47161
47162         * modules/wcwidth (Files): Add m4/wchar_t.m4.
47163
47164 2006-06-28  Bruno Haible  <bruno@clisp.org>
47165
47166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
47167         gt_TYPE_WCHAR_T.
47168
47169 2006-06-28  Bruno Haible  <bruno@clisp.org>
47170
47171         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
47172         declaration for wcwidth.
47173         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
47174
47175 2006-06-28  Bruno Haible  <bruno@clisp.org>
47176
47177         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47178         (mkdir): Define using _mkdir.
47179
47180 2006-06-28  Bruno Haible  <bruno@clisp.org>
47181
47182         * lib/getaddrinfo.h: Fix POSIX URL.
47183         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47184         _WIN32.
47185         (use_win32_p): Make static.
47186         (getaddrinfo): Reject service name if it is empty or does not consist
47187         solely of decimal digits, or if its value is > 65535.
47188         (getnameinfo): Remove useless casts.
47189
47190 2006-06-27  Simon Josefsson  <jas@extundo.com>
47191
47192         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47193         Eggert and Martin Lambers.
47194
47195 2006-06-27  Simon Josefsson  <jas@extundo.com>
47196
47197         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47198         Eggert and Martin Lambers.
47199
47200 2006-06-27  Bruno Haible  <bruno@clisp.org>
47201
47202         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47203         result to 0, not to empty.
47204         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47205
47206 2006-06-27  Bruno Haible  <bruno@clisp.org>
47207
47208         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47209
47210 2006-06-26  Simon Josefsson  <jas@extundo.com>
47211
47212         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47213         present.
47214
47215 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47216
47217         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47218         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47219         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47220
47221 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47222
47223         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47224
47225 2006-06-26  Bruno Haible  <bruno@clisp.org>
47226
47227         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47228
47229 2006-06-26  Bruno Haible  <bruno@clisp.org>
47230
47231         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47232
47233 2006-06-26  Bruno Haible  <bruno@clisp.org>
47234
47235         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47236         SGI C compiler in pre-C99 mode.
47237         Suggested by Mark D. Baushke and Larry Jones.
47238
47239 2006-06-26  Bruno Haible  <bruno@clisp.org>
47240
47241         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47242         WCHAR_MAX.
47243         Reported by Mark D. Baushke and Larry Jones.
47244
47245 2006-06-26  Bruno Haible  <bruno@clisp.org>
47246
47247         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47248         in pre-C99 mode.
47249         Suggested by Mark D. Baushke and Larry Jones.
47250
47251 2006-06-23  Simon Josefsson  <jas@extundo.com>
47252             Bruno Haible  <bruno@clisp.org>
47253
47254         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47255         Emit mostlyclean-local rule.
47256         (func_emit_tests_Makefile_am): Likewise.
47257         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47258
47259 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47260
47261         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47262
47263 2006-06-23  Bruno Haible  <bruno@clisp.org>
47264
47265         * tests/test-stdint.c: Update to match ISO C 99 Technical
47266         Corrigendum 1.
47267
47268 2006-06-23  Bruno Haible  <bruno@clisp.org>
47269
47270         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47271
47272 2006-06-23  Bruno Haible  <bruno@clisp.org>
47273
47274         * lib/stdint_.h: Treat IRIX like OpenBSD.
47275
47276 2006-06-23  Bruno Haible  <bruno@clisp.org>
47277
47278         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47279         ISO C 99 Technical Corrigendum 1.
47280
47281 2006-06-22  Simon Josefsson  <jas@extundo.com>
47282
47283         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47284         MinGW.
47285
47286 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47287
47288         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47289         needed.  Some compiler complained about some of them.  Problem reported
47290         by Larry Jones in
47291         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47292
47293 2006-06-21  Simon Josefsson  <jas@extundo.com>
47294
47295         * tests/test-getaddrinfo.c: New file.
47296
47297         * modules/getaddrinfo-tests: New file.
47298
47299         * MODULES.html.sh: Add inet_pton.
47300
47301         * modules/inet_pton: New file.
47302
47303 2006-06-21  Simon Josefsson  <jas@extundo.com>
47304
47305         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47306         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47307         of using the (limited) gnulib implementation on Windows XP.
47308
47309         * m4/inet_pton.m4: New file.
47310
47311 2006-06-21  Simon Josefsson  <jas@extundo.com>
47312
47313         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47314         variable.
47315
47316         * lib/socket_.h: Don't define WINVER.
47317
47318         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47319         slightly modified to work in gnulib.
47320
47321 2006-06-21  Simon Josefsson  <jas@extundo.com>
47322
47323         * doc/gnulib.texi (Windows sockets): Add.
47324
47325 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47326
47327         * lib/read-file.c (fread_file): Start with buffer allocation of
47328         0 bytes rather than 1 byte; this simplifies the code.
47329         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47330         code to free buffer and save/restore errno.
47331         (internal_read_file): Remove unused local.
47332
47333 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47334
47335         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47336         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47337         Problem reported by Denis Excoffier in
47338         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47339
47340 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47341
47342         * modules/sys_socket, modules/socklen: Include sys/types since
47343         FreeBSD 4.x's sys/socket.h needs it.
47344
47345 2006-06-19  Simon Josefsson  <jas@extundo.com>
47346
47347         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47348
47349 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47350
47351         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47352
47353 2006-06-19  Bruno Haible  <bruno@clisp.org>
47354
47355         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47356         and FULL_PATH_INTTYPES_H in angle brackets.
47357         Reported by Mark D. Baushke <mdb@gnu.org>.
47358
47359 2006-06-17  Eric Blake  <ebb9@byu.net>
47360
47361         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47362         errno.
47363
47364 2006-06-17  Bruno Haible  <bruno@clisp.org>
47365
47366         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47367         <sys/inttypes.h>.
47368
47369 2006-06-17  Bruno Haible  <bruno@clisp.org>
47370
47371         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47372         whether errno is declared. Assume <errno.h> declares errno.
47373
47374 2006-06-17  Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47377
47378 2006-06-17  Bruno Haible  <bruno@clisp.org>
47379
47380         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47381         problem on Solaris 2.5.1.
47382
47383 2006-06-16  Eric Blake  <ebb9@byu.net>
47384
47385         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47386         * lib/unicodeio.c [!defined errno]: Likewise.
47387         * lib/strtol.c [!defined errno]: Likewise.
47388         * lib/strtod.c [!defined errno]: Likewise.
47389
47390 2006-06-15  Eric Blake  <ebb9@byu.net>
47391
47392         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47393
47394 2006-06-15  Eric Blake  <ebb9@byu.net>
47395
47396         * config/srclist.txt (ssize_t.m4): Lose sync.
47397
47398 2006-06-15  Bruno Haible  <bruno@clisp.org>
47399
47400         * modules/stdint (Files): Include m4/full-header-path.m4,
47401         m4/size_max.m4, m4/wchar_t.m4.
47402         (Makefile.am): Many more substitutions.
47403         * modules/stdint-tests: New file.
47404         * tests/test-stdint.c: New file.
47405
47406 2006-06-15  Bruno Haible  <bruno@clisp.org>
47407
47408         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47409         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47410         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47411         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47412         gl_CHECK_TYPE_SAME): New macros.
47413
47414 2006-06-15  Bruno Haible  <bruno@clisp.org>
47415
47416         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47417
47418 2006-06-15  Bruno Haible  <bruno@clisp.org>
47419
47420         * lib/stdint_.h: Rewritten to be fully auto-configured.
47421         Fixes bug on HP-UX/IA64.
47422
47423 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         * lib/getdate.y (__attribute__): Don't define if already defined.
47426         Problem reported by Larry Jones.
47427         * lib/utimens.c (__attribute__): Likewise.
47428
47429 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47430
47431         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47432         reported by Andreas Schwab.
47433
47434 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47435             Bruno Haible  <bruno@clisp.org>
47436
47437         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47438         check for the declaration of strnlen and a run test that exposes the
47439         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47440         rpl_strndup.
47441
47442 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47443             Bruno Haible  <bruno@clisp.org>
47444
47445         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47446
47447 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47448
47449         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47450         compile test, for Tru64 4.0D.
47451
47452 2006-05-28  Karl Berry  <karl@gnu.org>
47453
47454         * config/srclist.txt (printf-args.c): lose sync.
47455
47456 2006-05-26  Martin Lambers  <marlam@marlam.de>
47457
47458         * lib/getpass.c: Updates the test for the native W32 API, and adds
47459         missing includes, thus fixing compilation warnings.
47460
47461 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47462
47463         * lib/exclude.c (exclude_fnmatch): New function.
47464         (excluded_file_name): Call exclude_fnmatch.
47465         * lib/exclude.h (excluded_file_name): New prototype
47466
47467 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47468
47469         * lib/tempname.c (small_open, large_open): New macros.
47470         (__open, __open64) [!_LIBC]: Remove.
47471         (__gen_tempname): Use small_open and large_open instead of __open
47472         and __open64.  This fixes a portability bug on HP-UX 11.11i
47473         reported by Simon Wing-Tang in
47474         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47475
47476 2006-05-24  Bruno Haible  <bruno@clisp.org>
47477
47478         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47479         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47480         Reported by Thorsten Maerz <torte@netztorte.de> via
47481         Aaron Stone <aaron@serendipity.cx>.
47482
47483 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47484
47485         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47486         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47487         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47488         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47489         not really conditional on the cache.
47490         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47491
47492 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47493
47494         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47495         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47496         (my_usleep): Don't mishandle maximum value.
47497
47498 2006-05-19  Jim Meyering  <jim@meyering.net>
47499
47500         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47501
47502 2006-05-17  Bruno Haible  <bruno@clisp.org>
47503
47504         Cygwin portability.
47505         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47506
47507 2006-05-17  Bruno Haible  <bruno@clisp.org>
47508
47509         * lib/stdint_.h: Fix recognition of Cygwin.
47510
47511 2006-05-15  Bruno Haible  <bruno@clisp.org>
47512
47513         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47514         on libtool patch by Ralf Wildenhues.
47515
47516 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47517
47518         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47519         test for C99 conformance; (bool) 0.5 is an integer constant
47520         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47521         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47522
47523 2006-05-11  Simon Josefsson  <jas@extundo.com>
47524
47525         * m4/xvasprintf.m4: Fix obvious typo.
47526
47527 2006-05-11  Jim Meyering  <jim@meyering.net>
47528
47529         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47530         James Lemley.
47531
47532 2006-05-10  Simon Josefsson  <jas@extundo.com>
47533
47534         * lib/md4.c: Typo fix, update copyright years.
47535         (K1, K2): Don't use L because it turn computations into 64-bit on
47536         64-bit platforms.
47537
47538 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47539
47540         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47541         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47542         unwanted sign propagation, e.g., on hosts with 64-bit int.
47543         There still are some problems with reeelly weird theoretical hosts
47544         (e.g., 33-bit int) but it's not worth worrying about now.
47545         * lib/sha1.c (rol): Likewise.
47546         (K1, K2, K3, K4): Remove unnecessary L suffix.
47547
47548 2006-05-10  Bruno Haible  <bruno@clisp.org>
47549
47550         * lib/des.c: Cast to avoid warnings.
47551
47552 2006-05-09  Bruno Haible  <bruno@clisp.org>
47553
47554         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47555         (Depends-on): Depend also on xsize, stdarg.
47556         (configure.ac): Add gl_XVASPRINTF.
47557
47558 2006-05-09  Bruno Haible  <bruno@clisp.org>
47559
47560         * m4/xvasprintf.m4: New file.
47561
47562 2006-05-09  Bruno Haible  <bruno@clisp.org>
47563
47564         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47565         (EOVERFLOW): Define fallback value.
47566         (xstrcat): New function.
47567         (xvasprintf): Recognize the special case of a string concatenation.
47568
47569 2006-05-08  Eric Blake  <ebb9@byu.net>
47570
47571         * gnulib-tool (func_version): Base copyright year on CVS date.
47572         (func_emit_copyright_notice): New function.
47573         (func_emit_lib_Makefile_am): Use it.
47574         (func_emit_tests_Makefile_am): Likewise.
47575         (func_import): Likewise.
47576
47577 2006-05-08  Bruno Haible  <bruno@clisp.org>
47578
47579         * modules/stdarg: New file.
47580         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47581
47582 2006-05-08  Bruno Haible  <bruno@clisp.org>
47583
47584         * m4/stdarg.m4: New file, from GNU gettext.
47585
47586 2006-05-08  Bruno Haible  <bruno@clisp.org>
47587
47588         * config/srclist.txt (build-aux/config.rpath): different from latest
47589         release.
47590
47591 2006-05-08  Bruno Haible  <bruno@clisp.org>
47592
47593         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47594
47595 2006-05-05  Jim Meyering  <jim@meyering.net>
47596
47597         * m4/warning.m4: New file, derived from bison's file by the same name.
47598
47599 2006-05-03  Bruno Haible  <bruno@clisp.org>
47600
47601         * lib/stdint_.h: Shorter URL.
47602         * lib/inttypes.h: Likewise.
47603
47604 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47605
47606         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47607
47608 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47609
47610         * lib/verify.h: Document the internals better.  Most of this change
47611         was written by Bruno Haible.
47612
47613 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47614
47615         * doc/verify.texi: New file, partly based on a proposal by
47616         Bruno Haible.
47617
47618 2006-05-02  Bruno Haible  <bruno@clisp.org>
47619
47620         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47621         test from here...
47622         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47623
47624 2006-04-29  Bruno Haible  <bruno@clisp.org>
47625
47626         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47627         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47628
47629 2006-04-29  Bruno Haible  <bruno@clisp.org>
47630
47631         * gnulib-tool: Make --update option actually work.
47632
47633 2006-04-29  Bruno Haible  <bruno@clisp.org>
47634
47635         * doc/gcd.texi: New file.
47636         * doc/gnulib.texi: Include it.
47637
47638 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47639
47640         * lib/getdate.y (get_date): When adding relative date, start with the
47641         initial time, not with the result of the first mktime call.
47642
47643 2006-04-25  Bruno Haible  <bruno@clisp.org>
47644
47645         * gnulib-tool (func_import): Output the include directives in three
47646         blocks, sorted separately.
47647         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47648
47649 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47650
47651         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47652         to define main with arguments, for C++.  Reported by Eric Blake.
47653         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47654         Prefer 'int main ()' to 'int main (void)', for C++.
47655         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47656         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47657         for 'main', for C99 and C++.
47658
47659 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47660
47661         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47662         Don't assume that exit status -1 is valid.
47663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47664         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47665         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47666         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47667         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47668         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47669         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47670         functions can be used without declaring them, or that you can
47671         exit with status -1.
47672         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47673
47674 2006-04-24  Karl Berry  <karl@gnu.org>
47675
47676         * config/srclist.txt (longdouble.m4): sync lost.
47677
47678 2006-04-24  Eric Blake  <ebb9@byu.net>
47679
47680         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47681
47682 2006-04-24  Bruno Haible  <bruno@clisp.org>
47683
47684         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47685         poll() implementation in AIX.
47686         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47687
47688 2006-04-24  Bruno Haible  <bruno@clisp.org>
47689
47690         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47691         assigned exactly once.
47692
47693 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47694             Bruno Haible  <bruno@clisp.org>
47695
47696         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47697         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47698         for AM_CPPFLAGS.
47699
47700 2006-04-23  Bruno Haible  <bruno@clisp.org>
47701
47702         * modules/copy-file: Depend on unistd.
47703         * modules/execute: Likewise.
47704         * modules/fatal-signal: Likewise.
47705         * modules/findprog: Likewise.
47706         * modules/mkdtemp : Likewise.
47707         * modules/pipe: Likewise.
47708         * modules/wait-process: Likewise.
47709
47710 2006-04-23  Bruno Haible  <bruno@clisp.org>
47711
47712         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47713         condition was already detected.
47714         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47715
47716 2006-04-23  Bruno Haible  <bruno@clisp.org>
47717
47718         * lib/copy-file.c: Include <unistd.h> unconditionally.
47719         * lib/execute.c: Likewise.
47720         * lib/fatal-signal.c: Likewise.
47721         * lib/findprog.c: Likewise.
47722         * lib/mkdtemp.c: Likewise.
47723         * lib/pipe.h: Likewise.
47724         * lib/pipe.c: Likewise.
47725         * lib/wait-process.h: Likewise.
47726
47727 2006-04-23  Bruno Haible  <bruno@clisp.org>
47728
47729         * gnulib-tool (func_usage): Fix --import description. Document
47730         --update.
47731         (func_import): Create temporary file in a temporary directory, if
47732         --dry-run is specified. Silence errors from 'grep' when there are no
47733         m4 files in $m4dir.
47734         (func_create_testdir): Silence errors from 'grep' when there are no
47735         m4 files in $m4dir.
47736         Reported by Karl Berry <karl@freefriends.org>.
47737
47738 2006-04-20  Bruno Haible  <bruno@clisp.org>
47739
47740         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47741         one argument, so that the code will be portable to Autoconf 2.60.
47742         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47743         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47744         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47745
47746 2006-04-19  Derek Price  <derek@ximbiot.com>
47747             Eric Blake  <ebb9@byu.net>
47748
47749         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47750         rather than "/full/path.h".  Update comment to match.  Shorten &
47751         generalize m4_translit call via AS_TR_CPP.
47752
47753 2006-04-19  Derek Price  <derek@ximbiot.com>
47754             Eric Blake  <ebb9@byu.net>
47755
47756         * lib/inttypes.h: Correct grammar in comment.
47757
47758 2006-04-18  Derek Price  <derek@ximbiot.com>
47759             Paul Eggert  <eggert@cs.ucla.edu>
47760
47761         * modules/inttypes: New file.
47762         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47763
47764 2006-04-18  Derek Price  <derek@ximbiot.com>
47765             Paul Eggert  <eggert@cs.ucla.edu>
47766
47767         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47768         New files.
47769
47770 2006-04-18  Derek Price  <derek@ximbiot.com>
47771             Paul Eggert  <eggert@cs.ucla.edu>
47772
47773         * lib/inttypes.h: New file.
47774         * lib/strtoimax.c: Assume <inttypes.h>.
47775
47776 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47777
47778         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47779         isn't mounted.  Problem reported by Kir Kolyshkin.
47780
47781 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47782
47783         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47784         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47785         Derek R. Price.
47786         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47787         implementation.
47788
47789 2006-04-12  Eric Blake  <ebb9@byu.net>
47790
47791         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47792         is now done automatically by the corresponding Autoconf macro.
47793
47794 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47795
47796         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47797         time_r.h.
47798
47799 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47800
47801         Merge regex changes from libc, removing some of our
47802         POSIX-conformance changes that were rejected and redoing them in a
47803         less-intrusive way.
47804
47805         * lib/regcomp.c (re_compile_internal, init_dfa):
47806         Length arg is now size_t, not Idx.  All uses changed.
47807         (peek_token): Forward decl now says internal_function.
47808         (__re_error_msgid, __re_error_msgid_idx):
47809         Now static rather than extern with attribute_hidden.
47810         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47811         For some reason libc prefers K&R style defns for external functions.
47812         (regerror) [!defined _LIBC]: Likewise.
47813         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47814         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47815         (build_range_exp, build_collating_symbol):
47816         Use K&R-style defn.
47817         (re_compile_fastmap): Use '\0' to memset, not 0.
47818         (utf8_sb_map): Make the calculations more obvious.
47819         (init_dfa, parse_bracket_exp, build_charclass_op):
47820         Call calloc and cast result, as glibc does.
47821         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47822         (build_range_exp, build_collating_symbol):
47823         Now internal functions.
47824
47825         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47826
47827         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47828         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47829         Don't depend on VMS; depend on __VMS instead, for POSIX
47830         namespace cleanness.
47831         (regoff_t): Define to ssize_t, not long int.
47832
47833         Remove the REG_ macros named below.  Instead, make the old names
47834         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47835         __USE_GNU_REGEX.
47836         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47837         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47838         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47839         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47840         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47841         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47842         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47843         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47844         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47845         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47846         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47847         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47848         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47849         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47850         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47851         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47852         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47853         (REG_NREGS):
47854         Remove.  All uses replaced by the old RE_* names.
47855         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47856         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47857         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47858         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47859         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47860         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47861         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47862         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47863         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47864         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47865         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47866         Don't bother having these macros be independent of each others'
47867         values, since they no longer exist in the POSIX name space.
47868
47869         Rename the following member names back to their old names,
47870         unless !__USE_GNU_REGEX.  All uses changed back.
47871         (buffer): Renamed from re_buffer.
47872         (allocated): Renamed from re_allocated.
47873         (used): Renamed from re_used.
47874         (syntax): Renamed from re_syntax.
47875         (fastmap): Renamed from re_fastmap.
47876         (translate): Renamed from re_translate.
47877         (can_be_null): Renamed from re_can_be_null.
47878         (regs_allocated): Renamed from re_regs_allocated.
47879         (fastmap_accurate): Renamed from re_fastmap_accurate.
47880         (no_sub): Renamed from re_no_sub.
47881         (not_bol): Renamed from re_not_bol.
47882         (not_eol): Renamed from re_not_eol.
47883         (newline_anchor): Renamed from re_newline_anchor.
47884         (num_regs): Renamed from rm_num_regs.
47885         (start): Renamed from rm_start.
47886         (end): Renamed from rm_end.
47887
47888         (free_state): Move up a bit.
47889
47890         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47891         #define to be empty.
47892         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47893         when that is what is intended.
47894         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47895         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47896         (MAX): New macro.
47897         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47898         All uses changed back to re_malloc, etc.  It's now the caller's
47899         responsibility to check for overflow; all callers changed.
47900         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47901         (re_x2nrealloc): Remove.
47902         (free_state): Remove decl.
47903
47904         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47905         (re_set_registers, re_exec):
47906         Use K&R-style defn.
47907
47908         2006-01-31  Roland McGrath  <roland@redhat.com>
47909
47910         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47911         Reported by Mike Frysinger <vapier@gentoo.org>.
47912
47913         2006-01-15  Andreas Jaeger  <aj@suse.de>
47914
47915         [BZ #1950]
47916         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47917         build_wcs_upper_buffer change.
47918         (build_wcs_upper_buffer): Change return type.
47919
47920         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47921
47922         * lib/regex_internal.h: Include <stdint.h> if available.
47923
47924         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47925
47926         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47927
47928         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47929
47930         * lib/regcomp.c: Adjust for changed secondary hash function.
47931
47932         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47933
47934         * lib/regex.h: Pretty printing.
47935         Clean up namespace a bit.
47936
47937         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47938
47939         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47940         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47941
47942         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47943                     Ulrich Drepper  <drepper@redhat.com>
47944
47945         [BZ #1302]
47946         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47947         changed.
47948         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47949
47950         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47951
47952         [BZ #281]
47953         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47954         * lib/regcomp.c: Remove unnecessary uses of
47955         unsigned RE_TRANSLATE_TYPE.
47956         * lib/regex_internal.h: Likewise.
47957         * lib/regex_internal.c: Likewise.
47958         * lib/regexec.c: Likewise.
47959         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47960
47961         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47962
47963         * lib/regexec.c (find_recover_state): Remove unnecessary
47964         initialization.
47965         (transit_state_bkref): Make DFA a const pointer.
47966         (get_subexp): Likewise.
47967         (check_arrival): Likewise.
47968         (update_cur_sifted_state): Likewise.
47969         (re_search_internal): Likewise.
47970         (prune_impossible_nodes): Likewise.
47971         (acquire_init_state_context): Likewise.
47972         (proceed_next_node): Likewise.
47973         (set_regs): Likewise.
47974         (free_fail_stack_return): Likewise.
47975         (check_arrival_expand_ecl): Mark DFA parameter as const.
47976         (check_arrival_expand_ecl_sub): Likewise.
47977         (check_subexp_limits): Likewise.
47978         (sub_epsilon_src_nodes):  Likewise.
47979         (add_epsilon_src_nodes):  Likewise.
47980         (merge_state_array): Likewise.
47981         (update_regs): Likewise.
47982         (build_trtable): Likewise.
47983         (sift_states_backward): Mark MCTX parameter as const.
47984         (build_sifted_states): Likewise.
47985         (update_cur_sifted_state): Likewise.
47986         (sift_states_mkref): Likewise.
47987         (check_arrival_expand_ecl): Mark eclosure as const.
47988         (check_dst_limits_calc_pos_1): Likewise.
47989         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47990         pointer.
47991
47992         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47993
47994         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47995         (transit_state_sb): Likewise.
47996         (transit_state_mb): Likewise.
47997         (sift_states_iter_mb): Likewise.
47998         (check_arrival_add_next_nodes): Likewise.
47999         (check_node_accept_bytes): Change first parameter to pointer-to-const.
48000         [_LIBC] (re_search_2_stub): Use mempcpy.
48001
48002         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
48003         mbrtowc for very simple UTF-8 case.
48004
48005         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
48006         a pointer-to-const.
48007         (re_acquire_state_context): Likewise.
48008         * lib/regex_internal.h: Adjust prototypes.
48009
48010         * lib/regex.c: Prevent using C++ compilers.
48011
48012         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
48013         (re_acquire_state_context): Likewise.
48014
48015 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48016
48017         * modules/regex (Depends-on): Add ssize_t.
48018
48019 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48020
48021         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
48022         translation table.
48023
48024 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48025
48026         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
48027
48028 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
48029             Bruno Haible  <bruno@clisp.org>
48030
48031         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
48032         <sys/types.h> and <inttypes.h>.
48033
48034 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48035
48036         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
48037         `__error_t_defined', so argp.h will not typedef the former.
48038
48039 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48040
48041         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
48042         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
48043         glibc names.  Even if glibc is changed to conform to POSIX, the
48044         traditional names will be available anyway, since regex depends on
48045         the extensions module.  Also, fix a longstanding typo in the
48046         implementation of Spencer ERE test #75 from grep 2.3.  Problems
48047         reported by Emanuele Giaquinta.  Also, change sense of cached
48048         variable, so that the message makes sense.
48049
48050 2006-03-24  Simon Josefsson  <jas@extundo.com>
48051
48052         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
48053         including some doc fixes.
48054         (base64_encode_alloc): Fix +1 bug on allocation failures.
48055
48056 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48057
48058         * lib/base64.c (base64_encode): Do not read past end of array with
48059         unsanitized input on systems with CHAR_BIT > 8.
48060
48061 2006-03-24  Eric Blake  <ebb9@byu.net>
48062
48063         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
48064
48065 2006-03-22  Karl Berry  <karl@gnu.org>
48066
48067         * config/srclist.txt (*setenv.[ch]): get from coreutils.
48068         * config/srclistvars.sh (COREUTILS): new var.
48069
48070 2006-03-17  Jim Meyering  <jim@meyering.net>
48071
48072         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
48073         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
48074
48075 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48076
48077         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
48078         no longer needs it.  Instead, check that regoff_t is as least
48079         as wide as ptrdiff_t.
48080
48081         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
48082         so that our regex.h stays compatible with the installed regex.
48083         This is helpful for installers who configure --without-included-regex.
48084         Problem reported by Emanuele Giaquinta.
48085
48086 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48087
48088         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
48089         Typedef to long int, not to off_, as POSIX will likely change
48090         in that direction.
48091
48092 2006-03-15  Eric Blake  <ebb9@byu.net>
48093
48094         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
48095
48096 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48097
48098         * lib/argp-help.c (validate_uparams): Fix typo
48099         * lib/argp-parse.c (argp_default_options): Consistently begin help
48100         messages with a lowercase letter.
48101
48102 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
48103
48104         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
48105         overrun buffers and shouldn't be used (much as gets shouldn't be
48106         used).
48107         * lib/time_r.c (asctime_r, ctime_r): Likewise.
48108
48109 2006-03-08  Simon Josefsson  <jas@extundo.com>
48110
48111         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
48112         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48113
48114 2006-03-08  Simon Josefsson  <jas@extundo.com>
48115
48116         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
48117         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48118
48119 2006-03-08  Simon Josefsson  <jas@extundo.com>
48120
48121         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
48122         signal that configure disabled the device.
48123
48124 2006-03-08  Simon Josefsson  <jas@extundo.com>
48125
48126         * build-aux/maint.mk: Fix refresh-po, to handle no translated
48127         languages.
48128
48129 2006-03-07  Simon Josefsson  <jas@extundo.com>
48130
48131         * modules/getopt (Depends-on): Add unistd.
48132
48133         * modules/unistd: New file.
48134
48135 2006-03-07  Simon Josefsson  <jas@extundo.com>
48136
48137         * modules/gc-random: New file.
48138
48139 2006-03-07  Simon Josefsson  <jas@extundo.com>
48140
48141         * m4/unistd_h.m4: New file.
48142
48143 2006-03-07  Simon Josefsson  <jas@extundo.com>
48144
48145         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
48146         test to be side-effect free by storing the result in the cache
48147         variable gl_cv_lib_readline, and moving the assignment of
48148         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
48149         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48150
48151 2006-03-07  Simon Josefsson  <jas@extundo.com>
48152
48153         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
48154         error on missing devices (the functions will return an error).
48155
48156         * m4/gc.m4: Move random stuff to gc-random.m4
48157
48158 2006-03-07  Simon Josefsson  <jas@extundo.com>
48159
48160         * lib/unistd_.h: New file.
48161
48162 2006-03-07  Simon Josefsson  <jas@extundo.com>
48163
48164         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
48165
48166 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48167
48168         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
48169         Problem reported by Juan Manuel Guerrero.
48170
48171 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48172
48173         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
48174         the unistd module.
48175         * lib/getlogin_r.c: Likewise.
48176         * lib/getlogin_r.h: Likewise.
48177         * lib/glob.c: Likewise.
48178         * lib/pagealign_alloc.c: Likewise.
48179         * lib/unistd_.h: Remove; no longer needed.
48180
48181 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48182
48183         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48184         Add unistd.
48185         * modules/c-stack (Depends-on): Add unistd.
48186         * modules/getlogin_r: Likewise.
48187         * modules/glob: Likewise.
48188         * modules/pagealign_alloc: Likewise.
48189         * modules/unistd (Files): Remove lib/unistd_.h.
48190         (EXTRA_DIST): Remove.
48191         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48192         need unistd_.h.
48193         (MOSTLYCLEANFILES): Remove unistd.h-t.
48194
48195 2006-03-03  Simon Josefsson  <jas@extundo.com>
48196
48197         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48198
48199 2006-03-03  Simon Josefsson  <jas@extundo.com>
48200
48201         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48202         libidn and bison.
48203
48204 2006-03-03  Simon Josefsson  <jas@extundo.com>
48205
48206         * build-aux/maint.mk: Add indent target.
48207
48208 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48209
48210         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48211         our replacement poll.h in any case, to avoid a differing
48212         declaration from a system header.  Seen on AIX.
48213
48214 2006-03-01  Simon Josefsson  <jas@extundo.com>
48215
48216         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48217         <kasal@ucw.cz>.
48218
48219 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48220
48221         * modules/gettime (Depends-on): Add extensions module.
48222         * modules/nanosleep (Depends-on): Likewise.
48223         * modules/settime (Depends-on): Likewise.
48224
48225 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48226
48227         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48228         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48229         pedantically.
48230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48231         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48232
48233         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48234         not "==".  Reported by Ralf Wildenhues.
48235
48236 2006-03-01  Karl Berry  <karl@gnu.org>
48237
48238         * doc/Copyright/request-*: new files, synced from gnuorg.
48239
48240 2006-03-01  Karl Berry  <karl@gnu.org>
48241
48242         * config/srclist.txt (Copyright/*): new entries.
48243
48244 2006-02-28  Simon Josefsson  <jas@extundo.com>
48245
48246         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48247
48248 2006-02-27  Simon Josefsson  <jas@extundo.com>
48249
48250         * lib/base64.h: Indent #define's.  From Jim Meyering
48251         <jim@meyering.net>.
48252
48253 2006-02-27  Jim Meyering  <jim@meyering.net>
48254
48255         Revert the change of 2006-02-24, so these files can continue
48256         to be sync'd from gettext.
48257         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48258         of `config.h'.
48259
48260 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48261
48262         * modules/intprops: New file.
48263         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48264         Add intprops.
48265         * modules/getloadavg (Files): Remove lib/intprops.h.
48266         (Depends-on): Add intprops.
48267         * modules/human: Likewise.
48268         * modules/inttostr: Likewise.
48269         * modules/openat: Likewise.
48270         * modules/sig2str: Likewise.
48271         * modules/userspec: Likewise.
48272         * modules/utimecmp: Likewise.
48273         * modules/xnanosleep: Likewise.
48274         * modules/xstrtol: Likewise.
48275
48276 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48277
48278         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48279         * modules/lock-tests (TESTS): Use $(EXEEXT).
48280         * modules/tls-tests: Likewise.
48281         * modules/argp-tests: Likewise.
48282         (check_PROGRAMS): New var, replacing...
48283         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48284
48285 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48286
48287         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48288         `config.h'.
48289
48290 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48291
48292         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48293
48294 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48295
48296         Sync from coreutils.
48297         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48298         gl_CHDIR_SAFER.
48299
48300 2006-02-22  Jim Meyering  <jim@meyering.net>
48301
48302         Sync from coreutils.
48303         * m4/chdir-safer.m4: New file.
48304
48305 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48306
48307         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48308         AT_FDCWD exceeds INT_MAX.
48309         * lib/openat.h (AT_FDCWD): Likewise.
48310
48311 2006-02-17  Eric Blake  <address@hidden>
48312
48313         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48314
48315 2006-02-16  Simon Josefsson  <jas@extundo.com>
48316
48317         * modules/getaddrinfo (Depends-on): Add sys_socket.
48318
48319 2006-02-15  Simon Josefsson  <jas@extundo.com>
48320
48321         * build-aux/maint.mk: Add dsyntax-check rule.
48322
48323 2006-02-15  Eric Blake  <ebb9@byu.net>
48324
48325         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48326         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48327         'present but cannot compile' warnings on cygwin.
48328         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48329         use ws2tcpip.h if sys/socket.h works.
48330         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48331         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48332
48333 2006-02-14  Simon Josefsson  <jas@extundo.com>
48334
48335         * modules/maintainer-makefile (Files): Rename.
48336
48337         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48338         and (the local) Makefile.cfg to maint-cfg.mk.
48339
48340         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48341         to the latter.
48342
48343         * modules/maintainer-makefile: New module.
48344
48345         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48346         severaly stripped to make it possible to build it up from scratch
48347         with reliable tests.
48348
48349         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48350         fixes to permit overriding the default actions when configure and
48351         makefile are not available.
48352
48353 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48354
48355         Sync from coreutils.
48356         * modules/lstat (Depends-on): Don't depend on xalloc.
48357         (License): Change from GPL to LGPL, since this is now simply a
48358         replacement for a libc function.
48359
48360 2006-02-14  Jim Meyering  <jim@meyering.net>
48361
48362         Sync from coreutils.
48363
48364         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48365         failure on deficient systems, and simplify gnulib lgpl dependencies.
48366         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48367         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48368
48369         * lib/xalloc-die.c: Remove unused definition of N_.
48370
48371 2006-02-14  Jim Meyering  <jim@meyering.net>
48372
48373         Sync from coreutils.
48374         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48375         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48376         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48377         double-quote uses of that variable, to accommodate the rare case in
48378         which getmntent is available in none of the libraries checked.  This
48379         happens at least on FreeBSD 5.0.
48380
48381 2006-02-13  Simon Josefsson  <jas@extundo.com>
48382
48383         * gnulib-tool (Usage): Fix --import, from
48384         karl@freefriends.org (Karl Berry).
48385
48386 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48387
48388         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48389
48390 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48391
48392         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48393         "autoupdate" on 2005-12-12.
48394
48395 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48396
48397         * modules/closeout (Depends-on): Remove atexit.
48398
48399 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48400
48401         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48402         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48403
48404 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48405
48406         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48407         __EXTENSIONS__ if this causes compilation to fail.  Problem
48408         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48409         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48410
48411 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48412
48413         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48414         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48415         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48416         All uses changed.
48417
48418 2006-01-26  Simon Josefsson  <jas@extundo.com>
48419
48420         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48421         prototype is visible on mingw32.
48422
48423         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48424         for mingw32.
48425
48426         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48427         mingw32).
48428
48429 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48430
48431         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48432         attempt to open for write; this always fails, at least on POSIX
48433         hosts.  This reinstates the 2006-01-09 change, which was
48434         inadvertently removed.
48435
48436 2006-01-26  Bruno Haible  <bruno@clisp.org>
48437
48438         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48439         Reported by Paul Eggert.
48440
48441 2006-01-26  Bruno Haible  <bruno@clisp.org>
48442             Paul Eggert  <eggert@cs.ucla.edu>
48443
48444         * lib/stdbool_.h (_Bool)
48445         [(! (defined __cplusplus || defined __BEOS__)
48446           && !defined __GNUC__
48447           && !(defined __HP_cc || defined __xlc__
48448                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48449                || defined __sgi))]:
48450         #define to signed char in these cases too; this simplifies
48451         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48452         etc., separately) and makes it more conservative.
48453
48454 2006-01-25  Simon Josefsson  <jas@extundo.com>
48455
48456         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48457         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48458         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48459
48460 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48461
48462         * lib/argp-namefrob.h: Bugfix. Remove stray #
48463
48464 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48465
48466         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48467         so that we test the test.
48468         Check for yet another HP-UX cc bug involving *bool |= bool.
48469
48470 2006-01-25  Karl Berry  <karl@gnu.org>
48471
48472         * config/srclist.txt (vasnprintf.c): sync lost.
48473
48474 2006-01-25  Jim Meyering  <jim@meyering.net>
48475
48476         Sync from the stable (b5) branch of coreutils:
48477
48478         * lib/fts.c (fts_children): Don't let close() clobber errno from
48479         failed fchdir().
48480
48481         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48482         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48483         a dangling symlink.  That can also happen at least for ELOOP.
48484         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48485         FYI, this bug predates the inclusion of fts.c in coreutils.
48486
48487         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48488         in their own block, so pre-c99 compilers don't object.
48489
48490         Avoid the double-free (first in fts_read, second in fts_close) that
48491         would occur when an `active' directory is made inaccessible (e.g.,
48492         via chmod a-x) during a traversal.
48493         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48494         before returning.  Reproduce this failure by
48495         mkdir -p a/b; cd a; chmod a-x . b
48496         Reported by Stavros Passas.
48497
48498 2006-01-25  Jim Meyering  <jim@meyering.net>
48499
48500         * lib/fileblocks.c: Remove more useless parentheses.
48501         * lib/readutmp.h: Likewise.
48502
48503 2006-01-25  Bruno Haible  <bruno@clisp.org>
48504
48505         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48506         warnings.
48507         Reported by Paul Eggert.
48508
48509 2006-01-25  Bruno Haible  <bruno@clisp.org>
48510
48511         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48512         rid of a trap command. For Solaris sh.
48513         Reported by Mark D. Baushke <mdb@gnu.org>.
48514
48515 2006-01-24  Simon Josefsson  <jas@extundo.com>
48516
48517         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48518         Bruno.
48519
48520 2006-01-24  Karl Berry  <karl@gnu.org>
48521
48522         * config/srclist.txt (argp-namefrob.h): sync lost.
48523
48524 2006-01-24  Jim Meyering  <jim@meyering.net>
48525
48526         * modules/openat (Files): Add lib/intprops.h.
48527         From Mark D. Baushke.
48528
48529 2006-01-24  Jim Meyering  <jim@meyering.net>
48530
48531         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48532         Reported by Mark D. Baushke.
48533
48534 2006-01-24  Jim Meyering  <jim@meyering.net>
48535
48536         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48537
48538 2006-01-24  Bruno Haible  <bruno@clisp.org>
48539
48540         * modules/strnlen (Maintainer): Change from glibc to all.
48541
48542 2006-01-24  Bruno Haible  <bruno@clisp.org>
48543
48544         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48545         Patch by Paul Eggert.
48546
48547 2006-01-24  Bruno Haible  <bruno@clisp.org>
48548
48549         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48550         already has it.
48551         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48552         2005-11-26.
48553
48554         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48555         'signed char' to avoid problems with the built-in _Bool type.
48556         Reported by Paul Eggert on 2005-11-26.
48557
48558 2006-01-24  Bruno Haible  <bruno@clisp.org>
48559
48560         * gnulib-tool (func_import): Avoid constructing complicated sed
48561         expressions inside backquote.
48562         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48563
48564 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48565
48566         These changes imported from libc.
48567         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48568         test and two separate function calls.
48569         * lib/strndup.c (__strndup): Add libc_hidden_def.
48570
48571 2006-01-23  Simon Josefsson  <jas@extundo.com>
48572
48573         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48574         Remove the test_*_SOURCES variable: automake infers it by default.
48575         * modules/tls-tests: Likewise.
48576
48577 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48578
48579         Work around porting bugs reported by Dieter in
48580         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48581         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48582         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48583         Include "getopt.h" first, to check interface.
48584         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48585         !HAVE_DECL_GETENV.
48586         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48587         (__strndup): Revert to K&R-style function dfns, the glibc style.
48588         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48589         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48590         Include strnlen.h first, to get prototype properly.
48591         (strnlen): Renamed from __strnlen.
48592         Remove weak alias.
48593
48594 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48595
48596         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48597
48598 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48599
48600         * config/srclist.txt: Adjust to reflect glibc reorganization.
48601         This affects only comments.
48602
48603 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48604
48605          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48606          Reported by Bruce Korb <bkorb@gnu.org>.
48607
48608 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48609
48610         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48611         to pacify gcc -Wswitch-default.
48612
48613 2006-01-22  Bruno Haible  <bruno@clisp.org>
48614
48615         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48616         temporary buffer for sprintf, take into account the precision also
48617         for 'd', 'i', 'u', 'o', 'x', 'X'.
48618
48619 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48620
48621         * modules/argp-tests: New module
48622         * tests/test-argp.c: New file
48623         * tests/test-argp-2.sh: New file
48624
48625 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48626
48627         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48628         (__argp_base_name): Removed
48629         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48630         typo.
48631         (__argp_base_name): Provide macro definition or extern declaration
48632         depending on the configuration
48633
48634 2006-01-20  Simon Josefsson  <jas@extundo.com>
48635
48636         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48637
48638 2006-01-20  Simon Josefsson  <jas@extundo.com>
48639
48640         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48641
48642 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48643
48644         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48645         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48646         Suggested by Bruno Haible.
48647
48648 2006-01-20  Karl Berry  <karl@gnu.org>
48649
48650         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48651         until changes propagate, I guess.
48652
48653 2006-01-19  Simon Josefsson  <jas@extundo.com>
48654
48655         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48656
48657 2006-01-19  Simon Josefsson  <jas@extundo.com>
48658
48659         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48660
48661 2006-01-19  Simon Josefsson  <jas@extundo.com>
48662
48663         * gnulib-tool: Set check_PROGRAMS.
48664
48665         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48666         modules/des-tests, modules/gc-arcfour-tests,
48667         modules/gc-arctwo-tests, modules/gc-des-tests,
48668         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48669         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48670         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48671         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48672         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48673         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48674         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48675         test_*_SOURCES.
48676
48677 2006-01-18  Simon Josefsson  <jas@extundo.com>
48678
48679         * modules/socklen (Depends-on): Depend on sys_socket.
48680
48681 2006-01-18  Simon Josefsson  <jas@extundo.com>
48682
48683         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48684         modules/des-tests, modules/gc-arcfour-tests,
48685         modules/gc-arctwo-tests, modules/gc-des-tests,
48686         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48687         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48688         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48689         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48690         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48691         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48692         $(EXEEXT) to automake TESTS variable, for mingw32.
48693
48694 2006-01-17  Simon Josefsson  <jas@extundo.com>
48695
48696         * modules/socklen (Include): Need sys/socket.h.
48697
48698 2006-01-17  Bruno Haible  <bruno@clisp.org>
48699
48700         * modules/ssize_t (Include): Add <sys/types.h>.
48701
48702 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48703
48704         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48705         it's not portable and it doesn't work with cross-compiles.
48706         Problem reported by Bruno Haible.  Fix missing-$ typo in
48707         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48708         -zignore from being used with Sun's C compiler.
48709
48710 2006-01-12  Simon Josefsson  <jas@extundo.com>
48711
48712         * lib/base64.c: Fix warning, reported by Bruno Haible
48713         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48714
48715 2006-01-12  Bruno Haible  <bruno@clisp.org>
48716
48717         * modules/ldd: New file.
48718         * build-aux/ldd.sh.in: New file.
48719         * MODULES.html.sh (Support for building libraries and executables): Add
48720         ldd.
48721
48722 2006-01-12  Bruno Haible  <bruno@clisp.org>
48723
48724         * m4/ldd.m4: New file.
48725
48726 2006-01-12  Bruno Haible  <bruno@clisp.org>
48727
48728         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48729         endless loop while replacing $auxdir with build-aux.
48730
48731 2006-01-11  Simon Josefsson  <jas@extundo.com>
48732
48733         * lib/stdint_.h (SIZE_MAX): Add missing (.
48734
48735 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48736
48737         Sync from coreutils.
48738         * lib/md5.c: Fix commentary typos.
48739         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48740         * lib/md5.h (__attribute__): Remove; unused.
48741         * lib/sha1.c: Fix commentary to match md5 better.
48742         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48743         so that we don't need to worry about alignment.  All uses changed.
48744         This merges the 2005-10-28 md5 change into sha1.
48745
48746 2006-01-11  Jim Meyering  <jim@meyering.net>
48747
48748         Sync from coreutils.
48749         * lib/md5.c (OP): Fix spacing.
48750
48751 2006-01-11  Bruno Haible  <bruno@clisp.org>
48752
48753         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48754         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48755         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48756
48757 2006-01-11  Bruno Haible  <bruno@clisp.org>
48758
48759         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48760         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48761         the "early" section as well.
48762
48763 2006-01-11  Bruno Haible  <bruno@clisp.org>
48764
48765         Avoid "ar: no archive members specified" error on MacOS X.
48766         * gnulib-tool (func_modules_add_dummy): New function.
48767         (func_import, func_create_testdir): Invoke it.
48768
48769 2006-01-11  Bruno Haible  <bruno@clisp.org>
48770
48771         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48772         with $auxdir in AC_CONFIG_FILES statements.
48773
48774 2006-01-11  Bruno Haible  <bruno@clisp.org>
48775
48776         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48777         Initialize also noinst_HEADERS to empty.
48778
48779 2006-01-11  Bruno Haible  <bruno@clisp.org>
48780
48781         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48782         variables.
48783         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48784         autoreconf.
48785
48786 2006-01-11  Bruno Haible  <bruno@clisp.org>
48787
48788         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48789         overridable by the user.
48790         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48791
48792 2006-01-10  Simon Josefsson  <jas@extundo.com>
48793
48794         * modules/sys_socket: New file.
48795
48796 2006-01-10  Simon Josefsson  <jas@extundo.com>
48797
48798         * m4/sys_socket_h.m4: New file.
48799
48800 2006-01-10  Simon Josefsson  <jas@extundo.com>
48801
48802         * lib/socket_.h: New file.
48803
48804 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48805
48806         * modules/readutmp (Maintainer): Add myself.
48807
48808 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48809
48810         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48811         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48812         People who are still concerned with buggy memcmp implementations
48813         can invoke gl_FUNC_MEMCMP themselves.
48814
48815 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48816
48817         * lib/regex_internal.h (BITSET_WORD_BITS):
48818         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48819         preprocessor mishandles large unsigned values as if they were signed.
48820         Problem reported by Claudio Fontana in
48821         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48822
48823 2006-01-10  Jim Meyering  <jim@meyering.net>
48824
48825         Avoid the double-free (first in fts_read, second in fts_close) that
48826         would occur when an `active' directory is made inaccessible (e.g.,
48827         via chmod a-x) during a traversal.
48828         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48829         before returning.  Reproduce this failure by
48830         mkdir -p a/b; cd a; chmod a-x . b
48831         Reported by Stavros Passas.
48832
48833         Sync from coreutils.
48834         * lib/sha1.c: Tweak grammar in a comment.
48835
48836 2006-01-10  Jim Meyering  <jim@meyering.net>
48837
48838         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48839         Patch by Joerg Sonnenberger.
48840
48841 2006-01-10  Bruno Haible  <bruno@clisp.org>
48842
48843         * modules/readutmp: Depend on module free.
48844         * modules/strtok_r: Depend on module restrict.
48845
48846 2006-01-10  Bruno Haible  <bruno@clisp.org>
48847
48848         * modules/gettext (configure.ac): Add an invocation of
48849         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48850
48851 2006-01-10  Bruno Haible  <bruno@clisp.org>
48852
48853         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48854         Reported by Werner Lemberg <wl@gnu.org>.
48855
48856 2006-01-10  Bruno Haible  <bruno@clisp.org>
48857
48858         * lib/localcharset.c: Update from GNU gettext.
48859
48860 2006-01-10  Bruno Haible  <bruno@clisp.org>
48861
48862         * lib/argp.h (__const): Remove macro. Use const instead.
48863         * lib/argp-fmtstream.h (__const): Likewise.
48864         * lib/glob_.h (__const): Remove macro.
48865         * lib/glob-libc.h: Use const instead of __const.
48866
48867 2006-01-10  Bruno Haible  <bruno@clisp.org>
48868
48869         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48870         variable.
48871         Needed to avoid an automake error regarding the 'gettext' module.
48872
48873 2006-01-09  Simon Josefsson  <jas@extundo.com>
48874
48875         * modules/inet_ntop (Depends-on): Add restrict.
48876
48877 2006-01-09  Simon Josefsson  <jas@extundo.com>
48878
48879         * modules/gc-rijndael-tests (License): Put under LGPL.
48880
48881         * modules/gc-des-tests (License): Likewise.
48882
48883         * modules/gc-arcfour-tests (License): Likewise.
48884
48885         * modules/gc-arctwo-tests (License): Likewise.
48886
48887         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48888
48889         * modules/gc-hmac-sha1-tests (Files): Likewise.
48890
48891         * modules/gc-hmac-md5-tests (License): Likewise.
48892
48893         * modules/gc-sha1-tests (License): Likewise.
48894
48895         * modules/gc-md5-tests (License): Likewise.
48896
48897         * modules/gc-md4-tests (License): Likewise.
48898
48899         * modules/gc-md2-tests (License): Likewise.
48900
48901         * modules/gc-tests (License): Likewise.
48902
48903         * modules/des-tests (License): Likewise.
48904
48905         * modules/md4-tests (License): Likewise.
48906
48907         * modules/md2-tests (License): Likewise.
48908
48909 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48910
48911         Sync from coreutils:
48912
48913         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48914         * modules/lib-ignore: New file.
48915         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48916         chdir-safer.m4, lchmod.m4.
48917         * modules/openat: Add mkdirat.c, openat-priv.h.
48918
48919 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48920
48921         Sync from coreutils.
48922         * m4/lib-ignore.m4: New file.
48923         * m4/lchmod.m4: New file.
48924
48925 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48926
48927         Sync from coreutils.
48928         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48929         for write access: POSIX says that must fail.
48930         * lib/fts.c (diropen): Likewise.
48931         * lib/save-cwd.c (save_cwd): Likewise.
48932         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48933         well, for minor improvements on hosts that lack O_DIRECTORY.
48934         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48935         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48936         Fall back on chown if open failed with EACCES.
48937
48938         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48939         Report an error at compile-time if only a 1-second nominal clock
48940         resolution is found.
48941
48942         * lib/lchmod.h: New file.
48943         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48944         (make_dir_parents): Use lchown rather than chown, and
48945         lchmod rather than chmod.
48946
48947         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48948         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48949         "proc" reported by n0dalus.
48950
48951         * lib/mountlist.c: Include <limits.h>.
48952         (dev_from_mount_options)
48953         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48954         New function.  It no longer assumes "dev=" has the System V meaning
48955         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48956         (read_file_system_list)
48957         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48958         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48959         dev= in that case.
48960
48961         * lib/posixtm.h (PDS_PRE_2000): New macro.
48962         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48963         allow_century.  All usages changed.  Reject dates outside the range
48964         1969-1999 if PDS_PRE_2000 is used.
48965
48966 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48967
48968         Sync from coreutils.
48969         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48970         (Time of day items): Mention the possibility of leap seconds.
48971         Problem reported by Dr. David Alan Gilbert.
48972
48973 2006-01-09  Jim Meyering  <jim@meyering.net>
48974
48975         Sync from coreutils.
48976
48977         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48978
48979         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48980
48981         * lib/modechange.c (mode_compile): Reject an invalid mode string
48982         that starts with an octal digit.  From Andreas Gruenbacher.
48983
48984         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48985         and dup to open_safer and dup_safer, respectively.
48986         (openat_permissive): Fix typo in comment.
48987
48988         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48989         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48990         (_): Remove; no longer needed.
48991         (openat): Renamed from rpl_openat; no need for rpl_openat
48992         since openat.h renames openat for us.
48993         Replace most of the body with a call to openat_permissive,
48994         to avoid duplicate code.
48995         Port to (probably hypothetical) environments were mode_t is
48996         wider than int.
48997         (openat_permissive): Require mode arg, so that we can check
48998         types better.  Put it just after flags.  Change cwd failure
48999         indicator from pointer-to-bool to pointer-to-errno-value.
49000         All callers changed.
49001         Invoke openat_save_fail and/or openat_restore_fail if
49002         cwd_errno is null, so that openat can call us.
49003         (openat_permissive, fdopendir, fstatat, unlinkat):
49004         Simplify errno handling to avoid some duplicate code,
49005         as it's OK to set errno on success.
49006         * lib/openat.h: Revamp code so that function macros depend on
49007         __OPENAT_PREFIX only, not also on AT_FDCWD.
49008         (openat_ro): Remove.  Caller changed to use openat_permissive.
49009         (openat_permissive): Now a macro, if not a function.
49010         (openat_restore_fail, openat_save_fail): Now always functions,
49011         since mkdirat needs them even if __OPENAT_PREFIX is defined.
49012
49013         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
49014         and openat.c.
49015         * lib/mkdirat.c: Include openat-priv.h.
49016         Remove definitions of macros defined therein.
49017         * lib/openat.c: Likewise.
49018
49019         * lib/mkdirat.c (mkdirat): New file and function.
49020         * lib/openat.h (mkdirat): Declare.
49021
49022         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
49023
49024         * lib/openat.h (openat_permissive): Declare.
49025         (openat_ro): Define.
49026
49027         * lib/openat.c (EXPECTED_ERRNO): New macro.
49028         (openat_permissive): New function -- used in remove.c rewrite.
49029         (all functions): Set errno just before returning, only if there
49030         was an actual failure.
49031         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
49032
49033         Emulate openat-family functions using Linux's procfs, if possible.
49034         Idea and some code based on Ulrich Drepper's glibc changes.
49035
49036         * lib/openat.c: (BUILD_PROC_NAME): New macro.
49037         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
49038         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
49039         before falling back on save_cwd and restore_cwd.
49040         (fdopendir, fstatat, unlinkat): Likewise.
49041
49042         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
49043         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
49044
49045         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
49046         as second argument to va_arg.  Otherwise, some versions of gcc
49047         warn that `if this code is reached, the program will abort'.
49048
49049 2006-01-09  Jim Meyering  <jim@meyering.net>
49050
49051         Sync from coreutils.
49052         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
49053         Require openat-priv.h.
49054
49055 2006-01-09  Bruno Haible  <bruno@clisp.org>
49056
49057         * modules/strnlen (Include): Use strnlen.h.
49058
49059 2006-01-09  Bruno Haible  <bruno@clisp.org>
49060
49061         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
49062
49063 2006-01-09  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/sysexit_.h (EX_OK): New macro.
49066         Suggested by Martin Lambers <marlam@marlam.de>.
49067
49068 2006-01-09  Bruno Haible  <bruno@clisp.org>
49069
49070         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
49071         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
49072
49073 2006-01-09  Bruno Haible  <bruno@clisp.org>
49074
49075         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
49076         numbers.
49077
49078 2006-01-09  Bruno Haible  <bruno@clisp.org>
49079
49080         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
49081         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
49082         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
49083         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
49084
49085 2006-01-09  Bruno Haible  <bruno@clisp.org>
49086
49087         * build-aux/javacomp.sh.in: New file, moved from lib/.
49088         * modules/javacomp-script (Files): Update.
49089         (configure.ac): Add AC_CONFIG_FILES invocation.
49090         (EXTRA_DIST): Remove variable.
49091
49092         * build-aux/javaexec.sh.in: New file, moved from lib/.
49093         * modules/javaexec (Files): Update.
49094         (configure.ac): Add AC_CONFIG_FILES invocation.
49095         (EXTRA_DIST): Remove javaexec.sh.in.
49096
49097         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
49098         * modules/csharpcomp-script (Files): Update.
49099         (configure.ac): Add AC_CONFIG_FILES invocation.
49100         (EXTRA_DIST): Remove variable.
49101
49102         * build-aux/csharpexec.sh.in: New file, moved from lib/.
49103         * modules/csharpexec (Files): Update.
49104         (configure.ac): Add AC_CONFIG_FILES invocation.
49105         (EXTRA_DIST): Remove csharpexec.sh.in.
49106
49107 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49108
49109         Sync from coreutils.
49110
49111         Add POSIX ACL support
49112         * lib/acl.h (copy_acl, set_acl): Add declarations.
49113         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
49114         systems other than Linux.
49115         (chmod_or_fchmod): New function: use fchmod when possible,
49116         and chmod otherwise.
49117         (file_has_acl): Add a POSIX ACL implementation, with a
49118         Linux-specific subcase.
49119         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
49120         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
49121         acls are unsupported.
49122         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
49123         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
49124         are unsupported.
49125
49126 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49127
49128         Sync from coreutils.
49129         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
49130
49131 2006-01-07  Bruno Haible  <bruno@clisp.org>
49132
49133         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
49134         gl_EARLY.
49135
49136 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49137
49138         * lib/strftime.c (tzname): Don't declare if it is already #defined.
49139         Problem reported for Mingw by Mark Junker.
49140
49141 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49142
49143         * README: Gnulib normally doesn't generate a tarball.
49144
49145 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
49146
49147         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
49148         long int, not int, for nanosecond counts, so that people who are
49149         used to POSIX struct timespec won't be surprised.  Reported by Jim
49150         Meyering.
49151
49152 2005-12-28  Bruno Haible  <bruno@clisp.org>
49153
49154         * build-aux/config.rpath: Update from GNU gettext.
49155
49156 2005-12-16  Jim Meyering  <jim@meyering.net>
49157
49158         * modules/fprintftime: New module.
49159         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
49160
49161 2005-12-16  Jim Meyering  <jim@meyering.net>
49162
49163         * m4/fprintftime.m4: New file.
49164
49165 2005-12-16  Jim Meyering  <jim@meyering.net>
49166
49167         * lib/fprintftime.c, lib/fprintftime.h: New files.
49168
49169 2005-12-15  Simon Josefsson  <jas@extundo.com>
49170
49171         * modules/socklen (configure.ac): Fix M4 macro name, to align with
49172         new m4/socklen.m4.
49173
49174 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49175
49176         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49177         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49178
49179 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49180
49181         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49182         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49183         struct uparams is valid. Fall back to the default values if it is
49184         not.
49185
49186 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49187
49188         * modules/argp (Files): Add argp-pin.c
49189         (Depends-on): dirname
49190         (lib_SOURCES): Add argp-pin.c
49191
49192 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49193
49194         * m4/argp.m4:  Check if program_invocation_name and
49195         program_invocation_short_name are declared and define appropriate
49196         macros if they are not.
49197
49198 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49199
49200         * lib/argp-help.c (__argp_base_name): New function
49201         (__argp_short_program_name): Rewrite using __argp_base_name
49202         * lib/argp-namefrob.h: Define program_invocation_name and
49203         program_invocation_short_name if requested
49204         (__argp_base_name): Add prototype
49205         * lib/argp-parse.c (argp_def): Use gettext wrappers
49206         (argp_default_parser): Use __argp_base_name
49207         * lib/argp-pin.c: New file. Defines program_invocation_name and
49208         program_invocation_short_name on systems that lack them.
49209
49210 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49211
49212         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49213         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49214         porting problem reported by Georg Schwarz in
49215         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49216
49217 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49218
49219         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49220         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49221         porting problem reported by Georg Schwarz in
49222         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49223
49224 2005-12-05  Bruno Haible  <bruno@clisp.org>
49225
49226         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49227         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49228         Reported by Mark Junker <mjscod@gmx.de>.
49229
49230 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49233         Use implementation from Albert Chin, with some
49234         comments/corrections by Stepan Kasal and myself.
49235
49236 2005-12-02  Bruno Haible  <bruno@clisp.org>
49237
49238         * gnulib-tool (func_import): Accept GPLed build tool modules when
49239         --lgpl is given.
49240         * modules/csharpcomp-script: New file.
49241         * modules/csharpcomp: Depend on it.
49242         * modules/javacomp-script: New file.
49243         * modules/javacomp: Depend on it.
49244         Suggested by Simon Josefsson.
49245
49246 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49247
49248         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49249         statement, to work around an HP-UX 10.20 compiler bug reported by
49250         Peter O'Gorman.
49251
49252 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49253
49254         * modules/savedir (Depends-on): Add openat.
49255
49256 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49257
49258         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49259         (uintmax_t) [defined uintmax_t]: Do not declare.
49260         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49261         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49262         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49263         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49264         sake of portability to weird hosts that C allows (though we don't
49265         know of any practical examples).
49266
49267         * lib/savedir.h (fdsavedir): New decl.
49268         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49269         contains most of the former guts of savedir.
49270         (savedir): Use savedirstream.
49271         Include "openat.h".
49272
49273 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49274
49275         * modules/obstack (Files): Add m4/ulonglong.m4.
49276         Problem reported by Davide Angelocola.
49277
49278 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49279
49280         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49281         coreutils no longer futzes with rounding modes.
49282
49283 2005-11-14  Jim Meyering  <jim@meyering.net>
49284
49285         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49286         replacement of mkstemp.
49287
49288 2005-11-10  Simon Josefsson  <jas@extundo.com>
49289
49290         * lib/readline.c: Remove EOL.
49291
49292 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49293
49294         * modules/gethrxtime (Depends-on): Add gettime.
49295
49296 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49297
49298         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49299         or gettimeofday; no longer needed.
49300
49301 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49302
49303         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49304         time business.
49305         (gethrxtime) [! (HAVE_NANOUPTIME
49306         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49307         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49308         our own approximation.
49309
49310 2005-11-08  Eric Blake  <ebb9@byu.net>
49311
49312         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49313
49314 2005-11-08  Eric Blake  <ebb9@byu.net>
49315
49316         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49317
49318 2005-11-04  Bruno Haible  <bruno@clisp.org>
49319
49320         * gnulib-tool: Implement --update mode.
49321
49322 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49323
49324         Fix porting problem reported by Theodoros V. Kalamatianos.
49325         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49326         Don't assume that futimes failing means we must fail.
49327
49328 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49329
49330         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49331         variables to suggest the intended function of the PATH_MAX check.
49332
49333 2005-10-30  Kean Johnston  <jkj@sco.com>
49334
49335         Trivial changes to support SCO systems.
49336         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49337         as PATH_MAX.
49338         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49339         where __ptr is null when no I/O is pending.
49340
49341 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49342
49343         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49344         leave errno alone.  Problem reported by Dmitry V. Levin.
49345
49346 2005-10-28  Simon Josefsson  <jas@extundo.com>
49347
49348         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49349         Test more.
49350
49351         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49352
49353         * modules/md2, modules/md2-tests: New files.
49354
49355 2005-10-28  Simon Josefsson  <jas@extundo.com>
49356
49357         * m4/inet_ntop.m4: More tests.
49358
49359         * m4/gc-md2.m4, md2.m4: New file.
49360
49361 2005-10-28  Simon Josefsson  <jas@extundo.com>
49362
49363         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49364         "restrict" keywords, as per POSIX.  Protect the function
49365         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49366         Don't use K&R prototypes.  Check the sprintf return values.
49367         Re-define EAFNOSUPPORT if not present.  Indent.
49368
49369         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49370         suggested by Bruno Haible <bruno@clisp.org>.
49371
49372         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49373
49374         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49375
49376         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49377         libgcrypt).
49378
49379         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49380
49381         * lib/md2.h, lib/md2.c: New files.
49382
49383 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49384
49385         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49386         errno alone.  Problem reported by Frederic Jolliton.
49387
49388 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49389
49390         * modules/verify (License): Change from GPL to LGPL.  This is a
49391         tiny module and there are apparently near-equivalents that are
49392         under the BSD license.
49393
49394 2005-10-24  Simon Josefsson  <jas@extundo.com>
49395
49396         * modules/sha1: Relicense to LGPL.
49397
49398 2005-10-24  Simon Josefsson  <jas@extundo.com>
49399
49400         * lib/md4.h: Shrink buffer size, now that we changed the type.
49401
49402 2005-10-23  Simon Josefsson  <jas@extundo.com>
49403
49404         * gnulib-tool (func_import): Fix --tests-base.
49405
49406 2005-10-22  Simon Josefsson  <jas@extundo.com>
49407
49408         * modules/arcfour (Depends-on): Need stdint.
49409
49410 2005-10-22  Simon Josefsson  <jas@extundo.com>
49411
49412         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49413         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49414
49415 2005-10-22  Simon Josefsson  <jas@extundo.com>
49416
49417         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49418         suggested by Bruno Haible <bruno@clisp.org>.
49419
49420 2005-10-22  Simon Josefsson  <jas@extundo.com>
49421
49422         * lib/crc.h: Include stddef.h, for size_t.
49423
49424 2005-10-22  Simon Josefsson  <jas@extundo.com>
49425
49426         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49427         arcfour_context struct (simplify test vector testing in GNU
49428         Shishi).
49429
49430 2005-10-21  Simon Josefsson  <jas@extundo.com>
49431
49432         * modules/des, modules/des-tests: New files.
49433
49434         * modules/gc-des, modules/gc-des-tests: New files.
49435
49436         * tests/test-des.c, tests/test-gc-des.c: New file.
49437
49438 2005-10-21  Simon Josefsson  <jas@extundo.com>
49439
49440         * modules/arctwo, modules/arctwo-tests: New files.
49441
49442         * tests/test-arctwo.c: New file.
49443
49444         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49445
49446         * tests/test-gc-arctwo.c: New file.
49447
49448 2005-10-21  Simon Josefsson  <jas@extundo.com>
49449
49450         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49451         Bruno Haible <bruno@clisp.org>.
49452
49453         * m4/gc-des.m4: New file.
49454
49455 2005-10-21  Simon Josefsson  <jas@extundo.com>
49456
49457         * m4/arctwo.m4: New file.
49458
49459         * m4/gc-arctwo.m4: New file.
49460
49461 2005-10-21  Simon Josefsson  <jas@extundo.com>
49462
49463         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49464         block.
49465
49466 2005-10-21  Simon Josefsson  <jas@extundo.com>
49467
49468         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49469         <bruno@clisp.org>.
49470
49471         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49472
49473         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49474         Bruno Haible <bruno@clisp.org>.
49475
49476         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49477         <bruno@clisp.org>.
49478
49479 2005-10-21  Simon Josefsson  <jas@extundo.com>
49480
49481         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49482
49483 2005-10-21  Simon Josefsson  <jas@extundo.com>
49484
49485         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49486
49487 2005-10-21  Simon Josefsson  <jas@extundo.com>
49488
49489         * lib/des.h, lib/des.c: New files.
49490
49491         * lib/gc-gnulib.c: Support DES.c
49492
49493 2005-10-21  Simon Josefsson  <jas@extundo.com>
49494
49495         * lib/arctwo.h, lib/arctwo.c: New files.
49496
49497         * lib/gc-gnulib.c: Support ARCTWO.
49498
49499 2005-10-21  Simon Josefsson  <jas@extundo.com>
49500
49501         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49502         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49503
49504 2005-10-21  Simon Josefsson  <jas@extundo.com>
49505
49506         * gnulib-tool (func_import, func_create_testdir): Define automake
49507         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49508         Makefile.am snippet),
49509         suggested by Bruno Haible <bruno@clisp.org>.
49510
49511         * modules/gc (Makefile.am): Use it.
49512
49513 2005-10-21  Bruno Haible  <bruno@clisp.org>
49514
49515         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49516         patch.
49517
49518 2005-10-19  Simon Josefsson  <jas@extundo.com>
49519
49520         * tests/test-gc-rijndael.c: New file.
49521
49522         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49523
49524 2005-10-19  Simon Josefsson  <jas@extundo.com>
49525
49526         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49527         interface too.
49528
49529 2005-10-19  Simon Josefsson  <jas@extundo.com>
49530
49531         * tests/test-gc-arcfour.c: New file.
49532
49533         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49534
49535 2005-10-19  Simon Josefsson  <jas@extundo.com>
49536
49537         * modules/gc-md4, modules/gc-md4-tests: New file.
49538
49539         * tests/test-gc-md4.c: New file.
49540
49541 2005-10-19  Simon Josefsson  <jas@extundo.com>
49542
49543         * m4/gc-md4.m4: New file.
49544
49545 2005-10-19  Simon Josefsson  <jas@extundo.com>
49546
49547         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49548         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49549         <kasal@ucw.cz>.
49550
49551 2005-10-19  Simon Josefsson  <jas@extundo.com>
49552
49553         * m4/gc-arcfour.m4: New file.
49554
49555         * m4/gc-rijndael.m4: New file.
49556
49557 2005-10-19  Simon Josefsson  <jas@extundo.com>
49558
49559         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49560
49561 2005-10-19  Simon Josefsson  <jas@extundo.com>
49562
49563         * lib/gc-gnulib.c: Support ARCFOUR.
49564
49565 2005-10-19  Simon Josefsson  <jas@extundo.com>
49566
49567         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49568         support.
49569
49570         * lib/gc.h: Add ECB enum type.
49571
49572         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49573
49574 2005-10-18  Simon Josefsson  <jas@extundo.com>
49575
49576         * tests/test-md5.c: New file.
49577
49578         * modules/md5-tests: New file.
49579
49580 2005-10-18  Simon Josefsson  <jas@extundo.com>
49581
49582         * tests/test-md4.c: New file.
49583
49584         * modules/md4, modules/md4-tests: New files.
49585
49586 2005-10-18  Simon Josefsson  <jas@extundo.com>
49587
49588         * m4/md4.m4: New file.
49589
49590 2005-10-18  Simon Josefsson  <jas@extundo.com>
49591
49592         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49593
49594 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49595
49596         * gnulib-tool (func_create_testdir): Omit the second check whether
49597         BUILT_SOURCES in nonempty.
49598
49599 2005-10-17  Simon Josefsson  <jas@extundo.com>
49600
49601         * tests/test-rijndael.c: New file.
49602
49603 2005-10-17  Simon Josefsson  <jas@extundo.com>
49604
49605         * modules/sha1: Depend on stdint instead of md5.
49606
49607         * modules/md5: Depend on stdint, remove uint32_t.
49608
49609 2005-10-17  Simon Josefsson  <jas@extundo.com>
49610
49611         * modules/gc-sha1-tests: New file.
49612
49613         * tests/test-gc-sha1.c: New file.
49614
49615 2005-10-17  Simon Josefsson  <jas@extundo.com>
49616
49617         * m4/md5.m4: Remove call to uint32_t.m4.
49618
49619 2005-10-17  Simon Josefsson  <jas@extundo.com>
49620
49621         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49622
49623         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49624         md5.h.
49625
49626         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49627
49628         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49629
49630 2005-10-17  Simon Josefsson  <jas@extundo.com>
49631
49632         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49633
49634 2005-10-17  Simon Josefsson  <jas@extundo.com>
49635
49636         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49637
49638 2005-10-17  Simon Josefsson  <jas@extundo.com>
49639
49640         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49641
49642         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49643
49644 2005-10-17  Bruno Haible  <bruno@clisp.org>
49645
49646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49647         that it can also be used in a test.
49648
49649 2005-10-16  Bruno Haible  <bruno@clisp.org>
49650
49651         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49652         TESTS_ENVIRONMENT, so that individual tests can augment it.
49653
49654         * gnulib-tool (func_create_testdir): Use an intermediate target for
49655         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49656         macros, like $(ALLOCA_H), which cannot be passed through the command
49657         line.
49658
49659 2005-10-15  Simon Josefsson  <jas@extundo.com>
49660
49661         * modules/rijndael-tests: New file.
49662
49663         * modules/rijndael: New file.
49664
49665 2005-10-15  Simon Josefsson  <jas@extundo.com>
49666
49667         * m4/rijndael.m4: New file.
49668
49669 2005-10-15  Simon Josefsson  <jas@extundo.com>
49670
49671         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49672
49673         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49674
49675 2005-10-14  Simon Josefsson  <jas@extundo.com>
49676
49677         * tests/test-arcfour.c: New file.
49678
49679         * modules/arcfour, modules/arcfour-tests: New files.
49680
49681 2005-10-14  Simon Josefsson  <jas@extundo.com>
49682
49683         * m4/arcfour.m4: New file.
49684
49685 2005-10-14  Simon Josefsson  <jas@extundo.com>
49686
49687         * lib/arcfour.h, lib/arcfour.c: New files.
49688
49689 2005-10-14  Roland McGrath  <roland@redhat.com>
49690
49691         Import from libc.  [BZ #1331]
49692         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49693         macro argument.
49694         Reported by Matej Vela <vela@debian.org>.
49695
49696 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49697
49698         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49699         include <wchar.h>; no longer needed.
49700
49701 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49702
49703         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49704
49705 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49706         and  Ulrich Drepper  <drepper@redhat.com>
49707
49708         Import from libc.
49709         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49710         instead of inline stream orientation test and two separate
49711         function calls.  Pay no attention to USE_IN_LIBIO.
49712
49713 2005-10-13  Simon Josefsson  <jas@extundo.com>
49714
49715         * modules/gc-hmac-md5-tests: New file.
49716
49717         * tests/test-gc-hmac-sha1.c: New file.
49718
49719         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49720
49721         * modules/gc-hmac-md5-tests: New file.
49722
49723         * tests/test-gc-md5.c: New file.
49724
49725         * modules/gc-md5-tests: New file.
49726
49727 2005-10-13  Simon Josefsson  <jas@extundo.com>
49728
49729         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49730         Move memory allocation outside of loop.
49731
49732 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49733
49734         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49735         intermediate directory is in a read-only file system.  Problem
49736         reported by Eric Blake.
49737
49738 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49739
49740         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49741
49742 2005-10-12  Simon Josefsson  <jas@extundo.com>
49743
49744         * tests/test-hmac-sha1.c: New file.
49745
49746         * modules/hmac-sha1-tests: New file.
49747
49748         * modules/hmac-sha1: New file.
49749
49750 2005-10-12  Simon Josefsson  <jas@extundo.com>
49751
49752         * modules/gc-sha1: New file.
49753
49754 2005-10-12  Simon Josefsson  <jas@extundo.com>
49755
49756         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49757
49758         * tests/test-gc-pbkdf2-sha1.c: New file.
49759
49760 2005-10-12  Simon Josefsson  <jas@extundo.com>
49761
49762         * modules/gc-md5, modules/gc-hmac-md5: New files.
49763
49764         * modules/gc (Files): Remove md5, memxor and hmac files.
49765
49766 2005-10-12  Simon Josefsson  <jas@extundo.com>
49767
49768         * m4/gc-pbkdf2-sha1.m4: New file.
49769
49770         * m4/gc-hmac-sha1.m4: New file.
49771
49772         * m4/gc-sha1: New file.
49773
49774         * m4/hmac-sha1.m4: New file.
49775
49776 2005-10-12  Simon Josefsson  <jas@extundo.com>
49777
49778         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49779
49780         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49781
49782 2005-10-12  Simon Josefsson  <jas@extundo.com>
49783
49784         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49785         suggested by Bruno Haible <bruno@clisp.org>.
49786
49787 2005-10-12  Simon Josefsson  <jas@extundo.com>
49788
49789         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49790
49791 2005-10-12  Simon Josefsson  <jas@extundo.com>
49792
49793         * lib/gc-pbkdf2-sha1.c: New file.
49794
49795         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49796
49797 2005-10-12  Simon Josefsson  <jas@extundo.com>
49798
49799         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49800
49801         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49802
49803 2005-10-12  Simon Josefsson  <jas@extundo.com>
49804
49805         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49806         GC_USE_HMAC_MD5, respectively.
49807
49808         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49809         (gc_md5): Fix typo.
49810
49811         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49812
49813         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49814
49815         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49816
49817 2005-10-12  Bruno Haible  <bruno@clisp.org>
49818
49819         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49820         Reported by Stepan Kasal <kasal@ucw.cz>.
49821
49822 2005-10-11  Simon Josefsson  <jas@extundo.com>
49823
49824         * tests/test-crc.c: New file.
49825
49826         * modules/crc, modules/crc-tests: New files.
49827
49828 2005-10-11  Simon Josefsson  <jas@extundo.com>
49829
49830         * m4/crc.m4: New file.
49831
49832 2005-10-11  Simon Josefsson  <jas@extundo.com>
49833
49834         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49835
49836         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49837
49838         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49839
49840 2005-10-11  Simon Josefsson  <jas@extundo.com>
49841
49842         * lib/crc.h, lib/crc.c: New files.
49843
49844         * lib/gc.h (gc_hash_buffer): Add doc.
49845
49846 2005-10-11  Bruno Haible  <bruno@clisp.org>
49847
49848         * modules/c-strcasestr: New file.
49849         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49850
49851 2005-10-11  Bruno Haible  <bruno@clisp.org>
49852
49853         * modules/c-strcase: New file.
49854         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49855
49856 2005-10-11  Bruno Haible  <bruno@clisp.org>
49857
49858         * lib/strcasecmp.c: Include limits.h.
49859         (strcasecmp): Avoid integer overflow on exotic platforms.
49860         * lib/strncasecmp.c: Include limits.h.
49861         (strncasecmp): Avoid integer overflow on exotic platforms.
49862         Reported by Paul Eggert.
49863
49864 2005-10-11  Bruno Haible  <bruno@clisp.org>
49865
49866         * lib/c-strcasestr.h: New file, from GNU gettext.
49867         * lib/c-strcasestr.c: New file, from GNU gettext.
49868
49869 2005-10-11  Bruno Haible  <bruno@clisp.org>
49870
49871         * lib/c-strcase.h: New file, from GNU gettext.
49872         * lib/c-strcasecmp.c: New file, from GNU gettext.
49873         * lib/c-strncasecmp.c: New file, from GNU gettext.
49874
49875 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49876
49877         * modules/mempcpy (License): GPL -> LGPL.
49878         * modules/strchrnul (License): Likewise.
49879         * modules/sysexits (License): Likewise.
49880
49881 2005-10-08  Simon Josefsson  <jas@extundo.com>
49882
49883         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49884
49885 2005-10-07  Simon Josefsson  <jas@extundo.com>
49886
49887         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49888
49889 2005-10-06  Simon Josefsson  <jas@extundo.com>
49890
49891         * tests/test-hmac-md5.c: New file.
49892
49893         * modules/hmac-md5-tests: New file.
49894
49895         * modules/hmac-md5: New file.
49896
49897 2005-10-06  Simon Josefsson  <jas@extundo.com>
49898
49899         * m4/hmac-md5.m4: New file.
49900
49901         * m4/memxor.m4: Require gl_C_RESTRICT.
49902
49903 2005-10-06  Simon Josefsson  <jas@extundo.com>
49904
49905         * lib/memxor.c (memxor): Avoid casts and warnings.
49906
49907 2005-10-06  Simon Josefsson  <jas@extundo.com>
49908
49909         * lib/hmac-md5.c: New file.
49910
49911         * lib/hmac.h: New file.
49912
49913 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49914
49915         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49916         promotes to int, not unsigned int, to catch the AIX 5.3
49917         compiler bug.
49918
49919 2005-10-05  Simon Josefsson  <jas@extundo.com>
49920
49921         * modules/memxor: New file.
49922
49923         * modules/iconv (Files): Move config.rpath to havelib, it is used
49924         there.
49925
49926         * modules/havelib (Files): Add config.rpath.
49927
49928 2005-10-05  Simon Josefsson  <jas@extundo.com>
49929
49930         * m4/memxor.m4: New file.
49931
49932 2005-10-05  Simon Josefsson  <jas@extundo.com>
49933
49934         * lib/memxor.c (memxor): Fix compiler error.
49935
49936         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49937         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49938
49939         * lib/memxor.h, lib/memxor.c: New files.
49940
49941         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49942         we assume all systems have it, suggested by Jim Meyering
49943         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49944         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49945         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49946         same reasons.
49947
49948 2005-10-05  Simon Josefsson  <jas@extundo.com>
49949
49950         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49951
49952 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49953
49954         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49955         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49956         needed, since the source code now assumes these .h files.
49957
49958 2005-10-05  Derek Price  <derek@ximbiot.com>
49959
49960         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49961
49962 2005-10-05  Bruno Haible  <bruno@clisp.org>
49963
49964         * modules/stdint (License): Change to LGPL.
49965
49966 2005-10-04  Simon Josefsson  <jas@extundo.com>
49967
49968         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49969         D. Baushke" <mdb@gnu.org>.
49970
49971 2005-10-04  Bruno Haible  <bruno@clisp.org>
49972
49973         * lib/verify.h (verify_true): Provide alternative definition for C++.
49974
49975 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49976
49977         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49978         (SSIZE_MAX): New macro, if not already defined.
49979         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49980         than 2 GiB.
49981
49982 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49983
49984         Sync from coreutils.
49985         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49986         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49987         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49988         ULLONG_MAX doesn't work with 2.7.2.1.
49989
49990 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49991
49992         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49993         From Ben Pfaff.
49994
49995         * modules/exclude (Depends-on): Depend on verify.
49996         * modules/strtoimax (Depends-on): Likewise.
49997         * modules/utimecmp (Depends-on): Likewise.
49998
49999 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50000
50001         * lib/exclude.c: Include verify.h.
50002         (verify): Remove.  All callers changed to use verify.h's version.
50003         * lib/strtoimax.c: Likewise.
50004         * lib/utimecmp.c: Likewis.e
50005
50006         Sync from coreutils.
50007         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
50008         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
50009         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
50010         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
50011         bother returning ENOSYS if settimeofday or stime fails; just let
50012         them return whatever errno they want to return.
50013         * lib/utimens.c: Include unistd.h, for dup2.
50014         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
50015         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
50016
50017 2005-10-02  Jim Meyering  <jim@meyering.net>
50018
50019         Sync from coreutils.
50020         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
50021         from glibc-2.2.5 that fails for read-only files.
50022
50023 2005-10-02  Jim Meyering  <jim@meyering.net>
50024
50025         Sync from coreutils.
50026         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
50027         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
50028         `#if HAVE_CONFIG_H'.
50029         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
50030         Remove AT_FDCWD test.
50031         Do not consume the fd unless successful.
50032         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
50033         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
50034         block, so that we don't even try to compile it if settimeofday is
50035         available.  This works around a compilation failure on OSF1 V5.1,
50036         due to stime requiring a `long int*' while tv_sec is `int'.
50037
50038 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
50039
50040         Sync from coreutils.
50041         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
50042         against `yes', rather than just testing for nonempty.
50043
50044 2005-10-01  Simon Josefsson  <jas@extundo.com>
50045
50046         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
50047         and Darwin.
50048
50049         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
50050         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
50051         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
50052         freeaddrinfo and gai_strerror are declared by the POSIX headers.
50053         Check if struct addrinfo is declared.
50054
50055 2005-10-01  Simon Josefsson  <jas@extundo.com>
50056
50057         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
50058         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
50059         AI_* and EAI_* definitions.  Protect function declarations.
50060
50061 2005-10-01  Jim Meyering  <jim@meyering.net>
50062
50063         Sync from coreutils.
50064
50065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
50066         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
50067         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
50068         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50069         in the inet and nsl libraries.  Required on Solaris 5.7.
50070
50071 2005-10-01  Jim Meyering  <jim@meyering.net>
50072
50073         Sync from coreutils.
50074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50075         in the inet and nsl libraries.  Required on Solaris 5.7.
50076
50077 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
50078
50079         * lib/getdelim.c (getdelim): Remove unused variables.
50080
50081 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50082
50083         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
50084         so that the code works even with ancient cpp.  Portability problem
50085         with GCC 2.7.2.1 reported by Thomas M.Ott.
50086
50087 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50088
50089         * modules/regex (Depends-on): Add strcase.
50090
50091         * modules/gethostname (Licence): Change from GPL to LGPL, since
50092         gethostname.c is a trivial implementation of a standard library
50093         function.
50094         * modules/poll (License): Change from GPL to LGPL, since it's
50095         derived from LGPL code.
50096
50097 2005-09-27  Jim Meyering  <jim@meyering.net>
50098
50099         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
50100         HAVE_CONFIG_H.
50101
50102         * lib/intprops.h (signed_type_or_expr__): Define.
50103         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
50104         for unsigned types.
50105
50106 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50107
50108         * lib/verify.h (verify_expr): Remove, replacing with:
50109         (verify_true): New macro that returns true instead of void.
50110         (verify_type__): Remove.
50111         (verify): Use verify_true rather than verify_type__.
50112
50113 2005-09-26  Bruno Haible  <bruno@clisp.org>
50114
50115         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
50116         is necessary.
50117         (lib_SOURCES): Remove mbchar.c.
50118         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
50119         (Files): Add m4/mbrtowc.m4.
50120         * modules/mbiter: Likewise.
50121         * modules/mbuiter: Likewise.
50122
50123 2005-09-26  Bruno Haible  <bruno@clisp.org>
50124
50125         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
50126         compile mbchar.c if they are not both present.
50127         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
50128         * m4/mbiter.m4 (gl_MBITER): Likewise.
50129         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
50130         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
50131         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
50132
50133 2005-09-25  Jim Meyering  <jim@meyering.net>
50134
50135         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
50136         also uses socklen_t.
50137
50138 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
50139
50140         * lib/utimens.c (ENOSYS): Define if not already defined.
50141         (futimens): Support having a null PATH if the file descriptor
50142         is nonnegative.
50143
50144         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
50145         Remove.
50146         (__attribute): Define to empty unless GCC 3.1 or later.
50147         This works around a core dump on OpenBSD 3.4, which has GCC
50148         2.95.3, which dumps core when given __attribute__(()).  It also
50149         simplifies other tests, since we really don't want to bother with
50150         worrying about which ancient version of GCC supported what.
50151         Original problem reported by Yoann Vandoorselaere, with part of
50152         the fix suggested by Derek Price.
50153
50154 2005-09-24  Jim Meyering  <jim@meyering.net>
50155
50156         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
50157         so we can once again use a positive bitfield width of 1 -- now we
50158         don't have to explain why we were using a bitfield width of 2.
50159
50160 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50161
50162         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
50163         and similarly for the other external symbols.  Problem reported
50164         by James Gallager.
50165
50166         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
50167         bug reported by Jim Meyering.
50168
50169         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
50170         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
50171         not needed, since socklen is a prerequisite module.
50172
50173 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50174
50175         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
50176         Problem reported by Eric Blake.
50177         (getaddrinfo): Initialize se so that it's not garbage.
50178         Redo internal storage allocation so that it doesn't make unportable
50179         assumptions about alignment.
50180         Fix a memory leak.
50181
50182         * lib/utimens.c (futimens): Use futimesat if available.
50183         Prefer it to futimes since it doesn't have the futimes bug.
50184
50185         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50186         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50187         Instead, declare a function that returns a pointer to an array,
50188         and use verify_type__ to declare the size of the array.
50189         Problem and germ of a solution reported by Bruno Haible.
50190         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50191         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50192
50193 2005-09-23  Jim Meyering  <jim@meyering.net>
50194
50195         Sync from coreutils.
50196         Correct build failure (socklen_t not defined) on at least
50197         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50198         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50199
50200 2005-09-23  Jim Meyering  <jim@meyering.net>
50201
50202         * modules/getaddrinfo (Depends-on): Add socklen.
50203
50204 2005-09-23  Bruno Haible  <bruno@clisp.org>
50205
50206         * tests/test-verify.c: New file.
50207
50208 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50209
50210         Sync from coreutils.
50211
50212         * modules/argmatch (Depends-on): Add verify.
50213         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50214         unistd-safer.
50215         * modules/save-cwd (Depends-on): Likewise.
50216
50217         * modules/openat (Files): Add lib/openat-die.c.
50218         (Depends-on): Remove error, exitfail.
50219         Add dirname.
50220
50221         * modules/verify: New file.
50222         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50223         with "verify" module.
50224
50225 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50226
50227         Sync from coreutils.
50228
50229         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50230         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50231         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50232         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50233         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50234         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50235         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50236         Don't bother checking for string.h, stdlib.h, unistd.h.
50237         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50238         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50239         module's job.
50240         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50241         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50242
50243         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50244         (gl_GETDATE): Use it.
50245
50246         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50247
50248 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50249
50250         Sync from coreutils.
50251
50252         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50253         stat-time.h.
50254         * lib/argmatch.h: Include verify.h
50255         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50256         (ARGMATCH_ASSERT): Remove; unused.
50257         * lib/canonicalize.c: Assume STDC_HEADERS.
50258         * lib/exclude.c: Include "strcase.h".
50259         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50260         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50261         and stdio-safer.h.
50262         (getusershell): Call fopen, not fopen_safer.
50263         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50264         Do not include unistd-safer.h.
50265         (save_cwd): Don't call fd_safer; no longer needed
50266         now that we include fcntl--.h.
50267
50268         * lib/getdate.y (relative_time): New type.
50269         (RELATIVE_TIME_0): New constant.
50270         (parser_control): Use relative_time instead of doing it ourselves.
50271         (%union): Add new relative_time rel member.
50272         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50273         Now typeless.
50274         (relunit, relunit_snumber): Now of type rel.
50275         (zone, rel, relunit, get_date): Adjust to above changes.
50276
50277         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50278         Do not include unistd-safer.h.
50279         (getloadavg): Don't call fd_safer; no longer needed
50280         now that we include fcntl--.h.
50281
50282         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50283         (make_dir_parents): Treat ENOSYS like EEXIST.
50284
50285         Improve quality of diagnostics on restore_cwd failure.
50286         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50287         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50288         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50289         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50290         each time through the loop.  Do not diagnose restore_cwd failure;
50291         that is the caller's job (and perhaps the caller does not care).
50292
50293         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50294         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50295         If the file already exists but is not a directory, don't bother
50296         to try to make its parents.
50297         Close potential file descriptor leak if we can't chdir("/") (!).
50298         Don't always return true if chdir($PWD) fails; return true only
50299         if the requested action was done successfully (except for the
50300         chdir($PWD)).
50301         Don't log final directory unless we actually made it.
50302         Refactor to avoid duplicate code to fix up permissions.
50303         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50304
50305         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50306         to make it a bit faster and (I hope) clearer.
50307         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50308         Fix bug in formats like %2N.
50309
50310         * lib/verify.h: New file.
50311
50312 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50313
50314         Sync from coreutils.
50315         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50316
50317 2005-09-22  Jim Meyering  <jim@meyering.net>
50318
50319         Sync from coreutils.
50320
50321         * m4/lstat.m4 (gl_FUNC_LSTAT):
50322         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50323         Remove obsolete comment.
50324         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50325         * m4/xstrtod.m4: Likewise.
50326
50327         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50328
50329 2005-09-22  Jim Meyering  <jim@meyering.net>
50330
50331         Sync from coreutils.
50332
50333         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50334
50335         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50336         the .tm_year member, since otherwise gcc-4.0 would now warn about
50337         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50338
50339         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50340         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50341
50342         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50343         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50344         when run in a time zone for which daylight savings time is in effect
50345         for the starting date.
50346
50347         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50348         stop us from restricting permissions of just-created absolute-named
50349         directories.
50350         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50351         to restore initial working directory.
50352         * lib/mkdir-p.c (make_dir_parents): New parameter:
50353         different_working_dir, to tell caller if/when we change the working
50354         directory and are unable to return to the initial one.
50355         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50356         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50357         `return false'.  This fixes a bug introduced on 2004-07-30.
50358
50359         * lib/openat.c (fdopendir): Be sure to close the supplied
50360         file descriptor before returning.  This makes our replacement
50361         implementation a little closer to Solaris's, where fdopendir
50362         ties the file descriptor to the returned DIR* pointer.
50363         * lib/openat.c (unlinkat): New function.
50364         * lib/openat.h (unlinkat): Add prototype.
50365         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50366         (openat_restore_fail): Rename from openat_restore_die.
50367         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50368
50369         Provide an alternative to exiting immediately upon save_cwd or
50370         restore_cwd failure.  Now, an application can arrange e.g.,
50371         to perform a longjump in that case.
50372         * lib/openat.c: Include dirname.h.
50373         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50374         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50375         and openat_restore_die rather than calling error directly.
50376         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50377
50378         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50379         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50380         define.
50381
50382         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50383         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50384                             int utc, int nanoseconds);
50385         Background:
50386         date should not have to allocate a megabyte of virtual memory to
50387         handle a format argument like +%1048575T.  When implemented with
50388         strftime, it must allocate such a buffer, use strftime to fill it
50389         in, print it, then free it.
50390         With fprintftime, it simply prints everything and exits.
50391         With no need for memory allocation, that's one fewer way to fail.
50392         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50393         optional field width, not before, so we accept %9:z, not %:9z.
50394         (my_strftime): Be sure to use L_('x') for literals.
50395
50396         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50397         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50398         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50399         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50400         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50401         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50402         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50403         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50404         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50405         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50406         * lib/xgethostname.c, lib/xreadlink.c:
50407         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50408
50409         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50410         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50411         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50412         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50413         and don't include <sys/file.h>).
50414
50415 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50416
50417         Sync from coreutils.
50418
50419         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50420         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50421         [!LDAV_DONE]: Avoid unused variable warning.
50422
50423 2005-09-21  Bruno Haible  <bruno@clisp.org>
50424
50425         * lib/unicodeio.h (unicode_to_mb): New declaration.
50426
50427 2005-09-20  Derek Price  <derek@ximbiot.com>
50428
50429         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50430         getaddrinfo.h.
50431
50432 2005-09-20  Bruno Haible  <bruno@clisp.org>
50433
50434         * gnulib-tool: Remove trailing slashes from the values specified for
50435         --source-base, --m4-base, --tests-base, --aux-dir.
50436         Suggested by Simon Josefsson <jas@extundo.com>.
50437
50438 2005-09-20  Bruno Haible  <bruno@clisp.org>
50439
50440         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50441         func_modules_to_filelist, func_import, func_create_testdir): Make all
50442         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50443         change when gnulib-tool is invoked in a different locale.
50444
50445 2005-09-19  Simon Josefsson  <jas@extundo.com>
50446
50447         * m4/socklen.m4: Fix typo.
50448
50449 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50450
50451         Use a consistent style for including <config.h>.
50452         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50453         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50454         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50455         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50456         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50457         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50458         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50459         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50460         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50461         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50462         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50463         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50464         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50465         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50466         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50467         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50468         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50469         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50470         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50471         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50472         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50473         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50474         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50475         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50476         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50477         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50478         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50479         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50480         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50481         lib/xstrtoumax.c, lib/yesno.c:
50482         Standardize inclusion of config.h.
50483         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50484         lib/inttostr.h:  Removed inclusion of config.h from header files.
50485         * lib/inttostr.c:  Adjusted in-tree users.
50486         * lib/timespec.h: Remove superfluous warning to include config.h.
50487         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50488         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50489         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50490         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50491         config.h with HAVE_CONFIG_H.
50492
50493 2005-09-19  Jim Meyering  <jim@meyering.net>
50494
50495         * modules/pathmax (License): Change to LGPL.
50496
50497 2005-09-19  Derek Price  <derek@ximbiot.com>
50498
50499         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50500
50501 2005-09-19  Bruno Haible  <bruno@clisp.org>
50502
50503         * gnulib-tool (import): Provide default for --tests-base.
50504
50505 2005-09-19  Bruno Haible  <bruno@clisp.org>
50506
50507         * doc/quote.texi: New file, extracted from gnulib.texi.
50508         * doc/ctime.texi: New file, extracted from gnulib.texi.
50509         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50510         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50511         * doc/gnulib.texi: Include them.
50512
50513 2005-09-18  Bruno Haible  <bruno@clisp.org>
50514
50515         Portability fix.
50516         * gnulib-tool (func_readlink): New function.
50517         (func_ln_if_changed): Use it.
50518
50519 2005-09-18  Bruno Haible  <bruno@clisp.org>
50520
50521         * gnulib-tool: Support --with-tests also with --import.
50522         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50523         (func_import): Use variables $testsbase and $inctests. Emit a
50524         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50525         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50526         SUBDIRS += $testsdir.
50527         (func_create_testdir): Update.
50528
50529 2005-09-18  Bruno Haible  <bruno@clisp.org>
50530
50531         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50532         instead of $dry_run.
50533         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50534         (func_ln_if_changed): Don't handle dry-run here.
50535         (func_import): In dry-run mode, detect more precisely which actions
50536         would be performed, and don't use "...ing" verbs.
50537
50538 2005-09-18  Bruno Haible  <bruno@clisp.org>
50539
50540         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50541         (func_import): Use join on two temporary files instead of three nested
50542         loops, in order to determine which files are new or old.
50543
50544 2005-09-18  Bruno Haible  <bruno@clisp.org>
50545
50546         * gnulib-tool (func_import): Comment out code that spits out the
50547         new files with --dry-run.
50548
50549 2005-09-18  Bruno Haible  <bruno@clisp.org>
50550
50551         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50552
50553 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50554
50555         * lib/stat-time.h: New file.
50556         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50557         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50558         in a different way.
50559         (timespec_cmp): New function.
50560         * lib/utimecmp.c: Include stat-time.h.
50561         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50562         members exist, not on the obsolescent ST_MTIM_NSEC.
50563         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50564
50565 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50566
50567         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50568
50569 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50570
50571         * MODULES.html.sh (File system functions): Add stat-time.
50572         * modules/stat-time: New file.
50573         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50574         is now done in a different way, by the stat-time module.
50575         * modules/utimecmp (Depends-on): Add stat-time.
50576
50577 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50578
50579         * m4/st_mtim.m4: Remove.  Superseded by...
50580         * m4/stat-time.m4: New file.
50581         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50582         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50583
50584 2005-09-15  Derek Price  <derek@ximbiot.com>
50585
50586         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50587
50588 2005-09-15  Derek Price  <derek@ximbiot.com>
50589
50590         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50591         * lib/regex_internal.c: Ditto, using this...
50592         (__GNUC_PREREQ): ...new macro.
50593         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50594         using...
50595         (__GNUC_PREREQ): ...this new macro.
50596
50597         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50598
50599 2005-09-15  Derek Price  <derek@ximbiot.com>
50600             Paul Eggert  <eggert@cs.ucla.edu>
50601
50602         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50603         changes, consolidating in...
50604         * lib/regex_internal.h: ...this file.
50605
50606 2005-09-13  Jim Meyering  <jim@meyering.net>
50607
50608         * lib/canon-host.c: Filter through gnu indent and reword comments
50609         slightly.
50610         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50611
50612 2005-09-13  Derek Price  <derek@ximbiot.com>
50613
50614         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50615         failure.
50616         Reported by Jim Meyering  <jim@meyering.net>.
50617
50618 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50619
50620         * lib/base64.c: Typo.
50621         (base64_encode): Put b64str in initialized data section.
50622
50623 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50624
50625         Merge glibc and coreutils changes into gnulib, plus a few
50626         extra fixes.
50627         * lib/md5.c: Use #error rather than a string.
50628         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50629         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50630         (__attribute__): Define to empty for non recent-GCC.
50631         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50632         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50633         Renamed from their non-__ counterparts, with new macros replacing
50634         them if not _LIBC.  Add __THROW attribute.
50635         (rol): Remove.
50636         (struct md5_ctx): Align buffer if using GCC.
50637         * lib/sha1.h (struct sha1_ctx): Likewise.
50638         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50639         The old name was backwards.
50640         (NOTSWAP): Remove; not used.
50641         (rol): New macro, moved here from md5.h.
50642         (sha1_process_block): Remove a FIXME that doesn't make sense.
50643
50644 2005-09-12  Derek Price  <derek@ximbiot.com>
50645
50646         Return usable errors from canon-host.
50647         * lib/canon-host.h: New file.
50648         * lib/canon-host.c (canon_host): Wrap...
50649         (canon_host_r): ...this new function, which now relies exclusively on
50650         getaddrinfo.
50651         (ch_strerror): New function.
50652         (last_cherror): New global.
50653         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50654         interface.
50655         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50656         void *.
50657         (freeaddrinfo): Free ai->ai_canonname when set.
50658
50659 2005-09-12  Derek Price  <derek@ximbiot.com>
50660
50661         Make canon-host require getaddrinfo.
50662         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50663         AC_LIBSOURCE canon-host.h.  Call...
50664         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50665         gl_GETADDRINFO.
50666         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50667
50668 2005-09-12  Derek Price  <derek@ximbiot.com>
50669
50670         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50671         LGPL.
50672         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50673
50674 2005-09-12  Derek Price  <derek@ximbiot.com>
50675
50676         * lib/gai_strerror.c: Include config.h when available.  Include
50677         getaddrinfo.h before other headers to test interface.
50678         Reported by Larry Jones <lawrence.jones@ugs.com>.
50679
50680 2005-09-12  Derek Price  <derek@ximbiot.com>
50681             Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         * modules/glob (Files): Add glob-libc.h.
50684
50685 2005-09-12  Derek Price  <derek@ximbiot.com>
50686             Paul Eggert  <eggert@cs.ucla.edu>
50687
50688         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50689         glob_.h, glob-libc.h.
50690         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50691
50692 2005-09-12  Derek Price  <derek@ximbiot.com>
50693             Paul Eggert  <eggert@cs.ucla.edu>
50694
50695         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50696         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50697         protecting things that should be done only in gnulib contexts.
50698         * lib/glob_.h: New file, containing only the glob things needed for
50699         gnulib.
50700         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50701         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50702         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50703         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50704         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50705         and to respect the namespace rules better.
50706
50707 2005-09-08  Simon Josefsson  <jas@extundo.com>
50708
50709         * modules/socklen: New file.
50710
50711 2005-09-08  Simon Josefsson  <jas@extundo.com>
50712
50713         * m4/socklen.m4: New file.
50714
50715 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50716
50717         * modules/utimens (Files): Add m4/utimbuf.m4, since
50718         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50719         Reported by Sergey Poznyakoff.
50720
50721 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50722
50723         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50724         definitions, since that's the preferred style in glibc.
50725         Fix a minor spacing issue, and update copyright notice to match
50726         glibc's.
50727
50728 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50729
50730         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50731
50732 2005-09-06  Simon Josefsson  <jas@extundo.com>
50733
50734         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50735         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50736
50737 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50740         warning.
50741
50742 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50743
50744         * config/srclist.txt: Add glibc bug 1302.
50745
50746 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50747
50748         Change bitset word type from unsigned int to unsigned long int,
50749         as this has better performance on typical 64-bit hosts.
50750         Port bitset code to hosts with unusual word sizes.
50751         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50752         (build_collating_symbol):
50753         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50754         argument is a bitset.  This is merely a style issue, but it makes
50755         it clearer that an entire array is expected.
50756         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50757         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50758         Port to the case where bitset_word is not the same as unsigned int.
50759         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50760         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50761         Likewise.
50762         * lib/regexec.c (check_dst_limits_calc_pos_1,
50763         check_subexp_matching_top):
50764         (build_trtable, group_nodes_into_DFAstates):
50765         Likewise.
50766         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50767         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50768         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50769         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50770         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50771         * lib/regcomp.c (optimize_subexps, lower_subexp):
50772         Work even if bitset_word has holes in its bitwise representation.
50773         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50774         * lib/regexec.c (check_dst_limits_calc_pos_1,
50775         check_subexp_matching_top):
50776         Likewise.
50777         * lib/regex_internal.c (re_string_reconstruct):
50778         Don't assume UCHAR_MAX == 255.
50779         * lib/regex_internal.h (bitset_set_all): Likewise.
50780         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50781         All uses changed.
50782         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50783         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50784         All uses changed.
50785         (BITSET_WORD_MAX): New macro.
50786         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50787         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50788         (bitset_empty, bitset_copy):
50789         Prefer sizeof (bitset) to multiplying it out ourselves.
50790         (bitset_not_merge): Remove; unused.
50791         (bitset_contain): Return bool, not unsigned int with one bit on.
50792         All callers changed.
50793         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50794         alignment than re_node_set; do this by defining a new internal
50795         type struct dests_alloc and using it to allocate memory.
50796
50797 2005-09-05  Bruno Haible  <bruno@clisp.org>
50798
50799         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50800         links.
50801
50802 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50803
50804         * modules/size_max (Makefile.am): Add size_max.h
50805
50806 2005-09-04  Derek Price  <derek@ximbiot.com>
50807
50808         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50809
50810 2005-09-03  Simon Josefsson  <jas@extundo.com>
50811
50812         * gnulib-tool: Fix typo.
50813
50814 2005-09-03  Simon Josefsson  <jas@extundo.com>
50815
50816         * config/srclist.txt: Add glibc bug 1293.
50817
50818 2005-09-03  Derek Price  <derek@ximbiot.com>
50819
50820         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50821         From Larry Jones <lawrence.jones@ugs.com>.
50822
50823 2005-09-02  Simon Josefsson  <jas@extundo.com>
50824
50825         * modules/socklen: New file.
50826
50827 2005-09-02  Simon Josefsson  <jas@extundo.com>
50828
50829         * modules/havelib: New module.
50830
50831         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50832         Use havelib.
50833
50834 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50835
50836         Check for arithmetic overflow when calculating sizes, to prevent
50837         some buffer-overflow issues.  These patches are conservative, in the
50838         sense that when I couldn't determine whether an overflow was possible,
50839         I inserted a run-time check.
50840         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50841         macros.
50842         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50843         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50844         (re_xnrealloc, re_x2nrealloc): New inline functions.
50845         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50846         parse_bracket_exp):
50847         (build_equiv_class, build_charclass): Check for arithmetic overflow
50848         in size expression calculations.
50849         * lib/regex_internal.c (re_string_realloc_buffers):
50850         (build_wcs_upper_buffer, re_node_set_add_intersect):
50851         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50852         (re_dfa_add_node, register_state): Likewise.
50853         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50854         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50855         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50856         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50857
50858 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50859
50860         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50861         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50862
50863 2005-09-02  Bruno Haible  <bruno@clisp.org>
50864
50865         Support for lib vs. lib64 distinction on biarch platforms.
50866         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50867         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50868         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50869
50870 2005-09-02  Bruno Haible  <bruno@clisp.org>
50871
50872         * gnulib-tool (import): In the other first-use case, provide defaults
50873         as well.
50874
50875 2005-09-02  Bruno Haible  <bruno@clisp.org>
50876
50877         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50878         patches not yet found in the latest gettext release.
50879
50880 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50881
50882         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50883         to avoid a collision with bits/local_lim.h in glibc.
50884         All uses changed.  Problem reported by Dmitry V. Levin in
50885         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50886
50887         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50888         bugs in int versus size_t comparisons.
50889         (re_string_context_at): Fix bug where the code assumed that
50890         Idx is signed.
50891
50892         Use bool where appropriate.
50893         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50894         All callers changed.
50895         (calc_eclosure_iter): Likewise, for ROOT arg.
50896         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50897         (build_charclass_op): Likewise, for NON_MATCH arg.
50898         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50899         (re_string_construct_common): Likewise, for ICASE arg.
50900         * lib/regexec.c (re_search_2_stub, re_search_stub):
50901         Likewise, for RET_LEN arg.
50902         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50903         (set_regs): Likewise, for FL_BACKTRACK arg.
50904         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50905         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50906         (calc_eclosure_iter, parse_bracket_exp):
50907         Use bool for internal variables that are booleans.
50908         * lib/regexec.c (re_search_internal, check_matching,
50909         proceed_next_node):
50910         (set_regs, build_sifted_states, sift_states_bkref):
50911         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50912         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50913         (find_collation_sequence_value):
50914         Likewise.
50915         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50916         (re_node_set_compare):
50917         Return bool, not int. All callers changed.
50918         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50919         (build_trtable, check_node_accept): Likewise.
50920         * lib/regex_internal.h: Include stdbool.h.
50921
50922         Fix bugs uncovered when converting to bool.
50923         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50924         failure instead of charging ahead blindly.
50925         * lib/regex_internal.c (register_state): Likewise.
50926         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50927         for freeing internal storage.
50928         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50929         bitset pieces used as boolean, to avoid undefined behavior
50930         on hosts that do int overflow checking.
50931
50932 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50933
50934         * config/srclist.txt: Add glibc bugs 1285-1287.
50935
50936 2005-09-01  Jim Meyering  <jim@meyering.net>
50937
50938         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50939         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50940         Require gl_STAT_MACROS, too.
50941
50942 2005-09-01  Bruno Haible  <bruno@clisp.org>
50943
50944         * gnulib-tool (import): In the first-use case, provide defaults.
50945
50946 2005-09-01  Bruno Haible  <bruno@clisp.org>
50947
50948         * gnulib-tool (func_import): Remove the .tmp files.
50949
50950 2005-09-01  Bruno Haible  <bruno@clisp.org>
50951
50952         * gnulib-tool (func_import): Fix handling of symbolic links.
50953
50954 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50955
50956         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50957         old glibc regex code mishandles strings longer than 2**31 bytes.
50958         This patch fixes this when the regex code is used in gnulib
50959         (i.e., outside glibc).
50960
50961         This patch should not affect the use of the regex code inside
50962         glibc.  No doubt this problem also needs to be handled for glibc
50963         as well, but the result will be an incompatible change to the
50964         glibc ABI, and the old ABI will have to be supported too.  That
50965         can be the the subject for another patch.
50966
50967         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50968         governing whether the rest of this patch is active.  By default,
50969         the macro is disabled and the patch has no effect.
50970         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50971         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50972         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50973         (re_match_2, re_set_registers): Use the new types.
50974         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50975         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50976         New macros.
50977         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50978         (re_string_context_at, bin_tree_t, re_dfastate_t):
50979         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50980         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50981         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50982         (re_string_char_size_at, re_string_wchar_at):
50983         (re_string_elem_size_at):
50984         Use the new types and macros to port to 64-bit hosts.
50985         Use unsigned types for internal values, so that the code
50986         mostly works even for arrays larger than SSIZE_MAX.
50987         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50988         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50989         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50990         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50991         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50992         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50993         (calc_inveclosure, parse_dup_op, build_range_exp):
50994         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50995         (fetch_number, create_token_tree, mark_opt_subexp):
50996         Likewise.
50997         * lib/regex_internal.c (re_string_construct_common,
50998         create_ci_newstate):
50999         (create_cd_newstate, re_string_allocate, re_string_construct):
51000         (re_string_realloc_buffers, build_wcs_upper_buffer):
51001         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51002         (re_string_reconstruct, re_string_peek_byte_case):
51003         (re_string_fetch_byte_case, re_string_context_at):
51004         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51005         (re_node_set_init_copy, re_node_set_add_intersect):
51006         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51007         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51008         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51009         (re_acquire_state, re_acquire_state_context, register_state):
51010         Likewise.
51011         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
51012         search_cur_bkref_entry):
51013         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
51014         (re_search_internal, re_search_2_stub, re_search_stub)
51015         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
51016         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
51017         (update_cur_sifted_state, check_dst_limits):
51018         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51019         (check_subexp_limits, sift_states_bkref, merge_state_array):
51020         (check_subexp_matching_top, get_subexp, get_subexp_sub):
51021         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
51022         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51023         (expand_bkref_cache, check_node_accept_bytes):
51024         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
51025         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
51026         (acquire_init_state_context, check_halt_node_context):
51027         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
51028         (sift_states_backward, clean_state_log_if_needed):
51029         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
51030         (find_recover_state, transit_state_sb, transit_state_mb):
51031         (transit_state_bkref, build_trtable, match_ctx_clean):
51032         Likewise.
51033         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
51034         to work around an assumption that REG_MISSING is negative.
51035
51036         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
51037         (seek_collating_symbol_entry) [defined _LIBC]:
51038         (lookup_collation_sequence_value) [defined _LIBC]:
51039         (build_range_exp, build_collating_symbol) [defined _LIBC]:
51040         Use prototypes rather than old-style function definitions.
51041         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
51042         (transit_state_sb) [0]:
51043         (find_collation_sequence_value) [defined _LIBC]: Likewise.
51044
51045         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
51046         rm_eo.
51047
51048         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
51049         (optimize_subexps, lower_subexp):
51050         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
51051         since the signed shift might overflow.  Use 1u<<31 instead.
51052         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
51053         Likewise.
51054         * lib/regexec.c (check_dst_limits_calc_pos_1,
51055         check_subexp_matching_top): Likewise.
51056
51057         * lib/regcomp.c (optimize_subexps, lower_subexp):
51058         Use CHAR_BIT rather than 8, for clarity.
51059         * lib/regexec.c (check_dst_limits_calc_pos_1):
51060         (check_subexp_matching_top): Likewise.
51061         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
51062         have to worry about portability issues when shifting it left.
51063         Remove no-longer-needed test for table_size > 0.
51064         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
51065         in a word, as the resulting behavior is undefined.
51066         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
51067         in one case, a <= should have been an <, and in another case the
51068         whole test was missing.
51069         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
51070         the standard name CHAR_BIT.
51071         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
51072         this is not true on one's complement and signed-magnitude hosts.
51073
51074         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
51075         next_last_offset.
51076         (struct re_dfa_t): Remove unused member states_alloc.
51077         * lib/regcomp.c (init_dfa): Don't initialize unused members.
51078
51079 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51080
51081         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
51082         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
51083         and large-file glibc and in 32-bit large-file Solaris.
51084
51085 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51086
51087         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
51088         lengths fit in regoff_t; this isn't true if regoff_t is the same
51089         width as size_t.
51090         * lib/regex.c (re_search_internal): 5th arg is LAST_START
51091         (= START + RANGE) instead of RANGE.  This avoids overflow
51092         problems when regoff_t is the same width as size_t.
51093         All callers changed.
51094         (re_search_2_stub): Check for overflow when adding the
51095         sizes of the two strings.
51096         (re_search_stub): Check for overflow when adding START
51097         to RANGE; if it occurs, substitute the extreme value.
51098
51099 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51100
51101         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
51102
51103 2005-08-31  Jim Meyering  <jim@meyering.net>
51104
51105         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
51106         a pointer-to-const.
51107         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
51108         (register_state): Likewise.
51109         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
51110         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51111         (group_nodes_into_DFAstates): Likewise.
51112
51113 2005-08-31  Jim Meyering  <jim@meyering.net>
51114
51115         * check-module: Add a FIXME comment.
51116
51117 2005-08-31  Eric Blake  <ebb9@byu.net>
51118
51119         * modules/unistd-safer (Files): Add unistd--.h.
51120         * modules/stdio-safer (Files): Add stdio--.h.
51121
51122 2005-08-31  Derek Price  <derek@ximbiot.com>
51123
51124         * lib/getdelim.c (getdelim): Return EOF on EOF.
51125         Reported by Larry Jones <lawrence.jones@ugs.com>.
51126
51127 2005-08-31  Bruno Haible  <bruno@clisp.org>
51128
51129         Avoid unnecessary diffs in the generated lib/Makefile.am.
51130         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
51131         the generated files.
51132         (func_import): Don't set cmd.
51133
51134 2005-08-31  Bruno Haible  <bruno@clisp.org>
51135
51136         * lib/strstr.c: Include <stddef.h>, for NULL.
51137         * lib/strcasestr.c: Likewise.
51138         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51139
51140 2005-08-31  Bruno Haible  <bruno@clisp.org>
51141
51142         * gnulib-tool: New option --macro-prefix.
51143         (func_import): Use macro_prefix.
51144         (import): Handle option --macro-prefix.
51145
51146 2005-08-31  Bruno Haible  <bruno@clisp.org>
51147
51148         * gnulib-tool (import): Rename most ac_* variables to cached_*.
51149         Also use new variables cached_lgpl, cached_libtool.
51150
51151 2005-08-31  Bruno Haible  <bruno@clisp.org>
51152
51153         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
51154         always instantiating them.
51155
51156 2005-08-31  Bruno Haible  <bruno@clisp.org>
51157
51158         * gnulib-tool (func_import): Read the previous cached settings
51159         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
51160         earlier added by gnulib but are now dropped. Warn when a gnulib file
51161         overwrites a non-gnulib file.
51162
51163 2005-08-31  Bruno Haible  <bruno@clisp.org>
51164
51165         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
51166         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
51167         projects that don't keep autogenerated files in CVS. Put into
51168         actioncmd only the specified modules, not the transitive closure.
51169
51170 2005-08-31  Bruno Haible  <bruno@clisp.org>
51171
51172         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
51173         Create directories that shall be filled.
51174         (import): Don't look for gl_* macros in configure.ac. Recurse across
51175         all directories containing a gnulib-cache.m4 files, if meaningful.
51176
51177 2005-08-31  Bruno Haible  <bruno@clisp.org>
51178
51179         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51180         (import): Set seen_libtool when we see gl_LIBTOOL.
51181
51182 2005-08-31  Bruno Haible  <bruno@clisp.org>
51183
51184         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51185         declaration macro definitions from generated gnulib.m4.
51186
51187 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51188
51189         * lib/iconvme.h: Add prototype for iconv_alloc.
51190
51191 2005-08-29  Simon Josefsson  <jas@extundo.com>
51192
51193         * lib/iconvme.c: Fix errno.
51194
51195 2005-08-29  Bruno Haible  <bruno@clisp.org>
51196
51197         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51198         that it works when the directory contains spaces.
51199
51200 2005-08-29  Bruno Haible  <bruno@clisp.org>
51201
51202         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51203
51204 2005-08-29  Bruno Haible  <bruno@clisp.org>
51205
51206         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51207         Emit more advice.
51208
51209 2005-08-29  Bruno Haible  <bruno@clisp.org>
51210         and Stepan Kasal  <kasal@ucw.cz>
51211
51212         * check-module: If more parameters are given, check each of them
51213         separately; add more exceptions, as noted by Jim Meyering.
51214         (check_module): New procedure.
51215         (%exempt_header): Now contains all exceptions.
51216
51217 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51218
51219         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51220
51221 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51222
51223         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51224
51225 2005-08-28  Bruno Haible  <bruno@clisp.org>
51226
51227         * m4/gnulib-tool.m4: New file.
51228
51229 2005-08-27  Jim Meyering  <jim@meyering.net>
51230
51231         * modules/unistd-safer (Files): Add pipe-safer.c.
51232         * modules/fcntl-safer (Files): Add creat-safer.c.
51233
51234 2005-08-27  Jim Meyering  <jim@meyering.net>
51235
51236         * m4/stdlib-safer.m4: New file.  From coreutils.
51237         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51238         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51239         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51240         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51241         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51242
51243 2005-08-27  Jim Meyering  <jim@meyering.net>
51244
51245         * lib/fopen-safer.c: Merge minor changes from coreutils.
51246         * lib/dup-safer.c: Likewise.
51247         * lib/fd-safer.c: Likewise.
51248
51249         Merge from coreutils.
51250         * lib/stdio--.h: New file.
51251         * lib/stdlib--.h: New file.
51252         * lib/mkstemp-safer.c: New file.
51253
51254         GNU tar needs these.
51255         * lib/pipe-safer.c: New file.
51256         * lib/creat-safer.c: New file.
51257         * lib/fcntl--.h (creat): Define to creat_safer.
51258         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51259         * lib/unistd--.h (pipe): Define to pipe_safer.
51260         * lib/unistd-safer.h: Declare pipe_safer.
51261
51262 2005-08-26  Simon Josefsson  <jas@extundo.com>
51263
51264         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51265         Haible <bruno@clisp.org>.
51266
51267 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51268
51269         * lib/regex_internal.h: Remove all references to
51270         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51271         or better.
51272         (bitset_not, bitset_merge, bitset_not_merge):
51273         (bitset_mask, re_string_allocate, re_string_construct):
51274         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51275         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51276         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51277         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51278         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51279         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51280         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51281         (re_acquire_state_context):
51282         Remove unnecessary forward decls.
51283         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51284         Put __attribute at function definition,
51285         now that the function decl has been removed.
51286         * lib/regex_internal.c (re_string_peek_byte_case):
51287         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51288         Likewise.
51289
51290 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51291
51292         * m4/regex.m4: Add AC_PREREQ(2.50).
51293         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51294
51295 2005-08-25  Simon Josefsson  <jas@extundo.com>
51296
51297         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51298         __fsetlocking.
51299
51300 2005-08-25  Simon Josefsson  <jas@extundo.com>
51301
51302         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51303         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51304         GLIBC specific code.
51305
51306 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51307
51308         Make regex safe for g++.  This fixes one real bug (an "err"
51309         that should have been "*err").  g++ problem reported by
51310         Sam Steingold.
51311         * lib/regex_internal.h (re_calloc): New macro, consistent with
51312         re_malloc etc.  All callers of calloc changed to use re_calloc.
51313         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51314         not int.  All callers changed.
51315         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51316         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51317         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51318         (find_recover_state): Change "err" to "*err"; this fixes what
51319         appears to be a real bug.
51320         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51321         versus int.
51322
51323 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51324
51325         * modules/regex (Depends-on): Add malloc, since the code
51326         assumes that !malloc(0) means failure.
51327
51328 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51329
51330         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51331
51332         alloca modernization/simplification for regex.
51333         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51334         needs to be at the start of the file, and can be moved into
51335         regex_internal.h and simplified.
51336         * lib/regex_internal.h: Include <alloca.h>.
51337         (__libc_use_alloca) [!defined _LIBC]: New macro.
51338         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51339         now works outside glibc.
51340
51341 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51342
51343         * config/srclist.txt: Add glibc bugs 1241, 1245.
51344
51345 2005-08-25  Jim Meyering  <jim@meyering.net>
51346
51347         * lib/open-safer.c: Include <config.h>.
51348         Otherwise, we'd lose LARGEFILE support in any file using
51349         e.g. "fcntl--.h"
51350
51351 2005-08-25  Bruno Haible  <bruno@clisp.org>
51352
51353         * m4/minmax.m4: Require autoconf 2.52.
51354         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51355         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51356         alternatives of translit over the alphabet.
51357         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51358
51359 2005-08-24  Simon Josefsson  <jas@extundo.com>
51360
51361         * tests/test-getpass.c: New file.
51362
51363 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51364
51365         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51366         for GNU regex features.
51367
51368 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51369
51370         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51371         * lib/regex.h (regerror): Likewise.
51372
51373         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51374         requires this.  (The code never needed it.)
51375
51376         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51377         All uses of recently-renamed identifiers changed to use the new,
51378         POSIX-compliant names.  The code will build and run just fine
51379         without these changes, but it's better to eat our own dog food
51380         and use the standard-conforming names.
51381
51382         * lib/regex.h: Fix a multitude of POSIX name space violations.
51383         These changes have an effect only for programs that define
51384         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51385         do not change anything for programs compiled in the normal way.
51386         Also, there is no effect on the ABI.
51387
51388         (_REGEX_SOURCE): New macro.
51389         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51390         defined and _GNU_SOURCE is not; this fixes a name space violation.
51391
51392         Rename the following macros to obey POSIX requirements.
51393         The old names are still visible as macros if _REGEX_SOURCE is defined.
51394         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51395         RE_BACKSLASH_ESCAPE_IN_LISTS.
51396         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51397         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51398         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51399         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51400         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51401         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51402         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51403         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51404         (REG_INTERVALS): renamed from RE_INTERVALS.
51405         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51406         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51407         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51408         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51409         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51410         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51411         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51412         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51413         RE_UNMATCHED_RIGHT_PAREN_ORD.
51414         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51415         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51416         (REG_DEBUG): renamed from RE_DEBUG.
51417         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51418         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51419         unusual, since we can't clash with the POSIX REG_ICASE.
51420         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51421         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51422         (REG_NO_SUB): renamed from RE_NO_SUB.
51423         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51424         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51425         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51426         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51427         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51428         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51429         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51430         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51431         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51432         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51433         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51434         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51435         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51436         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51437         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51438         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51439         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51440         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51441         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51442         (REG_FIXED): Renamed from REGS_FIXED.
51443         (REG_NREGS): Renamed from RE_NREGS.
51444
51445         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51446         of other REG_* macros, since POSIX says the user is allowed to
51447         #undef these macros selectively.
51448
51449         (reg_errcode_t): Update comment stating what other tables need
51450         to be consistent.
51451
51452         Rename the following enum values to obey POSIX requirements.
51453         The old names are still visible as macros.
51454         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51455         is not defined, since GNU is supposed to be a superset of POSIX as
51456         much as possible, and since we want reg_errcode_t to be a signed
51457         type for implementation consistency.
51458         (_REG_NOERROR): Renamed from REG_NOERROR.
51459         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51460         (_REG_BADPAT): Renamed from REG_BADPAT.
51461         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51462         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51463         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51464         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51465         (_REG_EBRACK): Renamed from REG_EBRACK.
51466         (_REG_EPAREN): Renamed from REG_EPAREN.
51467         (_REG_EBRACE): Renamed from REG_EBRACE.
51468         (_REG_BADBR): Renamed from REG_BADBR.
51469         (_REG_ERANGE): Renamed from REG_ERANGE.
51470         (_REG_ESPACE): Renamed from REG_ESPACE.
51471         (_REG_BADRPT): Renamed from REG_BADRPT.
51472         (_REG_EEND): Renamed from REG_EEND.
51473         (_REG_ESIZE): Renamed from REG_ESIZE.
51474         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51475         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51476         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51477         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51478         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51479
51480         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51481         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51482         changed.  But support the old name if the new one is not defined
51483         and if _REGEX_SOURCE.
51484
51485         Change the following member names in struct re_pattern_buffer.
51486         The old names are still supported if !_REGEX_SOURCE.
51487         The new names are always supported, regardless of _REGEX_SOURCE.
51488         (re_buffer): Renamed from buffer.
51489         (re_allocated): Renamed from allocated.
51490         (re_used): Renamed from used.
51491         (re_syntax): Renamed from syntax.
51492         (re_fastmap): Renamed from fastmap.
51493         (re_translate): Renamed from translate.
51494         (re_can_be_null): Renamed from can_be_null.
51495         (re_regs_allocated): Renamed from regs_allocated.
51496         (re_fastmap_accurate): Renamed from fastmap_accurate.
51497         (re_no_sub): Renamed from no_sub.
51498         (re_not_bol): Renamed from not_bol.
51499         (re_not_eol): Renamed from not_eol.
51500         (re_newline_anchor): Renamed from newline_anchor.
51501
51502         Change the following member names in struct re_registers.
51503         The old names are still supported if !_REGEX_SOURCE.
51504         The new names are always supported, regardless of _REGEX_SOURCE.
51505         (rm_num_regs): Renamed from num_regs.
51506         (rm_start): Renamed from start.
51507         (rm_end): Renamed from end.
51508
51509         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51510         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51511         Prepend __ to parameter names.
51512
51513         Undo yesterday's changes.
51514
51515 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51516
51517         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51518         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51519         lib/regex.c.
51520
51521 2005-08-24  Jim Meyering  <jim@meyering.net>
51522
51523         Sync from coreutils.
51524         * m4/fcntl-safer.m4: New file.
51525
51526         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51527         and object files for this module.
51528
51529 2005-08-24  Jim Meyering  <jim@meyering.net>
51530
51531         Sync from coreutils.
51532         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51533
51534 2005-08-24  Jim Meyering  <jim@meyering.net>
51535
51536         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51537         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51538
51539 2005-08-24  Jim Meyering  <jim@meyering.net>
51540
51541         * modules/fcntl-safer: New module.
51542         * modules/fts (Depends-on): Add fcntl-safer.
51543         * MODULES.html.sh (File descriptor based Input/Output):
51544         Add fcntl-safer.
51545
51546 2005-08-24  Bruno Haible  <bruno@clisp.org>
51547
51548         Support for unit test modules.
51549         * modules/README: Mention tests modules.
51550         * modules/TEMPLATE-TESTS: New file.
51551         * gnulib-tool: New options --extract-tests-module, --with-tests and
51552         --tests-base (unused for the moment).
51553         (testsbase, inctests): New variables.
51554         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51555         (func_verify_module): Exclude TEMPLATE-TESTS.
51556         (func_verify_nontests_module, func_verify_tests_module): New functions.
51557         (func_get_dependencies): Add implicit dependency for tests modules.
51558         (func_get_tests_module): New function.
51559         (func_modules_transitive_closure): When --with-tests was specified,
51560         include the unit tests as well, unless explicitly avoided.
51561         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51562         (func_emit_tests_Makefile_am): New function.
51563         (func_create_testdir): When --with-tests was specified, emit a
51564         tests/ directory.
51565         * MODULES.html.sh (Future developments): Update.
51566
51567 2005-08-24  Bruno Haible  <bruno@clisp.org>
51568
51569         * modules/tls-tests: New file.
51570         * tests/test-tls.c: New file, from GNU gettext.
51571
51572 2005-08-24  Bruno Haible  <bruno@clisp.org>
51573
51574         * modules/lock-tests: New file.
51575         * tests/test-lock.c: New file, from GNU gettext.
51576
51577 2005-08-24  Bruno Haible  <bruno@clisp.org>
51578
51579         * lib/lock.h: Add multiple inclusion guard.
51580         * lib/tls.h: Add multiple inclusion guard.
51581
51582 2005-08-24  Bruno Haible  <bruno@clisp.org>
51583
51584         * gnulib-tool: Add support for the --aux-dir option to
51585         --create-testdir, --create-megatestdir, --test, --megatest.
51586         (func_create_testdir, func_create_megatestdir): Optionally emit a
51587         AC_CONFIG_AUX_DIR directive.
51588         (create-testdir, create-megatestdir, test, megatest): Provide a
51589         default value for $auxdir.
51590
51591 2005-08-24  Bruno Haible  <bruno@clisp.org>
51592
51593         * gnulib-tool (import): Use compound statement instead of subshell
51594         where possible.
51595
51596 2005-08-24  Bruno Haible  <bruno@clisp.org>
51597
51598         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51599
51600 2005-08-24  Bruno Haible  <bruno@clisp.org>
51601
51602         * gnulib-tool (func_version): Update.
51603
51604 2005-08-24  Bruno Haible  <bruno@clisp.org>
51605
51606         * gnulib-tool (func_import, func_create_testdir,
51607         func_create_megatestdir): Quote all autoconf macro arguments.
51608
51609 2005-08-24  Bruno Haible  <bruno@clisp.org>
51610
51611         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51612         option --force, because --force causes the aclocal.m4 of each
51613         subdirectory to be newer than the corresponding config.h.in.
51614
51615 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51616
51617         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51618         All contents moved to gl_REGEX.
51619         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51620         assume that it does.
51621
51622 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51623
51624         * lib/regex.h (REG_NOSYS)
51625         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51626         Define, since POSIX requires it as of 2001.
51627         (_REG_ENOSYS)
51628         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51629         New private symbol, used to keep the enum signed in all cases.
51630         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51631         Youngman in
51632         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51633
51634         * lib/regex_internal.c (re_string_skip_chars, register_state):
51635         (calc_state_hash):
51636         Remove forward decls; no longer needed now that we use prototypes.
51637         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51638         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51639         (clean_state_log_if_needed): Likewise.
51640
51641 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51642
51643         * config/srclist.txt: Add glibc bugs 1231-1233.
51644
51645 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51646
51647         Fix problems reported by Sam Steingold in
51648         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51649         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51650         assumed that reg_errcode_t is a signed type, which is not
51651         necessarily true if _XOPEN_SOURCE is not defined.
51652         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51653         since some compilers warn about it otherwise.
51654
51655 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51656
51657         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51658         (init_word_char, create_initial_state, duplicate_node_closure):
51659         (fetch_token, peek_token_bracket, build_range_exp):
51660         (build_collating_symbol): Remove forward decls; no longer needed
51661         now that we use prototypes.
51662
51663         * lib/regcomp.c:
51664         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51665         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51666         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51667         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51668         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51669         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51670         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51671         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51672         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51673         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51674         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51675         (build_charclass, build_charclass_op, fetch_number, create_tree):
51676         (create_token_tree, mark_opt_subexp, duplicate_tree):
51677         Use prototypes rather than old-style definitions.
51678
51679         * lib/regex_internal.c:
51680         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51681         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51682         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51683         (re_string_reconstruct, re_string_peek_byte_case):
51684         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51685         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51686         (re_node_set_init_copy, re_node_set_add_intersect):
51687         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51688         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51689         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51690         (re_acquire_state, re_acquire_state_context, register_state):
51691         (create_ci_newstate, create_cd_newstate, free_state):
51692         Likewise.
51693         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51694         re_search_2):
51695         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51696         (re_search_internal, prune_impossible_nodes):
51697         (acquire_init_state_context, check_matching, static):
51698         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51699         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51700         (update_regs, sift_states_backward, build_sifted_states):
51701         (clean_state_log_if_needed, merge_state_array):
51702         (update_cur_sifted_state, add_epsilon_src_nodes):
51703         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51704         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51705         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51706         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51707         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51708         (check_arrival, check_arrival_add_next_nodes):
51709         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51710         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51711         (check_node_accept_bytes, check_node_accept, extend_buffers):
51712         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51713         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51714         (sift_ctx_init):
51715         Likewise.
51716
51717         * lib/regex_internal.h:
51718         (re_string_allocate, re_string_construct, re_string_reconstruct):
51719         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51720         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51721         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51722         (re_string_context_at, re_string_peek_byte_case):
51723         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51724         is defined, since we now use prototypes always.
51725
51726         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51727         C89 or better.  All uses removed.
51728
51729 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51730
51731         * config/srclist.txt: Add glibc bugs 1220-1227.
51732
51733 2005-08-20  Jim Meyering  <jim@meyering.net>
51734
51735         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51736         of unused local, dfa.
51737
51738 2005-08-20  Bruno Haible  <bruno@clisp.org>
51739
51740         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51741
51742 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51743
51744         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51745         (re_node_set_insert_last, re_dfa_add_node):
51746         Rename local variables to avoid GCC shadowing warnings.
51747
51748 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51749
51750         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51751         [defined lint]: Suppress bogus uninitialized-variable warnings.
51752
51753         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51754         and let the caller return REG_ESPACE if out of space.  This
51755         removes an uninitialied-variable warning with GCC 4.0.1, and also
51756         avoids taking the address of a local variable.  All callers
51757         changed.
51758
51759 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51760
51761         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51762         $LIBCSRC/posix/regexec.c.
51763         Add glibc bug 1217 for regcomp.c.
51764
51765 2005-08-19  Jim Meyering  <jim@meyering.net>
51766
51767         * lib/regexec.c (proceed_next_node): Redo local variables to
51768         avoid GCC shadowing warnings.
51769
51770 2005-08-18  Bruno Haible  <bruno@clisp.org>
51771
51772         * lib/strstr.c (strstr): Fix return value in multibyte case.
51773         * lib/strcasestr.c (strcasestr): Likewise.
51774
51775 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51776
51777         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51778
51779 2005-08-17  Jim Meyering  <jim@meyering.net>
51780
51781         Make the %s format (seconds since the epoch) work for a negative
51782         number and when used with a zero-padded field width, e.g. %015s.
51783
51784         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51785         label so that it precedes the code to set `digits'.  Otherwise,
51786         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51787         print `00-22'.  Now, it prints `-0022', as it should.
51788
51789 2005-08-17  Bruno Haible  <bruno@clisp.org>
51790
51791         * modules/strstr (Files): Add m4/mbrtowc.m4.
51792         (Depends-on): Add mbuiter.
51793
51794 2005-08-17  Bruno Haible  <bruno@clisp.org>
51795
51796         * modules/strcasestr: New file.
51797         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51798         strcasestr.
51799
51800 2005-08-17  Bruno Haible  <bruno@clisp.org>
51801
51802         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51803
51804 2005-08-17  Bruno Haible  <bruno@clisp.org>
51805
51806         * modules/mbuiter: New file.
51807         * MODULES.html.sh (Extended multibyte and wide character utilities):
51808         Add mbuiter.
51809
51810 2005-08-17  Bruno Haible  <bruno@clisp.org>
51811
51812         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51813         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51814
51815 2005-08-17  Bruno Haible  <bruno@clisp.org>
51816
51817         * m4/strcasestr.m4: New file.
51818
51819 2005-08-17  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51822         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51823
51824 2005-08-17  Bruno Haible  <bruno@clisp.org>
51825
51826         * lib/strcasestr.h: New file.
51827         * lib/strcasestr.c: New file.
51828
51829 2005-08-17  Bruno Haible  <bruno@clisp.org>
51830
51831         * lib/strcasecmp.c: Use mbuiter.h.
51832
51833 2005-08-17  Bruno Haible  <bruno@clisp.org>
51834
51835         * lib/mbuiter.h: New file.
51836
51837 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51838
51839         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51840         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51841         and gl_GETOPT are both invoked via different paths (as happens
51842         with GNU tar CVS because it uses both argp and getopt), the former
51843         wins.
51844
51845 2005-08-16  Bruno Haible  <bruno@clisp.org>
51846
51847         * modules/tls: New file.
51848         * MODULES.html.sh (Multithreading): Add tls.
51849
51850 2005-08-16  Bruno Haible  <bruno@clisp.org>
51851
51852         * modules/strnlen1: New file.
51853         * MODULES.html.sh (String handling): Add strnlen1.
51854
51855 2005-08-16  Bruno Haible  <bruno@clisp.org>
51856
51857         * modules/strcase (Files): Add m4/mbrtowc.m4.
51858         (Depends-on): Add strnlen1, mbchar.
51859
51860 2005-08-16  Bruno Haible  <bruno@clisp.org>
51861
51862         * modules/mbiter: New file.
51863         * MODULES.html.sh (Extended multibyte and wide character utilities):
51864         Add mbiter.
51865
51866 2005-08-16  Bruno Haible  <bruno@clisp.org>
51867
51868         * modules/mbfile: New file.
51869         * MODULES.html.sh (Extended multibyte and wide character utilities):
51870         Add mbfile.
51871
51872 2005-08-16  Bruno Haible  <bruno@clisp.org>
51873
51874         * modules/mbchar: New file.
51875         * MODULES.html.sh (Extended multibyte and wide character utilities):
51876         New section.
51877
51878 2005-08-16  Bruno Haible  <bruno@clisp.org>
51879
51880         * m4/tls.m4: New file, from GNU gettext.
51881
51882 2005-08-16  Bruno Haible  <bruno@clisp.org>
51883
51884         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51885         always.
51886         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51887
51888 2005-08-16  Bruno Haible  <bruno@clisp.org>
51889
51890         * m4/mbiter.m4: New file.
51891
51892 2005-08-16  Bruno Haible  <bruno@clisp.org>
51893
51894         * m4/mbfile.m4: New file.
51895
51896 2005-08-16  Bruno Haible  <bruno@clisp.org>
51897
51898         * m4/mbchar.m4: New file.
51899
51900 2005-08-16  Bruno Haible  <bruno@clisp.org>
51901
51902         * lib/tls.h: New file, from GNU gettext.
51903         * lib/tls.c: New file, from GNU gettext.
51904
51905 2005-08-16  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/strnlen1.h: New file.
51908         * lib/strnlen1.c: New file.
51909
51910 2005-08-16  Bruno Haible  <bruno@clisp.org>
51911
51912         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51913         (mbi_init): Update.
51914         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51915         NUL byte, not after it.
51916
51917 2005-08-16  Bruno Haible  <bruno@clisp.org>
51918
51919         * lib/strcase.h (strcasecmp): Add note in comments.
51920         * lib/strncasecmp.c: Use code from strcasecmp.c.
51921         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51922         (strcasecmp): Work correctly in multibyte locales.
51923
51924 2005-08-16  Bruno Haible  <bruno@clisp.org>
51925
51926         * lib/mbiter.h: New file.
51927
51928 2005-08-16  Bruno Haible  <bruno@clisp.org>
51929
51930         * lib/mbfile.h: New file.
51931
51932 2005-08-16  Bruno Haible  <bruno@clisp.org>
51933
51934         * lib/mbchar.h: New file.
51935         * lib/mbchar.c: New file.
51936
51937 2005-08-16  Bruno Haible  <bruno@clisp.org>
51938
51939         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51940         the valid ones. Makes the comparison operations transitive:
51941         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51942         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51943
51944 2005-08-15  Simon Josefsson  <jas@extundo.com>
51945
51946         * modules/ssize_t (License): Change to 'unlimited'.
51947
51948         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51949
51950 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51951
51952         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51953         Add comments for each pending glibc patch.
51954
51955 2005-08-15  Bruno Haible  <bruno@clisp.org>
51956
51957         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51958         __cplusplus is defined.
51959
51960 2005-08-14  Jim Meyering  <jim@meyering.net>
51961
51962         Sync from coreutils.
51963
51964         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51965         Use the hash-table-based cycle-detection code not just when
51966         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51967         Reported by James Youngman in
51968         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51969         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51970         FTS_TIGHT_CYCLE_CHECK.
51971         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51972         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51973         once again.
51974         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51975         * lib/fts.c (fd_safer): Remove decl.
51976         Include fcntl--.h rather than unistd-safer.h
51977         (fts_safe_changedir): Don't call fd_safer; no longer needed
51978         now that we include fcntl--.h.
51979
51980 2005-08-12  Simon Josefsson  <jas@extundo.com>
51981
51982         * modules/getndelim2: Use ssize_t module.
51983         * modules/getnline: Likewise.
51984         * modules/safe-read: Likewise.
51985         * modules/xreadlink: Likewise.
51986
51987         * modules/ssize_t: New file.
51988
51989 2005-08-12  Simon Josefsson  <jas@extundo.com>
51990
51991         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51992
51993 2005-08-12  Simon Josefsson  <jas@extundo.com>
51994
51995         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51996         ssize_t.
51997
51998 2005-08-12  Simon Josefsson  <jas@extundo.com>
51999
52000         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
52001         readline, getdelim and check_version.
52002         (Support for systems lacking ISO C 99: Sizes of integer types):
52003         Add size_max.
52004
52005 2005-08-12  Bruno Haible  <bruno@clisp.org>
52006
52007         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
52008
52009 2005-08-11  Simon Josefsson  <jas@extundo.com>
52010
52011         * modules/readline: New file.
52012
52013         * modules/strnlen (Files): Add strnlen.h.
52014
52015 2005-08-11  Simon Josefsson  <jas@extundo.com>
52016
52017         * m4/readline.m4: New file.
52018
52019 2005-08-11  Simon Josefsson  <jas@extundo.com>
52020
52021         * lib/readline.h, readline.c: New file.
52022
52023 2005-08-11  Simon Josefsson  <jas@extundo.com>
52024
52025         * doc/gnulib.texi (Initial import, Finishing touches): Mention
52026         gl_AVOID.
52027
52028 2005-08-11  Bruno Haible  <bruno@clisp.org>
52029
52030         * lib/strnlen.h (strnlen): Change parameter name to match comment.
52031
52032 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
52033
52034         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
52035
52036 2005-08-10  Simon Josefsson  <jas@extundo.com>
52037
52038         * tests/test-iconvme.c: New file.
52039
52040 2005-08-10  Simon Josefsson  <jas@extundo.com>
52041
52042         * m4/strnlen.m4: New file.
52043
52044         * m4/strndup.m4: Don't check for strnlen declaration, done in
52045         strnlen.m4.
52046
52047 2005-08-10  Simon Josefsson  <jas@extundo.com>
52048
52049         * lib/strndup.c: Use strnlen.h.
52050
52051         * lib/strnlen.h: New file.
52052
52053 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52054
52055         * README: Typos.
52056
52057 2005-08-02  Simon Josefsson  <jas@extundo.com>
52058
52059         * modules/readline: New file.
52060
52061 2005-08-02  Simon Josefsson  <jas@extundo.com>
52062
52063         * modules/getdelim: New file.
52064
52065         * modules/getline: Rewrite, don't use getndelim2.
52066
52067 2005-08-02  Simon Josefsson  <jas@extundo.com>
52068
52069         * m4/getline.m4: Separate out getdelim stuff into separate module.
52070
52071         * m4/getdelim.m4: New file.
52072
52073 2005-08-02  Simon Josefsson  <jas@extundo.com>
52074
52075         * lib/getline.h, getline.c: Rewrite.
52076
52077         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
52078
52079 2005-07-31  Bruno Haible  <bruno@clisp.org>
52080
52081         * lib/lock.h (gl_lock_initializer): New macro.
52082         (gl_lock_define_initialized): Use it.
52083         (gl_rwlock_initializer): New macro.
52084         (gl_rwlock_define_initialized): Use it.
52085         (gl_recursive_lock_initializer): New macro.
52086         (gl_recursive_lock_define_initialized): Use it.
52087
52088 2005-07-30  Karl Berry  <karl@gnu.org>
52089
52090         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
52091         Report from Ben Pfaff, regarding getopt.
52092
52093 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
52094
52095         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
52096         normal way.
52097         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
52098         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
52099         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
52100         (gl_GETOPT): Use the new macros.  Most of the implementation
52101         is moved to the new macros.  This is for programs like Emacs
52102         that don't want all the functionality of gl_GETOPT.
52103
52104 2005-07-26  Bruno Haible  <bruno@clisp.org>
52105
52106         * m4/lock.m4: Update from GNU gettext.
52107
52108 2005-07-26  Bruno Haible  <bruno@clisp.org>
52109
52110         * lib/lock.h: Update from GNU gettext.
52111         * lib/lock.c: Update from GNU gettext.
52112
52113 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
52114
52115         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
52116         obsolescent AC_TRY_RUN.  Include the default includes files, for
52117         'exit'.
52118
52119 2005-07-24  Bruno Haible  <bruno@clisp.org>
52120
52121         * modules/visibility: New file.
52122         * MODULES.html.sh (Misc): Add visibility.
52123
52124 2005-07-24  Bruno Haible  <bruno@clisp.org>
52125
52126         * m4/visibility.m4: New file.
52127
52128 2005-07-24  Bruno Haible  <bruno@clisp.org>
52129
52130         * doc/visibility.texi: New file.
52131
52132 2005-07-22  Bruno Haible  <bruno@clisp.org>
52133
52134         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
52135         $(ALLOCA_H), redundant through BUILT_SOURCES.
52136         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
52137         redundant through BUILT_SOURCES.
52138         * modules/byteswap (Makefile.am): Remove explicit dependency on
52139         $(BYTESWAP_H), redundant through BUILT_SOURCES.
52140         * modules/fnmatch (Makefile.am): Remove explicit dependency on
52141         $(FNMATCH_H), redundant through BUILT_SOURCES.
52142         * modules/getopt (Makefile.am): Remove explicit dependency on
52143         $(GETOPT_H), redundant through BUILT_SOURCES.
52144         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
52145         redundant through BUILT_SOURCES.
52146         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
52147         redundant through BUILT_SOURCES.
52148         * modules/stdbool (Makefile.am): Remove explicit dependency on
52149         $(STDBOOL_H), redundant through BUILT_SOURCES.
52150         * modules/stdint (Makefile.am): Remove explicit dependency on
52151         $(STDINT_H), redundant through BUILT_SOURCES.
52152         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
52153         Remove explicit dependency on $(SYSEXITS_H).
52154         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
52155
52156 2005-07-18  Simon Josefsson  <jas@extundo.com>
52157
52158         * lib/check-version.c (check_version): Accept identical versions too.
52159
52160 2005-07-18  Bruno Haible  <bruno@clisp.org>
52161
52162         * modules/lock: New file.
52163         * MODULES.html.sh (Multithreading): New section.
52164
52165 2005-07-18  Bruno Haible  <bruno@clisp.org>
52166
52167         * m4/lock.m4: New file, from GNU gettext.
52168
52169 2005-07-18  Bruno Haible  <bruno@clisp.org>
52170
52171         * lib/lock.h: New file, from GNU gettext.
52172         * lib/lock.c: New file, from GNU gettext.
52173
52174 2005-07-18  Bruno Haible  <bruno@clisp.org>
52175
52176         * lib/lock.h (gl_once_t): New type.
52177         (gl_once_define, gl_once): New macros.
52178         * lib/lock.c (fresh_once): New variable.
52179         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52180         functions.
52181
52182 2005-07-16  Simon Josefsson  <jas@extundo.com>
52183
52184         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52185         workaround, suggested by Bruno.
52186
52187 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52188
52189         * modules/xalloc (Depends-on): Add xalloc-die.
52190         * modules/xvasprintf (Depends-on): Add xalloc-die.
52191
52192 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52193
52194         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52195         with a minor change.
52196
52197 2005-07-15  Bruno Haible  <bruno@clisp.org>
52198
52199         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52200         When using lib/poll.c, define poll as rpl_poll.
52201
52202 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * modules/argp (Depends-on): Remove unlocked-io.
52205
52206 2005-07-14  Derek Price  <derek@ximbiot.com>
52207
52208         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52209         for glob symlink bug.
52210
52211 2005-07-14  Bruno Haible  <bruno@clisp.org>
52212
52213         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52214         Instead, test for *_unlocked function declarations directly.
52215
52216 2005-07-11  Simon Josefsson  <jas@extundo.com>
52217
52218         * modules/size_max: New file.
52219
52220         * modules/xsize: Depend on size_max module for size_max.m4.
52221
52222 2005-07-11  Simon Josefsson  <jas@extundo.com>
52223
52224         * lib/size_max.h: New file.
52225
52226 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52227
52228         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52229         copyright symbol and the year.
52230         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52231         (version_etc_va): Use parameterized copyright notice.
52232         Reword to conform to the current GNU coding standards.
52233
52234 2005-07-11  Karl Berry  <karl@gnu.org>
52235
52236         * doc/gnulib.texi (Quoting): new node.
52237         (Initial import): more info, from Patrice.
52238
52239 2005-07-11  Bruno Haible  <bruno@clisp.org>
52240
52241         * gnulib-tool (func_usage): Document option --avoid.
52242         (Command line options): Handle --avoid.
52243         (func_acceptable): New function.
52244         (func_modules_transitive_closure): Use it.
52245
52246 2005-07-11  Bruno Haible  <bruno@clisp.org>
52247
52248         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52249         Reported by Jim Meyering.
52250
52251 2005-07-10  Bruno Haible  <bruno@clisp.org>
52252
52253         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52254         Needed when size_t is smaller than 'unsigned int'.
52255         Reported by Paul Eggert.
52256
52257 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52258
52259         * modules/argp (Depends-on): Add unlocked-io
52260
52261 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52262
52263         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52264         block of defines.
52265
52266 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52267
52268         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52269         fix now.
52270
52271 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52272         and Paul Eggert  <eggert@cs.ucla.edu>
52273
52274         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52275         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52276
52277 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52278
52279         * modules/regex (Files): Add lib/regex_internal.c,
52280         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52281         (Depends-on): Add extensions.
52282         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52283
52284 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52285
52286         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52287         pathconf.
52288         * m4/same.m4 (gl_SAME): Likewise.
52289         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52290
52291         * m4/regex.m4: Adjust to new libc regex implementation.
52292         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52293         all the .c and .h parts of (the new) regex.
52294         Quote the m4 stuff better.
52295         Check for RE_ICASE bug of old gnulib.
52296         Check for REG_STARTEND of recent libc.
52297         Rename local variables from jm_* to gl_*.
52298         Quote operand of "test -f".
52299         Say "recent enough" version of libc, not "version 2".
52300         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52301         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52302         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52303         Remove check for btowc, isascii.
52304         Require AM_LANGINFO_CODESET.
52305
52306 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52307
52308         * lib/regex.c, regex.h: Sync from libc.
52309         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52310         * lib/regexec.c:
52311         New files, synced from libc, except that regex_internal.h
52312         currently has a small porting fix.
52313
52314 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52315
52316         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52317         regex_internal.c, regexec.c.
52318         Add regex_internal.h too, but as a comment, since the libc version
52319         is currently broken in gnulib mode.
52320
52321 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52322
52323         Support programs like Emacs that use gnulib but not gettext.
52324         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52325         * modules/gettext-h: New file.
52326         * modules/gettext (Files): Remove lib/gettext.h.
52327         (Depends-on): Add gettext-h.
52328         (Makefile.am): Remove lib_SOURCES.
52329         * modules/argmatch, modules/c-stack, modules/closeout:
52330         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52331         * modules/execute, modules/file-type, modules/getaddrinfo:
52332         * modules/getopt, modules/human, modules/javacomp:
52333         * modules/javaexec, modules/mkdir-p, modules/obstack:
52334         * modules/openat, modules/pagealign_alloc, modules/pipe:
52335         * modules/quotearg, modules/regex, modules/rpmatch:
52336         * modules/unicodeio, modules/userspec, modules/version-etc:
52337         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52338         * modules/xsetenv:
52339         Depend on gettext-h, not gettext.
52340
52341 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52342
52343         * gnulib-tool (func_import): Add support for 'public domain' license.
52344         * modules/alloca, modules/atexit, modules/memmove:
52345         Now public domain, not GPL.
52346         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52347         * modules/realloc, modules/strerror, modules/strtod:
52348         Now LGPL, not GPL.
52349
52350 2005-07-05  Bruno Haible  <bruno@clisp.org>
52351
52352         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52353         autoconf CVS. Needed for mingw.
52354
52355 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52356
52357         Remove the dependency of the strftime module on the tzset module.
52358         * modules/strftime (Depends-on): Remove dependency on tzset.
52359
52360 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52361
52362         Remove the dependency of the strftime module on the tzset module.
52363         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52364         gl_FUNC_TZSET_CLOBBER.
52365
52366 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52367
52368         Remove the dependency of the strftime module on the tzset module.
52369         * lib/strftime.c (my_strftime)
52370         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52371         Copy the input structure, to work around some of the bug with
52372         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52373         Solaris releases, you should also use the tzset module, but we won't
52374         require it as a dependency any more since we don't want LGPLed code
52375         to depend on GPLed code.
52376
52377 2005-07-02  Jim Meyering  <jim@meyering.net>
52378
52379         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52380         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52381         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52382         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52383
52384 2005-07-02  Jim Meyering  <jim@meyering.net>
52385
52386         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52387
52388 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52389
52390         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52391         declares only 'struct timespec;' (!).
52392
52393 2005-07-01  Jim Meyering  <jim@meyering.net>
52394
52395         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52396         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52397         * lib/save-cwd.c, tempname.c:
52398         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52399         and don't include <sys/file.h>).
52400
52401 2005-06-29  Jim Meyering  <jim@meyering.net>
52402
52403         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52404         type name.  Use the variable name instead.
52405         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52406         Likewise.
52407
52408 2005-06-28  Simon Josefsson  <jas@extundo.com>
52409
52410         * modules/check-version (Files): Add check-version.m4.
52411
52412 2005-06-28  Simon Josefsson  <jas@extundo.com>
52413
52414         * m4/check-version.m4: New file, suggested by Jim Meyering
52415         <jim@meyering.net>.
52416
52417 2005-06-28  Simon Josefsson  <jas@extundo.com>
52418
52419         * lib/check-version.h, lib/check-version.c: New files.
52420
52421 2005-06-28  Simon Josefsson  <jas@extundo.com>
52422
52423         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52424         collision with global variable.  Better indentation.  Don't
52425         increment buffer pointer beyond buffer end.  Based on comments
52426         from Paul Eggert <eggert@cs.ucla.edu>.
52427
52428         * lib/base64.h: Indent.
52429
52430 2005-06-28  Simon Josefsson  <jas@extundo.com>
52431
52432         * doc/gnulib.texi (Library version handling): New section.
52433
52434 2005-06-28  Jim Meyering  <jim@meyering.net>
52435
52436         * check-module (find_included_lib_files): Hard-code another
52437         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52438         but modules/fts-lgpl (correctly) does not list those files.
52439
52440         * modules/canonicalize (Files): Add lib/pathmax.h.
52441
52442 2005-06-25  Simon Josefsson  <jas@extundo.com>
52443
52444         * modules/check-version: New file.
52445
52446 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52447
52448         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52449         initializer of struct addrinfo, as an indication that we don't
52450         care how many members the structure has.
52451
52452 2005-06-24  Derek Price  <derek@ximbiot.com>
52453         and Bruno Haible  <bruno@clisp.org>
52454
52455         Remove stat module & update lstat.
52456         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52457         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52458         * m4/stat.m4: Remove this file.
52459
52460 2005-06-24  Derek Price  <derek@ximbiot.com>
52461         and Bruno Haible  <bruno@clisp.org>
52462
52463         Remove stat module & update lstat.
52464         * lib/stat.c: Remove this file...
52465         (slash_aware_lstat): ...moving this content and its support...
52466         * lib/lstat.c (rpl_lstat): ...into here.
52467         * lib/lstat.h: New file.
52468
52469 2005-06-24  Derek Price  <derek@ximbiot.com>
52470         and Bruno Haible  <bruno@clisp.org>
52471
52472         Remove stat module & update lstat.
52473         * config/srclist.txt (libc sources): Remove stat.
52474
52475 2005-06-24  Derek Price  <derek@ximbiot.com>
52476         and Bruno Haible  <bruno@clisp.org>
52477
52478         Remove stat module & update lstat.
52479         * MODULES.html.sh (stat): Remove.
52480         * MODULES.html: Regenerated.
52481         * modules/lstat (Description): Correct function name.
52482         (Files): Add "lstat.h".
52483         (Depends-on): Remove stat, add xalloc, stat-macros.
52484         * modules/stat: Remove this file.
52485         (Include): Add "lstat.h", remove <sys/stat.h>.
52486
52487 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52488
52489         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52490         (ranged_convert): Don't save conversion in a temporary struct.
52491         This causes a warning with GCC 4.0.0, and anyway in the typical
52492         case it's not worth the extra 100 bytes or so of code.
52493         (ranged_convert, __mktime_internal): When calling a function via a
52494         pointer P, use P () rather than (*P) (), as we now assume C89 or
52495         better.
52496
52497 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52498
52499         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52500         "who -r" failed to give output.  Problem reported by Tim Waugh.
52501
52502         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52503         (xcalloc): Use it to avoid needless tests.
52504         Problem reported by Jim Meyering.
52505
52506 2005-06-20  Derek Price  <derek@ximbiot.com>
52507
52508         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52509         unnecessary for Autoconfs > 2.59c.
52510
52511 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52512
52513         * lib/argp.h (__option_is_short): Check upper limit of
52514         __key. Isprint() requires its argument to have the value
52515         of an unsigned char or EOF.
52516
52517 2005-06-16  Jim Meyering  <jim@meyering.net>
52518
52519         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52520         when either N or S is zero.
52521
52522 2005-06-16  Derek Price  <derek@ximbiot.com>
52523
52524         * m4/bison.m4: Declare YACC & YFLAGS precious.
52525
52526 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52527
52528         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52529         multibyte string or pattern, fall back on unibyte matching.
52530         Problem reported by James Youngman.
52531
52532 2005-06-08  Bruno Haible  <bruno@clisp.org>
52533
52534         * modules/csharpcomp: New file.
52535         * MODULES.html.sh (C#): Add csharpcomp.
52536
52537 2005-06-08  Bruno Haible  <bruno@clisp.org>
52538
52539         * m4/csharpcomp.m4: New file, from GNU gettext.
52540
52541 2005-06-08  Bruno Haible  <bruno@clisp.org>
52542
52543         * lib/csharpcomp.h: New file, from GNU gettext.
52544         * lib/csharpcomp.c: New file, from GNU gettext.
52545         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52546
52547 2005-06-08  Bruno Haible  <bruno@clisp.org>
52548
52549         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52550         warning on mingw.
52551
52552 2005-06-07  Derek Price  <derek@ximbiot.com>
52553
52554         Sync from CVS.
52555         * lib/glob_.h: Indent nested #ifdef.
52556
52557 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52558
52559         Sync from coreutils.
52560         Use "file name" when talking about file names, instead of "filename"
52561         or "path", as per the GNU coding standards.
52562         * lib/mkdir-p.c: Renamed from makepath.c.
52563         (make_dir_parents): Renamed from make_path.  All callers changed.
52564         * lib/mkdir-p.h: Likewise.  All includers changed.
52565         * lib/filenamecat.c: Renamed from path-concat.c.
52566         (file_name_concat): Renamed from path_concat.  All callers changed.
52567         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52568         * lib/filenamecat.h: Likewise.  All includers changed.
52569         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52570         in comments or local variable names.
52571         * lib/basename.c: Likewise.
52572         * lib/canonicalize.c, canonicalize.h: Likewise.
52573         * lib/dirname.c, dirname.h: Likewise.
52574         * lib/euidaccess.c: Likewise.
52575         * lib/exclude.c: Likewise
52576         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52577         * lib/fsusage.c, fsuage.h: Likewise.
52578         * lib/fts.c, fts_.h: Likewise.
52579         * lib/getcwd.c: Likewise.
52580         * lib/getloadavg.c: Likewise.
52581         * lib/mkstemp.c: Likewise.
52582         * lib/mountlist.c, mountlist.h: Likewise.
52583         * lib/openat.c, openat.h: Likewise.
52584         * lib/readlink-stub.c: Likewise.
52585         * lib/readutmp.c, readutmp.h: Likewise.
52586         * lib/rename.c: Likewise.
52587         * lib/rmdir.c: Likewise.
52588         * lib/same.c: Likewise.
52589         * lib/savedir.c: Likewise.
52590         * lib/stripslash.c: Likewise.
52591         * lib/tempname.c: Likewise.
52592         * lib/xreadlink.c: Likewise.
52593         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52594         All uses changed.
52595         * lib/exclude.h: Likewise.
52596
52597         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52598         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52599         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52600         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52601         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52602         files have been getting away with it for years (MORE/BSD 4.3
52603         is extinct now).
52604         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52605         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52606
52607         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52608         Define to 256, not 255, as per modern POSIX.
52609
52610 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52611
52612         Sync from coreutils.
52613         Use "file name" when talking about file names, instead of "filename"
52614         or "path", as per the GNU coding standards.
52615         * MODULES.html.sh: mkdir-p renamed from makepath.
52616         filenamecat renamed from path-concat.
52617         * modules/filenamecat: Renamed from modules/path-concat.
52618         (Files): filenamecat.h and filenamecat.c renamed from
52619         path-concat.h and path-concat.c.
52620         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52621         (Include): filenamecat.h, not path-concat.h.
52622         * modules/mkdir-p: Renamed from modules/makepath.
52623         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52624         makepath.c.
52625         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52626         (Include): mkdir-p.h, not makepath.h.
52627
52628 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52629
52630         Sync from coreutils.
52631         * m4/mkdir-p.m4: Renamed from makepath.m4.
52632         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52633         Rename files from makepath.c to mkdir-p.c, and from
52634         makepath.h to mkdir-p.h.
52635         * m4/filenamecat.m4: Renamed from path-concat.m4.
52636         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52637         Rename files from path-concat.c to filenamecat.c,
52638         and from path-concat.h to filenamecat.h.
52639         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52640         "file name" in local variables or comments.
52641         * m4/rename.m4: Likewise.
52642
52643 2005-06-01  Bruno Haible  <bruno@clisp.org>
52644
52645         * modules/csharpexec: New file.
52646         * MODULES.html.sh (C#): New section.
52647
52648 2005-06-01  Bruno Haible  <bruno@clisp.org>
52649
52650         * m4/csharp.m4: New file, from GNU gettext.
52651         * m4/csharpexec.m4: New file, from GNU gettext.
52652
52653 2005-06-01  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/csharpexec.h: New file, from GNU gettext.
52656         * lib/csharpexec.c: New file, from GNU gettext.
52657         * lib/csharpexec.sh.in: New file, from GNU gettext.
52658
52659 2005-05-31  Derek Price  <derek@ximbiot.com>
52660             Paul Eggert  <eggert@cs.ucla.edu>
52661
52662         Sync from cvs.
52663         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52664
52665 2005-05-31  Derek Price  <derek@ximbiot.com>
52666             Paul Eggert  <eggert@cs.ucla.edu>
52667
52668         Sync from cvs.
52669         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52670
52671 2005-05-29  Derek Price  <derek@ximbiot.com>
52672
52673         * config/srclist.txt (glob_.h, glob.c): Add these files.
52674
52675 2005-05-29  Derek Price  <derek@ximbiot.com>
52676
52677         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52678         * modules/glob: New file.
52679         * modules/getlogin_r: Add link to POSIX spec in description.
52680
52681 2005-05-29  Derek Price  <derek@ximbiot.com>
52682             Paul Eggert  <eggert@cs.ucla.edu>
52683
52684         * m4/glob.m4: New file.
52685
52686 2005-05-29  Derek Price  <derek@ximbiot.com>
52687             Paul Eggert  <eggert@cs.ucla.edu>
52688
52689         * lib/glob_.h, lib/glob.c: New files.
52690
52691 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52692
52693         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52694         * modules/fts-lgpl (Depends-on): Remove gettext.
52695
52696 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52697
52698         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52699         and don't require gt_INTTYPES_PRI.
52700
52701 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52702
52703         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52704
52705         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52706         the configuration hassle isn't worth it.
52707         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52708         (LONGEST_MODIFIER, PRIuMAX): Remove.
52709
52710 2005-05-27  Bruno Haible  <bruno@clisp.org>
52711
52712         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52713
52714 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52715
52716         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52717         _POSIX_PTHREAD_SEMANTICS for Solaris.
52718
52719 2005-05-25  Derek Price  <derek@ximbiot.com>
52720
52721         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52722
52723 2005-05-25  Derek Price  <derek@ximbiot.com>
52724             Paul Eggert  <eggert@cs.ucla.edu>
52725
52726         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52727         * lib/getlogin_r.c, getlogin_r.h: New files.
52728
52729 2005-05-25  Bruno Haible  <bruno@clisp.org>
52730             Derek Price  <derek@ximbiot.com>
52731
52732         * lib/getlogin_r.h: Simplify API documentation.
52733
52734 2005-05-23  Derek Price  <derek@ximbiot.com>
52735
52736         * modules/minmax (Files): Add m4/minmax.m4.
52737         (configure.ac): Add gl_MINMAX.
52738
52739 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52740
52741         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52742         so that unistd-safer.h (GPL'ed code) need not be included.
52743
52744 2005-05-22  Bruno Haible  <bruno@clisp.org>
52745
52746         * m4/minmax.m4: New file.
52747         Based on a patch by Derek Price <derek@ximbiot.com>.
52748
52749 2005-05-22  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52752         (INT64_MIN): Fix definition.
52753         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52754
52755         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52756         NEED_SIGNED_INT_TYPES.
52757
52758         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52759         HAVE_SYSTEM_INTTYPES.
52760
52761 2005-05-22  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52764         Also include <sys/param.h> if it defines MIN, MAX.
52765         Based on a patch by Derek Price <derek@ximbiot.com>.
52766
52767 2005-05-21  Jim Meyering  <jim@meyering.net>
52768
52769         * modules/fts (Files): Add m4/inttypes-pri.m4.
52770         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52771
52772 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52773
52774         New fts module.
52775         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52776         (setup_dir, free_dir): New functions.
52777         (enter_dir, leave_dir): Define trivial
52778         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52779         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52780         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52781         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52782         Move to fts-cycle.c.
52783         (fts_open): Use setup_dir.
52784         (fts_close): Use free_dir.
52785         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52786         This adds a label and some gotos, but the alternatives were messier.
52787         Check for memory allocation failure when entering a dir.
52788         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52789         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52790         (FTS): New member fts_cycle, that is a union that contains the
52791         old active_dir_ht and cycle_state.  All uses changed to mention
52792         fts_cycle.ht and fts_cycle.state.
52793         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52794         fts.c, with the following changes:
52795         (setup_dir, free_dir): New functions.
52796         (enter_dir): Now returns bool.  Return true if successful, false
52797         if memory exhausted.  All callers changed.
52798         Do not bother partly cleaning up on
52799         memory allocation failure; that is free_dir's job.
52800         However, free ad if hash_insert fails, to avoid memory leak.
52801         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52802         fts->fts_options to see which union member to use.
52803
52804 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52805
52806         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52807         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52808
52809 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52810
52811         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52812
52813 2005-05-20  Jim Meyering  <jim@meyering.net>
52814
52815         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52816         Now a macro, to pacify GCC.
52817
52818 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52819
52820         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52821         of -1.
52822
52823 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52824
52825         * lib/chown.c (rpl_chown): Return -1 on failure.
52826
52827 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52828
52829         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52830         Don't check for stddef.h.
52831         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52832         don't use its results.
52833         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52834         since we include them unconditionally.  Don't require
52835         AM_STDBOOL_H, since stdbool is a prerequisite.
52836         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52837         since we assume C89 or better.
52838         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52839         as we don't use their results.
52840         Don't check for fchdir, memmove, memset, strrchr, as we use
52841         them unconditionally.
52842         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52843         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52844
52845 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52846
52847         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52848         Include <stddef.h> unconditionally, since we assume C89 now.
52849         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52850         * lib/fts.c: Include fts_.h first, to check interface.
52851         Do not include intprops.h; no longer needed.
52852         Include cycle-check.h and hash.h, since fts_.h no longer does.
52853         Remove unnecessary casts of closedir to void.
52854         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52855         decide whether to decrement nlinks.
52856         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52857         (FTS): Use struct hash_table * instead of Hash_table, so that
52858         we no longer need to include hash.h here.
52859
52860 2005-05-18  Jim Meyering  <jim@meyering.net>
52861
52862         * modules/dirfd (License): Change to LGPL.  Most of the code
52863         is already in the public domain.
52864
52865 2005-05-18  Jim Meyering  <jim@meyering.net>
52866
52867         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52868         Reported by Yoann Vandoorselaere.
52869
52870 2005-05-17  Jim Meyering  <jim@meyering.net>
52871
52872         * m4/fts.m4: New file, from coreutils.
52873
52874 2005-05-17  Jim Meyering  <jim@meyering.net>
52875
52876         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52877
52878 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52879
52880         Sync from coreutils.
52881         * m4/unlinkdir.m4: New file.
52882
52883 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52884
52885         Sync from coreutils.
52886         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52887         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52888         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52889         White space changes only.
52890         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52891         special.
52892         * lib/yesno.c: Include getline.h, not ctype.h.
52893         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52894         Use getline to remove arbitrary restriction on response length.
52895
52896 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52897
52898         * config/srclist-update: Spell out "Street" in FSF postal
52899         mail address; this is the style the FSF seems to prefer.
52900
52901         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52902         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52903         this updates FSF postal mail address.
52904
52905         Sync from coreutils.
52906         * modules/unlinkdir: New file.
52907         * modules/yesno (Depends-on): Add getline.
52908         * MODULES.html.sh (File system functions): Add unlinkdir.
52909
52910 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52911
52912         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52913         lib/strsep.h:
52914         Change the initial comment to refer to GPL, not LGPL.
52915         gnulib-tool will change it to LGPL as needed.
52916
52917         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52918         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52919         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52920         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52921         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52922         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52923         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52924         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52925         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52926         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52927         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52928         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52929         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52930         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52931         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52932         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52933         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52934         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52935         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52936         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52937         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52938         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52939         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52940         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52941         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52942         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52943         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52944         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52945         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52946         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52947         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52948         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52949         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52950         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52951         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52952         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52953         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52954         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52955         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52956         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52957         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52958         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52959         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52960         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52961         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52962         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52963         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52964         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52965         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52966         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52967         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52968         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52969         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52970         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52971         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52972         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52973         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52974         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52975         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52976         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52977         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52978         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52979         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52980         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52981         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52982         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52983         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52984         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52985         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52986         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52987         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52988         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52989         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52990         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52991         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52992         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52993         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52994         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52995         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52996         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52997         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52998         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52999         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
53000         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
53001         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
53002         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
53003         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
53004         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
53005         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
53006         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
53007         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
53008         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
53009         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
53010         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
53011         lib/yesno.c, lib/yesno.h:
53012         Update FSF postal mail address.
53013
53014 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53015
53016         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
53017         tests/test-memmem.c, tests/test-stpncpy.c:
53018         Update FSF postal mail address.
53019
53020 2005-05-13  Bruno Haible  <bruno@clisp.org>
53021
53022         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
53023         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
53024         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
53025         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
53026         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
53027         Add support for 64-bit integers in the MSVC compiler.
53028
53029 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53030
53031         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
53032
53033 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
53034
53035         * gnulib-tool (func_import): Sort and uniquify recommended includes.
53036
53037 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
53038
53039         * doc/getdate.texi (General date syntax): Don't say that date
53040         date --iso-8601=ns generates acceptable dates; it doesn't yet.
53041         Problem reported by Nic Ferrier.
53042
53043 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53044
53045         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
53046         specified in ai_socktype. Fix invalid ai_protocol
53047         check. ai_protocol is usually set to 0 or depending on
53048         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
53049         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
53050         ai_socktype / ai_protocol in the returned addrinfo structure.
53051
53052 2005-05-10  Simon Josefsson  <jas@extundo.com>
53053
53054         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
53055         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53056
53057 2005-05-10  Karl Berry  <karl@gnu.org>
53058
53059         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
53060         (from http://www.gnu.org/licenses).
53061         * doc/COPYING.LIB: also rename to COPYING.LESSER.
53062         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
53063         fdl.texi suffices.
53064
53065 2005-05-10  Karl Berry  <karl@gnu.org>
53066
53067         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
53068         (COPYING.DOC): remove.
53069
53070         * config/srclist-update: new FSF address.
53071
53072 2005-05-10  Derek Price  <derek@ximbiot.com>
53073
53074         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
53075         possible.
53076
53077 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53078             Bruno Haible  <bruno@clisp.org>
53079
53080         * modules/inet_ntop: New file.
53081         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53082         inet_ntop.
53083
53084 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53085             Bruno Haible  <bruno@clisp.org>
53086
53087         * m4/inet_ntop.m4: New file.
53088
53089 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53090             Bruno Haible  <bruno@clisp.org>
53091
53092         * lib/inet_ntop.h: New file.
53093         * lib/inet_ntop.c: New file, from glibc with modifications.
53094
53095 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
53096
53097         * modules/time_r (License): Change to LGPL.
53098         * modules/extensions (License): Change to LGPL.  Actually,
53099         the license is more permissive than that, but currently gnulib-tool
53100         doesn't know how to handle more-permissive licenses.
53101
53102         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
53103         Problem reported by Dave Love.
53104
53105 2005-05-08  Jim Meyering  <jim@meyering.net>
53106
53107         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
53108         blank.
53109
53110 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53111
53112         * modules/argmatch (Depends-on): Add stdbool.
53113         * modules/backupfile (Depends-on): Likewise.
53114         * modules/chdir-long (Depends-on): Likewise.
53115         * modules/closeout (Depends-on): Likewise.
53116         * modules/cycle-check (Depends-on): Likewise.
53117         * modules/dirname (Depends-on): Likewise.
53118         * modules/fnmatch (Depends-on): Likewise.
53119         * modules/fsusage (Depends-on): Likewise.
53120         * modules/fwriteerror (Depends-on): Likewise.
53121         * modules/getcwd (Depends-on): Likewise.
53122         * modules/getloadavg (Depends-on): Likewise.
53123         * modules/hard-locale (Depends-on): Likewise.
53124         * modules/makepath (Depends-on): Likewise.
53125         * modules/mountlist (Depends-on): Likewise.
53126         * modules/nanosleep (Depends-on): Likewise.
53127         * modules/posixtm (Depends-on): Likewise.
53128         * modules/quotearg (Depends-on): Likewise.
53129         * modules/readtokens (Depends-on): Likewise.
53130         * modules/readtokens0 (Depends-on): Likewise.
53131         * modules/readutmp (Depends-on): Likewise.
53132         * modules/save-cwd (Depends-on): Likewise.
53133         * modules/strftime (Depends-on): Likewise.
53134         * modules/userspec (Depends-on): Likewise.
53135         * modules/utimecmp (Depends-on): Likewise.
53136         * modules/xgetcwd (Depends-on): Likewise.
53137         * modules/xnanosleep (Depends-on): Likewise.
53138         * modules/xstrtod (Depends-on): Likewise.
53139         * modules/yesno (Depends-on): Likewise.
53140
53141 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53142
53143         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
53144         needless checks.
53145
53146 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53147
53148         Merge from coreutils.  Among other things,
53149         add bulletproofing for cases where stdin, stdout, or stderr are closed.
53150         * lib/fd-safer.c: New file.
53151         * lib/fcntl-safer.h, open-safer.c: Remove.
53152         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
53153         * lib/dup-safer.c: Include unistd-safer.h first.
53154         Don't include errno.h.
53155         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
53156         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
53157         * lib/file-type.c: Rely on file-type.h change.
53158         * lib/getloadavg.c: Include unistd-safer.h.
53159         (getloadavg): Use safer open.
53160         * lib/getusershell.c: Include "stdio-safer.h".
53161         (getusershell): Use safer fopen.
53162         * lib/long-options.c (long_options): Use NULL rather than 0.
53163         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
53164         'free'.
53165         * lib/modechange.c: Likewise.
53166         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
53167         (MODE_DONE): New constant.
53168         (struct mode_change): Remove 'next' member.
53169         (make_node_op_equals): New function; like the old one of the
53170         same name, except it allocates an array.
53171         (mode_compile, mode_create_from_ref): Use it.
53172         (mode_compile): Allocate result as an array, not a linked list.
53173         Parse octal string ourself, so that we catch mistakes like "+0".
53174         (mode_adjust): Arg is an array, not a linked list.
53175         * lib/modechange.c: Include stat-macros.h, xalloc.h.
53176         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53177         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53178         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53179         Remove.  This is now stat-macros.h's job.
53180         (talloc): Remove.  All callers replaced by xalloc, so that
53181         our invokers don't have to worry about reporting memory failures.
53182         (make_node_op_equals): Remove.
53183         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53184         New constants.
53185         (struct mode_change): Moved here from modechange.h.
53186         (mode_append_entry): Remove.
53187         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53188         apps to have incorrect behavior.  Use simpler algorithm for head
53189         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53190         Detect more invalid usages rather than having somewhat-random behavior.
53191         Don't insert an "a=" action, as that leads to incorrect behavior.
53192         (mode_compile, mode_create_from_ref): Return NULL on error instead
53193         of an enum, since now there's only one way to have an error.  All
53194         callers changed.
53195         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53196         at the correct time.  Simplify calculation of "+u" and its ilk.
53197         Don't mishandle "+X".
53198         (mode_free): Remove "register" and localize decls.
53199         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53200         (struct mode_change): Move to modechange.c; callers don't
53201         need to see this stuff.
53202         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53203         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53204         (mode_change, mode_adjust): Reflect the new signatures noted above.
53205         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53206         that might redefine system include files.
53207         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53208         (my_usleep): Use NULL rather than (void *) 0.
53209         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53210         Use siginterrupt to specify that system calls should be interrupted.
53211         (rpl_nanosleep): Move initialization of suspended closer to call of
53212         my_usleep.
53213         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53214         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53215         (desirable_utmp_entry): New function.
53216         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53217         using x2nrealloc, to simplify logic.
53218         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53219         size calculation.  Do not assume utmp file is a regular file.
53220         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53221         (READ_UTMP_CHECK_PIDS): New constant.
53222         * lib/save-cwd.c: Include unistd-safer.h.
53223         (save_cwd): Use fd_safer.
53224         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53225         [!_LIBC] Include "stat-macros.h" instead.
53226         * lib/unistd-safer.h (fd_safer): New decl.
53227
53228 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53229
53230         * modules/getloadavg (Depends-on): Add unistd-safer.
53231         * modules/getusershell (Depends-on): Add stdio-safer.
53232         * modules/lstat (Depends-on): Remove xalloc.
53233         * modules/mkstemp (Depends-on): Add stat-macros.
53234         * modules/modechange (Depends-on): Remove xstrtol.
53235         Add stat-macros, xalloc.
53236         * modules/save-cwd (Depends-on): Add unistd-safer.
53237         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53238         * modules/unistd-safer (Files): Add lib/fd-safer.c
53239         (Makefile.am): Remove lib_SOURCES.
53240
53241         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53242         Remove fcntl-safer; unistd-safer supersedes it.
53243
53244 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53245
53246         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53247         AC_HEADER_STAT.
53248         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53249         (gl_PREREQ_CHOWN): Remove.
53250         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53251         it.  Don't require AC_HEADER_STAT.
53252         (gl_PREREQ_LSTAT): Remove.
53253         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53254         Don't require AC_HEADER_STAT.
53255         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53256         (gl_PREREQ_RMDIR): Remove.
53257         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53258         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53259         the stat-macros module a prerequisite.
53260         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53261         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53262         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53263         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53264         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53265         variable names.
53266         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53267         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53268         variable prefixes.
53269         * m4/fcntl-safer.m4: Remove.
53270         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53271         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53272         Invoke gl_PREREQ_FD_SAFER.
53273         (gl_PREREQ_FD_SAFER): New macro.
53274         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53275         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53276         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53277         Remove duplicate call to AC_LIBOBJ(readutmp).
53278         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53279
53280         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53281         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53282
53283 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         * MODULES.html.sh (Misc): Add byteswap.
53286
53287 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53288
53289         * modules/getcwd (Depends-on): Add extensions.
53290         * modules/openat (Depends-on): Likewise.
53291
53292 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53293
53294         * modules/byteswap: New file.
53295
53296 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53297
53298         * m4/byteswap.m4: New file.
53299
53300 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53301
53302         * lib/byteswap_.h: New file.
53303
53304 2005-04-25  Karl Berry  <karl@gnu.org>
53305
53306         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53307
53308 2005-04-25  Albert Chin  <china@thewrittenword.com>
53309
53310         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53311         Toolkit C bug.
53312
53313 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53314
53315         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53316         (func_ln_if_changed) Remove forcibly for no error message
53317         in case file does not exist.
53318
53319 2005-04-19  Simon Josefsson  <jas@extundo.com>
53320
53321         * gnulib-tool (Options): Make --symlink mean --symbolic.
53322
53323 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53324
53325         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53326
53327 2005-04-16  Simon Josefsson  <jas@extundo.com>
53328
53329         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53330
53331 2005-04-15  Simon Josefsson  <jas@extundo.com>
53332
53333         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53334
53335 2005-04-15  Simon Josefsson  <jas@extundo.com>
53336
53337         * gnulib-tool: Rename --symlink to --symbolic.
53338
53339 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53340
53341         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53342         symbolic links to files instead of copying/moving.  Add --aux-dir,
53343         specifying directory relative --dir where auxiliary build tools
53344         are placed.
53345
53346 2005-04-14  Bruno Haible  <bruno@clisp.org>
53347
53348         * modules/allocsa (License): Change to LGPL.
53349         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53350
53351 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53352
53353         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53354         that "UTC +1 second" continues to work.  Problem reported
53355         by Dmitry V. Levin.
53356         (relunit_snumber): New rule.
53357         (relunit): Use it.
53358
53359 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53360
53361         * lib/getdate.y (universal_time_zone_table): New constant.
53362         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53363         universal_time_zone_table.
53364         (lookup_zone): Prefer universal_time_zone_table to
53365         local_time_zone_table, so that "GMT" time stamps are allowed in
53366         London during the summer.  Problem reported by Ian Abbott.
53367
53368 2005-04-12  Jim Meyering  <jim@meyering.net>
53369
53370         * lib/human.c (humblock): Set *options even when returning due to
53371         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53372         warning from gcc-4.
53373
53374 2005-04-09  Jim Meyering  <jim@meyering.net>
53375
53376         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53377         -Wuninitialized: initialize tm0.tm_year.
53378
53379 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53380
53381         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53382         count, since there's no maximum.  All uses changed.
53383         Add member dsts_seen.
53384         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53385         not being INT_MAX.
53386         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53387         Use pc_rels_seen to decide whther a date is absolute.
53388
53389         * lib/getdate.y (number): Don't overwrite year.
53390         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53391         check.
53392
53393 2005-04-02  Simon Josefsson  <jas@extundo.com>
53394
53395         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53396         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53397
53398 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53399
53400         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53401         where no absolute path name can be longer than PATH_MAX.
53402
53403 2005-03-27  Jim Meyering  <jim@meyering.net>
53404
53405         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53406
53407 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53410         "one's complement" -> "ones' complement" in comment, as per Knuth.
53411         "value of type" -> "type or expression" in comment.
53412         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53413
53414 2005-03-26  Jim Meyering  <jim@meyering.net>
53415
53416         Comment nits.
53417         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53418         Correct typos: s/or/of/.
53419
53420 2005-03-26  Jim Meyering  <jim@meyering.net>
53421
53422         * modules/check-include-files: Move to ../ and rename to...
53423         * check-module: ...this.
53424
53425 2005-03-25  Jim Meyering  <jim@meyering.net>
53426
53427         * modules/xvasprintf (Files): Add xalloc.h.
53428
53429 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53430
53431         * modules/gettext (Files): config/config.rpath ->
53432         build-aux/config.rpath
53433         * modules/iconv (Files): Likewise.
53434         Problem reported by Oskar Liljeblad.
53435
53436 2005-03-23  Jim Meyering  <jim@meyering.net>
53437
53438         * modules/check-include-files: New script to check for
53439         missing dependencies, multiple includes, etc.
53440
53441         * modules/c-strtold (Depends-on): Add xalloc.
53442         * modules/c-strtod (Depends-on): Add xalloc.
53443         * modules/hash (Depends-on): Add xalloc.
53444         (Files): Remove lib/xalloc.h.
53445
53446         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53447         * modules/userspec (Files): Add lib/inttostr.h.
53448
53449 2005-03-23  Jim Meyering  <jim@meyering.net>
53450
53451         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53452
53453 2005-03-22  Jim Meyering  <jim@meyering.net>
53454
53455         * modules/stat-macros: New module.
53456         * modules/canonicalize, modules/euidaccess, modules/file-type,
53457         * modules/filemode, modules/lchown, modules/makepath,
53458         * modules/rmdir, modules/stat: Depend on new stat-macros module
53459         rather than listing lib/stat-macros.h manually.
53460         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53461
53462 2005-03-22  Jim Meyering  <jim@meyering.net>
53463
53464         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53465
53466 2005-03-22  Bruno Haible  <bruno@clisp.org>
53467
53468         * config/srclist.txt: Replace target directory 'config' with
53469         'build-aux'.
53470         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53471         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53472         ../build-aux/.
53473
53474 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53475
53476         * modules/chdir-long (Depends-on): Add mempcpy.
53477
53478         * modules/acl, modules/backupfile, modules/c-strtod,
53479         modules/c-strtold, modules/canon-host, modules/canonicalize,
53480         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53481         modules/exclude, modules/exitfail, modules/file-type,
53482         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53483         modules/getdate, modules/getline, modules/getpagesize,
53484         modules/getpass, modules/getugroups, modules/group-member,
53485         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53486         modules/inttostr, modules/long-options, modules/makepath,
53487         modules/md5, modules/memcasecmp, modules/memcoll,
53488         modules/modechange, modules/mountlist, modules/path-concat,
53489         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53490         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53491         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53492         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53493         modules/strftime, modules/strndup, modules/strverscmp,
53494         modules/timespec, modules/unlocked-io, modules/userspec,
53495         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53496         modules/yesno:
53497         Remove lib_SOURCES line from Makefile.am section, as this is now
53498         done automatically by the corresponding Autoconf macro.
53499
53500 2005-03-21  Jim Meyering  <jim@meyering.net>
53501
53502         Changes imported from coreutils.
53503
53504         * lib/cycle-check.c: Don't include xalloc.h.
53505
53506         * lib/path-concat.c: Don't include assert.h.
53507         (path_concat): Remove assertion that would have triggered
53508         for ABASE starting with more than one slash.
53509         Reported by Andreas Schwab.
53510
53511         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53512         properly when ABASE is an absolute file name.
53513         Correct the description of this function.
53514         Include <assert.h>.
53515         Add an assertion and a test driver.
53516         This fixes a bug introduced on 2004-07-02.
53517         Andreas Schwab reported the resulting failure of cp --parents:
53518         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53519
53520 2005-03-21  Jim Meyering  <jim@meyering.net>
53521
53522         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53523         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53524
53525 2005-03-21  Jim Meyering  <jim@meyering.net>
53526         and  Paul Eggert  <eggert@cs.ucla.edu>
53527
53528         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53529         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53530         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53531         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53532         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53533         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53534         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53535         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53536         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53537         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53538         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53539         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53540         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53541         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53542         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53543         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53544         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53545         for these modules.
53546
53547 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53548
53549         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53550         (which shouldn't happen), generate nothing instead of returning 0
53551         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53552
53553 2005-03-16  Bruno Haible  <bruno@clisp.org>
53554
53555         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53556         HAVE_LONGLONG_64BIT.
53557
53558 2005-03-16  Bruno Haible  <bruno@clisp.org>
53559
53560         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53561         HAVE_LONGLONG_64BIT.
53562
53563 2005-03-16  Bruno Haible  <bruno@clisp.org>
53564
53565         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53566         HAVE_LONGLONG_64BIT.
53567
53568 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53569
53570         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53571         reliably distinguish strftime failure from empty output on POSIX
53572         hosts.
53573
53574 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53575
53576         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53577         (iconv_string): Don't guess a size-zero buffer, as that might cause
53578         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53579         result would be 'too large', where 'too large' is (heuristically)
53580         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53581         overflow concerns.  This will prevent some unwanted malloc failures
53582         when the inputs are very large.
53583
53584 2005-03-15  Karl Berry  <karl@gnu.org>
53585
53586         * config/srclist.txt (config.rpath): from gettext.
53587         * config/config.rpath: update.
53588
53589 2005-03-15  Bruno Haible  <bruno@clisp.org>
53590
53591         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53592         to 'negate'.
53593
53594         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53595         variable.
53596
53597         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53598         results.
53599
53600 2005-03-14  Simon Josefsson  <jas@extundo.com>
53601
53602         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53603         <fx@gnu.org>.
53604
53605 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53606
53607         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53608         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53609         intprops.h.
53610         * lib/strtol.c: Likewise.
53611
53612 2005-03-14  Jim Meyering  <jim@meyering.net>
53613
53614         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53615         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53616         to be nonzero so that we (and caller) can detect the difference
53617         between a valid zero-length expansion and an error return, even
53618         when the underlying strftime fails before writing anything into
53619         that location.
53620
53621 2005-03-14  Bruno Haible  <bruno@clisp.org>
53622
53623         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53624         Update from GNU gettext 0.14.3.
53625
53626 2005-03-10  Jim Meyering  <jim@meyering.net>
53627
53628         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53629
53630 2005-03-10  Jim Meyering  <jim@meyering.net>
53631
53632         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53633         so that this module works on systems without fchdir.
53634
53635 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53636
53637         Factor int-properties macros into a single file, except for
53638         glibc-related files.
53639         * lib/intprops.h: New file.
53640         * lib/getloadavg.c: Include it instead of limits.h.
53641         (INT_STRLEN_BOUND): Remove.
53642         * lib/human.c: Include intprops.h.
53643         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53644         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53645         302/1000.
53646         * lib/inttostr.h: Include intprops.h instead of limits.h.
53647         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53648         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53649         for consistency with intprops.h.
53650         (time_t_is_integer, twos_complement_arithmetic): Use them.
53651         * lib/sig2str.h: Include <signal.h>, intprops.h.
53652         (INT_STRLEN_BOUND): Remove.
53653         * lib/strftime.c (TYPE_SIGNED): Remove.
53654         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53655         * lib/strtol.c: Adjust comments to match intprops.h.
53656         * lib/userspec.c: Include intprops.h.
53657         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53658         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53659         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53660         instead of rolling our own expressions.
53661         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53662
53663         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53664         instead of int.
53665         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53666         the right thing even if adding 1900 would overflow.  Similarly
53667         for tm_mon + 1 and tm_yday + 1.
53668         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53669         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53670         (DO_SIGNED_NUMBER): New macro.
53671         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53672
53673 2005-03-07  Bruno Haible  <bruno@clisp.org>
53674
53675         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53676
53677 2005-03-07  Bruno Haible  <bruno@clisp.org>
53678
53679         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53680
53681 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53682
53683         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53684         (func_import): Only replace files via --import when they have actually
53685         changed.
53686
53687 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53688
53689         * m4/mmap-anon.m4: New file.
53690         * m4/pagealign_alloc.m4: New file.
53691
53692 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53693             Bruno Haible  <bruno@clisp.org>
53694
53695         * modules/pagealign_alloc: New file.
53696         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53697
53698 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53699             Bruno Haible  <bruno@clisp.org>
53700
53701         * lib/pagealign_alloc.h: New file.
53702         * lib/pagealign_alloc.c: New file.
53703
53704 2005-03-03  Bruno Haible  <bruno@clisp.org>
53705
53706         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53707         Use an all-permissive copyright notice, recommended by RMS.
53708
53709 2005-03-02  Bruno Haible  <bruno@clisp.org>
53710
53711         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53712         of AIX, the replacement has to be done only after <string.h> is
53713         included, therefore not in config.h. stpncpy.h does the replacement,
53714         and stpncpy.c uses it.
53715
53716 2005-03-02  Bruno Haible  <bruno@clisp.org>
53717
53718         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53719         stpncpy.c uses it.
53720
53721 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53722
53723         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53724         The workaround isn't strictly needed for POSIX conformance, and
53725         it's too much of a pain to configure and maintain.  We'll ask
53726         people to fix their kernels instead.
53727         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53728         (NANOSLEEP_BUG_WORKAROUND): Remove.
53729         (xnanosleep): Remove the workaround.
53730
53731 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53732
53733         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53734         Reported by Derek Price.
53735         (Include): Add "timespec.h".
53736
53737         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53738
53739 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53740
53741         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53742         to detect nanosleep bug.
53743
53744 2005-03-01  Bruno Haible  <bruno@clisp.org>
53745
53746         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53747
53748 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53749
53750         * modules/gethrxtime: New file.
53751         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53752         (Depends-on): Add gethrxtime.
53753         (configure.ac): Add gl_XNANOSLEEP.
53754         (Makefile.am): Remove lib_SOURCES line.
53755
53756 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53757
53758         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53759         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53760
53761 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53762
53763         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53764         * lib/timespec.h (gettime): Return void, since it always
53765         succeeds now.  All uses changed.
53766         * lib/gettime.c (gettime) Likewise.
53767         [HAVE_NANOTIME]: Prefer nanotime.
53768         Assume gettimeofday succeeds, as POSIX requires.
53769         Assime time () succeeds, since other code already does.
53770         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53771         (timespec_subtract): Remove.
53772         (NANOSLEEP_BUG_WORKAROUND): New constant.
53773         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53774         things considerably.  Use it only on GNU/Linux hosts, since the
53775         workaround shouldn't be needed elsewhere.
53776
53777 2005-02-24  Bruno Haible  <bruno@clisp.org>
53778
53779         * modules/gettext (Files): Add m4/glibc2.m4.
53780
53781 2005-02-24  Bruno Haible  <bruno@clisp.org>
53782
53783         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53784         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53785         * m4/progtest.m4:
53786         Update from GNU gettext 0.14.2.
53787         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53788
53789 2005-02-24  Bruno Haible  <bruno@clisp.org>
53790
53791         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53792         * lib/config.charset: Update from GNU gettext 0.14.2.
53793
53794 2005-02-24  Bruno Haible  <bruno@clisp.org>
53795
53796         * lib/gettext.h: Update from GNU gettext 0.14.2.
53797
53798 2005-02-23  Simon Josefsson  <jas@extundo.com>
53799
53800         * m4/iconvme.m4: New file.
53801
53802 2005-02-23  Jim Meyering  <jim@meyering.net>
53803
53804         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53805         change.
53806         Thanks to Bruno Haible for catching it.
53807
53808 2005-02-22  Simon Josefsson  <jas@extundo.com>
53809
53810         * modules/iconvme: New file.
53811
53812         * MODULES.html.sh: Add iconvme.
53813
53814 2005-02-22  Simon Josefsson  <jas@extundo.com>
53815
53816         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53817
53818 2005-02-22  Simon Josefsson  <jas@extundo.com>
53819
53820         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53821
53822 2005-02-22  Jim Meyering  <jim@meyering.net>
53823
53824         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53825         s/ifndef/ifdef/.
53826
53827 2005-02-20  Neil Conway  <neilc@samurai.com>
53828
53829         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53830         returned by OSX/Darwin if the specified buffer is not large
53831         enough for the hostname.
53832
53833 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53834
53835         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53836         pass it to _help, otherwise the latter coredumps trying to
53837         dereference state.root_argp.
53838
53839 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53840
53841         * modules/chdir-long (Depends-on): Add memrchr.
53842         * modules/memrchr (Files): Add lib/memrchr.h.
53843         (Include): "memrchr.h".
53844
53845 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53846
53847         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53848
53849 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53850
53851         * lib/memrchr.h: New file.
53852         * lib/chdir-long.c: Include it.
53853         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53854         Don't bother including stddef.h.
53855
53856 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53857
53858         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53859         inclusion.
53860         Include <sys/types.h>, for dev_t.
53861         (ME_DUMMY, ME_REMOTE): Move from here....
53862         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53863         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53864         Dmitry V. Levin.
53865         Include mountlist.h first, to test the interface.
53866
53867 2005-01-29  Bruno Haible  <bruno@clisp.org>
53868
53869         * lib/progname.c (program_name): Initialize.
53870         Needed when linking statically on MacOS X.
53871
53872 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53873
53874         Sync from coreutils.
53875         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53876         (Depends-on): Add c-strtod.
53877         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53878
53879 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53880
53881         Sync from coreutils.
53882         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53883
53884         Remove files that are specific to coreutils.
53885         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53886
53887 2005-01-28  Bruno Haible  <bruno@clisp.org>
53888
53889         * modules/javacomp: New file.
53890         * MODULES.html.sh (Java): Add javacomp.
53891
53892 2005-01-28  Bruno Haible  <bruno@clisp.org>
53893
53894         * m4/javacomp.m4: New file, from GNU gettext.
53895
53896 2005-01-28  Bruno Haible  <bruno@clisp.org>
53897
53898         * lib/javacomp.sh.in: New file, from GNU gettext.
53899         * lib/javacomp.h: New file, from GNU gettext.
53900         * lib/javacomp.c: New file, from GNU gettext.
53901
53902 2005-01-26  Simon Josefsson  <jas@extundo.com>
53903
53904         * lib/gai_strerror.c: Use GPL in header.
53905
53906 2005-01-26  Bruno Haible  <bruno@clisp.org>
53907
53908         * modules/javaexec: New file.
53909         * MODULES.html.sh (Java): Add javaexec.
53910
53911 2005-01-26  Bruno Haible  <bruno@clisp.org>
53912
53913         * m4/javaexec.m4: New file, from GNU gettext.
53914
53915 2005-01-26  Bruno Haible  <bruno@clisp.org>
53916
53917         * lib/javaexec.sh.in: New file, from GNU gettext.
53918         * lib/javaexec.h: New file, from GNU gettext.
53919         * lib/javaexec.c: New file, from GNU gettext.
53920
53921 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53922
53923         * modules/lchown (Depends-on): Remove lchown.h
53924
53925 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53926
53927         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53928         must be defined if the header file was not found, in order
53929         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53930
53931 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53932
53933         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53934         initializers for struct pentry_state.
53935         (__argp_error): Check return value of __asprintf
53936         (__argp_failure): Translate error message
53937
53938         * lib/argp-parse.c: Removed braces around the expansion of N_()
53939
53940 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53941
53942         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53943         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53944         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53945         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53946         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53947         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53948         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53949         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53950         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53951         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53952         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53953         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53954         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53955         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53956         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53957         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53958         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53959         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53960         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53961         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53962         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53963         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53964         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53965         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53966         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53967         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53968         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53969         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53970         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53971         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53972         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53973         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53974         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53975         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53976         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53977         Use an all-permissive copyright notice, recommended by RMS.
53978
53979 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53980
53981         * modules/chdir-long (Depends-on): Remove mempcpy.
53982
53983 2005-01-21  Jim Meyering  <jim@meyering.net>
53984
53985         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53986         same value as for Solaris 9.
53987
53988         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53989         component length.  This included changing the parameter to be
53990         of type `char *' rather than `char const *'.
53991         * lib/chdir-long.h (chdir_long): Update prototype.
53992
53993         * lib/openat.c (fdopendir, fstatat): New functions.
53994         * lib/openat.h: Include headers required for use of DIR and struct
53995         stat.
53996         [AT_SYMLINK_NOFOLLOW]: Define.
53997         (fdopendir, fstatat): Add prototypes.
53998
53999 2005-01-21  Bruno Haible  <bruno@clisp.org>
54000
54001         * modules/classpath: New file.
54002         * MODULES.html.sh (Java): Add classpath.
54003
54004 2005-01-21  Bruno Haible  <bruno@clisp.org>
54005
54006         * lib/classpath.h: New file, from GNU gettext.
54007         * lib/classpath.c: New file, from GNU gettext.
54008
54009 2005-01-20  Simon Josefsson  <jas@extundo.com>
54010
54011         * modules/version-etc-fsf: New file.
54012
54013 2005-01-20  Simon Josefsson  <jas@extundo.com>
54014
54015         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
54016         * lib/version-etc.c: Remove version_etc_copyright.
54017         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
54018         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
54019
54020 2005-01-20  Simon Josefsson  <jas@extundo.com>
54021
54022         * lib/base64.h (isbase64): Add.
54023
54024         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
54025         using a unsigned prototype, don't inline.
54026         (base64_decode): Use it.
54027
54028 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54029
54030         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
54031         it.
54032
54033 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54034
54035         * lib/save-cwd.c (save_cwd): Remove code to support the case
54036         where fchdir is missing or flaky.
54037
54038 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
54041
54042 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54043
54044         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
54045         AC_LIBSOURCES now does this.
54046         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
54047         with new ullong_max module.
54048
54049 2005-01-19  Bruno Haible  <bruno@clisp.org>
54050
54051         * modules/sh-quote: New file.
54052         * MODULES.html.sh (Executing programs): Add sh-quote.
54053
54054 2005-01-19  Bruno Haible  <bruno@clisp.org>
54055
54056         * lib/sh-quote.h: New file, from GNU gettext.
54057         * lib/sh-quote.c: New file, from GNU gettext.
54058
54059 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54060
54061         Merge from coreutils.
54062         * m4/ullong_max.m4: New file.
54063         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
54064         (gl_MACROS): Assume localeconv exists.
54065
54066 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54067
54068         Merge changes from coreutils, as described below in several
54069         changelogs dated today.
54070
54071         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
54072         (O_DIRECTORY): Remove; not needed here, since "." must be
54073         a directory.  All uses removed.
54074         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
54075         universal on Suns, and we also need to test for IRIX.
54076         Revamp code to use 'if' rather than '#if'.
54077         Avoid unnecessary comparison of cwd->desc to 0.
54078
54079         * lib/utimens.c (futimens): Robustify the previous patch, by checking
54080         for known valid error numbers rather than observed invalid ones.
54081
54082 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * modules/ullong_max: New file.
54085
54086         * modules/chdir-long, modules/openat: New files.
54087         * modules/save-cwd (Depends-on): Depend on chdir-long.
54088         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
54089
54090 2005-01-18  Jim Meyering  <jim@meyering.net>
54091
54092         Merge from coreutils.
54093         * m4/chdir-long.m4, m4/openat.m4: New files.
54094         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
54095         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
54096         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
54097         is sane and DOES follow symlinks.  Besides, testing 20 different
54098         systems found no broken chown implementations.
54099         Prompted by a change in rsync's copy of this macro.
54100         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
54101
54102         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
54103
54104         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
54105         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
54106         NULL-means-set-to-current-time semantics.
54107         Remove temporary file immediately, rather than waiting
54108         for configure's at-exit trap code to do it.
54109
54110 2005-01-18  Jim Meyering  <jim@meyering.net>
54111
54112         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54113
54114         * lib/utimens.c (futimens): Account for the fact that futimes
54115         can also fail with errno == ENOSYS or errno == ENOENT.
54116         Patch from Dmitry V. Levin.
54117
54118         Change the name of the robust chdir function from chdir to chdir_long.
54119         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
54120         (restore_cwd): Use chdir_long, not chdir.
54121         * lib/chdir-long.c: Renamed from chdir.c.
54122         * lib/chdir-long.h: Renamed from chdir.h.
54123         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
54124         Hurd.
54125
54126 2005-01-18  Bruno Haible  <bruno@clisp.org>
54127
54128         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
54129         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
54130         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
54131         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
54132         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
54133         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
54134         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
54135         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
54136         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
54137         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
54138         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
54139         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
54140         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
54141         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
54142         Use an all-permissive copyright notice, recommended by RMS.
54143
54144 2005-01-18  Bob Proulx  <bob@proulx.com>
54145
54146         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
54147         simplify offsetof() macro construct to avoid compile failure with
54148         native HP-UX 11.0 ANSI C compiler.
54149
54150 2005-01-17  Bruno Haible  <bruno@clisp.org>
54151
54152         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
54153         redundant because stpncpy.m4 takes care of it.
54154
54155 2005-01-17  Bruno Haible  <bruno@clisp.org>
54156
54157         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
54158
54159 2005-01-17  Bruno Haible  <bruno@clisp.org>
54160
54161         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
54162         used.
54163
54164 2005-01-17  Bruno Haible  <bruno@clisp.org>
54165
54166         * lib/fwriteerror.h (fwriteerror): Change specification to include
54167         fclose.
54168         * lib/fwriteerror.c: Include <stdbool.h>.
54169         (fwriteerror): At the end, close the file stream. Record whether
54170         stdout was already closed.
54171
54172 2005-01-17  Bruno Haible  <bruno@clisp.org>
54173
54174         * lib/execute.c (environ): Declare if needed.
54175         * lib/pipe.c (environ): Likewise.
54176         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54177
54178 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54179
54180         * modules/argp: Depend on vsnprintf
54181
54182 2005-01-10  Jim Meyering  <jim@meyering.net>
54183
54184         * modules/closeout (Depends-on): Add atexit.
54185
54186 2005-01-06  Bruno Haible  <bruno@clisp.org>
54187
54188         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54189
54190 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54191
54192         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54193         definitions to be after all include files, to avoid collisions.
54194         Problem reported by Bob Proulx.
54195
54196 2005-01-04  Jim Meyering  <jim@meyering.net>
54197
54198         Changes imported from coreutils.
54199         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54200         as the mkstemp template, use a temporary directory and an
54201         8.3-friendly template to avoid trouble on systems like DJGPP.
54202         Reported by Juan M. Guerrero via Stepan Kasal.
54203         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54204         close. Remove the temporary directory right away, rather than waiting
54205         for configure's at-exit trap code to do it.
54206         Suggestion from Stepan Kasal.
54207
54208 2005-01-01  Simon Josefsson  <jas@extundo.com>
54209
54210         * gnulib-tool: Print #include directives when --import'ing.
54211
54212 2004-12-28  Simon Josefsson  <jas@extundo.com>
54213
54214         * tests/test-base64.c: Include required header files.  Remove
54215         unused variables.
54216
54217 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54218
54219         * modules/error (Depends-on): Remove gettext.
54220
54221 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54222
54223         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54224         not needed.  This removes a dependency on the gettext module.
54225         [defined _LIBC]: Do not include <libintl.h>; not needed.
54226
54227 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54228
54229         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54230         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54231
54232 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54233
54234         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54235         HAVE_DECL_STRTOLD.
54236
54237 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54238
54239         * modules/getdate (Depends-on): Remove alloca-opt.
54240
54241 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54242
54243         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54244
54245 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54246
54247         * lib/argp-parse.c: Include <stddef.h>.
54248         (alignof, alignto): New macros.
54249         (parser_init): Don't assume that void * is aligned sufficiently
54250         for struct option.
54251
54252         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54253         need to extend the stack.
54254         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54255         large.
54256
54257 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54258
54259         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54260
54261 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54262
54263         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54264         (2004-10-24) change.  Apparently this was a false alarm.
54265
54266         * modules/getdate: Depend on alloca-opt, not alloca.
54267
54268 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54269
54270         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54271         Remove now-obsolete comment about AIX.
54272         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54273         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54274         (YYMAXDEPTH): New macro.
54275
54276 2004-12-18  Simon Josefsson  <jas@extundo.com>
54277
54278         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54279
54280 2004-12-18  Bruno Haible  <bruno@clisp.org>
54281
54282         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54283
54284 2004-12-18  Bruno Haible  <bruno@clisp.org>
54285
54286         * lib/fatal-signal.c (fatal_signals): Make non-const.
54287         (init_fatal_signals): New function.
54288         (uninstall_handlers, install_handlers): Ignore signals that were set to
54289         SIG_IGN.
54290         (at_fatal_signal): Call init_fatal_signals.
54291         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54292         SIG_IGN.
54293         Reported by Paul Eggert.
54294
54295 2004-12-18  Bruno Haible  <bruno@clisp.org>
54296
54297         * doc/alloca.texi: New file.
54298         * doc/alloca-opt.texi: New file.
54299
54300 2004-12-17  Jim Meyering  <jim@meyering.net>
54301
54302         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54303         Otherwise, install-sh could exit with improper exit status when
54304         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54305
54306 2004-12-16  Simon Josefsson  <jas@extundo.com>
54307
54308         * tests/test-base64.c: Add license.
54309
54310 2004-12-15  Stepan Kasal  <address@hidden>
54311
54312         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54313
54314 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54315
54316         * modules/getcwd (Files): Add m4/d-ino.m4.
54317         Suggested by Mark D. Baushke.
54318
54319 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54320
54321         * lib/getdate.y (textint): New member "negative".
54322         (time_zone_hhmm): New function.
54323         Expect 14 shift-reduce conflicts, not 13.
54324         (o_colon_minutes): New rule.
54325         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54326         (yylex): Set the "negative" member of signed numbers.
54327
54328 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54329
54330         * doc/getdate.texi (Time of day items, Time zone items):
54331         Describe new formats +00:00, UTC+00:00.
54332
54333 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54334
54335         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54336         spurious "-l"s.  Problem reported by Stepan Kasal.
54337
54338 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54339
54340         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54341         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54342
54343 2004-12-04  Simon Josefsson  <jas@extundo.com>
54344
54345         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54346         Vandoorselaere <yoann@prelude-ids.org>.
54347
54348 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54349
54350         Changes imported from coreutils.
54351         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54352         exist.
54353         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54354
54355 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54356
54357         Changes imported from coreutils.
54358         * lib/hard-locale.c: Assume <locale.h> exists.
54359         Include "strdup.h".
54360         (GLIBC_VERSION): New macro.
54361         (hard_locale): Assume setlocale exists.
54362         Rewrite to avoid #ifdef.
54363         Use strdup rather than malloc + strcpy.
54364         * lib/human.c: Assume <locale.h> exists.
54365         (human_readable): Assume localeconv exists.
54366
54367 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54368
54369         * modules/hard-locale (Depends-on): Add strdup.
54370
54371 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54372
54373         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54374         convert T2, not T.  (Imported from libc.)
54375
54376 2004-11-30  Simon Josefsson  <jas@extundo.com>
54377
54378         * modules/restrict (License): Change to LGPL.
54379
54380 2004-11-30  Simon Josefsson  <jas@extundo.com>
54381
54382         * m4/restrict.m4: Add copyright and copying conditions.
54383
54384 2004-11-30  Simon Josefsson  <jas@extundo.com>
54385
54386         * m4/base64.m4: New file.
54387
54388 2004-11-30  Simon Josefsson  <jas@extundo.com>
54389
54390         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54391         base64.
54392
54393         * tests/test-base64.c: New file.
54394
54395         * modules/base64: New file.
54396
54397 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54398
54399         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54400         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54401
54402         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54403
54404 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54405
54406         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54407         (__getcwd.c): Don't restore errno; glibc doesn't.
54408         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54409         first, falling back to our code only if its results look suspicious.
54410         Ensure that the resulting buffer is only as large as necessary.
54411
54412         * lib/readutmp.c: Include readutmp.h first.
54413         Include <errno.h>, since readutmp.h no longer does that.
54414         * lib/readutmp.h: Don't include <errno.h>,
54415         <sys/param.h>, <time.h>; not needed to establish interface.
54416         (errno): Remove decl.
54417         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54418         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54419         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54420
54421 2004-11-28  Simon Josefsson  <jas@extundo.com>
54422
54423         * lib/base64.h, base64.c: New file.
54424
54425 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54426
54427         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54428
54429 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54430
54431         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54432         (Depends-on): Remove pathmax, same.  Add mempcpy.
54433         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54434         (Makefile.am): Append getcwd.h to lib_SOURCES.
54435         (Include): Add getcwd.h.
54436         (Maintainer): Change from Jim Meyering to "all, glibc",
54437         since getdate now uses intended-for-glibc code.
54438         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54439         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54440
54441 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54442
54443         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54444         HP's ANSI C compiler.
54445         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54446         Declaring int functions causes warnings on some modern systems and
54447         shouldn't be needed to compile on ancient ones.
54448         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54449         defined.
54450
54451         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54452         with the following changes.
54453         (__set_errno): Parenthesize properly.
54454         Include <stdbool.h>.
54455         (MIN, MAX, MATCHING_INO): New macros.
54456         (__getcwd): Define with prototype, not K&R form.
54457         Use heuristics to allocate default buffer on stack if possible.
54458         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54459         behavior, and to avoid the PATH_MAX limit when computing
54460         ../../../../...
54461         Use MATCHING_INO to compare inode number to file.
54462         Check for arithmetic overflow in size calculations.
54463         Fix bug in reallocation of dot array that caused getcwd to fail
54464         on directories nested deeper than 75.
54465         Be more careful about saving errno on error.
54466         Do not use realloc; use only free+malloc, as this is a bit
54467         more flexible and avoids a needless copy operation.
54468         Do not inspect st_dev and st_ino for symbolic links; POSIX
54469         doesn't specify the latter.
54470         Check for closedir errors.
54471         Avoid needless casts.
54472         Use "#ifdef weak_alias" around weak_alias, to be like other
54473         glibc code.
54474         The following changes to getcwd.c have effect only when used in
54475         gnulib; they have no effect inside glibc proper.
54476         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54477         as alloca isn't used.
54478         (alloca, __alloca): Likewise.
54479         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54480         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54481         unconditionally, as gnulib assumes C89 or better.
54482         Do not include <sys/param.h>.
54483         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54484         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54485         better.
54486         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54487         Include <dirent.h> in a way that is compatible with modern Autoconf.
54488         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54489         New macros, if not already defined.
54490         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54491         Use "_LIBC", not "defined _LIBC", for consistency.
54492         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54493         a mempcpy module.
54494         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54495         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54496         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54497         credit only to Jim Meyering and adjust the copyright dates.
54498         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54499         <stdlib.h>, <unistd.h>, "pathmax.h".
54500         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54501         (INITIAL_BUFFER_SIZE): Remove.
54502         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54503
54504 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54505
54506         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54507         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54508         Use the _ONCE methods, for efficiency.
54509         Check for fcntl.h.  In test program, include <errno.h>
54510         and <fcntl.h> if available.  Remove old K&R cruft from
54511         test program.  Check for common errors in GNU/Linux,
54512         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54513         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54514         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54515         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54516         name accordingly.
54517         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54518         accommodate new getcwd.c.
54519         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54520         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54521         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54522         that's all we need now.
54523
54524 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54525
54526         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54527         argp-parse.c depends on getopt internals, that means we should
54528         always use our getopt, to be on the safe side.
54529         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54530         order not to spoil the result of an eventual previous invocation
54531         of gl_GETOPT_SUBSTITUTE.
54532
54533 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54534
54535         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54536         redefinition warnings. To avoid them, include the defines
54537         in `#if !defined __need_getopt ... #endif'. The only place
54538         where __getopt_argv_const is used is in definitions
54539         of getopt_long and getopt_long_only below, which are as well
54540         protected by `#ifndef __need_getopt'.
54541         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54542         __need_getopt after including <stdio.h> and <unistd.h> These
54543         headers might have defined it.
54544
54545 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54546
54547         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54548
54549 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54550
54551         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54552         (futimens): New function, which uses futimes if available.
54553         (futimens, utimens): Support timespec==NULL, with same semantics
54554         as utime and utimens.
54555         * lib/utimens.h (futimens): New decl.
54556
54557 2004-11-23  Jim Meyering  <jim@meyering.net>
54558
54559         * lib/getopt_.h: Remove trailing blanks.
54560
54561 2004-11-23  Jim Meyering  <jim@meyering.net>
54562
54563         * lib/__fpending.c: Add comment.
54564
54565 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54566
54567         * modules/canonicalize (Depends-on): Add xreadlink.
54568         Problem reported by James Youngman.
54569
54570 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54571
54572         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54573         New macros.
54574         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54575         optopt): Use them instead of invoking ## directly; otherwise, the
54576         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54577
54578 2004-11-19  Bruno Haible  <bruno@clisp.org>
54579
54580         * lib/strtok_r.c: Move comments from here...
54581         * lib/strtok_r.h: ... to here.
54582
54583 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54584
54585         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54586         implementations that mishandle size_t overflow.
54587
54588 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54589
54590         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54591         might fail.  Problem reported by Yoann Vandoorselaere.
54592         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54593         implementations that mishandle size_t overflow.
54594
54595 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54596
54597         * modules/canon-host (Depends-on): Add strdup.
54598
54599 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54600
54601         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54602
54603 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54604
54605         * lib/canon-host.c: Include "strdup.h".
54606         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54607         Use strdup instead of malloc/strcpy to duplicate strings.
54608
54609         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54610         (human_space_before_unit): New constant.
54611         * lib/human.c (human_readable): Support it.
54612
54613         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54614         (xgetcwd): Set errno correctly when failing.
54615         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54616         the failure is actually due to a PATH_MAX problem.
54617
54618         Further getopt changes to make it more likely that glibc will
54619         buy the changes back.
54620         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54621         (getopt): Use it, so to preserve glibc semantic
54622         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54623         when compiling for libc.
54624         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54625         (getopt_long, getopt_long_only): Use it.
54626
54627         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54628         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54629         (getopt): Argv is now char * const *, as per standard.
54630         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54631         not char *__getopt_argv_const *.
54632         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54633         _getopt_long_only_r): Likewise.
54634         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54635         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54636         _getopt_long_r, _getopt_long_only_r): Likewise.
54637         * lib/getopt_.h (__getopt_argv_const): Remove.
54638         (getopt): Argv is now char * const *, as per standard.
54639
54640         * lib/getdate.y (tORDINAL): New token.
54641         (day, relunit): Allow it for relative times.
54642         (relative_time_table): Use tORDINAL for ordinals.
54643
54644 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54645
54646         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54647         Document that "second" isn't allowed as an ordinal number.
54648
54649 2004-11-16  Jim Meyering  <jim@meyering.net>
54650
54651         * modules/closeout (Depends-on): Add fpending.
54652
54653 2004-11-15  Jim Meyering  <jim@meyering.net>
54654
54655         * lib/closeout.c: Include "__fpending.h" once again.
54656         Include <stdbool.h>.
54657         (close_stdout): Don't fail just because stdout was closed initially,
54658         since some programs don't write to stdout in the normal course of
54659         operation (other than --version and --help), and we don't want this
54660         function to make e.g. `touch file >&-' fail.
54661         But do fail if it was closed and someone has tried to write to it.
54662         E.g., `printf foo >&-' must fail.
54663
54664 2004-11-13  Jim Meyering  <jim@meyering.net>
54665
54666         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54667
54668 2004-11-12  Simon Josefsson  <jas@extundo.com>
54669
54670         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54671         small doc fix is still pending.
54672
54673 2004-11-11  Simon Josefsson  <jas@extundo.com>
54674
54675         * modules/strtok_r: New file.
54676
54677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54678         strtok_r.
54679
54680 2004-11-11  Simon Josefsson  <jas@extundo.com>
54681
54682         * m4/strtok_r.m4: New file.
54683
54684         * m4/getopt.m4: Replace opterr.
54685
54686 2004-11-11  Simon Josefsson  <jas@extundo.com>
54687
54688         * lib/strtok_r.h, strtok_r.c: New file.
54689
54690 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54691
54692         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54693         of replacing opterr, getopt, etc.  This should handle the
54694         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54695
54696 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54697
54698         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54699         we can stop lying to compilers about the constness of argv when we
54700         are compiled outside glibc.
54701         (getopt, getopt_long, getopt_long_only): Use it.
54702         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54703         _getopt_internal, getopt): Likewise.
54704         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54705         _getopt_long_only_r): Likewise.
54706         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54707         _getopt_long_r, _getopt_long_only_r): Likewise.
54708
54709         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54710         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54711         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54712         the other external symbols.
54713         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54714         declaration, since the above renaming now works around collisions.
54715
54716 2004-11-11  Jim Meyering  <jim@meyering.net>
54717
54718         * lib/linebreak.c: Remove trailing blanks.
54719         * lib/alloca_.h: Likewise.
54720         * lib/acosl.c: Likewise.
54721         * lib/euidaccess.c: Likewise.
54722         * lib/allocsa.h: Likewise.
54723
54724 2004-11-10  Simon Josefsson  <jas@extundo.com>
54725
54726         * m4/getaddrinfo.m4: New file.
54727
54728 2004-11-10  Simon Josefsson  <jas@extundo.com>
54729
54730         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54731
54732 2004-11-10  Simon Josefsson  <jas@extundo.com>
54733
54734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54735         getaddrinfo.
54736
54737         * modules/getaddrinfo: New file.
54738
54739 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54740
54741         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54742
54743 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54744
54745         * lib/mktime.c (SHR): New macro, which is a portable
54746         substitute for >> that should work even on Crays.
54747         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54748         Problem reported by Mark D. Baushke in
54749         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54750         * lib/getdate.y (SHR): Likewise.
54751         (tm_diff): Use it.
54752         * lib/strftime.c (SHR): Likewise.
54753         (tm_diff): Use it.
54754         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54755         quote_these_too, so that right shifts are well defined.  All uses
54756         changed.
54757
54758 2004-11-10  Jim Meyering  <jim@meyering.net>
54759
54760         Ensure that no close failure goes unreported.
54761         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54762         return early when it seems there's nothing to flush.
54763         Don't include __fpending.h.
54764
54765 2004-11-10  Jim Meyering  <jim@meyering.net>
54766
54767         * modules/closeout (Depends-on): Remove fpending.
54768
54769 2004-11-10  Jim Meyering  <jim@meyering.net>
54770
54771         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54772
54773 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54774
54775         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54776         gl_FUNC_STRFTIME.
54777         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54778         and AC_REQUIRE when possible, to avoid duplicate checks.
54779         Check for <wchar.h>.
54780
54781 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54782
54783         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54784
54785 2004-11-09  Bruno Haible  <bruno@clisp.org>
54786
54787         * m4/sockpfaf.m4: New file.
54788
54789 2004-11-05  Bruno Haible  <bruno@clisp.org>
54790
54791         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54792         Reported by Mark D. Baushke <mdb@cvshome.org>.
54793
54794 2004-11-04  Bruno Haible  <bruno@clisp.org>
54795
54796         2004-09-11  Bruno Haible  <bruno@clisp.org>
54797                 * allocsa.valgrind: New file.
54798         2004-02-06  Bruno Haible  <bruno@clisp.org>
54799                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54800                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54801                 Reported by Christopher Seip <chris.seip@hp.com>.
54802
54803 2004-11-04  Bruno Haible  <bruno@clisp.org>
54804
54805         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54806         (Makefile.am): Distribute it.
54807
54808 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54809
54810         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54811         with errno == ERANGE if the buffer is too small.
54812         Problem reported by Mark D. Baushke.
54813
54814 2004-11-03  Albert Chin  <china@thewrittenword.com>
54815             Paul Eggert  <eggert@cs.ucla.edu>
54816
54817         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54818         equivalent, substitute $ac_type for equivalent type rather than
54819         blindly using uint32_t *always* which won't work if uint32_t is not
54820         available.  Define _UINT32_T to work around typedef of uint32_t if
54821         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54822         2.5.1.
54823
54824 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54825
54826         * m4/jm-macros.m4: Sync from coreutils.
54827         (gl_MACROS): Check for mbrlen, for pathchk.
54828         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54829
54830 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54831
54832         * lib/xreadlink.c (MAXSIZE): New macro.
54833         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54834         size does not exceed MAXSIZE.  Avoid cast.
54835         As suggested by Mark D. Baushke in
54836         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54837         if readlink fails with buffer size just under MAXSIZE, try again
54838         with MAXSIZE.
54839
54840 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54841
54842         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54843
54844 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54845         and  Paul Eggert  <eggert@cs.ucla.edu>
54846
54847         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54848         (get_date): Overparenthesize to avoid GCC warning.
54849
54850 2004-11-02  Bruno Haible  <bruno@clisp.org>
54851
54852         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54853         returns void.
54854
54855 2004-11-02  Bruno Haible  <bruno@clisp.org>
54856
54857         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54858         function returns void.
54859
54860 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54861
54862         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54863         fflush_unlocked, flockfile, funlockfile, funlockfile,
54864         fputs_unlocked, putc_unlocked.
54865
54866 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54867
54868         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54869         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54870         already declared.
54871
54872 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54873
54874         * modules/getdate (Files): Add doc/getdate.texi.
54875         (Depends-on): Add setenv, xalloc.
54876
54877 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54878
54879         * lib/getdate.y: Add support for TZ="foo" within a date string.
54880         Fix some bugs near time_t boundaries.  Reject dates with
54881         out-of-range components, e.g., "Sept 31".
54882         Include <stdlib.h>, "setenv.h", "xalloc.h".
54883         (ISDIGIT_LOCALE): Remove; unused.
54884         Note that the TZ and time functions used here are not reentrant.
54885         (mktime_ok, get_tz): New functions.
54886         (TZBUFSIZE): New constant.
54887         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54888         This requires that we sometimes generate our own TZ="XXX..." setting.
54889
54890 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54891
54892         * doc/getdate.texi: New file, from coreutils with modifications for
54893         the new TZ parsing.
54894
54895 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54896
54897         * lib/mktime.c (not_equal_tm): Remove redundant check.
54898
54899 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54900
54901         * modules/regex (lib_SOURCES): Add regex.c.
54902         Reported by James Youngman in
54903         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54904
54905 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54906
54907         * lib/getdate.y: Use Bison 1.875 features, and some minor
54908         code cleanups.  This change does not affect semantics.
54909         Don't include <stdlib.h>; no longer needed.
54910         Don't include unlocked-io.h; only the "#if TEST" code uses
54911         stdio, and performance isn't crucial there.
54912         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54913         Bison 1.875 features as described below.
54914         All uses of "PC." replaced by "pc->".
54915         (YYSTYPE): Add a forward declaration.
54916         (yylex, yyerror): Use full prototypes in forward decls.
54917         Use "%pure-parser" rather than obsolescent "%pure_parser".
54918         Use %parse-param and %lex-param instead of obsolescent
54919         YYPARSE_PARAM and YYLEX_PARAM.
54920         (meridian_table, month_and_day_table, time_units_table,
54921         relative_time_table, time_zone_table, military_table,
54922         lookup_zone, lookup_word, get_date):
54923         Use NULL instead of 0 where appropriate.
54924         (to_hour): Avoid abort (), to avoid a dependency on
54925         stdlib.h.
54926         (yyerror, yylex): Now accepts parser_control * arg.
54927         (main) [TEST]: Use '\0' rather than 0 for char.
54928
54929 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54930
54931         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54932
54933 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54934
54935         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54936         It's now the caller's responsibility to handle the case where
54937         !HAVE_GETPAGESIZE && !defined getpagesize.
54938
54939         * lib/mktime.c (leapyear): Arg is long int, not int.
54940
54941 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54942
54943         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54944
54945 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54946
54947         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54948         missing.  Problem reported by James Youngman.
54949
54950 2004-10-16  Simon Josefsson  <jas@extundo.com>
54951
54952         * gnulib-tool: Fix comments.  Fix parse problem.
54953         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54954
54955 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54956
54957         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54958         implementation of getopt_long.  Problem reported by Alexander Taler in:
54959         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54960
54961 2004-10-15  Bruno Haible  <bruno@clisp.org>
54962
54963         * gnulib-tool: Untabify. Initialize supplied_libname.
54964         (func_usage): More homogenous output.
54965         (func_modules_transitive_closure, func_modules_to_filelist,
54966         func_emit_lib_Makefile_am): New functions.
54967         (func_import): New function, extracted from big case statement. Use
54968         func_get_license, func_modules_transitive_closure,
54969         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54970         opt_lgpl. Don't use test -a, as it's not portable.
54971         (func_create_testdir): Use func_modules_transitive_closure,
54972         func_modules_to_filelist, func_emit_lib_Makefile_am.
54973
54974 2004-10-15  Bruno Haible  <bruno@clisp.org>
54975
54976         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54977
54978 2004-10-15  Bruno Haible  <bruno@clisp.org>
54979
54980         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54981         the portions belonging to each module.
54982         Suggested by Derek Robert Price <derek@ximbiot.com>.
54983
54984 2004-10-12  Simon Josefsson  <jas@extundo.com>
54985
54986         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54987         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54988         to real functions.
54989
54990 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54991
54992         * modules/vsnprintf: New file.
54993
54994 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54995
54996         * m4/vsnprintf.m4: New file.
54997
54998 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54999
55000         * lib/vsnprintf.h: New file.
55001         * lib/vsnprintf.c: New file.
55002
55003 2004-10-11  Bruno Haible  <bruno@clisp.org>
55004
55005         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
55006         vsnprintf.
55007
55008 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55009
55010         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
55011
55012 2004-10-07  Bruno Haible  <bruno@clisp.org>
55013
55014         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
55015         fits into the provided buffer.
55016
55017 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55018
55019         * lib/diacrit.c, diacrit.h: Add GPL notice.
55020
55021         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
55022         notice.
55023         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
55024         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
55025         This avoids a potential constant-folding bug.
55026
55027 2004-10-05  Bruno Haible  <bruno@clisp.org>
55028
55029         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
55030         for the declaration of strsep.
55031
55032 2004-10-05  Bruno Haible  <bruno@clisp.org>
55033
55034         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
55035
55036 2004-10-04  Simon Josefsson  <jas@extundo.com>
55037
55038         * modules/memmem: New file.
55039         * tests/test-memmem.c: New file.
55040         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
55041
55042 2004-10-04  Simon Josefsson  <jas@extundo.com>
55043
55044         * m4/memmem.m4: New file.
55045
55046 2004-10-04  Simon Josefsson  <jas@extundo.com>
55047
55048         * lib/memmem.h: New file.
55049         * lib/memmem.c: New file, taken from glibc.
55050
55051 2004-10-04  Simon Josefsson  <jas@extundo.com>
55052
55053         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
55054         '#ifdef USE_UNLOCKED_IO'.
55055
55056 2004-10-04  Simon Josefsson  <jas@extundo.com>
55057
55058         * config/srclist.txt: Add memmem from glibc.
55059
55060 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55061
55062         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
55063
55064         * modules/argmatch, modules/argp, modules/closeout, modules/error,
55065         modules/exclude, modules/getdate, modules/getline,
55066         modules/getndelim2, modules/getpass, modules/getpass-gnu,
55067         modules/getusershell, modules/linebuffer, modules/md5,
55068         modules/mountlist, modules/posixtm, modules/readtokens,
55069         modules/readutmp, modules/regex, modules/sha1,
55070         modules/version-etc, modules/yesno:
55071         Remove dependency on unlocked-io.
55072
55073 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55074
55075         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
55076
55077         * m4/unlocked-io.m4: Add copyright notice.
55078         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
55079
55080 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55081
55082         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
55083         * lib/xmalloc.c (xmemdup): Likewise.
55084         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
55085         XFREE): Remove these long-obsolescent macros.
55086         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
55087         * lib/xstrdup.c: Remove.
55088
55089         * lib/regex.c (re_comp): Cast gettext return value to char *,
55090         Problem reported by Martin Neitzel via Mark D. Baushke.
55091
55092 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55093
55094         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
55095         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
55096         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
55097         regex.c, sha1.c, version-etc.c, yesno.c:
55098         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
55099         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
55100         the includer's responsibility.
55101
55102         Sync from coreutils.
55103
55104         * lib/modechange.c (mode_compile): Don't decrement a pointer that
55105         points to the start of a string, as the C Standard says the
55106         resulting behavior is undefined.
55107
55108         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
55109         simple -> simple_backups, numbered_existing ->
55110         numbered_existing_backups, numbered -> numbered_backups
55111         to avoid shadowing problems.  All uses changed.
55112         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
55113         * lib/backupfile.c (check_extension, numbered_backup):
55114         Rename locals to avoid shadowing 'basename'.
55115         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
55116         once.
55117
55118         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
55119         * lib/.cvsignore: Add getopt.h.
55120
55121 2004-10-04  Bruno Haible  <bruno@clisp.org>
55122
55123         * modules/README: New file.
55124         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
55125         not a module.
55126
55127 2004-10-02  Jim Meyering  <jim@meyering.net>
55128
55129         * lib/dirfd.h, getpagesize.h: Add copyright notice.
55130
55131 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55132
55133         * modules/strsep: New file.
55134
55135 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55136
55137         * m4/strsep.m4: New file.
55138
55139 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55140
55141         * lib/strsep.h: New file.
55142         * lib/strsep.c: New file.
55143
55144 2004-10-01  Simon Josefsson  <jas@extundo.com>
55145
55146         * lib/snprintf.c (snprintf): Handle size==0.
55147
55148 2004-10-01  Simon Josefsson  <jas@extundo.com>
55149             Bruno Haible  <bruno@clisp.org>
55150
55151         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
55152         (snprintf): Declare 'args'.
55153
55154 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
55155
55156         * lib/snprintf.c: Remove comments as to why each header is needed.
55157
55158 2004-10-01  Bruno Haible  <bruno@clisp.org>
55159
55160         * MODULES.html.sh: Add strsep.
55161
55162 2004-09-30  Simon Josefsson  <jas@extundo.com>
55163
55164         * modules/snprintf: New file.
55165
55166 2004-09-30  Simon Josefsson  <jas@extundo.com>
55167
55168         * m4/snprintf.m4: New file.
55169
55170 2004-09-30  Simon Josefsson  <jas@extundo.com>
55171
55172         * lib/snprintf.h, lib/snprintf.c: New files.
55173
55174 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55175
55176         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55177         (hol_entry_help): Never translate an empty string.
55178         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55179         * lib/argp.h (OPTION_NO_TRANS): New option.
55180
55181 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55182
55183         * modules/argp (Maintainer): Replace Simon Josefsson
55184         by Sergey Poznyakoff.
55185
55186 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55187
55188         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55189         changes merged back into glibc.
55190
55191 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55192
55193         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55194
55195 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55196
55197         * lib/xvasprintf.c: Include xalloc.h.
55198         (xvasprintf): Use xalloc_die, not xmalloc_die.
55199
55200 2004-09-29  Bruno Haible  <bruno@clisp.org>
55201
55202         * modules/alloca-opt: New file, derived from modules/alloca.
55203         * modules/allocsa: Depend on alloca-opt instead of alloca.
55204         * modules/setenv: Likewise.
55205         * modules/vasnprintf: Likewise.
55206         * MODULES.html.sh: Add alloca-opt.
55207
55208 2004-09-28  Simon Josefsson  <jas@extundo.com>
55209
55210         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55211         LGPL, and to replace license template from GPL to LGPL.
55212
55213 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55214
55215         * modules/dummy: Change license to LGPL.
55216
55217 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55218
55219         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55220
55221 2004-09-24  Simon Josefsson  <jas@extundo.com>
55222
55223         * modules/minmax (License): Change from GPL to LGPL.
55224
55225 2004-09-23  Simon Josefsson  <jas@extundo.com>
55226
55227         * gnulib-tool (--import): Typo.
55228
55229 2004-09-23  Simon Josefsson  <jas@extundo.com>
55230
55231         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55232
55233 2004-09-22  Bruno Haible  <bruno@clisp.org>
55234
55235         * modules/*: Add 'License' field.
55236         * gnulib-tool: Accept --extract-license option.
55237         (func_get_license): New function.
55238
55239 2004-09-21  Bruno Haible  <bruno@clisp.org>
55240
55241         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55242         Reported by Simon Josefsson.
55243
55244 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55245
55246         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55247         gl_AC_TYPE_LONG_LONG.
55248
55249 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55250
55251         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55252
55253 2004-09-18  Simon Josefsson  <jas@extundo.com>
55254         and  Paul Eggert  <eggert@cs.ucla.edu>
55255
55256         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55257         calls with autoreconf.  Define GL_LIB.
55258
55259 2004-09-14  Karl Berry  <karl@gnu.org>
55260
55261         * config/srclist.txt: unsync setenv.c, sigh.
55262
55263 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55264
55265         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55266         Problem reported by Bruno Haible in:
55267         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55268
55269 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         * config/srclist.txt: Comment out argp-pvh.c.
55272
55273 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55274
55275         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55276         in case some system header has #define'd it.  Problem reported by
55277         Soeren D. Schulze in
55278         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55279
55280 2004-09-09  Karl Berry  <karl@gnu.org>
55281
55282         * regex.[ch]: delete from the root.  These were supposed to be
55283                 synced with emacs cvs, but this has not happened for about
55284                 a year, and anyway nothing else uses emacs regex.[ch].
55285                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55286                 lib/regex[.ch] is untouched.
55287
55288 2004-09-09  Bruno Haible  <bruno@clisp.org>
55289
55290         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55291
55292 2004-09-09  Bruno Haible  <bruno@clisp.org>
55293
55294         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55295         modifications.
55296         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55297
55298 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55299
55300         * modules/xvasprintf: New file.
55301         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55302
55303 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55304
55305         * lib/xvasprintf.h: New file.
55306         * lib/xvasprintf.c: New file.
55307         * lib/xasprintf.c: New file.
55308
55309 2004-09-08  Bruno Haible  <bruno@clisp.org>
55310
55311         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55312
55313 2004-09-08  Bruno Haible  <bruno@clisp.org>
55314
55315         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55316         length is > INT_MAX.
55317         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55318         more.
55319
55320 2004-09-08  Bruno Haible  <bruno@clisp.org>
55321
55322         * lib/stdint_.h: New file, taken from GNU clisp.
55323
55324 2004-09-08  Bruno Haible  <bruno@clisp.org>
55325             Oskar Liljeblad  <oskar@osk.mine.nu>
55326
55327         * modules/stdint: New file.
55328         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55329
55330 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55331
55332         Import from coreutils.
55333         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55334         strings on unbounded length.  alloca's performance benefits aren't
55335         that important here.
55336         (V_STRDUP): Remove.
55337         (parse_with_separator): New function, with most of the internals
55338         of the old parse_user_spec.  Allow user to omit both user and group,
55339         for compatibility with FreeBSD.
55340         Clone only the user name, not the entire spec.
55341         Do not set *uid, *gid unless entirely successful.
55342         Avoid memory leak in some failing cases.
55343         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55344         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55345         (parse_user_spec): Rewrite to use parse_with_separator.
55346
55347 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55348
55349         * modules/userspec: Don't depend on alloca.
55350
55351 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55354
55355 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55356
55357         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55358         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55359         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55360
55361 2004-08-16  Simon Josefsson  <jas@extundo.com>
55362
55363         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55364         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55365         Add --dry-run for --import.
55366         Let user provided command line parameters override configure.ac
55367         settings.
55368
55369 2004-08-12  Simon Josefsson  <jas@extundo.com>
55370
55371         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55372         as discussed with Paul Eggert in threads rooted at
55373         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55374         and
55375         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55376         Before, the test was empty, and relied on ELIDE_CODE in source
55377         code.)
55378         (gl_PREREQ_GETOPT): New macro.
55379         (gl_GETOPT): Use them.
55380
55381 2004-08-12  Simon Josefsson  <jas@extundo.com>
55382
55383         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55384         * lib/getopt_.h: Renamed from getopt.h.
55385
55386 2004-08-12  Simon Josefsson  <jas@extundo.com>
55387
55388         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55389         Change default library name from libfoo to libgnu.
55390         Now, if you have a configure.ac that says:
55391                 gl_SOURCE_BASE(gl)
55392                 gl_M4_BASE(gl/m4)
55393                 gl_MODULES(error getopt etcetera)
55394                 gl_INIT
55395         you can import all you need by running:
55396                 ../gnulib/gnulib-tool --import
55397
55398         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55399         (Makefile.am): Rewrite, use logic from argz.
55400         (Include): Use <getopt.h> instead of "getopt.h".
55401
55402 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55403
55404         * modules/argp (Files): Add m4/unlocked-io.m4.
55405         (Depends-on): Add extensions.
55406
55407 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55410         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55411         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55412         Check for program_invocation_name, program_invocation_short_name,
55413         flockfile, funlockfile, features.h, _getopt_long_only_r.
55414
55415 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55416
55417         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55418         its complicated substitute.
55419         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55420         and program_invocation_name.
55421         (__argp_basename) [!_LIBC]: Remove; the only use was
55422         replaced by its body.
55423         (__argp_short_program_name): Change condition from
55424         !defined __argp_short_program_name to
55425         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55426         to match argp-namefrob.h.
55427         (__argp_failure): Don't assume strerror_r returns char *.
55428         * lib/argp-parse.c (N_): Define unconditionally.
55429         (argp_default_options): Fill out initializers with 0 to avoid
55430         gcc warnings.
55431
55432 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55433
55434         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55435         getopt1.c.
55436
55437 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55438
55439         Merge from coreutils.
55440
55441         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55442
55443         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55444         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55445
55446 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55447
55448         Merge from coreutils.
55449
55450         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55451         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55452         for Reliant Unix 5.43.
55453
55454         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55455         (union fooround): Use uintmax_t, not long int.
55456         The rest is a merge from libc:
55457         [defined _LIBC]: Include <shlib-compat.h>.
55458         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55459
55460         * lib/settime.c (settime): Recode to avoid warning with
55461         Sun Forte C 6U2.
55462
55463         * lib/strverscmp.c: Convert to UTF-8.
55464
55465 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55466
55467         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55468         m4/uintmax_t.m4.
55469
55470 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * modules/xalloc-die: New file.
55473         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55474
55475         * modules/md5 (Files): Add m4/uint32_t.m4.
55476         * modules/sha1: Renamed from modules/sha.
55477         (Files):
55478         Rename lib/sha.h to lib/sha1.h.
55479         Rename lib/sha.c to lib/sha1.c.
55480         Rename m4/sha.m4 to m4/sha1.m4.
55481         (lib_SOURCES): Likewise.
55482         (configure.ac): Rename gl_SHA to gl_SHA1.
55483         (Include): sha.h -> sha1.h.
55484
55485 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55486
55487         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55488         * m4/sha1.m4: Renamed from sha.m4.
55489         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55490
55491 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55492
55493         * lib/obstack.h (obstack_empty_p):
55494         Don't assume that chunk->contents is suitably aligned.
55495         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55496         Likewise. Problem reported by Benno in
55497         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55498
55499         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55500         readable.  This could be improved further but it'd take some work.
55501
55502 2004-08-08  Simon Josefsson  <jas@extundo.com>
55503
55504         * modules/xgethostname (Depends-on): Remove exit and error (not
55505         used).
55506
55507         * modules/getpass-gnu: Add getpass.h.
55508         (Depends-on): Add stdbool.
55509         * modules/getpass: Add getpass.h.
55510
55511 2004-08-08  Simon Josefsson  <jas@extundo.com>
55512
55513         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55514         Check getpass declaration.
55515
55516 2004-08-08  Simon Josefsson  <jas@extundo.com>
55517
55518         * lib/xgethostname.c: Don't include error.h (not used).
55519
55520         * lib/getpass.h: Add.
55521         * lib/getpass.c: Include getpass.h first.
55522
55523 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55524
55525         * lib/xalloc-die.c: New file.
55526         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55527         All uses removed.
55528         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55529         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55530         xalloc-die.c.
55531         (_, N_, xalloc_die): Move to xalloc-die.c.
55532         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55533         so that we needn't mess with xalloc_msg_memory_exhausted.
55534
55535         * lib/sha1.h: Renamed from sha.h.
55536         (SHA1_H): Renamed from _SHA_H.
55537         (sha1_ctx): Renamed from sha_ctx.
55538         (sha1_init_ctx): Renamed from sha_init_ctx.
55539         (sha1_process_block): Renamed from sha_process_block.
55540         (sha1_process_bytes): Renamed from sha_process_bytes.
55541         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55542         (sha1_read_ctx): Renamed from sha_read_ctx.
55543         (sha1_stream): Renamed from sha_stream.
55544         (sha1_buffer): Renamed from sha_buffer.
55545         * lib/sha1.c: Likewise; renamed from sha.c.
55546         Do not include <sys/types.h>.
55547         Include <stddef.h> rather than <stdlib.h>.
55548
55549 2004-08-08  Bruno Haible  <bruno@clisp.org>
55550
55551         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55552         FILESYSTEM_PREFIX_LEN.
55553         * lib/progreloc.c: Likewise.
55554         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55555
55556 2004-08-06  Simon Josefsson  <jas@extundo.com>
55557
55558         * modules/progname (Depends-on): Don't depend on stdbool.
55559
55560 2004-08-06  Simon Josefsson  <jas@extundo.com>
55561
55562         * modules/getsubopt: New file.
55563         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55564         getsubopt.
55565
55566 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55567
55568         More merge from coreutils.
55569
55570         * m4/utimens.m4, m4/utimecmp.m4: New files.
55571         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55572         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55573         prereq.m4, sha.m4: Import changes from coreutils.
55574
55575 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55576
55577         More merge from coreutils.
55578         * modules/raise, modules/readtokens0, modules/utimens:
55579         * modules/utimecmp, module/xnanosleep: New files.
55580         * modules/strftime: Add lib/strftime.h.
55581         Change include from <time.h> to "strftime.h".
55582         * modules/yesno: Add lib/yesno.h.
55583         * modules/backupfile: Remove lib/addext.c.
55584         * modules/euidaccess: Add stat-macros.h.
55585         * modules/canonicalize, modules/euidaccess,
55586         modules/filemode, modules/lchown, modules/makepath,
55587         modules/rmdir, modules/stat: Likewise.
55588
55589 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55590
55591         Merge from tar.
55592         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55593         SIZE_MAX is a valid preprocessor constant.
55594         (__argp_basename): Change from "#ifndef _LIBC"
55595         to "#ifndef __argp_short_program_name", so that
55596         we don't compile these functions for tar.
55597
55598         More merges from coreutils.
55599         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55600         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55601         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55602         * lib/addext.c: Remove; no longer needed.
55603         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55604         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55605         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55606         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55607         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55608         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55609         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55610         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55611         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55612         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55613         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55614         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55615         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55616         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55617         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55618         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55619         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55620         Import changes from coreutils.
55621
55622 2004-08-05  Simon Josefsson  <jas@extundo.com>
55623
55624         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55625
55626 2004-08-05  Simon Josefsson  <jas@extundo.com>
55627
55628         * m4/getsubopt.m4: New file.
55629
55630 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55631
55632         Merge from coreutils.
55633
55634         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55635         * m4/getcwd-path-max.m4: New files.
55636
55637         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55638         FILESYSTEM_PREFIX_LEN ->
55639         FILE_SYSTEM_PREFIX_LEN.
55640         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55641         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55642         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55643         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55644
55645         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55646         prerequisite modules now handle the DOS stuff.
55647         Don't check for unistd.h.
55648
55649 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55650
55651         Merge from coreutils.
55652
55653         * lib/.gdb-history: Remove; this doesn't belong here.
55654
55655         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55656         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55657         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55658         * lib/getcwd.c: New files.
55659
55660         * lib/dirname.h: Include <stdbool.h>.
55661         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55662         for consistency with POSIX terminology.  All uses changed.
55663         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55664         (strip_trailing_slashes): Use bool for booleans.
55665         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55666
55667         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55668         sometimes returns a positive errno value even when it succeeds.
55669         (print_errno_message) [!LIBC]: Fall back on strerror if
55670         __strerror_r fails.
55671
55672         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55673         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55674         (longest_relative_suffix): New function.
55675         (path_concat): Use it.  Assume first argument is not NULL.
55676         Port to DOS.  Omit redundant separators.
55677         Report an error instead of returning NULL.
55678         Use mempcpy instead of memcpy.
55679         (xpath_concat): Remove: not declared or used.
55680
55681         * lib/same.h: Include <stdbool.h>
55682         (same_name): Return bool, not int.
55683         * lib/same.c (same_name): Likewise.
55684         (errno): Don't declare; we assume C89 or better now.
55685
55686         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55687         if not already defined.
55688
55689         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55690         * lib/dup-safer.c (errno): Likewise.
55691
55692 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55693
55694         Merge from coreutils.
55695         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55696         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55697         * modules/path-concat: Don't depend on strdup.
55698
55699 2004-08-03  Simon Josefsson  <jas@extundo.com>
55700
55701         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55702         * lib/progname.h: Don't include stdbool.h.
55703
55704 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55705
55706         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55707         * MODULES.html.sh (func_all_modules): Remove fatal.
55708
55709 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55710
55711         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55712
55713 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55714
55715         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55716         working.
55717
55718 2004-08-02  Simon Josefsson  <jas@extundo.com>
55719
55720         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55721         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55722         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55723
55724 2004-08-01  Simon Josefsson  <jas@extundo.com>
55725
55726         * lib/xgetdomainname.c: Include stdlib.h, for free().
55727
55728 2004-07-19  Bruno Haible  <bruno@clisp.org>
55729
55730         * MODULES.html.sh (func_all_modules): Add dummy.
55731
55732 2004-07-16  Simon Josefsson  <jas@extundo.com>
55733
55734         * modules/dummy: New file.
55735
55736 2004-07-16  Simon Josefsson  <jas@extundo.com>
55737
55738         * lib/dummy.c: New file.
55739
55740 2004-07-16  Bruno Haible  <bruno@clisp.org>
55741
55742         * lib/backupfile.h: Add extern "C" for C++.
55743         * lib/closeout.h: Likewise.
55744         * lib/copy-file.h: Likewise.
55745         * lib/findprog.h: Likewise.
55746         * lib/full-write.h: Likewise.
55747         * lib/pathname.h: Likewise.
55748         * lib/progname.h: Likewise.
55749         * lib/stpcpy.h: Likewise.
55750         * lib/stpncpy.h: Likewise.
55751         * lib/strcase.h: Likewise.
55752         * lib/strstr.h: Likewise.
55753         * lib/xalloc.h: Likewise.
55754
55755         * lib/mbswidth.h: Add extern "C" for C++.
55756         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55757
55758 2004-07-13  Robert Millan  <robertmh@gnu.org>
55759
55760         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55761
55762 2004-07-09  Simon Josefsson  <jas@extundo.com>
55763
55764         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55765         failed without this.)
55766
55767 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55768
55769         * modules/chown (Files): Add lib/fchown-stub.c, since
55770         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55771
55772 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55773
55774         * lib/fchown-stub.c: New file.
55775
55776 2004-06-24  Jim Meyering  <jim@meyering.net>
55777
55778         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55779
55780 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55781
55782         * modules/argz: Omit "#include".
55783
55784         * MODULES.html.sh (func_all_modules): Add calloc, to match
55785         2004-06-01 addition of calloc module.
55786
55787 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55788
55789         * m4/argz.m4: New file, which is autoupdated from libtool.
55790
55791 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55792
55793         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55794         libtool.
55795
55796 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55797
55798         * config/srclist-update: Don't insist on "USA." before the
55799         close-comment, as libtool omits the period and puts the */ on a
55800         separate line.
55801         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55802         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55803
55804 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55805
55806         * modules/argz: New file.
55807         * MODULES.html.sh (func_all_modules): Add argz.
55808
55809 2004-06-12  Jim Meyering  <jim@meyering.net>
55810         and  Paul Eggert  <eggert@cs.ucla.edu>
55811
55812         * modules/hash (Files): Add lib/xalloc.h.
55813         * modules/pipe (Depends-on): Add wait-process.
55814         * modules/stat (Depends-on): Add xalloc.
55815         * modules/userspec (Files): Add lib/userspec.h.
55816         * modules/xstrto
55817
55818         Upgrade from gettext-0.13.
55819         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55820         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55821         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55822
55823 2004-06-10  Jim Meyering  <jim@meyering.net>
55824
55825         * lib/calloc.c: New file.
55826
55827 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55828
55829         * lib/getdate.y (yylex): Allow space between sign and number.
55830         Problem reported by Dan Jacobson.
55831
55832 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55833
55834         Merge from coreutils CVS.
55835
55836         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55837         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55838         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55839         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55840         xstrtol.m4: Fix copyright date and/or serial number.
55841
55842         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55843         See if we need an fchown replacement.
55844         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55845         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55846         and use the replacement function if we detect either defect.
55847
55848         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55849         gl_UTIMECMP.
55850
55851 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55852         and  Jim Meyering  <jim@meyering.net>
55853
55854         Merge from coreutils CVS.
55855
55856         * lib/stat-macros.h: New file, with contents from file-type.h
55857         and coreutils' system.h.
55858         * lib/file-type.c: Include "stat-macros.h".
55859         * lib/file-type.h (file_type): Move all macro definitions to new file,
55860         stat-macros.h.
55861
55862         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55863         Wrap old code with this conditional.
55864         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55865         function that does not dereference symlinks.
55866         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55867
55868         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55869         dependency problems.
55870         (xreadlink): Accept new arg SIZE, for efficiency.
55871         All decls and uses changed.
55872         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55873
55874         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55875         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55876
55877         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55878         sysexits.h.
55879
55880 2004-06-01  Jim Meyering  <jim@meyering.net>
55881
55882         * m4/calloc.m4: New file.
55883
55884 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55887         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55888         Also, fix a typo in a diagnostic.
55889
55890 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55891
55892         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55893         or AC_FUNC_REALLOC.
55894
55895 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55896
55897         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55898         macros to be defined.
55899         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55900         the allocator returns NULL because the requested size is zero.
55901
55902 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55903
55904         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55905         var.  Add comment explaining why libc still defines it.  This
55906         merges the following patch from glibc:
55907         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55908
55909 2004-05-20  Andreas Schwab  <schwab@suse.de>
55910
55911         * m4/free.m4: Replace free if it not known to work, not the other
55912         way round.
55913
55914 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55915
55916         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55917         present in glibc since revision 1.1 of this file.
55918         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55919         obstack_alignment_mask, obstack_alloc, obstack_base,
55920         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55921         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55922         obstack_grow0, obstack_init, obstack_int_grow,
55923         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55924         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55925         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55926         nonexistent functions.
55927
55928 2004-05-18  Karl Berry  <karl@gnu.org>
55929
55930         * config/srclist.txt: break link for vasnprintf.c.
55931
55932 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55933
55934         Port obstack to the AS/400, where pointers are 16 bytes wide and
55935         you cannot cast an integer to a valid pointer.  This patch is
55936         currently waiting to be integrated into glibc; see
55937         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55938
55939         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55940         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55941         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55942         (struct obstack): temp member is now a union of a pointer and
55943         an integer, instead of an integer.  All integer uses changed.
55944         This does not affect the physical layout of struct obstack,
55945         except on hosts (like the AS/400) where the size or alignment of
55946         void * is greater than that of ptrdiff_t.
55947         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55948         __STDC__)]: Store temporary in pointer member of union, not
55949         integer member.
55950         * lib/obstack.c: Include <stddef.h>, for offsetof.
55951         (struct fooalign): Remove; it doesn't need a name.
55952         (union fooround): Change double to long double, and add void *.
55953         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55954         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55955         not a macro.  Hence the values are always int; so remove all
55956         casts-to-int in uses.
55957
55958 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55959
55960         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55961         we can get this patch merged into glibc.
55962
55963 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55964             Paul Eggert  <eggert@cs.ucla.edu>
55965
55966         * m4/argp: Depend on alloca.
55967
55968 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55969             Paul Eggert  <eggert@cs.ucla.edu>
55970
55971         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55972         freecoding.
55973
55974 2004-05-17  Bruno Haible  <bruno@clisp.org>
55975
55976         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55977         precision that consists of a '.' followed by an empty digit string.
55978         Patch by Tor Lillqvist <tml@iki.fi>.
55979
55980 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55981
55982         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55983         for backward compatibility with older code.  We need our own
55984         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55985         it under some other name, and our alloca.h will define it.
55986
55987 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55988             Derek Price  <derek@ximbiot.com>
55989
55990         * lib/alloca.c: Include <alloca.h>, to get our interface.
55991         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55992         include <alloca.h> first.  Use C89 prototype for alloca; this
55993         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55994         Use #elif for simplicity, since we can assume C89 now.
55995         Don't try to source the system alloca.h since it will not be found
55996         and to prevent recursively including its replacement.
55997         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55998         * lib/regex.c: Likewise.
55999
56000 2004-05-16  Derek Price  <derek@ximbiot.com>
56001             Paul Eggert  <eggert@cs.ucla.edu>
56002
56003         getline cleanup.  This changes the getndelim2 API: both order of
56004         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
56005         no delimiter).
56006
56007         * lib/getline.c: Don't include stddef.h or stdio.h, since our
56008         interface does that.
56009         (getline): Always use getdelim, so that we don't have two
56010         copies of this code.
56011         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
56012         if available.
56013         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
56014         (GETNDELIM2_MAXIMUM): New macro.
56015         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
56016         instead of the old practice of delim2==0.  All callers changed.
56017         Return -1 on overflow, instead of returning junk.
56018         Do not set *linesize unless allocation succeeds.
56019         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
56020         that we include sys/types.h.
56021         * lib/getnline.h: Likewise.
56022         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
56023         (getndelim2): Reorder arguments.
56024         * lib/getnline.c (getnline, getndelim):
56025         Don't discard the NMAX argument.
56026         (getnline): Invoke getndelim, to avoid code duplication.
56027         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
56028         of (size_t) -1 by callers of the getnline family.
56029
56030 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56031
56032         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
56033         Check for gettimeofday.
56034         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
56035         Check for settimeofday, stime.
56036
56037 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56038
56039         * lib/nanosleep.c (suspended): Change its type from int to
56040         sig_atomic_t volatile.
56041         (first_call): Make it private to rpl_nanosleep, and have it
56042         be zero initially as that's a bit faster.
56043         (my_usleep): Round up fractional times instead of truncating them,
56044         as this is the usual meaning for 'sleep'.
56045
56046         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
56047         doesn't work.
56048         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
56049         (ENOSYS): Define if not defined.
56050         (settime): Fall back on stime if it exists and settimeofday fails.
56051         But don't bother with fallbacks if a method fails with errno == EPERM.
56052
56053 2004-05-11  Jim Meyering  <jim@meyering.net>
56054
56055         Prior to this change, the save_cwd caller required read access to the
56056         current directory on most systems (ones with the fchdir function).
56057
56058         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
56059         fails, try write-only, and finally, resort to using xgetcwd.
56060
56061 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56062
56063         * lib/obstack.c, obstack.h: Import changes from libc.
56064
56065 2004-04-28  Bruno Haible  <bruno@clisp.org>
56066
56067         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
56068         also implicitly appends .exe to executables.
56069         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
56070         accepts Windows pathnames.
56071         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56072         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56073         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56074         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56075         Reported by Derek Robert Price <derek@ximbiot.com>.
56076
56077 2004-04-21  Karl Berry  <karl@gnu.org>
56078
56079         * config/srclist.txt (localcharset.c): break sync.
56080
56081 2004-04-20  Paul Eggert  <eggert@twinsun.com>
56082
56083         * m4/host-os.m4: Add a copyright notice.
56084
56085 2004-04-20  Jim Meyering  <jim@meyering.net>
56086
56087         Change UTILS_ to gl_ in AC_DEFINE'd names.
56088         Change utils_- and jm_-prefixed variables, too.
56089         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
56090         UTILS_FUNC_MKDIR_TRAILING_SLASH.
56091         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
56092
56093         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
56094         Don't emit trailing blanks.
56095         Also rename jm_-prefixed variables to have gl_ prefix.
56096
56097         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
56098         Also rename jm_-prefixed variables to have gl_ prefix.
56099
56100         * m4/jm-macros.m4: Reflect the renamings.
56101         * m4/prereq.m4: Likewise.
56102
56103 2004-04-20  Jim Meyering  <jim@meyering.net>
56104
56105         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
56106         memory.
56107
56108 2004-04-20  Jim Meyering  <jim@meyering.net>
56109             Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
56112         memory when realloc fails.
56113
56114 2004-04-19  Jim Meyering  <jim@meyering.net>
56115
56116         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
56117         now that readutmp.c may call `free (0)'.
56118
56119 2004-04-19  Bruno Haible  <bruno@clisp.org>
56120
56121         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
56122         * m4/inttypes_h.m4: Likewise.
56123         * m4/stdint_h.m4: Likewise.
56124         * m4/intmax_t.m4: Likewise.
56125         * m4/uintmax_t.m4: Likewise.
56126
56127 2004-04-18  Jim Meyering  <jim@meyering.net>
56128
56129         * m4/prereq.m4: Don't forbid jm_ prefix.
56130
56131         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
56132         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
56133         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
56134         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
56135         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
56136         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
56137         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
56138         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
56139         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
56140         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
56141         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
56142         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
56143         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
56144         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
56145         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
56146         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
56147         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
56148         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
56149         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
56150
56151 2004-04-18  Jim Meyering  <jim@meyering.net>
56152
56153         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
56154         failure, don't leak memory and do call END_UTMP_ENT.
56155
56156 2004-04-16  Jim Meyering  <jim@meyering.net>
56157
56158         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
56159         coreutils' stat program.
56160         (gl_PREREQ): Don't require jm_PREREQ_STAT.
56161
56162 2004-04-11  Paul Eggert  <eggert@twinsun.com>
56163
56164         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
56165         C89.
56166         (CHAR_BIT): Remove, since we assume C89.
56167         Include <stdint.h> if available, as per current Autoconf CVS advice.
56168
56169 2004-03-31  Jim Meyering  <jim@meyering.net>
56170
56171         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
56172         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
56173         * m4/xalloc.m4: Likewise.
56174
56175 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56176
56177         Merge from coreutils.
56178
56179         * m4/inttostr.m4: New file.
56180         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56181         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56182         Require gl_CLOCK_TIME.
56183         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56184
56185 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56186
56187         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56188         not bool, to be more consistent with Unix conventions.
56189         Suggested by Bruno Haible.
56190
56191         Merge from coreutils.
56192
56193         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56194         * lib/umaxtostr.c: New files.
56195
56196         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56197         the usual <time.h> dance.
56198         (get_date): Change signature to support fractional time stamps.
56199         All callers changed.
56200         * lib/getdate.y: Include "getdate.h" first, as we can now
56201         assume C89 and don't need to worry about 'const'.
56202         Similarly, include "unlocked-io.h" near start, not in middle.
56203         Include <limits.h>.
56204         (textint.value): Use long int rather than int.
56205         (textint.digits): Use size_t rather than int.
56206         (BILLION, LOG10_BILLION): New constants.
56207         (parser_control): New member rel_ns.  Members day_ordinal,
56208         time_zone, month, day, hour, minutes, rel_year, rel_month,
56209         rel_day, rel_hour, rel_minutes, rel_seconds
56210         are now long int, not int.  Member seconds is now struct timespec,
56211         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56212         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56213         not int.
56214         (%union.intval): Now long int, not int.
56215         New member timespec.
56216         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56217         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56218         (spec): Now is a timespec or an item list.
56219         (timespec, items): New nonterminals.
56220         (time, rel, relunit, number, get_date):
56221         Add support for fractional seconds.
56222         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56223         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56224         (to_hour): First arg is now long int, not int.
56225         (to_year): Returns long int, not int.
56226         Don't treat year -70 like 70.
56227         (tm_diff): Returns long int, not int.
56228         (lookup_word): Use bool instead of int when appropriate.
56229         (yylex): Use size_t for count, not int.
56230         Detect overflow when parsing large integer constants.
56231         Add support for fractions.
56232         (get_date): Make pointers 'const' if possible.
56233         Use more-portable code to detect integer overflow.
56234         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56235         Don't use ctime; it's not reliable if the year has >4 digits.
56236
56237         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56238         This is for compatibility with BSD.
56239
56240         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56241         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56242         From coreutils' system.h.
56243
56244         * lib/userspec.c: Don't include "posixver.h".
56245         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56246         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56247         compatible extension.  Simplify code by removing a boolean int
56248         that was always nonzero if a string was nonnull.
56249
56250 2004-03-30  Jim Meyering  <jim@meyering.net>
56251
56252         Merge from coreutils.
56253
56254         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56255         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56256         on some systems one must include <grp.h> before it.
56257         Reported by Christian Krackowizer.
56258
56259 2004-03-30  Jim Meyering  <jim@meyering.net>
56260
56261         Merge from coreutils.
56262
56263         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56264
56265         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56266         an empty input stream.
56267
56268         * lib/readtokens.c: Include <stdbool.h>.
56269         (readtoken): Use `size_t' rather than int/long.
56270         All callers adjusted.
56271         Use `bool' rather than `int' where appropriate.
56272         Use memset rather than an explicit loop.
56273         Use x2nrealloc rather than xrealloc.
56274         Allow the use of `\0' as a delimiter.
56275         (readtokens): Likewise.
56276         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56277
56278 2004-03-30  Jim Meyering  <jim@meyering.net>
56279
56280         * m4/realloc.m4: Remove file, since now it does no more than
56281         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56282         the `configure.ac' section of module/realloc.
56283         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56284
56285 2004-03-30  Bruno Haible  <bruno@clisp.org>
56286
56287         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56288         nonnull.
56289
56290 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56291
56292         Merge changes to getloadavg.c from coreutils and Emacs.
56293
56294         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56295         Define to an expression, not to the empty string.
56296         Include cloexec.h and xalloc.h.
56297         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56298         Use set_cloexec_flag rather than rolling our own.
56299         * lib/cloexec.c, lib/cloexec.h: New files.
56300
56301 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56302
56303         * m4/cloexec.m4: New file.
56304
56305 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56306
56307         * lib/getopt.h: Sync with libc CVS.
56308
56309 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56310             Bruno Haible  <bruno@clisp.org>
56311
56312         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56313         mbswidth.
56314
56315 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56316             Bruno Haible  <bruno@clisp.org>
56317
56318         * lib/mbswidth.h: Include <wchar.h> only if
56319         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56320         <wchar.h>.
56321         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56322
56323 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56324
56325         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56326         Sync with libc CVS.
56327         * lib/getopt_int.h: New file, also synced from libc.
56328
56329 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56330
56331         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56332         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56333         Bring back getopt.c, getopt.h, getopt1.c.
56334
56335 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56336
56337         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56338         All uses changed.  Check for sa_sigaction member; this fixes
56339         a bug first reported by Jason Andrade in
56340         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56341
56342 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56343
56344         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56345         '#if' expressions.  Unlike the code it replaces, it does not
56346         depend on (defined _SC_PAGESIZE).  However, it does depend on
56347         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56348         first reported by Jason Andrade in
56349         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56350
56351 2004-02-25  Simon Josefsson  <jas@extundo.com>
56352
56353         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56354
56355 2004-02-25  Simon Josefsson  <jas@extundo.com>
56356
56357         * lib/strdup.h: New file.
56358         * lib/strdup.c: Include it.
56359         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56360         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56361
56362 2004-02-23  Karl Berry  <karl@gnu.org>
56363
56364         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56365         (from fencepost.gnu.org:/gd/gnuorg).
56366
56367 2004-02-23  Karl Berry  <karl@gnu.org>
56368
56369         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56370         * config/srclist.txt: add maintain/standards documents.
56371
56372 2004-02-18  Bruno Haible  <bruno@clisp.org>
56373
56374         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56375         Reported by Derek Robert Price <derek@ximbiot.com>.
56376
56377 2004-02-16  Karl Berry  <karl@gnu.org>
56378
56379         * config/mkinstalldirs, install-sh: update from automake.
56380
56381 2004-02-06  Karl Berry  <karl@gnu.org>
56382
56383         * m4/po.m4: update from gettext 0.14.1.
56384
56385 2004-02-06  Karl Berry  <karl@gnu.org>
56386
56387         * lib/config.charset: update from gettext 0.14.1.
56388
56389 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56390
56391         Add comments and code, prompted by suggestions from Bruno Haible
56392         for sh-quote.
56393         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56394         describing the enum quoting_style values.
56395         * lib/quotearg.c (quotearg_alloc): New function.
56396         (quotearg_buffer_restyled): Treat lone { and } as special.
56397         Treat = as special.  Work around bug with older shells
56398         that "see" a '\' that is really the 2nd byte of a multibyte char.
56399         Quote empty string with shell_quoting_style.
56400
56401 2004-02-03  Bruno Haible  <bruno@clisp.org>
56402
56403         * m4/pipe.m4: New file, from GNU gettext.
56404
56405 2004-02-03  Bruno Haible  <bruno@clisp.org>
56406
56407         * lib/pipe.h: New file, from GNU gettext.
56408         * lib/pipe.c: New file, from GNU gettext.
56409
56410 2004-01-27  Bruno Haible  <bruno@clisp.org>
56411
56412         * m4/execute.m4: New file, from GNU gettext.
56413
56414 2004-01-27  Bruno Haible  <bruno@clisp.org>
56415
56416         * lib/execute.h: New file, from GNU gettext.
56417         * lib/execute.c: New file, from GNU gettext.
56418         * lib/w32spawn.h: New file, from GNU gettext.
56419
56420 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56421
56422         Merge from diffutils.
56423
56424         * lib/file-type.c (file_type): Add typed memory objects.
56425         * lib/file-type.h (S_TYPEISTMO): New macro.
56426
56427         * lib/c-stack.h (c_stack_action): Remove argv argument.
56428         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56429         (die): Don't calculate message unless segv_action returns.
56430         (get_stack_location, min_address_from_argv, max_address_from_argv,
56431         volatile stack_base, volatile_stack_size): Remove.
56432         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56433         that every segmentation violation is a stack overflow.  (Ouch!)
56434         See Debian bug 136249 (still outstanding) for more info about why
56435         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56436
56437 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56438
56439         Exit-status fix from coreutils.
56440
56441         Use exit_failure consistently in place of EXIT_FAILURE,
56442         so that program exit statuses are consistent on failure.
56443
56444         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56445         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56446         * lib/argmatch.h: Comment fix to match the above.
56447         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56448         Now a macro referring to exit_failure, instead of a separate
56449         variable.  Include "exitfail.h" to get it.
56450         * lib/xstrtol.h: Include "exitfail.h".
56451         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56452
56453         * lib/long-options.c (parse_long_options): Use prototype
56454         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56455         for clarity.
56456
56457 2004-01-21  Jim Meyering  <jim@meyering.net>
56458
56459         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56460         so as not to conflict with a different-sized __mktime_internal
56461         function in GNU libc.
56462         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56463         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56464
56465 2004-01-20  Karl Berry  <karl@gnu.org>
56466
56467         * config/config.guess: update from config.
56468
56469         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56470
56471 2004-01-20  Bruno Haible  <bruno@clisp.org>
56472
56473         Safer stack allocation.
56474         * lib/setenv.c: Include allocsa.h.
56475         (alloca): Remove fallback definition.
56476         (freea): Remove macro.
56477         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56478         instead of freea.
56479
56480 2004-01-20  Bruno Haible  <bruno@clisp.org>
56481
56482         * m4/eealloc.m4: New file, from GNU gettext.
56483
56484 2004-01-20  Bruno Haible  <bruno@clisp.org>
56485
56486         * m4/allocsa.m4: New file, from GNU gettext.
56487
56488 2004-01-20  Bruno Haible  <bruno@clisp.org>
56489
56490         * lib/xallocsa.h: New file, from GNU gettext.
56491         * lib/xallocsa.c: New file, from GNU gettext.
56492
56493 2004-01-20  Bruno Haible  <bruno@clisp.org>
56494
56495         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56496
56497 2004-01-20  Bruno Haible  <bruno@clisp.org>
56498
56499         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56500         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56501         specially.
56502
56503 2004-01-20  Bruno Haible  <bruno@clisp.org>
56504
56505         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56506         patch.
56507
56508 2004-01-20  Bruno Haible  <bruno@clisp.org>
56509
56510         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56511
56512 2004-01-20  Bruno Haible  <bruno@clisp.org>
56513
56514         * lib/eealloc.h: New file.
56515
56516 2004-01-20  Bruno Haible  <bruno@clisp.org>
56517
56518         * lib/binary-io.h: Avoid warnings on Cygwin.
56519
56520 2004-01-20  Bruno Haible  <bruno@clisp.org>
56521
56522         * lib/allocsa.h: New file, from GNU gettext.
56523         * lib/allocsa.c: New file, from GNU gettext.
56524
56525 2004-01-18  Karl Berry  <karl@gnu.org>
56526
56527         * doc/gpl.texi, doc/lgpl.texi: new files.
56528
56529 2004-01-18  Karl Berry  <karl@gnu.org>
56530
56531         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56532         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56533
56534 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56535
56536         Merge from coreutils.
56537
56538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56539         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56540         (gl_DEFAULT_POSIX2_VERSION): Move
56541         the documentation from 'configure' into 'config.hin',
56542         so that 'configure --help' isn't burdened by it and
56543         we don't have to worry about its formatting there.
56544         Reword the documentation so that it's more succinct
56545         and can be run together into a single paragraph.
56546         * m4/same.m4 (gl_SAME): Check for pathconf.
56547
56548 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56549
56550         Merge from coreutils.
56551
56552         * lib/posixver.c: Include posixver.h.
56553
56554         * lib/same.c: Include <stdbool.h>, <limits.h>.
56555         (_POSIX_NAME_MAX): Define if not defined.
56556         (MIN): New macro.
56557         (same_name): If file names are silently truncated, report
56558         that the file names are the same if they are the same after
56559         the silent truncation.
56560
56561         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56562         conversion function.
56563         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56564         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56565         longer needed.
56566
56567 2004-01-15  Jim Meyering  <jim@meyering.net>
56568
56569         Merge from coreutils.
56570
56571         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56572         if no library is required.
56573         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56574         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56575         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56576         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56577         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56578         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56579         value, $ac_cv_search_crypt, if it's "none required".
56580         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56581         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56582         not gl_FUNC_GETLOADAVG.
56583         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56584         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56585
56586 2004-01-15  Jim Meyering  <jim@meyering.net>
56587
56588         Merge from coreutils.
56589
56590         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56591         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56592         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56593
56594         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56595         optional configure-time default.
56596
56597         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56598
56599         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56600
56601 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56602
56603         Merge from coreutils.
56604
56605         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56606         value, $ac_cv_search_nanosleep, if it's "none required".
56607
56608 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56609
56610         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56611         with like-named macro in fnmatch.c.
56612         (EXT): Use an internal constant instead.
56613
56614         Merge fnmatch patches from glibc.
56615         * lib/fnmatch.c (mbsinit): Remove define.
56616         Add libc_hidden_ver (__fnmatch, fnmatch).
56617         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56618         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56619
56620 2004-01-14  Karl Berry  <karl@gnu.org>
56621
56622         * config/install-sh: update from automake.
56623
56624 2004-01-13  Karl Berry  <karl@gnu.org>
56625
56626         * config/install-sh: update from automake.
56627
56628 2004-01-09  Karl Berry  <karl@gnu.org>
56629
56630         * config/install-sh: update from automake.
56631
56632 2004-01-05  Karl Berry  <karl@gnu.org>
56633
56634         * config/config.{sub,guess}: update from config.
56635
56636 2003-12-31  Karl Berry  <karl@gnu.org>
56637
56638         * config/depcomp: update from automake.
56639
56640 2003-12-14  Karl Berry  <karl@gnu.org>
56641
56642         * lib/config.charset: update from gettext-runtime.
56643
56644 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56645
56646         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56647         Bug reported by Alfred M. Szmidt.
56648
56649 2003-12-03  Bruno Haible  <bruno@clisp.org>
56650
56651         * m4/gettext.m4: Upgrade from gettext-0.13.
56652         * m4/po.m4: Upgrade from gettext-0.13.
56653         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56654         * m4/intmax.m4: New file, from gettext-0.13.
56655         * m4/printf-posix.m4: New file, from gettext-0.13.
56656
56657 2003-11-29  Karl Berry  <karl@gnu.org>
56658
56659         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56660
56661 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56662             Bruno Haible  <bruno@clisp.org>
56663
56664         * lib/printf-parse.h: Don't include sys/types.h.
56665         (ARG_NONE): New macro.
56666         (char_directive): Change type of *arg_index fields to size_t.
56667         * lib/printf-parse.c: Don't include sys/types.h.
56668         (SSIZE_MAX): Remove macro.
56669         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56670         Remove unnecessary overflow check.
56671         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56672         fields.
56673
56674 2003-11-25  Bruno Haible  <bruno@clisp.org>
56675
56676         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56677
56678 2003-11-25  Bruno Haible  <bruno@clisp.org>
56679
56680         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56681         gt_TYPE_SSIZE_T.
56682
56683 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56684
56685         * modules/alloca: Remove dependency on xalloc.
56686
56687 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56688
56689         * lib/alloca.c: Remove dependency on xalloc module.
56690         (xalloc_die): Remove.
56691         (memory_full) [!defined emacs]: New macro.
56692         [!defined emacs]: Don't include xalloc.h.
56693         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56694         address arithmetic overflows.  Change datatypes a bit to avoid
56695         unnecessary casts.
56696
56697 2003-11-22  Jim Meyering  <jim@meyering.net>
56698
56699         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56700         s/size/size_t/.
56701
56702 2003-11-21  Karl Berry  <karl@gnu.org>
56703
56704         * config/config.{sub,guess}: update from config.
56705
56706 2003-11-18  Karl Berry  <karl@gnu.org>
56707
56708         * config/config.{sub,guess}: update from config.
56709
56710         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56711
56712 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56713
56714         * README: Mention that S+T cannot overflow if S is the size of
56715         an existing object and T is sufficiently small.
56716
56717 2003-11-17  Jim Meyering  <jim@meyering.net>
56718
56719         On systems without utime and without a utimes function capable of
56720         dealing with a NULL struct utimbuf* argument, this utime replacement
56721         could -- in unusual circumstances -- leak a file descriptor.
56722         * lib/utime.c: Include <unistd.h> and <errno.h>.
56723         (utime_null): Be sure to close `fd' and to preserve errno.
56724         Reported by Geoff Collyer via Arnold Robbins.
56725
56726 2003-11-17  Bruno Haible  <bruno@clisp.org>
56727
56728         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56729         (Depends-on): Add xsize.
56730
56731 2003-11-17  Bruno Haible  <bruno@clisp.org>
56732
56733         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56734
56735 2003-11-17  Bruno Haible  <bruno@clisp.org>
56736
56737         * lib/vasnprintf.c (alloca): Remove fallback definition.
56738         (freea): Remove definition.
56739         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56740         Reported by Paul Eggert.
56741
56742 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56743             Bruno Haible  <bruno@clisp.org>
56744
56745         Protect against address arithmetic overflow.
56746         * lib/printf-args.h: Include stddef.h.
56747         (arguments): Change type of field 'count' to size_t.
56748         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56749         'unsigned int' where appropriate.
56750         * lib/printf-parse.h: Include sys/types.h.
56751         (char_directive): Change type of *arg_index fields to ssize_t.
56752         (char_directives): Change type of fields 'count', max_*_length to
56753         size_t.
56754         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56755         (SSIZE_MAX): Define fallback value.
56756         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56757         instead of 'int' where appropriate. Check a_allocated, d_allocated
56758         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56759         * lib/vasnprintf.c: Include xsize.h.
56760         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56761         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56762         overflow. Avoid wraparound when converting a width or precision from
56763         decimal to binary.
56764
56765 2003-11-16  Bruno Haible  <bruno@clisp.org>
56766
56767         Update from GNU gettext.
56768         * lib/printf-parse.c: Generalize to it can be compiled for wide
56769         strings.
56770         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56771         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56772         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56773         SNPRINTF): New macros.
56774         Don't include <alloca.h> if the file is used inside libintl.
56775         (local_wcslen): New function, for Solaris 2.5.1.
56776         (VASNPRINTF): Use it instead of wcslen.
56777
56778 2003-11-16  Bruno Haible  <bruno@clisp.org>
56779
56780         * lib/xsize.h (xmax): New function.
56781         (xsum, xsum3, xsum4): Declare as "pure" functions.
56782
56783 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56784
56785         * modules/xalloc (Files): Undo latest change, since xalloc.h
56786         no longer needs SIZE_MAX or PTRDIFF_MAX.
56787
56788 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56789
56790         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56791         gl_PTRDIFF_MAX.
56792
56793 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56794
56795         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56796         "return", to pacify some unknown compiler.  Problem reported
56797         by Joerg Schilling.
56798
56799 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56800
56801         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56802         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56803         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56804         heuristic is just as accurate as far as we know, and it removes a
56805         dependency on size_max.m4 and ptrdiff_max.m4.
56806
56807 2003-11-11  Bruno Haible  <bruno@clisp.org>
56808
56809         * modules/xsize (Files): Add m4/size_max.m4.
56810         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56811
56812 2003-11-11  Bruno Haible  <bruno@clisp.org>
56813
56814         * m4/size_max.m4: New file.
56815         * m4/ptrdiff_max.m4: New file.
56816         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56817         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56818         (gl_XALLOC): Invoke it.
56819
56820 2003-11-11  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56823         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56824         defined.
56825
56826 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56827
56828         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56829         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56830         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56831         From Bruno Haible.
56832         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56833         not (size_t) -1, since it's defined here.
56834
56835 2003-11-09  Karl Berry  <karl@gnu.org>
56836
56837         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56838
56839 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56840
56841         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56842         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56843         Reject sizes of exactly SIZE_MAX bytes.
56844         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56845         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56846
56847 2003-11-05  Bruno Haible  <bruno@clisp.org>
56848
56849         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56850         SIZE_MAX defined in <limits.h> on Solaris.
56851
56852 2003-11-04  Jim Meyering  <jim@meyering.net>
56853
56854         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56855         variable names, rather than @VAR@.
56856         * modules/poll: Likewise.
56857
56858 2003-11-04  Bruno Haible  <bruno@clisp.org>
56859
56860         * modules/xsize: New file.
56861         * modules/linebreak: Depend on xsize.
56862         * MODULES.html.sh (func_all_modules): Add xsize.
56863
56864 2003-11-04  Bruno Haible  <bruno@clisp.org>
56865
56866         * m4/xsize.m4: New file.
56867
56868 2003-11-04  Bruno Haible  <bruno@clisp.org>
56869
56870         * lib/xsize.h: New file.
56871         * lib/linebreak.c: Include xsize.h.
56872         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56873         argument for overflow.
56874         Suggested by Paul Eggert.
56875
56876 2003-11-03  Karl Berry  <karl@gnu.org>
56877
56878         * config/config.{guess,sub}: update from config.
56879
56880 2003-11-03  Jim Meyering  <jim@meyering.net>
56881
56882         * modules/userspec (lib_SOURCES): Add userspec.h.
56883         (Include): Add "userspec.h".
56884         Improve description.
56885
56886 2003-11-03  Jim Meyering  <jim@meyering.net>
56887
56888         * lib/userspec.c: Include "userspec.h".
56889         * lib/userspec.h: New file.
56890
56891 2003-11-03  Bruno Haible  <bruno@clisp.org>
56892
56893         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56894
56895 2003-11-03  Bruno Haible  <bruno@clisp.org>
56896
56897         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56898         available, to avoid (extremely rare) race condition.
56899         Suggested by Paul Eggert.
56900
56901 2003-11-02  Karl Berry  <karl@gnu.org>
56902
56903         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56904
56905 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56906
56907         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56908         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56909         (read_filesystem_list): Set and use me_type_malloced.
56910         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56911         whatever the type happens to be), for brevity and consistency.
56912         Check for size calculation overflow on Alphas running OSF/1.
56913
56914 2003-10-31  Jim Meyering  <jim@meyering.net>
56915
56916         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56917
56918         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56919
56920 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56921             Bruno Haible  <bruno@clisp.org>
56922
56923         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56924         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56925
56926 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56927
56928         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56929         netbsd*-gnu*.  Suggested by Robert Millan.
56930
56931 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56932
56933         * modules/group-member: Depend on stdbool.
56934
56935 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56936
56937         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56938
56939 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56940
56941         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56942         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56943         after the 'gnu' in these cases.  This fixes some bugs in the
56944         previous change, and is based on suggestions by Robert Millan.
56945
56946 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56947
56948         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56949         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56950         no longer needed.
56951         * lib/quotearg.c (quotearg_n_options): Use it.
56952         * lib/group-member.c: Include <stdbool.h>.
56953         (free_group_info): Arg is now const *; don't free arg.
56954         (get_group_info): Now returns bool and accepts struct group_info *,
56955         rather than returning a malloc'ed struct group_info *.
56956         All uses changed.  Check for overflow in internal size calculation.
56957
56958         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56959         rather than xmalloc/xrealloc.
56960         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56961         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56962         conformance bug: the old code used a pointer after freeing the
56963         storage that it addressed.
56964         * lib/hash.c (hash_initialize): Simplify the code by using
56965         xalloc_oversized rather than doing it by hand.
56966         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56967         the buffer preserved.  Use free and xmalloc instead.
56968         * lib/quotearg.c (quotearg_n_options): Likewise.
56969         Use a simpler test for size overflow.  Don't use xalloc_oversized
56970         because unsigned int might be wider than size_t (!); this suggests
56971         that we should switch from unsigned int to size_t for slot numbers.
56972
56973 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56974
56975         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56976         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56977         NetBSD kernels.  Requested by Richard Stallman.
56978
56979 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56980
56981         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56982         to allocate the returned structure.  Do not allocate a subarray,
56983         as x2nrealloc will do that.
56984         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56985         instead of xnrealloc.
56986         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56987
56988 2003-10-27  Bruno Haible  <bruno@clisp.org>
56989
56990         * lib/stdbool_.h: Better support for BeOS.
56991
56992 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56993
56994         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56995         now uses inline.
56996
56997 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56998
56999         * lib/xalloc.h (xalloc_oversized): New static inline function, for
57000         callers that want to do their own size-overflow checking.  Include
57001         <stdbool.h>, since xalloc_oversized returns bool.
57002         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
57003         to use xalloc_oversized.
57004
57005         Add two functions x2realloc, x2nrealloc, for programs that grow
57006         arrays dynamically by doubling their sizes.
57007         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
57008         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
57009         New functions.
57010
57011         Port to C99 semantics for 'inline' of external functions.
57012         Bug reported by Bruno Haible.
57013         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
57014         with the old contents of xnmalloc.
57015         (xnmalloc, xmalloc): Use it.
57016         (xnrealloc_inline): New static inline function,
57017         with the old contents of xnrealloc.
57018         (xnrealloc, xrealloc): Use it.
57019
57020         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
57021         that.
57022
57023 2003-10-26  Karl Berry  <karl@gnu.org>
57024
57025         * config/srclist.txt (COPYING.DOC): no longer available from
57026         /gd/gnuorg; don't know where the ultimate source is.
57027
57028 2003-10-25  Paul Eggert  <eggert@twinsun.com>
57029
57030         Fix several address-calculation bugs in the hash modules,
57031         plus some minor code cleanup.
57032
57033         * lib/hash.h: Include <stdbool.h>, for bool.
57034         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
57035         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
57036         hash_get_n_entries, hash_get_max_bucket_length,
57037         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
57038         hash_rehash): Use size_t rather than unsigned.
57039         * lib/hash.c (struct hash_table, hash_get_n_buckets,
57040         hash_get_n_buckets_used, hash_get_n_entries,
57041         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
57042         hash_get_entries, hash_do_for_each, hash_string, is_prime,
57043         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
57044         Likewise.
57045         (SIZE_MAX): Define if not defined.
57046         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
57047         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
57048         hash_print):
57049         Use const * when possible.
57050         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
57051         (check_tuning): Fix bug: if tuning parameters were very close to
57052         0 or 1, rounding errors could have caused subscript violations.
57053         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
57054         (hash_initialize): Add 'fail:' label
57055         to free table and return NULL, and use it to simplify code.
57056         Use calloc rather than clearing the storage ourself.
57057         (hash_initialize, hash_rehash): Check for arithmetic overflow in
57058         buffer size calculations.
57059         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
57060         Include <stddef.h>, for size_t.
57061         * lib/hash-pjw.c (hash_pjw): Likewise.
57062         Switch to method described by Bruno Haible.
57063         Include <limits.h>, for CHAR_BIT.
57064         (SIZE_BITS): New macro.
57065
57066 2003-10-23  Paul Eggert  <eggert@twinsun.com>
57067
57068         * m4/getline.m4 (AM_FUNC_GETLINE):
57069         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
57070         hosts.  Problem reported by Derek Robert Price in
57071         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
57072         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
57073         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
57074
57075 2003-10-21  Paul Eggert  <eggert@twinsun.com>
57076
57077         * lib/getndelim2.c (getndelim2): When size calculation overflows,
57078         ceiling the allocation at NMAX bytes rather than silently
57079         discarding input bytes before NMAX is reached.  This makes
57080         a difference only if NMAX exceeds SIZE_MAX / 2.
57081
57082         * lib/obstack.c: Merge from glibc.
57083         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
57084         Add libc_hidden_def (_obstack_newchunk).
57085         (_obstack_free) [! defined _LIBC]: Remove.
57086         [defined _LIBC]: Make a strong alias from obstack_free, rather than
57087         a clone of the function body.
57088         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
57089         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
57090
57091         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
57092         glibc.
57093         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
57094         arg to memcpy.
57095
57096         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
57097         (obstack_ptr_grow_fast, obstack_int_grow_fast):
57098         Don't use lvalue casts, as GCC plans to remove support for them
57099         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
57100         was also present in the non-GCC version, indicating that this
57101         code had always been buggy and had never been widely used.
57102         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
57103         Use the fast variant of each macro, rather than copying the
57104         definiens of the fast variant; that way, we'll be more likely to
57105         catch future bugs in the fast variants.
57106
57107 2003-10-20  Bruno Haible  <bruno@clisp.org>
57108
57109         * modules/wait-process: New file.
57110         * MODULES.html.sh (func_all_modules): Add wait-process.
57111
57112 2003-10-20  Bruno Haible  <bruno@clisp.org>
57113
57114         * m4/wait-process.m4: New file.
57115
57116 2003-10-20  Bruno Haible  <bruno@clisp.org>
57117
57118         * lib/wait-process.h: New file, from GNU gettext.
57119         * lib/wait-process.c: New file, from GNU gettext.
57120
57121 2003-10-19  Jim Meyering  <jim@meyering.net>
57122
57123         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
57124         HPUX 10.20.
57125
57126 2003-10-18  Karl Berry  <karl@gnu.org>
57127
57128         * config/config.guess: update from config.
57129
57130 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57131
57132         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
57133         (getgroups): First arg is int, not size_t.
57134         Don't let 'free' mangle errno.
57135
57136 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57137
57138         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
57139
57140 2003-10-16  Karl Berry  <karl@gnu.org>
57141
57142         * config/config.{guess,sub}: update from config.
57143
57144 2003-10-16  Jim Meyering  <jim@meyering.net>
57145
57146         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
57147         memcpy.
57148
57149 2003-10-15  Paul Eggert  <eggert@twinsun.com>
57150
57151         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
57152         (SIZE_MAX): Remove.
57153         (new_exclude, add_exclude_file): Initial size no longer needs to
57154         be a power of 2.
57155         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
57156         our own address arithmetic overflow checking.
57157
57158         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
57159         (fnmatch): Do not alloca more than 2000 wide characters;
57160         instead, use malloc for large buffers.
57161         Check for address arithmetic overflow, and return -1
57162         with errno set to ENOMEM in that case.
57163         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
57164         (NEW_PATTERN): Do not alloca more than 8000 bytes;
57165         instead, return -1.  Check for address arithmetic overflow.
57166
57167 2003-10-14  Paul Eggert  <eggert@twinsun.com>
57168
57169         Handle invalid suffixes and overflow independently, so that
57170         callers can treat them independently as needed.  Fix some bugs in
57171         suffix handling, e.g., "100k@" was not diagnosed as an invalid
57172         suffix for a human-readable blocksize.  The major caller-visible
57173         change is the addition of a new
57174         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
57175         that both overflow and suffix chars were found.
57176
57177         * lib/human.c (humblock): Don't check separately for invalid suffix
57178         char; that is xstrtoumax's job (now that its bug is fixed).
57179         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57180         INTMAX_MAX]: New macros.
57181         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57182         TYPE_MAXIMUM): New macros.
57183         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57184         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57185         if overflow occurs, as it's what __strtol does and it's more useful
57186         in practice.
57187         (__xstrtol): If __strtol reports some error other than ERANGE,
57188         reflect it to the caller as LONGINT_INVALID.  If it reports
57189         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57190         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57191         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57192         value.
57193         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57194         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57195         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57196         [defined UINTMAX_MAX]: New macros.
57197
57198 2003-10-14  Bruno Haible  <bruno@clisp.org>
57199
57200         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57201
57202 2003-10-14  Bruno Haible  <bruno@clisp.org>
57203
57204         * m4/sig_atomic_t: New file, from GNU gettext.
57205         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57206
57207 2003-10-14  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57210         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57211         Also use volatile where needed.
57212
57213 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57214
57215         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57216         Change maintainer from Bruno Haible to 'all'.
57217
57218 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57219
57220         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57221
57222 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57223
57224         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57225         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57226         and define in terms of the other primitives.
57227         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57228         (SIZE_MAX): Define if not already defined.
57229         (array_size_overflow): New function.
57230         (xalloc_die): Abort instead of exiting if 'error' returns.
57231         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57232         (xmalloc, xrealloc): Use them.
57233         (xcalloc): Check for address arithmetic overflow.
57234         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57235         a bit faster than strcpy.
57236
57237 2003-10-10  Simon Josefsson  <jas@extundo.com>
57238
57239         * modules/argp (Depends-on): Add restrict and strcase.
57240
57241 2003-10-10  Simon Josefsson  <jas@extundo.com>
57242
57243         * m4/argp.m4: Add AC_C_INLINE.
57244
57245 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57246
57247         Merge getpass from libc, plus a few fixes.
57248
57249         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57250         Include <stdbool.h>.
57251         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57252         __fsetlocking to empty.
57253         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57254         do include <bits/libc-lock.h>.
57255         Do not include <fcntl.h>; not needed.
57256         [_LIBC]: Include <wchar.h>.
57257         (NOTCANCEL_MODE): New macro.
57258         (flockfile, funlockfile) [_LIBC]: New macros.
57259         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57260         [!_LIBC]: New macros.
57261         (call_fclose): New function.
57262         (getpass): Use it.  Save tty stream separately; this simplifies the
57263         code and makes it more reliable if stdin happens to equal stdout.
57264         Invoke __fsetlocking on tty.
57265         Handle thread cancellation if needed.
57266         Namespace cleanup (use __tcgetattr, __getline).
57267         Use bool for Booleans.
57268         [USE_IN_LIBIO]: Handle wide streams.
57269         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57270         stream might go where.
57271
57272         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57273         doesn't have to include <stdio.h> before us.
57274         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57275         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57276         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57277         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57278         if not declared, so that we can use getpass.c code from libc without
57279         rewriting it.
57280         (flockfile, ftrylockfile, funlockfile): New macros.
57281
57282 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57283
57284         * modules/getpass: Depend on stdbool.
57285
57286 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57287
57288         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57289
57290 2003-10-07  Karl Berry  <karl@gnu.org>
57291
57292         * config/config.{guess,sub}: update from config.
57293
57294 2003-10-06  Jim Meyering  <jim@meyering.net>
57295             Bruno Haible  <bruno@clisp.org>
57296
57297         This lets translators provide better translations for the
57298         "Written by ..." part of --version output.
57299         * lib/version-etc.h: Include stdarg.h.
57300         (version_etc_copyright): Declare as readonly.
57301         (version_etc): Make this function variadic with a NULL-terminated list
57302         of author name strings.
57303         (version_etc_va): New declaration.
57304         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57305         (version_etc_copyright): Declare as readonly.
57306         (version_etc_va): New function. Provide a different translatable string
57307         for each possible number of authors < 10. Abbreviate when there are 10
57308         authors or more.
57309         (version_etc): Make this function variadic. Call version_etc_va.
57310         Suggestion from Gary V. Vaughan.
57311
57312         * lib/long-options.h (parse_long_options): Change prototype: the
57313         authors string is moved to the end and becomes variadic.
57314         * lib/long-options.c: Include stdarg.h.
57315         (parse_long_options): Make this function variadic, too.
57316         Call version_etc_va, not version_etc.
57317
57318 2003-10-06  Bruno Haible  <bruno@clisp.org>
57319
57320         * modules/version-etc-2: Remove file.
57321         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57322
57323 2003-10-06  Bruno Haible  <bruno@clisp.org>
57324
57325         * modules/fatal-signal: New file.
57326         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57327
57328 2003-10-06  Bruno Haible  <bruno@clisp.org>
57329
57330         * m4/fatal-signal.m4: New file.
57331         * m4/signalblocking.m4: New file, from GNU gettext.
57332
57333 2003-10-06  Bruno Haible  <bruno@clisp.org>
57334
57335         * lib/version-etc-2.h: Remove file.
57336         * lib/version-etc-2.c: Remove file.
57337
57338 2003-10-06  Bruno Haible  <bruno@clisp.org>
57339
57340         * lib/fatal-signal.h: New file, from GNU gettext.
57341         * lib/fatal-signal.c: New file, from GNU gettext.
57342
57343 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57344
57345         * README: Rework advice for preventing empty .o files.
57346         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57347         not <sys/types.h>.
57348
57349 2003-10-04  Karl Berry  <karl@gnu.org>
57350
57351         * lib/argp*: update from libc.
57352
57353 2003-10-04  Karl Berry  <karl@gnu.org>
57354
57355         * config/config.{guess,sub}: update from config.
57356
57357 2003-10-02  Bruno Haible  <bruno@clisp.org>
57358
57359         * modules/lchown (Include): Add lchown.h.
57360         * modules/time_r (Include): Use "..." syntax.
57361         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57362
57363 2003-10-01  Simon Josefsson  <jas@extundo.com>
57364
57365         * MODULES.html.sh (func_all_modules): Move gethostname from section
57366         'based on' to section 'lacking' POSIX:2001.
57367
57368 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57369
57370         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57371         to output mode on the same stream.
57372
57373 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57374
57375         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57376         Fix arg typo in previous patch.
57377
57378 2003-09-28  Jim Meyering  <jim@meyering.net>
57379
57380         * lib/error.c: Correct cpp indentation.
57381
57382 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57383
57384         * modules/free: New file.
57385
57386 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57387
57388         * m4/free.m4: New file.
57389
57390 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57391
57392         * lib/minmax.h (MIN, MAX)
57393         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57394         Omit the special code that used __typeof__, since we worry that
57395         it could be more trouble than it's worth.  See:
57396         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57397         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57398
57399         * lib/free.c: New file.
57400
57401 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57402
57403         Trivial fixes to Makefile.am parts of module listings.
57404         * modules/strstr: Append strstr.h to lib_SOURCES.
57405         * modules/strcase: Likewise, for strcase.h.
57406
57407 2003-09-27  Karl Berry  <karl@gnu.org>
57408
57409         * config/mkinstalldirs: update from automake.
57410
57411 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57412
57413         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57414         (error_tail): Do not loop, reallocating temporary buffer, since
57415         the output cannot contain more wide characters than the input
57416         contains bytes, the size must be big enough already.  This avoids
57417         one potential size overflow calculation.  Check for size overflow
57418         when calculating temporary buffer size.  Free temporary buffer
57419         when done, if it was allocated with malloc; this plugs a memory
57420         leak.  Remove casts from void * to pointers, that are no longer
57421         needed now that we're assuming C89 or better.
57422
57423         Merge error changes from glibc.
57424
57425         * lib/error.c, error.h: Update copyright notice header to match glibc.
57426         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57427         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57428         Disable cancellation while printing error.
57429         * lib/error.h: Prepend __ to parameter names.
57430
57431 2003-09-26  Jim Meyering  <jim@meyering.net>
57432
57433         * lib/error.c (error_tail): Move some declarations
57434         into inner scope where the local variables are used.
57435
57436 2003-09-26  Bruno Haible  <bruno@clisp.org>
57437
57438         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57439         stpncpy().
57440         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57441
57442 2003-09-26  Bruno Haible  <bruno@clisp.org>
57443
57444         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57445         (stpncpy): Define as alias for gnu_stpncpy.
57446         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57447
57448 2003-09-25  Simon Josefsson  <jas@extundo.com>
57449
57450         * lib/xgetdomainname.h: New file.
57451         * lib/xgetdomainname.c: New file.
57452
57453 2003-09-25  Simon Josefsson  <jas@extundo.com>
57454             Bruno Haible  <bruno@clisp.org>
57455
57456         * modules/getdomainname: New file.
57457         * modules/xgetdomainname: New file.
57458         * MODULES.html.sh (func_all_modules): Add getdomainname,
57459         xgetdomainname.
57460
57461 2003-09-25  Simon Josefsson  <jas@extundo.com>
57462             Bruno Haible  <bruno@clisp.org>
57463
57464         * m4/getdomainname.m4: New file.
57465
57466 2003-09-25  Simon Josefsson  <jas@extundo.com>
57467             Bruno Haible  <bruno@clisp.org>
57468
57469         * lib/getdomainname.h: New file.
57470         * lib/getdomainname.c: New file.
57471
57472 2003-09-25  Karl Berry  <karl@gnu.org>
57473
57474         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57475
57476 2003-09-25  Karl Berry  <karl@gnu.org>
57477
57478         * config/install-sh: update from automake.
57479
57480 2003-09-25  Bruno Haible  <bruno@clisp.org>
57481
57482         * modules/version-etc-2: New file, from modules/version-etc with
57483         modifications.
57484         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57485
57486 2003-09-25  Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57489         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57490
57491 2003-09-24  Simon Josefsson  <jas@extundo.com>
57492
57493         * modules/xgethostname: Add xgethostname.h.
57494
57495 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57496
57497         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57498         the buffer associated with the argument.  Bug reported by
57499         Simon Josefsson.
57500
57501 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57502
57503         * README: Document assumptions that 'int' is at least 32 bits
57504         wide, that integer arithmetic is 2's complement without overflow,
57505         that there are no holes in integer values, that adding sizes of
57506         two nonoverlapping objects can't overflow, and that all-bits-zero
57507         yields scalar zero.  Fix spelling and capitalization typos.
57508
57509 2003-09-19  Karl Berry  <karl@gnu.org>
57510
57511         * lib/argp.h: update from libc.
57512
57513 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57514
57515         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57516         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57517         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57518
57519 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57520
57521         * gnulib-tool: Use "test -h", not "test -L", for portability
57522         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57523         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57524         (sed_extract_prog): Issue s commands one-by-one, rather than
57525         using \| in one s command.
57526
57527 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57528
57529         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57530         input error, instead of returning NULL the next time we are called
57531         (and therefore losing track of errno).
57532
57533 2003-09-16  Bruno Haible  <bruno@clisp.org>
57534
57535         * gnulib-tool (func_create_testdir): Warn about duplicated
57536         dependencies.
57537
57538 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57539
57540         * modules/argmatch, modules/fatal, modules/obstack,
57541         modules/xalloc, modules/xgethostname: Sort dependencies by
57542         importance, not alphabetically.
57543
57544 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57545
57546         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57547         fails, so that the caller gets the proper errno.
57548
57549         * lib/readutmp.c (read_utmp): Likewise.
57550         Check for fstat error.  Close stream and free storage
57551         when failing.
57552
57553 2003-09-14  Karl Berry  <karl@gnu.org>
57554
57555         * config/srclist.txt (strdup.c): disable for c89 changes.
57556
57557 2003-09-14  Jim Meyering  <jim@meyering.net>
57558
57559         * lib/getloadavg.c: Correct cpp indentation.
57560         * lib/strdup.c: Likewise.
57561         * lib/vasnprintf.c: Likewise.
57562
57563 2003-09-14  Bruno Haible  <bruno@clisp.org>
57564
57565         * modules/fwriteerror: New file.
57566         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57567
57568 2003-09-14  Bruno Haible  <bruno@clisp.org>
57569
57570         * lib/fwriteerror.h: New file.
57571         * lib/fwriteerror.c: New file.
57572
57573 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57574
57575         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57576         modules/xgethostname, modules/xalloc: Depend on exit.
57577
57578 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57579
57580         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57581
57582         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57583         and AC_MINIX, too, so that their extensions are available.
57584
57585         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57586         This macro has been superseded by gl_BACKUPFILE.
57587
57588         More patches to assume C89 or better.
57589
57590         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57591
57592         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57593         unconditionally.
57594         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57595         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57596         Include <string.h>, <stdlib.h> unconditionally.
57597         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57598         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57599         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57600         headers or for string.h.
57601         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57602         or strtoul.
57603
57604         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57605         headers.
57606         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57607         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57608         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57609         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57610         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57611         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57612         memcpy, memset.
57613         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57614         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57615         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57616         strtol.
57617         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57618         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57619         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57620         strtoul.
57621
57622 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57623
57624         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57625         * lib/obstack.c [!defined _LIBC]: Likewise.
57626         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57627         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57628         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57629
57630         More changes to assume C89 or better.
57631
57632         * lib/error.c (error_tail): Assume vprintf.
57633
57634         * lib/argmatch.c (getenv): Remove decl.
57635         * lib/progreloc.c (get_full_program_name): Define via prototype.
57636         * lib/setenv.c (clearenv): Likewise.
57637         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57638         needed.
57639         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57640         (malloc, memcpy): Remove decls.
57641         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57642         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57643         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57644         (memcpy): Remove macro.
57645         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57646         (__P): Remove.  All uses removed.
57647         (PTR): Remove.  All uses changed to void *.
57648         (CHAR_BIT, NULL): Remove.
57649         (spaces, zeros, memset_space, memset_zero)
57650         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57651         Remove.
57652         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57653         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57654         Define with prototype.
57655         Remove now-unnecessary prototype decl.
57656         (extra_args_spec): Assume ANSI C.  All uses changed.
57657         (extra_args_spec_iso): Remove.
57658         (my_strftime, emacs_strftimeu): Define via prototype.
57659         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57660         unconditionally.
57661         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57662         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57663         (strtoul, strtol): Remove decls.
57664         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57665         LONG_MAX): Remove.
57666         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57667         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57668         (LOCALE_PARAM_PROTO): New macro.
57669         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57670         (INTERNAL (strtol), strtol): Define with a prototype.
57671         (PARAMS): Remove.  All uses removed.
57672         * lib/tempname.c: Include <string.h> unconditionally.
57673         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57674         * lib/xgethostname.c (main): Define with a prototype.
57675         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57676         Include <stdlib.h> unconditionally.
57677         (calloc, malloc, realloc, free): Remove decls.
57678         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57679         Include <stdlib.h> unconditionally.  Sort include file names.
57680         (strtod): Remove.
57681         (xstrtod): Define with a prototype.
57682         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57683         (strtol, strtoul): Remove decls.
57684
57685 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57686
57687         More patches to assume C89 or better.
57688         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57689         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57690         string.h, memchr, STDC_HEADERS.
57691
57692 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57693
57694         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57695         Include <stdlib.h>, <string.h> unconditionally.
57696         Remove now-unnecessary cast to char *.
57697         * lib/strnlen.c: Include <string.h> unconditionally.
57698         * lib/yesno.c (yesno): Define with a prototype.
57699
57700 2003-09-11  Bruno Haible  <bruno@clisp.org>
57701
57702         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57703
57704 2003-09-10  Jim Meyering  <jim@meyering.net>
57705
57706         * lib/error.c: Correct indentation of cpp directives.
57707
57708 2003-09-10  Bruno Haible  <bruno@clisp.org>
57709
57710         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57711         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57712         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57713         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57714         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57715         <stdlib.h> and <string.h> checks.
57716         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57717         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57718
57719 2003-09-10  Bruno Haible  <bruno@clisp.org>
57720
57721         * lib/strcspn.c: Include <string.h> unconditionally.
57722         * lib/strpbrk.c: Include <string.h> unconditionally.
57723         * lib/strstr.c: Include <string.h> unconditionally.
57724         * lib/unicodeio.c: Include <string.h> unconditionally.
57725         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57726         * lib/unsetenv.c: Likewise.
57727         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57728         * lib/yesno.c: Include <stdlib.h> unconditionally.
57729         (rpmatch): Add prototype.
57730
57731 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57732
57733         More patches to assume C89 or better.
57734         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57735         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57736         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57737         or for string.h.
57738         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57739         stdlib.h.
57740         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57741         C headers.
57742         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57743         string.h.
57744         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57745         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57746         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57747         or for string.h.
57748         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57749         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57750         C headers.
57751         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57752         memcpy.
57753         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57754         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57755         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57756         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57757         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57758         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57759         string.h, free.
57760         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57761         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57762         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57763         C headers, or for string.h.
57764         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57765         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57766         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57767         headers, memory.h, stdlib.h, string.h, strings.h.
57768         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57769         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57770         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57771         strchr.
57772         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57773         headers, memory.h, string.h.
57774         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57775         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57776         free.
57777         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57778         headers.
57779         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57780         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57781         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57782         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57783         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57784
57785 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57786
57787         More K&R removal.
57788
57789         * lib/acosl.c (main): Use a prototype.
57790         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57791         tanl.c: Likewise.
57792
57793         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57794
57795         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57796         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57797         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57798         with a prototype.
57799         * lib/getopt.c (const): Remove macro.
57800         Include <string.h> unconditionally.
57801         (my_index): Remove; all uses changed to strchr.
57802         (strlen): Remove decl.
57803         (exchange): Remove forward decl; no longer needed.
57804         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57805         Define with prototype.
57806         * lib/getopt1.c (const): Remove macro.
57807         (getopt_long, getopt_long_only, main): Define with prototype.
57808
57809         * lib/getugroups.c: Include <string.h> unconditionally.
57810
57811         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57812         (getusershell, setusershell, endusershell, readname, main):
57813         Define with prototypes.
57814
57815         * lib/group-member.c: Include group-member.h first.
57816         Include <stdlib.h> unconditionally.
57817
57818         * lib/hard-locale.c: Include hard-locale.h first.
57819         Include <stdlib.h>, <string.h> unconditionally.
57820
57821         * lib/hash.c (free, malloc): Remove decls.
57822         Include <stdlib.h> unconditionally.
57823
57824         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57825         (getenv): Do not declare.
57826
57827         * lib/idcache.c: Include <string.h> unconditionally.
57828
57829         * lib/long-options.c: Include long-options.h first, to test interface.
57830         Include <stdlib.h> unconditionally.
57831
57832         * lib/makepath.c: Include makepath.h first, to test interface.
57833         Include <stdlib.h> and <string.h> unconditionally.
57834
57835         * lib/linebuffer.c: Include <stdlib.h>.
57836         (free): Remove decl.
57837
57838         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57839         stddef.h. rpl_malloc returns void *, not char *.
57840         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57841         prototype.
57842
57843         * lib/md5.h: Include <limits.h> unconditionally.
57844         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57845         (__P): Remove; all uses removed.
57846         * lib/md5.c: Include "md5.h" first.
57847         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57848         md5_buffer, md5_process_bytes, md5_process_block):
57849         Define with prototypes.
57850         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57851         * lib/sha.c: Include "sha.h" first.
57852         Include <stdlib.h>, <string.h> unconditionally.
57853
57854         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57855         * lib/memcmp.c (__ptr_t): Likewise.
57856         * lib/memrchr.c (__ptr_t): Likewise.
57857         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57858         Include <string.h> unconditionally.
57859         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57860         * lib/memchr.c: Include <stdlib.h> unconditionally.
57861         * lib/memchr.c (LONG_MAX): Remove.
57862         * lib/memrchr.c (LONG_MAX): Likewise.
57863         * lib/memchr.c (__memchr): Define via a prototype.
57864         * lib/memrchr.c (__memrchr): Likewise.
57865         * lib/memcmp.c (__P): Remove, and remove all uses.
57866         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57867         Remove forward decls; no longer needed.
57868         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57869         Use types required by C89 in prototype.
57870
57871         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57872         * lib/savedir.c: Likewise.
57873         * lib/mkdir.c (free): Remove decl.
57874         * lib/rmdir.c (rmdir): Define with a prototype.
57875         * lib/savedir.c: Include savedir.h first, to test interface.
57876
57877         * lib/mktime.c (STDC_HEADERS): Remove.
57878         Include <stdlib.h>, <string.h> unconditionally.
57879
57880         * lib/modechange.c: Include <stdlib.h> unconditionally.
57881         (malloc): Remove decl.
57882
57883         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57884         (free): Remove decl.
57885
57886         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57887         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57888         (This type really should be intptr_t, but that's a C99ism.)
57889         (_obstack_memcpy): Remove: all uses changed to memcpy.
57890         Include <string.h> unconditionally.
57891         (struct obstack): Assume __STDC__ for types of members
57892         chunkfun, freefun, extra_arg.
57893         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57894         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57895         obstack_begin, obstack_specify_allocation,
57896         obstack_specify_allocation_with_arg, obstack_chunkfun,
57897         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57898         Remove unprototyped decls and the macros that use them.
57899         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57900         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57901         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57902         (defined __STDC__ && __STDC__)]:
57903         Remove nonprototyped code.
57904         Include <stdlib.h> unconditionally.
57905         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57906         _obstack_allocated_p, _obstack_free, obstack_free,
57907         _obstack_memory_used, print_and_abort):
57908         Define using prototypes.
57909         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57910         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57911         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57912         obstack_next_free, obstack_object_size, obstack_room) [0]:
57913         Remove unused, unprototyped code.
57914
57915         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57916
57917         * lib/physmem.c (physmem_total, physmem_available, main): Define
57918         with prototypes.
57919
57920         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57921         (main): Define with a prototype.
57922
57923         * lib/posixver.c (getenv): Remove decl.
57924
57925         * lib/putenv.c (malloc): Returns void *, not char *.
57926         Include <string.h> unconditionally.
57927         (strchr, memcpy, NULL): Do not define.
57928
57929         * lib/readtokens.c: Include readtokens.h first, to test interface.
57930         Include <stdlib.h>, <string.h> unconditionally.
57931         (init_tokenbuffer): Define with a prototype.
57932
57933         * lib/regex.c (PARAMS): Remove.  All uses removed.
57934         All uses of _RE_ARGS removed, too.
57935         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57936         unconditionally.
57937         (bzero): Assume memset exists.
57938         (memcmp, memcpy, NULL): Remove.
57939         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57940         char, or assignments to local vars of type signed char.
57941         (init_syntax_once, PREFIX(extract_number_and_incr),
57942         PREFIX(print_partial_compiled_pattern),
57943         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57944         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57945         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57946         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57947         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57948         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57949         wcs_compile_range, byte_compile_range, truncate_wchar,
57950         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57951         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57952         count_mbs_length, wcs_re_match_2_internal,
57953         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57954         PREFIX(alt_match_null_string_p),
57955         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57956         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57957         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57958         now-unnecessary declaration, if any.
57959         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57960         regcomp, regexec):
57961         Remove now-unnecessary casts among pointer types.
57962         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57963
57964         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57965         (free): Remove decl.
57966
57967         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57968
57969         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57970         (free): Remove decl.
57971
57972         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57973         * lib/xgetcwd.c: Likewise.
57974
57975         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57976         (free): Remove decl.
57977
57978         * lib/strchrnul.c (strchrnul): Define with a prototype.
57979         Fix bug: c_in was not converted to char before searching.
57980
57981         The following changes are not K&R related:
57982
57983         * lib/group-member.h: Include <sys/types.h>, so that this file is
57984         self-contained.
57985         * lib/makepath.h: Likewise.
57986
57987         * lib/getusershell.c (readname, default_index, line_size, readname):
57988         Use size_t, not int, for sizes.
57989         (readname): If the size overflows, report an error instead of
57990         looping forever.
57991
57992 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57993
57994         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57995         libc.
57996
57997 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57998
57999         * README: New section: portability guidelines.
58000
58001 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58002
58003         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
58004         C89 spec.
58005
58006 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58007
58008         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
58009
58010 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58011
58012         Assume C89 or better; remove K&R cruft.
58013         A few of these changes were first proposed by Derek Robert Price
58014         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
58015
58016         * lib/addext.c: Include <string.h> unconditionally.
58017         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
58018         Don't declare getenv or malloc.
58019
58020         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
58021         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
58022         (NULL): Remove.
58023         (find_stack_direction, alloca): Use prototypes.
58024
58025         * lib/atexit.c (atexit): Define using a prototype.
58026
58027         * lib/basename.c, dirname.c, stripslash.c:
58028         Include <string.h> unconditionally.
58029
58030         * lib/bcopy.c: Include <stddef.h>.
58031         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
58032
58033         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
58034
58035         * lib/error.h (error, error_at_line, error_print_progname)
58036         [! (defined (__STDC__) && __STDC__)]: Remove decls.
58037         * lib/error.c: Include error.h first, to check interface.
58038         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58039         (VA_START): Remove; all uses changeed to va_start.
58040         (exit, strerror): Remove decls.
58041         (error_print_progname): Prototype uncondionally.
58042         Don't include <errno.h>; no longer needed.
58043         (private_strerror): Remove.
58044         (error_tail): Always define.
58045         (error, error_at_line): Assume C89 or better; always use prototypes.
58046         * lib/fatal.c: Include "fatal.h" first, to test interface.
58047         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58048         (VA_START): Remove; all uses changed to va_start.
58049         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
58050         this case.
58051         (exit): Remove decl.
58052         (fatal): Prototype unconditionally.  Assume va_start works.
58053         Abort at end, to pacify gcc.
58054
58055         * lib/euidaccess.c (main): Define with a prototype.
58056
58057         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
58058
58059         * lib/exitfail.c: Include <stdlib.h> unconditionally.
58060
58061         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
58062         prototypes.
58063         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
58064         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
58065         (getenv): Remove decl.
58066         (fnmatch): Define using a prototype.
58067         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
58068         (FCT): Define using a prototype.
58069
58070         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
58071
58072         * lib/gethostname.c: Include <stddef.h>.
58073         (gethostname): Define with prototype.  Length is size_t, not int.
58074
58075 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58076
58077         Assume C89 or better; remove K&R cruft.
58078         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
58079         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
58080         string.h, getenv, malloc.
58081         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
58082         headers.
58083         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
58084         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
58085         do not check for strerror.
58086         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
58087         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
58088         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
58089         do not check for doprnt or vprintf.
58090         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
58091         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
58092
58093 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58094
58095         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
58096         getversion.c should have been removed then, but was accidentally
58097         preserved.
58098
58099         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
58100         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
58101
58102 2003-09-08  Karl Berry  <karl@gnu.org>
58103
58104         * config/config.sub, config.guess, srclistvars.sh: update from savannah
58105                 config, forget about prep.
58106
58107         * config/depcomp, missing: update from automake.
58108
58109 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58110
58111         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
58112         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58113
58114 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58115
58116         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
58117         copy_tm_result.  Bug reported by Simon Josefsson in
58118         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58119
58120 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58121
58122         * m4/time_r.m4: New file.
58123         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
58124         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
58125         is. Check for timegm declaration.
58126         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
58127         Do not check for gmtime_r.
58128         Replace mktime if __mktime_internal does not exist and if mktime
58129         hasn't been replaced already.
58130
58131 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58132
58133         * lib/time_r.c, lib/time_r.h: New files.
58134
58135         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
58136         __localtime_r.
58137         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
58138         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
58139
58140         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
58141         __gmtime_r.
58142         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
58143         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
58144         Include <time_r.h>.
58145
58146         * lib/timegm.c: Switch to glibc implementation, with the following
58147         changes:
58148         [defined HAVE_CONFIG_H]: Include <config.h>.
58149         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
58150         (__mktime_internal) [!defined _LIBC]: New decl.
58151         (__gmtime_r) [!defined _LIBC]: New macro and function.
58152         (timegm): Use a prototype, since gnulib assumes C89.
58153         Do not bother declaring tmp to be const, as it's not really usefu.
58154         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
58155         (timegm): Declare only if HAVE_DECL_TIMEGM.
58156
58157 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58158
58159         * MODULES.html.sh (func_all_modules): Add time_r.
58160         * modules/time_r: New file.
58161         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
58162         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
58163
58164 2003-09-03  Paul Eggert  <eggert@twinsun.com>
58165
58166         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
58167         Bug reported by Lute Kamstra in
58168         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
58169
58170         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
58171         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
58172         course with correspondingly smaller numbers for tomorrow and
58173         yesterday.  From Tadayoshi Funaba.  Originally installed into
58174         sh-utils on 1999-08-07, but the patch got lost (I guess during the
58175         coreutils merge?).
58176
58177 2003-08-31  Simon Josefsson  <jas@extundo.com>
58178
58179         * modules/timegm: New file.
58180         * MODULES.html.sh (func_all_modules): Add timegm.
58181
58182 2003-08-31  Simon Josefsson  <jas@extundo.com>
58183
58184         * m4/timegm.m4: New file.
58185
58186 2003-08-31  Simon Josefsson  <jas@extundo.com>
58187
58188         * lib/timegm.h: New file.
58189         * lib/timegm.c: New file.  Based on
58190         wget-1.8.2/src/http.c:mktime_from_utc.
58191
58192 2003-08-31  Karl Berry  <karl@gnu.org>
58193
58194         * lib/argp.h: update from libc.
58195
58196 2003-08-28  Bruno Haible  <bruno@clisp.org>
58197
58198         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58199         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58200         followed by '#define fnmatch fnmatch_posix' gives an error.
58201
58202 2003-08-28  Bruno Haible  <bruno@clisp.org>
58203
58204         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58205         warning on QNX, which defines O_BINARY to 000000.
58206
58207 2003-08-27  Jim Meyering  <jim@meyering.net>
58208
58209         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58210         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58211         would fail after 32.  Reported by Danny Levinson.  Details here:
58212         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58213
58214 2003-08-24  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58217         MSVC7 <stdio.h> is included later.
58218
58219 2003-08-22  Simon Josefsson  <jas@extundo.com>
58220
58221         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58222
58223 2003-08-20  Karl Berry  <karl@gnu.org>
58224
58225         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58226
58227 2003-08-20  Bruno Haible  <bruno@clisp.org>
58228
58229         * modules/progname: New file.
58230         * MODULES.html.sh (func_all_modules): Add progname.
58231
58232 2003-08-20  Bruno Haible  <bruno@clisp.org>
58233
58234         * lib/progname.h: New file, from GNU gettext.
58235         * lib/progname.c: New file, from GNU gettext.
58236         * lib/progreloc.c: New file, from GNU gettext.
58237
58238 2003-08-19  Jim Meyering  <jim@meyering.net>
58239
58240         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58241         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58242
58243 2003-08-19  Bruno Haible  <bruno@clisp.org>
58244
58245         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58246         more.
58247
58248 2003-08-19  Bruno Haible  <bruno@clisp.org>
58249
58250         * lib/xstrdup.c: Assume <string.h> exists.
58251
58252 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58253
58254         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58255         in makefile rules.
58256
58257 2003-08-18  Jim Meyering  <jim@meyering.net>
58258
58259         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58260         * m4/lib-ld.m4: Likewise.
58261
58262 2003-08-18  Jim Meyering  <jim@meyering.net>
58263
58264         * lib/setenv.h: Indent nested cpp directive.
58265         * lib/vasnprintf.c: Remove trailing blanks.
58266
58267 2003-08-17  Simon Josefsson  <jas@extundo.com>
58268
58269         * modules/xstrndup: New file.
58270         * MODULES.html.sh (func_all_modules): Add xstrndup.
58271
58272 2003-08-17  Simon Josefsson  <jas@extundo.com>
58273
58274         * modules/argp: Fix autoconf macro name. Add more dependencies.
58275
58276 2003-08-17  Simon Josefsson  <jas@extundo.com>
58277
58278         * m4/xstrndup.m4: New file.
58279
58280 2003-08-17  Simon Josefsson  <jas@extundo.com>
58281
58282         * m4/argp.m4: New file.
58283
58284 2003-08-17  Simon Josefsson  <jas@extundo.com>
58285             Bruno Haible  <bruno@clisp.org>
58286
58287         * lib/xstrndup.h: New file.
58288         * lib/xstrndup.c: New file.
58289
58290 2003-08-17  Bruno Haible  <bruno@clisp.org>
58291
58292         * modules/strndup (Files, Include): Add lib/strndup.h.
58293
58294 2003-08-17  Bruno Haible  <bruno@clisp.org>
58295
58296         * modules/euidaccess (Files): Add lib/euidaccess.h.
58297
58298 2003-08-17  Bruno Haible  <bruno@clisp.org>
58299
58300         * lib/strndup.h: New file.
58301
58302 2003-08-17  Bruno Haible  <bruno@clisp.org>
58303
58304         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58305         like AC_GNU_SOURCE.
58306         * modules/extensions (configure.ac): Comment out the invocation of
58307         gl_USE_SYSTEM_EXTENSIONS.
58308
58309 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58310
58311         Merges from coreutils, etc.
58312         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58313         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58314         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58315         fixing a typo.
58316         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58317         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58318
58319 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58320
58321         Document merge from coreutils.
58322         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58323         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58324         * modules/utime: Add m4/utimes-null.m4.
58325
58326 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58327
58328         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58329         space, undoing this 2003-08-12 change:
58330         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58331
58332 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58333
58334         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58335         strtoul.c from libc, undoing this 2003-08-12 change:
58336         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58337
58338 2003-08-16  Jim Meyering  <jim@meyering.net>
58339
58340         Merges from coreutils.
58341         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58342         prefix.  Adjust cache variables similarly.  Create 500 rather than
58343         just 300 files, to exercise bug on Darwin6.5, too.
58344         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58345         $missing_dir.
58346         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58347         AM_SYS_POSIX_TERMIOS.
58348         Reported by mkc@mathdogs.com.
58349         Also change use of $am_cv_sys_posix_termios
58350         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58351         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58352         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58353         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58354         in /proc/mounts until it finds one with matching device number.  This
58355         is unnecessary when the FILE argument *is* a mount point.  No stat call
58356         is necessary in that case.  So, disable the statvfs-testing code on
58357         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58358         as RedHat bug# 84846.
58359         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58360         to 1MB, so as not to render systems with no stack size limit (e.g.,
58361         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58362         Include <unistd.h>.  On some systems,
58363         it is required for the definition of _SC_PAGESIZE.
58364
58365 2003-08-16  Jim Meyering  <jim@meyering.net>
58366
58367         Merge from coreutils.
58368         * lib/xstrtoimax.c: #else #if -> #elif.
58369         * lib/xstrtoumax.c: Likewise.
58370
58371 2003-08-16  Jim Meyering  <jim@meyering.net>
58372
58373         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58374         * m4/utimes.m4: Removed.
58375         * m4/utimes-null.m4: Renamed from utimes.m4.
58376
58377         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58378         to 1MB, so as not to render systems with no stack size limit (e.g.,
58379         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58380         Include <unistd.h>.  On some systems,
58381         it is required for the definition of _SC_PAGESIZE.
58382
58383 2003-08-16  Jim Meyering  <jim@meyering.net>
58384         and Paul Eggert  <eggert@cs.ucla.edu>
58385
58386         Merges from coreutils, etc.
58387
58388         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58389         using the latest version from cvs.  This avoids problems with #line
58390         directives using a vendor (Sun) compiler.
58391         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58392         Don't set GETGROUPS_LIB here; now it's
58393         done via getgroups.m4's wrapper function.
58394         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58395         rather than just in sh-util/configure.in, so that the
58396         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58397         same.
58398         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58399         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58400         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58401         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58402         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58403         Remove code that is now done by the newly-required macros.
58404         Append $(EXEEXT) to DF_PROG.
58405         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58406         Do not invoke or require the following here,
58407         since prereq.m4 or some gnulib .m4 now does this for us:
58408         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58409         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58410         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58411         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58412         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58413         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58414         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58415         AC_FUNC_OBSTACK.
58416         Do not replace the following functions, as this is now the job
58417         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58418         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58419         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58420         atexit getpass, strdup, getpagesize.
58421         Replace 'raise'.
58422         Do not check for the following functions, as this is now the job
58423         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58424         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58425         setregid.
58426         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58427         Check for sys/sysctl.h.
58428         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58429         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58430         of checking for ssize_t ourselves.
58431
58432         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58433         Require every macro that gnulib/modules/* suggests for us.
58434         (jm_PREREQ_ADDEXT): New macro.
58435         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58436         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58437
58438         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58439         (gl_PHYSMEM): Use it.
58440         Also check for `table' function.
58441         Check for new headers and functions.
58442         Add check for sys/sysmp.h.
58443         With suggestions from Kaveh Ghazi.
58444         Ignore headers that are present but cannot be compiled.  This
58445         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58446         C 5.4.
58447
58448 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58449
58450         Document merge from coreutils.
58451         * modules/userspec: Depend on posixver.
58452         * modules/strftime: Depend on tzset.
58453
58454 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58455
58456         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58457         rather than tab, after '#' in shell-script copyright notices.
58458         Suggested by Bruno Haible.
58459
58460 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58461
58462         * config/srclist-update: Use three spaces, rather than tab, after '#'
58463         in shell-script copyright notices.  Suggested by Bruno Haible.
58464         Remove unnecessary parenthesization in regular expression.
58465
58466 2003-08-15  Jim Meyering  <jim@meyering.net>
58467
58468         Merge from coreutils.
58469         * lib/xgethostname.c: Include <stdlib.h>.
58470         (xghostname): Don't exit for anything other than memory-related
58471         failure; just return NULL.
58472         * lib/userspec.c: Include "posixver.h".
58473         (parse_user_spec): Accept `.' as a separator only
58474         in pre-POSIX-200112 mode.
58475         * lib/strtoimax.c: Use #elif rather than #else #if.
58476         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58477         Remove function, now that we can rely on a working tzset function.
58478         [!_LIBC]: Ensure that the required autoconf test has been run.
58479         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58480         Use underlying_strftime for %r.
58481         * lib/sha.c: Merge in some clean-up and optimization changes from
58482         glibc.
58483         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58484         Ensure that it is a multiple of 64.
58485         Rearrange loop exit tests so as to avoid performing an
58486         additional fread after encountering an error or EOF.
58487         * lib/realloc.c: Update copyright date.
58488
58489 2003-08-15  Jim Meyering  <jim@meyering.net>
58490         and Paul Eggert  <eggert@twinsun.com>
58491
58492         Merge from coreutils.
58493         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58494         member but strut utmpx does not.  Needed for AIX 4.3.3.
58495         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58496
58497 2003-08-15  Jim Meyering  <jim@meyering.net>
58498         and Paul Eggert  <eggert@cs.ucla.edu>
58499
58500         Merges from coreutils, etc.
58501         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58502         Require gl_FUNC_TZSET_CLOBBER.
58503         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58504         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58505         members.
58506
58507 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58508
58509         Help the merge from coreutils.
58510         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58511         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58512         * m4/tzset.m4: Use it too.
58513
58514 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58515
58516         * modules/tzset: New file.
58517
58518 2003-08-14  Jim Meyering  <jim@meyering.net>
58519
58520         Merges from coreutils.
58521         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58522         variable names, rather than @FNMATCH_H@.
58523         * modules/alloca: Likewise for $(ALLOCA_H).
58524
58525         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58526         the three copies of the literal target, `fnmatch.h'.
58527         * modules/alloca (alloca.h): Likewise.
58528
58529 2003-08-14  Jim Meyering  <jim@meyering.net>
58530
58531         Merge from coreutils.
58532         * m4/tzset.m4: New file.
58533         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58534         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58535         otherwise, AIX 5.1 systems would end up using the latter.
58536         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58537         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58538         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58539         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58540
58541 2003-08-14  Jim Meyering  <jim@meyering.net>
58542
58543         Merge from coreutils.
58544         * lib/obstack.h: Whitespace changes.
58545         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58546         and xcalloc return values.
58547         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58548         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58549         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58550         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58551         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58552         error from mntctl.
58553         Use mntctl's return value to drive the entry-processing loop, since
58554         we can't rely on the value of the vmt_length member in the last
58555         entry.  On some systems doing so could result in exhausting
58556         virtual memory.  Based in part on a patch from Mike Jetzer.
58557
58558 2003-08-14  Jim Meyering  <jim@meyering.net>
58559         and Paul Eggert  <eggert@twinsun.com>
58560
58561         Merges from coreutils, plus other fixes.
58562         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58563         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58564         for credits and details.  Thanks to Kaveh Ghazi for helping
58565         to keep these files in sync.
58566         (ARRAY_SIZE): Define it.
58567         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58568         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58569         (memcasecmp): Don't assume size_t fits in unsigned int.
58570         Remove casts and duplicate code.
58571         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58572         (memcpy): Remove definition.
58573         Merge in some clean-up and optimization changes from glibc.
58574         [BLOCKSIZE]: Move definition to top of file.
58575         Ensure that it is a multiple of 64.
58576         Rearrange loop exit tests so as to avoid performing an
58577         additional fread after encountering an error or EOF.
58578         * lib/md5.h (md5_uintptr): Define.
58579         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58580         return to the initial working directory.  Preserve errno
58581         for caller.
58582         * lib/idcache.c: Include "xalloc.h".
58583         (xmalloc, xrealloc): Remove decls.
58584         (getuser): Remove casts no longer required in C89.
58585         * lib/human.c: Include stdio.h, for sprintf.
58586         * lib/group-member.c: Include "xalloc.h".
58587         (xmalloc, xrealloc): Remove decls.
58588         (get_group_info): Remove casts no longer required in C89.
58589         * lib/getusershell.c (readname): Remove casts no longer required in
58590         C89.
58591         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58592         * lib/getline.c: Whitespace fix, from coreutils.
58593
58594 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58595
58596         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58597         Check for isascii.
58598
58599         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58600         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58601         Undo previous (whitespace-only) change.
58602
58603 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58604
58605         * lib/exclude.c: Include <ctype.h>
58606         (IN_CTYPE_DOMAIN): New macro.
58607         (is_space): New fn.
58608         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58609         and empty lines.
58610
58611         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58612         Undo previous (whitespace-only) change.
58613
58614 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58615
58616         * config/srclist-update: Change update back to the old behavior,
58617         leaving whitespace alone.  Use one 'sed' command rather than a
58618         pipeline.
58619         (fixlicense): Now a variable, not a function.
58620         (remove_trailing_blanks): Remove.
58621         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58622         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58623         Undo previous (whitespace-only) change.
58624
58625 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58626
58627         Merge from coreutils.
58628         * modules/euidaccess: Add lib_SOURCES, include for new
58629         file euidaccess.h
58630
58631 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58632
58633         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58634         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58635         Normalize leading white space and remove trailing white space.
58636
58637         Merge from coreutils
58638         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58639
58640         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58641         0.12.1.  These files are now being upgraded automatically by
58642         ../config/srclist-update.
58643
58644 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58645
58646         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58647         Normalize leading white space and remove trailing white space.
58648         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58649         notice, as per ../config/srclist-update.
58650
58651         Merge from coreutils.
58652         * lib/euidaccess.h: New file.
58653         * lib/euidaccess.c: Include it.
58654         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58655         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58656         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58657
58658 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58659
58660         * config/srclist-update: Add copyright notice.
58661         (remove_id_lines, remove_trailing_blanks): New constants.
58662         (fixfile): Use them to normalize spacing a bit in copied files.
58663         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58664         Normalize leading white space and remove trailing white space.
58665
58666         * config/texinfo.tex: Sync with texinfo.
58667
58668         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58669         strtoul.c from libc, to merge coreutils whitespace changes.
58670
58671         * config/srclist.txt: Get the following m4 files from gettext:
58672         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58673         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58674         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58675         wint_t.m4.
58676
58677 2003-08-12  Karl Berry  <karl@gnu.org>
58678
58679         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58680         been made.
58681
58682 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58683
58684         * modules/gnu-source, m4/gnu-source.m4:
58685         Remove; we're assuming Autoconf 2.54 or later now.
58686         Suggested by Bruno Haible.
58687         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58688
58689 2003-08-11  Bruno Haible  <bruno@clisp.org>
58690
58691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58692
58693 2003-08-11  Bruno Haible  <bruno@clisp.org>
58694
58695         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58696         (vasnprintf): Use it instead of wcslen.
58697
58698 2003-08-11  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58701         value to ensure that _Bool promotes to int. Use #define for _Bool when
58702         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58703
58704 2003-08-10  Karl Berry  <karl@gnu.org>
58705
58706         * lib/regex.h: update from libc (whitespace fix).
58707
58708 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58709
58710         Merge some files from coreutils.  These changes were
58711         originally made by Jim Meyering.
58712         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58713         many older Unixes require this.
58714         * lib/alloca.c (alloca): Remove cast to argument of free;
58715         no longer needed in C89.
58716         * lib/alloca_.h, regex.h: Fix white space to match
58717         what GNU indent does.
58718
58719 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58720
58721         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58722         apparently Emacs's Unicode mode got confused before my 2003-08-05
58723         checkin.
58724
58725 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58726
58727         * m4/extensions.m4: New file.
58728         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58729         Require gl_USE_SYSTEM_EXTENSIONS.
58730         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58731         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58732
58733 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58734
58735         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58736         * modules/extensions, modules/gnu-source: New files.
58737         * modules/timespec, modules/unlocked-io: Depend on extensions.
58738
58739 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58740
58741         * modules/restrict: New file.
58742         * MODULES.html.sh (func_all_modules): Add restrict.
58743         * modules/regex: Depend on restrict.
58744
58745 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58746
58747         * m4/restrict.m4: New file.
58748         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58749
58750 2003-08-07  Bruno Haible  <bruno@clisp.org>
58751
58752         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58753         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58754
58755 2003-08-07  Bruno Haible  <bruno@clisp.org>
58756
58757         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58758         makes the module 'getndelim2' compatible with the module 'getline'.
58759
58760 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58761
58762         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58763         byte with "\201" to avoid glitches when editing that source file
58764         with multi-gnome-terminal.
58765
58766 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58767
58768         * lib/bumpalloc.h: Remove.
58769
58770 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58771
58772         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58773         * modules/bumpalloc: Remove.
58774
58775 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58776
58777         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58778         GNU coding style.
58779
58780         Merge from coreutils.
58781         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58782         1. From glibc.
58783         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58784         from Karl Berry, implemented by Jim Meyering.
58785         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58786         from Dmitry V. Levin.
58787         Remove anachronistic cast of xrealloc.
58788         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58789         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58790         type. Otherwise, it wouldn't compile with at least /bin/cc on
58791         ymp-cray-unicos9.0.2.X.
58792         Combine two mostly-identical uses of alloca into one.
58793         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58794
58795 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58796
58797         [From Emacs.]
58798
58799         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58800         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58801         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58802         obsolete NLIST_NAME_UNION.
58803         [__GNU__]: Undef BSD and FSCALE.
58804         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58805
58806 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58807
58808         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58809         an enum type, so that it's guaranteed to promote to int.  See:
58810         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58811
58812 2003-08-03  Karl Berry  <karl@gnu.org>
58813
58814         * config/depcomp: update from automake.
58815
58816 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58817
58818         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58819         (strerror): Don't assume that a printable int fits in 14 bytes.
58820
58821 2003-07-31  Bruno Haible  <bruno@clisp.org>
58822
58823         * modules/getpass-gnu: New file.
58824         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58825
58826 2003-07-31  Bruno Haible  <bruno@clisp.org>
58827
58828         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58829
58830 2003-07-24  Karl Berry  <karl@gnu.org>
58831
58832         * config/missing: update from automake.
58833
58834 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58835             Bruno Haible  <bruno@clisp.org>
58836
58837         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58838         * lib/getline.c (getline, getdelim): Likewise.
58839         Remove _GNU_SOURCE define; now it's defined in config.h through
58840         m4/getline.m4.
58841
58842 2003-07-23  Karl Berry  <karl@gnu.org>
58843
58844         * config/config.sub: update from prep.
58845
58846 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58847
58848         * modules/xalloc (Depends-on): Add exitfail.
58849         * modules/xmemcoll: Likewise.
58850
58851 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58852
58853         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58854         over-parenthesization in macros.
58855
58856         Sync with coreutils.
58857
58858         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58859         required by C99.
58860
58861         Use `exit_failure' for xalloc and xmemcoll instead of their own
58862         private exit-failure variables.
58863         * lib/xalloc.h (xalloc_exit_failure): Remove.
58864         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58865         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58866         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58867         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58868         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58869
58870 2003-07-20  Jim Meyering  <jim@meyering.net>
58871
58872         * modules/closeout (Depends-on): Add exitfail.
58873         Suggestion from Bruno Haible.
58874
58875 2003-07-19  Karl Berry  <karl@gnu.org>
58876
58877         * config/config.sub: update from prep.
58878
58879 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58880
58881         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58882         Remove.
58883         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58884         to test that it can stand by itself.  Include "exitfail.h".
58885         Clients should set exit_failure instead.
58886         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58887
58888 2003-07-18  Bruno Haible  <bruno@clisp.org>
58889
58890         * modules/getndelim2: New file.
58891         * modules/getline: Share files with module getndelim2.
58892         * modules/getnline: Depend on getndelim2 instead of sharing files with
58893         it. Add getnline.c to lib_SOURCES.
58894         * MODULES.html.sh (func_all_modules): Add getndelim2.
58895
58896 2003-07-18  Bruno Haible  <bruno@clisp.org>
58897
58898         * m4/getndelim2.m4: New file.
58899         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58900         invoke gl_PREREQ_GETNDELIM2.
58901         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58902         gl_PREREQ_GETNDELIM2.
58903         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58904         gl_GETNDELIM2.
58905
58906 2003-07-18  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/getndelim2.h: New file.
58909         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58910         getndelim2.h.
58911         (getndelim2): Make non-static. Change return type to ssize_t.
58912         * lib/getline.h: Change argument names.
58913         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58914         * lib/getnline.c: Include getndelim2.h.
58915
58916 2003-07-18  Andreas Schwab  <schwab@suse.de>
58917
58918         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58919
58920 2003-07-17  Karl Berry  <karl@gnu.org>
58921
58922         * config/config.sub: update from prep.
58923
58924 2003-07-17  Bruno Haible  <bruno@clisp.org>
58925
58926         * modules/getnline: New file.
58927         * modules/getline: Add lib/getndelim2.c to source file list.
58928         * MODULES.html.sh (func_all_modules): Add getnline.
58929
58930 2003-07-17  Bruno Haible  <bruno@clisp.org>
58931
58932         * m4/getnline.m4: New file.
58933
58934 2003-07-17  Bruno Haible  <bruno@clisp.org>
58935
58936         * m4/Makefile.am.in: Remove file.
58937         * m4/Makefile.am: Remove file.
58938         * m4/Makefile.in: Remove file.
58939
58940 2003-07-17  Bruno Haible  <bruno@clisp.org>
58941
58942         * lib/getnline.h: New file.
58943         * lib/getnline.c: New file.
58944         * lib/getndelim2.c: New file, extracted from getline.c.
58945         (getndelim2): Renamed from getdelim2, with added nmax argument.
58946         * lib/getline.c: Include getndelim2.c.
58947         (getdelim2): Moved out to getndelim2.c.
58948         (getline, getdelim): Update.
58949
58950 2003-07-17  Bruno Haible  <bruno@clisp.org>
58951
58952         * lib/Makefile.am: Remove file.
58953         * lib/Makefile.in: Remove file.
58954
58955 2003-07-17  Bruno Haible  <bruno@clisp.org>
58956
58957         * configure.in: Remove file.
58958         * Makefile.in: Remove file.
58959
58960 2003-07-17  Bruno Haible  <bruno@clisp.org>
58961
58962         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58963
58964 2003-07-16  Karl Berry  <karl@gnu.org>
58965
58966         * config/srclist-update: was running fixlicense twice, which caused
58967                 texinfo.tex to be nullified for some reason.  Simplify,
58968                 $gplsrc is no longer needed as far as I can see?
58969
58970 2003-07-16  Jim Meyering  <jim@meyering.net>
58971
58972         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58973
58974 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58975
58976         * config/srclist.txt: Get the following files from gettext-runtime/intl
58977         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58978         ref-del.sin.  From Bruno Haible.
58979         * config/srclist-update (fixfile): Change grep pattern again, since the
58980         previous fix didn't work (there was another trailing $).  Use
58981         '[$]' to escape the $s.
58982
58983 2003-07-15  Karl Berry  <karl@gnu.org>
58984
58985         * lib/vasnprintf.c: update from gettext.
58986
58987 2003-07-15  Karl Berry  <karl@gnu.org>
58988
58989         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58990         gets expanded when surrounded by '$'.
58991
58992 2003-07-15  Jim Meyering  <jim@meyering.net>
58993
58994         * modules/save-cwd: Don't depend on error.  From Derek Price.
58995
58996 2003-07-15  Jim Meyering  <jim@meyering.net>
58997
58998         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58999
59000 2003-07-14  Simon Josefsson  <jas@extundo.com>
59001
59002         * modules/mempcpy: New file.
59003         * MODULES.html.sh (func_all_modules): Add mempcpy.
59004
59005 2003-07-14  Simon Josefsson  <jas@extundo.com>
59006
59007         * m4/mempcpy.m4: New file.
59008
59009 2003-07-14  Simon Josefsson  <jas@extundo.com>
59010
59011         * lib/mempcpy.h: New file.
59012         * lib/mempcpy.c: New file.
59013
59014 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59015
59016         * modules/getdate, modules/posixtm: Depend on mktime.
59017
59018 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59019
59020         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
59021         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
59022         unicodeio.c, unicodeio.h, unlocked-io.h:
59023         Switch from LGPL to GPL.
59024
59025 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59026
59027         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
59028         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
59029         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
59030         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
59031         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
59032         updated automatically by ../config/srclist-update.  This changes
59033         their license from LPGL to GPL.
59034
59035 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59036
59037         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
59038         assumed to refer to the root of the most recent stable gettext version.
59039         * config/srclistvars.sh: Add defaults for eggert.
59040         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
59041         Match "This program" as well as "The program".  This is needed
59042         for gettext.
59043
59044 2003-07-14  Jim Meyering  <jim@meyering.net>
59045
59046         Don't emit diagnostics.  Let callers do that.
59047         * lib/save-cwd.c: Don't include "error.h".
59048         (save_cwd): Don't call error.  Ensure that errno is valid
59049         when returning nonzero.
59050
59051         * lib/save-cwd.h (restore_cwd): Update prototype.
59052         * lib/save-cwd.c (restore_cwd): Remove two parameters.
59053         Simplify.  Don't call error upon failure.  Let callers do that.
59054         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
59055         when auditing is enabled.  But don't bother updating the #if.
59056
59057 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
59058
59059         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
59060         it breaks C++ compilation.
59061         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
59062
59063 2003-07-10  Simon Josefsson  <jas@extundo.com>
59064
59065         * modules/strchrnul (Makefile.am): Add strchrnul.h.
59066
59067 2003-07-10  Jim Meyering  <jim@meyering.net>
59068
59069         * m4/clock_time.m4: Remove trailing blank.
59070         * m4/intmax_t.m4: Likewise.
59071
59072 2003-07-10  Jim Meyering  <jim@meyering.net>
59073
59074         * lib/vasnprintf.c: Remove trailing blanks.
59075         Make cpp indentation consistent.
59076
59077 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59078
59079         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
59080         posixver.c, strftime.c, strnlen.c, strverscmp.c:
59081         Switch from LGPL to GPL.
59082
59083 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59084
59085         * config/srclist.txt: Sort sublists.  Add
59086         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
59087         that differ from gnulib for one reason or another; we'd like this list
59088         to be smaller but for now let's document what we have.
59089
59090 2003-07-08  Paul Eggert  <eggert@twinsun.com>
59091
59092         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
59093         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
59094         and sweeter "eval x=$x".
59095         * config/srclist.txt: Get lib/argp* from glibc.
59096
59097 2003-07-07  Paul Eggert  <eggert@twinsun.com>
59098
59099         * lib/mktime.c: Fix some boundary cases and remove need for floating
59100         point.
59101
59102         Issue a compile-time diagnostic if time_t is floating point, or if
59103         two's complement arithmetic is not in effect, or if arithmetic
59104         right shift does not propagate the sign.  These assumptions were
59105         all in the original code but they weren't checked.
59106
59107         (TIME_T_MIDPOINT, verify): New macros.
59108         (__isleap): Remove; it has integer overflow problems.
59109         (leapyear): New function, without those problems.
59110         (ydhms_tm_diff): Remove; splitting into two parts.
59111         (ydhms_diff): New function, containing the arithmetic part of
59112         the old ydhms_tm_diff function.  Issue a compile-time
59113         diagnostic if we are not using C99 integer division.
59114         Avoid casts when possible.
59115         (guess_time_tm): New function, containing the checking part of
59116         the old ydhms_tm_diff function.  Return the new value, rather than
59117         the difference between it and the old.  Accept a new argument T
59118         so that *T specifies the old value.  Check for overflow in the result.
59119
59120         (__mktime_internal): Use a time_t offset, not a long int offset.
59121         This undoes the 2003-06-04 change, which is no longer needed now
59122         that we have better overflow checking.
59123         (localtime_offset): Likewise.
59124
59125         (__mktime_internal): Avoid harmful overflow on hosts where time_t
59126         and long are 64-bit but int is only 32-bit.
59127         (ydhms_diff): Use long int to store year1 and yday1.
59128         Issue a compile-time diagnostic if long int is not wide enough.
59129
59130         (__mktime_internal): Use long int to store adjusted year and yday.
59131         Use plain C rather than preprocessor commands, if that doesn't
59132         affect efficiency.
59133         Check for overflow (and try to repair) after each probe
59134         rather than checking only at the very end.  This avoids some bugs
59135         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
59136         does not equal GMT offset at maximum time).
59137         Use integer to check for overflow rather than floating point; this
59138         is more portable to non-IEEE hosts, and is a tad faster.
59139         When we detect that we are oscillating between two values,
59140         don't check whether tm_isdst has the requested value, since
59141         we already know the answer.  When tm_isdst has the wrong value,
59142         use a different heuristic to find the right one, based on the
59143         extreme values actually observed in practice in tz2003a,
59144         rather than the (overly optimistic) "previous 3 calendar quarters".
59145
59146         (not_equal_tm, print_tm, check_result): Use "const T" rather than
59147         "T const" to accommodate glibc style.
59148         (check_result): Use less-confusing report format.  "long" -> "long int.
59149         (main): Likewise.
59150         Don't loop if the iteration overflows time_t.
59151         Allow a negative step in the iteration.
59152
59153 2003-07-06  Karl Berry  <karl@gnu.org>
59154
59155         * config/depcomp: update from automake.
59156         * config/config.sub: update from prep.
59157
59158 2003-07-03  Karl Berry  <karl@gnu.org>
59159
59160         * config/config.guess: update from prep.
59161
59162 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59163
59164         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
59165         xreadlink.c now includes it unconditionally.
59166
59167 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59168
59169         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
59170         having it depend on HAVE_SYS_TYPES_H.
59171
59172 2003-07-01  Bruno Haible  <bruno@clisp.org>
59173
59174         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
59175         <sys/types.h> should be sufficient.
59176         Reported by Paul Eggert.
59177
59178 2003-06-26  Karl Berry  <karl@gnu.org>
59179
59180         * config/depcomp: update from automake.
59181
59182 2003-06-26  Bruno Haible  <bruno@clisp.org>
59183
59184         * modules/human: Depend on module stdbool.
59185
59186 2003-06-25  Bruno Haible  <bruno@clisp.org>
59187
59188         * modules/readlink: New file.
59189         * modules/xreadlink: Depend on it.
59190         * MODULES.html.sh (func_all_modules): Add readlink.
59191
59192 2003-06-25  Bruno Haible  <bruno@clisp.org>
59193
59194         * m4/readlink.m4: New file.
59195
59196 2003-06-25  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/readlink.c: New file.
59199
59200 2003-06-22  Karl Berry  <karl@gnu.org>
59201
59202         * config/srclist.txt: update mkinstalldirs from automake.
59203         * config/mkinstalldirs: update.
59204
59205 2003-06-22  Bruno Haible  <bruno@clisp.org>
59206
59207         Portability to mingw32.
59208         * m4/ssize_t.m4: New file, from GNU gettext.
59209         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59210         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59211
59212 2003-06-22  Bruno Haible  <bruno@clisp.org>
59213
59214         * modules/safe-read: Add m4/ssize_t.m4.
59215         * modules/xreadlink: Add m4/ssize_t.m4.
59216
59217 2003-06-20  Bruno Haible  <bruno@clisp.org>
59218
59219         Assume C89, so PARAMS isn't needed.
59220         * lib/unicodeio.h (PARAMS): Remove.
59221         * lib/unicodeio.c: Don't use PARAMS.
59222
59223 2003-06-18  Karl Berry  <karl@gnu.org>
59224
59225         * config/config.{guess,sub}: update from prep.
59226
59227 2003-06-18  Jim Meyering  <jim@meyering.net>
59228
59229         Merge changes from coreutils.
59230         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59231         Remove explicit declarations of xmalloc and realloc.
59232         Include xalloc.h.
59233         (read_utmp): Remove anachronistic cast of xmalloc.
59234
59235 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59236
59237         Assume C89, so PARAMS isn't needed.
59238         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59239         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59240         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59241         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59242         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59243         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59244         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59245         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59246         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59247         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59248         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59249         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59250         no longer needed. Anyway, config.h should always be included before any
59251         other file.
59252
59253 2003-06-11  Simon Josefsson  <jas@extundo.com>
59254
59255         * modules/sysexits: New file.
59256         * MODULES.html.sh (func_all_modules): Add sysexits.
59257
59258 2003-06-11  Simon Josefsson  <jas@extundo.com>
59259
59260         * lib/sysexit_.h: New file.
59261
59262 2003-06-11  Derek Price  <derek@ximbiot.com>
59263
59264         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59265         necessary.
59266
59267 2003-06-11  Bruno Haible  <bruno@clisp.org>
59268
59269         * m4/sysexits.m4: New file.
59270
59271 2003-06-10  Simon Josefsson  <jas@extundo.com>
59272
59273         * lib/argp.h: New file, from glibc.
59274         * lib/argp-ba.c: New file, from glibc.
59275         * lib/argp-eexst.c: New file, from glibc.
59276         * lib/argp-fmtstream.c: New file, from glibc.
59277         * lib/argp-fmtstream.h: New file, from glibc.
59278         * lib/argp-fs-xinl.c: New file, from glibc.
59279         * lib/argp-help.c: New file, from glibc.
59280         * lib/argp-namefrob.h: New file, from glibc.
59281         * lib/argp-parse.c: New file, from glibc.
59282         * lib/argp-pv.c: New file, from glibc.
59283         * lib/argp-pvh.c: New file, from glibc.
59284         * lib/argp-xinl.c: New file, from glibc.
59285
59286 2003-06-10  Simon Josefsson  <jas@extundo.com>
59287
59288         * modules/strchrnul: New file.
59289
59290 2003-06-10  Simon Josefsson  <jas@extundo.com>
59291
59292         * modules/argp: New file.
59293
59294 2003-06-10  Simon Josefsson  <jas@extundo.com>
59295
59296         * m4/strchrnul.m4: New file.
59297
59298 2003-06-10  Simon Josefsson  <jas@extundo.com>
59299
59300         * lib/strchrnul.h: New file.
59301         * lib/strchrnul.c: New file.
59302
59303 2003-06-10  Bruno Haible  <bruno@clisp.org>
59304
59305         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59306
59307 2003-06-07  Karl Berry  <karl@gnu.org>
59308
59309         * config/config.{guess,sub}: update from prep.
59310
59311 2003-06-07  Jim Meyering  <jim@meyering.net>
59312
59313         * modules/strtod: Use $(...) notation, not @...@ for
59314         AC_REPLACE'd variables.
59315         * modules/localcharset: Likewise.
59316
59317 2003-06-07  Jim Meyering  <jim@meyering.net>
59318
59319         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59320         in place of my name in the copyright comment.
59321         Remove definition and uses of __P.
59322
59323         From coreutils.
59324         * lib/stat.c: Don't declare xmalloc explicitly.
59325         Instead, include "xalloc.h".
59326         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59327         xrealloc, and xcalloc return values.
59328         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59329         Improve comment.
59330         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59331
59332 2003-06-07  Bruno Haible  <bruno@clisp.org>
59333
59334         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59335         avoid AC_CONFIG_LINKS.
59336         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59337         fnmatch.h, to avoid AC_CONFIG_LINKS.
59338         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59339
59340 2003-06-07  Bruno Haible  <bruno@clisp.org>
59341
59342         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59343         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59344         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59345         directory.
59346         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59347         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59348         directory.
59349
59350 2003-06-06  Jim Meyering  <jim@meyering.net>
59351
59352         Merge from coreutils.
59353         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59354         Consolidate declarations and initializations of *_base* locals.
59355
59356         Merge from coreutils.
59357         This avoids a core dump on systems without GNU putenv,
59358         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59359         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59360         (unsetenv): New static function, from GNU libc.
59361         (rpl_putenv): Use it.
59362
59363         * lib/modechange.c: Remove trailing blanks.
59364
59365         Merge from coreutils.
59366         * lib/fsusage.c: Remove declaration of statfs.
59367         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59368
59369         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59370
59371 2003-06-06  Jim Meyering  <jim@meyering.net>
59372
59373         * lib/stdbool_.h: Renamed from stdbool.h.in.
59374
59375 2003-06-06  Jim Meyering  <jim@meyering.net>
59376             Bruno Haible  <bruno@clisp.org>
59377
59378         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59379         Adjust Makefile.am snippet not to redirect directly to target.
59380         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59381
59382 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59383
59384         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59385         mismatch, look in future quarters as well as past.  This fixes a
59386         bug when processing fall-backwards gaps immediately after a long
59387         period of daylight-saving time.
59388
59389         * lib/mktime.c: Assume freestanding C89 or better.
59390         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59391         (__P): Remove; not used.
59392         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59393         (mktime, not_equal_tm, print_tm, check_result,
59394         main): Use prototypes.  Use const * where appropriate.
59395         (main): Fix typo in testing code that uncovered by above changes.
59396         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59397
59398 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59399
59400         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59401         locale.h, localeconv.  This merges changes from coreutils.
59402
59403         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59404         It can be removed after the next Autoconf is released.
59405         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59406         needed.
59407
59408 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59409
59410         * lib/mktime.c: Fix Debian bug 177940
59411         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59412         (localtime_offset): Now long int, not time_t, because we want it
59413         to be guaranteed to be signed.  All uses changed.
59414         (__mktime_internal): If overflow would occur when adding offset,
59415         don't add it.
59416
59417         Merge 'human' changes from coreutils.  Rewrite to support
59418         locale-specific notations like thousands separators.
59419         * lib/human.c: Simplify authorship notice.
59420         Include human.h immediately after config.h.
59421         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59422         <limits.h>: Do not include, since human.h does.
59423         (SIZE_MAX, UINTMAX_MAX): New macros.
59424         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59425         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59426         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59427         (power_letter): Renamed from suffixes.
59428         (generate_suffix_backwards): Remove.
59429         (adjust_value): Now takes int style (because of human.h changes)
59430         and long double value (for greater precision on some platforms).
59431         (group_number): New function.
59432         (human_readable): Use it.  Use integer options, not enum.
59433         Put the options before the sizes in the arg list.
59434         Support all the new options.
59435         The old human_readable function has been removed;
59436         use inttostr.h instead.
59437         (human_readable, default_block_size, humblock):
59438         Use uintmax_t, not int, for block sizes.
59439         (human_readable_inexact, block_size_types): Remove.
59440         (block_size_opts): New constant.
59441         (human_options): Renamed from human_block_size, with new signature
59442         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59443         * lib/human.h: Add copyright and authorship notice.
59444         Include <limits.h> and <stdbool.h> unconditionally.
59445         (PARAMS): Remove.  All uses removed.
59446         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59447         (enum human_inexact_style): Remove tag; now a nameless enum.
59448         (human_floor, human_ceiling, human_round_to_even): Now have
59449         values 2, 0, 1 rather than -1, 1, 0.
59450         (human_group_digits, human_suppress_point_zero, human_autoscale,
59451         human_base_1024, human_SI, human_B): New constants.
59452         (human_readable_inexact, human_block_size): Remove.
59453         (human_readable): Size args are now uintmax_t, not int.
59454         (human_options): New decl.
59455
59456         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59457         unnecessary now that we assume C89 or better.  This change
59458         imported from coreutils.
59459
59460         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59461         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59462         in the 2003-05-30 sync from glibc.
59463
59464         .h files should stand alone, but we shouldn't include <sys/types.h>
59465         if we can get away with just <stddef.h>.
59466
59467         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59468         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59469         rather than <sys/types.h>, as we merely need size_t.
59470         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59471         to get size_t.
59472         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59473         Include <stdio.h>, to get FILE.
59474         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59475         memcasecmp.h has included <stddef.h> and all we need is size_t.
59476         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59477         our interface, instead of including <sys/types.h>
59478
59479 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59480
59481         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59482         now, as glibc mktime is buggy on non-glibc systems.
59483
59484 2003-06-03  Karl Berry  <karl@gnu.org>
59485
59486         * config/config.sub: update from prep.
59487
59488 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59489
59490         [from coreutils]
59491         Fix some minor time-related bugs with POSIX time arguments.
59492         Some valid time stamps were being rejected (notably -1, and
59493         time stamps before 1900 on 64-bit hosts).  And some invalid
59494         time stamps were being accepted, e.g. September 31.
59495
59496         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59497         that we can return (time_t) -1 successfully.
59498         * lib/posixtm.c: Likewise.
59499         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59500         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59501         (t): Remove static var.
59502         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59503         of static var.  All uses changed.
59504         (year): Do not reject years before 1900; they can occur with
59505         64-bit time_t.
59506         (posix_time_parse): Do not check for out-of-range components;
59507         that is now the caller's responsibility, since our checks were
59508         only approximations.
59509         (posixtime): Use mktime to check for out-of-range components,
59510         since it knows them exactly.
59511         If mktime returns (time_t) -1, check whether an error actually occurred
59512         by invoking localtime on -1.
59513         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59514         posixtime failures better.
59515         Improve the test data (in comments only).
59516
59517 2003-06-02  Karl Berry  <karl@gnu.org>
59518
59519         * config/mkinstalldirs (version): new variable.
59520         (--version): new option.
59521         (usage): improve message.
59522
59523 2003-05-30  Karl Berry  <karl@gnu.org>
59524
59525         * lib/mktime.c: update from libc.
59526
59527 2003-05-30  Bruno Haible  <bruno@clisp.org>
59528
59529         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59530         * config/config.rpath: Upgrade to gettext-0.12.1.
59531
59532 2003-05-30  Bruno Haible  <bruno@clisp.org>
59533
59534         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59535         * m4/nls.m4: New file, from gettext-0.12.1.
59536         * m4/po.m4: New file, from gettext-0.12.1.
59537         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59538
59539 2003-05-30  Bruno Haible  <bruno@clisp.org>
59540
59541         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59542         * lib/localcharset.h: Likewise.
59543         * lib/localcharset.c: Likewise.
59544
59545 2003-05-29  Karl Berry  <karl@gnu.org>
59546
59547         * config/config.rpath: update from gettext.
59548
59549 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59550
59551         Assume the headers required for C89 freestanding compilers.
59552         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59553         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59554         * m4/human.m4 (gl_HUMAN): Likewise.
59555         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59556         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59557         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59558         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59559         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59560         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59561
59562 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59563
59564         Assume the headers required for C89 freestanding compilers.
59565         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59566         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59567         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59568         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59569         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59570         define, since <limits.h> is guaranteed to do that.
59571         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59572         * lib/exclude.c: Include <stdbool.h> unconditionally.
59573         * lib/tempname.c: Include <stddef.h> unconditionally.
59574         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59575         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59576         <stddef.h> does that.
59577         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59578         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59579         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59580         needed.
59581         * lib/xstrtol.c: Likewise.
59582         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59583         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59584
59585         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59586         warnings on some platforms.
59587
59588         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59589         arbitrarily.
59590
59591 2003-05-26  Jim Meyering  <jim@meyering.net>
59592
59593         Merge in a change from coreutils:
59594         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59595         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59596         that condition, rather than `-1' which is slightly misleading.
59597         Change the name of the cache variable to have the gl_ prefix.
59598         Prompted by a patch from Richard Dawe for DJGPP.
59599
59600 2003-05-24  Karl Berry  <karl@gnu.org>
59601
59602         * config/config.guess: update from prep.
59603
59604 2003-05-22  Karl Berry  <karl@gnu.org>
59605
59606         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59607
59608 2003-05-20  Karl Berry  <karl@gnu.org>
59609
59610         * config/config.guess: update from prep.
59611
59612 2003-05-18  Karl Berry  <karl@gnu.org>
59613
59614         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59615         might actually be set by the user.
59616
59617         * config/depcomp, install-sh, mdate-sh: update from automake.
59618
59619 2003-05-17  Bruno Haible  <bruno@clisp.org>
59620
59621         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59622         invalid expansion for AC_EGREP_CPP.
59623         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59624         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59625         Suggested by Akim Demaille <akim@epita.fr> in
59626         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59627
59628 2003-05-12  Jim Meyering  <jim@meyering.net>
59629
59630         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59631         the space-padded-by-default conversion specifiers, %e, %k, %l.
59632
59633 2003-05-12  Bruno Haible  <bruno@clisp.org>
59634
59635         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59636         the string is longer than 4 KB.
59637
59638 2003-05-11  Karl Berry  <karl@gnu.org>
59639
59640         * config/config.{guess,sub}: update from prep.
59641
59642 2003-05-09  Bruno Haible  <bruno@clisp.org>
59643
59644         * modules/error: Add m4/strerror_r.m4 to file list.
59645
59646 2003-05-03  Bruno Haible  <bruno@clisp.org>
59647
59648         Upgrade to Unicode-4.0.
59649         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59650         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59651         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59652         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59653         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59654         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59655         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59656         Change width of U+E0100..U+E01EF from 1 to 0.
59657
59658 2003-04-25  Jim Meyering  <jim@meyering.net>
59659
59660         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59661         of type size_t, not int.
59662
59663 2003-04-25  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/copy-file.c: Include <stddef.h>, for size_t.
59666
59667 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59668
59669         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59670         code which expansion is under static control.  Patch imported from
59671         Akim Demaille's patch to Bison; see
59672         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59673
59674 2003-04-14  Bruno Haible  <bruno@clisp.org>
59675
59676         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59677
59678 2003-04-11  Jim Meyering  <jim@meyering.net>
59679
59680         Merge changes from Coreutils.
59681
59682         2003-03-22  Jim Meyering  <jim@meyering.net>
59683
59684         * lib/strftime.c (widen): Cast alloca return value to proper type.
59685
59686         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59687
59688         From GNU libc.
59689         * lib/strftime.c (my_strftime): Handle very large width
59690         specifications for numeric values correctly.  Improve checks for
59691         overflow.
59692
59693         2003-01-19  Jim Meyering  <jim@meyering.net>
59694
59695         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59696         definitions.
59697         (nl_get_alt_digit) [! defined my_strftime]: Define.
59698         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59699         _nl_get_alt_digit and _nl_get_walt_digit.
59700
59701         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59702         libc. These changes have no effect outside of _LIBC.
59703
59704 2003-04-10  Bruno Haible  <bruno@clisp.org>
59705
59706         * modules/findprog: New file.
59707         * MODULES.html.sh (func_all_modules): Add it.
59708
59709 2003-04-10  Bruno Haible  <bruno@clisp.org>
59710
59711         * m4/findprog.m4: New file.
59712         * m4/eaccess.m4: New file.
59713
59714 2003-04-10  Bruno Haible  <bruno@clisp.org>
59715
59716         * lib/findprog.h: New file, from GNU gettext.
59717         * lib/findprog.c: New file, from GNU gettext.
59718
59719 2003-04-05  Jim Meyering  <jim@meyering.net>
59720
59721         Merge changes from Coreutils.
59722
59723         * lib/exclude.h (PARAMS): Remove definition and uses.
59724         * lib/exclude.c: Remove uses of `PARAMS'.
59725
59726         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59727         Add test-cases for DOS filenames. Declare program_name.
59728         (main): Set up program_name.  Patch by Rich Dawe.
59729
59730         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59731         error from mntctl.
59732         Use mntctl's return value to drive the entry-processing loop, since
59733         we can't rely on the value of the vmt_length member in the last
59734         entry.  On some systems doing so could result in exhausting
59735         virtual memory.  Based in part on a patch from Mike Jetzer.
59736
59737 2003-04-04  Bruno Haible  <bruno@clisp.org>
59738
59739         * modules/linebreak: New file.
59740         * MODULES.html.sh (func_all_modules): Add it.
59741
59742 2003-04-04  Bruno Haible  <bruno@clisp.org>
59743
59744         * m4/linebreak.m4: New file.
59745
59746 2003-04-04  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/linebreak.h: New file, from GNU gettext.
59749         * lib/linebreak.c: New file, from GNU gettext with slight
59750         modifications.
59751         * lib/lbrkprop.h: New file, from GNU gettext.
59752
59753 2003-04-03  Bruno Haible  <bruno@clisp.org>
59754
59755         * modules/utf8-ucs4: New file.
59756         * modules/utf16-ucs4: New file.
59757         * modules/ucs4-utf8: New file.
59758         * modules/ucs4-utf16: New file.
59759         * MODULES.html.sh (func_all_modules): Add them.
59760
59761 2003-04-03  Bruno Haible  <bruno@clisp.org>
59762
59763         * m4/utf-ucs4.m4: New file.
59764         * m4/ucs4-utf.m4: New file.
59765
59766 2003-04-03  Bruno Haible  <bruno@clisp.org>
59767
59768         * lib/utf8-ucs4.h: New file, from GNU gettext.
59769         * lib/utf16-ucs4.h: New file, from GNU gettext.
59770         * lib/ucs4-utf8.h: New file, from GNU gettext.
59771         * lib/ucs4-utf16.h: New file, from GNU gettext.
59772
59773 2003-04-02  Bruno Haible  <bruno@clisp.org>
59774
59775         * modules/binary-io: New file.
59776         * MODULES.html.sh (func_all_modules): Add it.
59777
59778 2003-04-02  Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/binary-io.h: New file, from GNU gettext.
59781
59782 2003-04-01  Bruno Haible  <bruno@clisp.org>
59783
59784         * modules/pathname: New file.
59785         * MODULES.html.sh (func_all_modules): Add it.
59786
59787 2003-04-01  Bruno Haible  <bruno@clisp.org>
59788
59789         * lib/pathname.h: New file, from GNU gettext.
59790         * lib/concatpath.c: New file, from GNU gettext.
59791
59792 2003-03-30  Bruno Haible  <bruno@clisp.org>
59793
59794         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59795
59796 2003-03-30  Bruno Haible  <bruno@clisp.org>
59797
59798         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59799         function chown() doesn't exist.
59800
59801 2003-03-28  Bruno Haible  <bruno@clisp.org>
59802
59803         * modules/copy-file: New file.
59804         * MODULES.html.sh (func_all_modules): Add it.
59805
59806 2003-03-28  Bruno Haible  <bruno@clisp.org>
59807
59808         * m4/copy-file.m4: New file.
59809
59810 2003-03-28  Bruno Haible  <bruno@clisp.org>
59811
59812         * lib/copy-file.h: New file, from GNU gettext.
59813         * lib/copy-file.c: New file, from GNU gettext.
59814
59815 2003-03-18  Jim Meyering  <jim@meyering.net>
59816
59817         * lib/quote.c (quote_n): Fix typo in comment.
59818
59819 2003-03-18  Bruno Haible  <bruno@clisp.org>
59820
59821         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59822         checking.
59823         * m4/onceonly_2_57.m4: Likewise.
59824
59825 2003-03-17  Bruno Haible  <bruno@clisp.org>
59826
59827         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59828         (m4_quote): Remove macro.
59829         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59830
59831 2003-03-14  Jim Meyering  <jim@meyering.net>
59832
59833         Merge changes from Coreutils.
59834         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59835         to be const, in order to avoid warnings.
59836         (obstack_room): Likewise.
59837         (obstack_empty_p): Likewise.
59838
59839 2003-03-14  Bruno Haible  <bruno@clisp.org>
59840
59841         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59842         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59843
59844 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59845
59846         Merge changes from Bison.
59847         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59848         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59849         when compiling Bison 1.875's `bitset bset = obstack_alloc
59850         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59851         * lib/hash.c: Include <stdbool.h> unconditionally.
59852
59853 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59854
59855         * m4/onceonly.m4 (m4_quote): New macro.
59856         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59857         Quote AC_FOREACH variable-expansions properly.
59858
59859 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59860
59861         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59862
59863 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59864
59865         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59866         Reported by Bruce Becker; see:
59867         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59868
59869 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59870             Bruno Haible  <bruno@clisp.org>
59871
59872         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59873         Reported by John Hughes, see
59874         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59875
59876 2003-02-20  Bruno Haible  <bruno@clisp.org>
59877
59878         * MODULES.html.sh (func_all_modules): Add poll.
59879
59880 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59881
59882         * modules/poll: New file.
59883
59884 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59885
59886         * lib/poll_.h: New file.
59887         * lib/poll.c: New file.
59888
59889 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59890
59891         * m4/poll.m4: New file.
59892
59893 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59894
59895         * modules/mathl: New file.
59896
59897 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59898
59899         * lib/mathl.h: New file.
59900         * lib/acosl.c: New file.
59901         * lib/asinl.c: New file.
59902         * lib/atanl.c: New file.
59903         * lib/ceill.c: New file.
59904         * lib/cosl.c: New file.
59905         * lib/expl.c: New file.
59906         * lib/floorl.c: New file.
59907         * lib/frexpl.c: New file.
59908         * lib/ldexpl.c: New file.
59909         * lib/logl.c: New file.
59910         * lib/sincosl.c: New file.
59911         * lib/sinl.c: New file.
59912         * lib/sqrtl.c: New file.
59913         * lib/tanl.c: New file.
59914         * lib/trigl.c: New file.
59915         * lib/trigl.h: New file.
59916
59917 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59918
59919         * m4/mathl.m4: New file.
59920
59921 2003-02-18  Bruno Haible  <bruno@clisp.org>
59922
59923         * MODULES.html.sh (func_all_modules): Add mathl.
59924
59925 2003-02-17  Bruno Haible  <bruno@clisp.org>
59926
59927         * modules/mkdtemp: New module.
59928         * MODULES.html.sh (func_all_modules): Add it.
59929
59930 2003-02-17  Bruno Haible  <bruno@clisp.org>
59931
59932         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59933
59934 2003-02-17  Bruno Haible  <bruno@clisp.org>
59935
59936         * lib/mkdtemp.h: New file, from GNU gettext.
59937         * lib/mkdtemp.c: New file, from GNU gettext.
59938
59939 2003-02-02  Jim Meyering  <jim@meyering.net>
59940
59941         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59942         e.g. glibc-2.2.93.
59943
59944 2003-01-31  Bruno Haible  <bruno@clisp.org>
59945
59946         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59947         'rpl_rename'.
59948         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59949         'rpl_strnlen'.
59950         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59951         'rpl_strtod'.
59952         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59953         'rpl_utime'.
59954
59955 2003-01-31  Bruno Haible  <bruno@clisp.org>
59956
59957         * lib/rename.c: #undef rename before defining rpl_rename.
59958         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59959
59960 2003-01-30  Bruno Haible  <bruno@clisp.org>
59961
59962         * modules/vasnprintf, modules/vasprintf: New modules.
59963         * MODULES.html.sh (func_all_modules): Add them.
59964
59965 2003-01-30  Bruno Haible  <bruno@clisp.org>
59966
59967         * m4/signed.m4: New file, from GNU gettext.
59968         * m4/longdouble.m4: New file, from GNU gettext.
59969         * m4/wchar_t.m4: New file, from GNU gettext.
59970         * m4/wint_t.m4: New file, from GNU gettext.
59971         * m4/vasnprintf.m4: New file.
59972         * m4/vasprintf.m4: New file.
59973
59974 2003-01-30  Bruno Haible  <bruno@clisp.org>
59975
59976         * lib/printf-args.h: New file, from GNU gettext.
59977         * lib/printf-args.c: New file, from GNU gettext.
59978         * lib/printf-parse.h: New file, from GNU gettext.
59979         * lib/printf-parse.c: New file, from GNU gettext.
59980         * lib/vasnprintf.h: New file, from GNU gettext.
59981         * lib/vasnprintf.c: New file, from GNU gettext.
59982         * lib/asnprintf.c: New file, from GNU gettext.
59983         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59984         * lib/vasprintf.c: New file, from GNU gettext.
59985         * lib/asprintf.c: New file, from GNU gettext.
59986
59987 2003-01-29  Bruno Haible  <bruno@clisp.org>
59988
59989         * modules/stpncpy: New module.
59990         * MODULES.html.sh (func_all_modules): Add it.
59991
59992 2003-01-29  Bruno Haible  <bruno@clisp.org>
59993
59994         * m4/stpncpy.m4: New file.
59995
59996 2003-01-29  Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59999         * lib/stpncpy.c: New file, from GNU gettext with modifications.
60000
60001 2003-01-28  Bruno Haible  <bruno@clisp.org>
60002
60003         * modules/c-ctype: New module.
60004         * MODULES.html.sh (func_all_modules): Add it.
60005
60006 2003-01-28  Bruno Haible  <bruno@clisp.org>
60007
60008         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
60009         Paul Eggert.
60010         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
60011         Paul Eggert.
60012
60013 2003-01-27  Bruno Haible  <bruno@clisp.org>
60014
60015         * modules/xsetenv: New module.
60016         * MODULES.html.sh (func_all_modules): Add it.
60017
60018 2003-01-27  Bruno Haible  <bruno@clisp.org>
60019
60020         * lib/xsetenv.h: New file, from GNU gettext.
60021         * lib/xsetenv.c: New file, from GNU gettext.
60022
60023 2003-01-23  Jim Meyering  <jim@meyering.net>
60024
60025         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
60026         from working on systems without dirfd (at least Irix and OSF1/Tru64).
60027
60028 2003-01-23  Bruno Haible  <bruno@clisp.org>
60029
60030         * modules/minmax: New module.
60031         * MODULES.html.sh (func_all_modules): Add it.
60032
60033 2003-01-23  Bruno Haible  <bruno@clisp.org>
60034
60035         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
60036         Eggert.
60037
60038 2003-01-22  Bruno Haible  <bruno@clisp.org>
60039
60040         * modules/exit: New module.
60041         * MODULES.html.sh (func_all_modules): Add it.
60042
60043 2003-01-22  Bruno Haible  <bruno@clisp.org>
60044
60045         * lib/exit.h: New file, from GNU gettext.
60046
60047 2003-01-19  Bruno Haible  <bruno@clisp.org>
60048
60049         * gnulib-tool: Recognize option --extract-maintainer.
60050         (func_get_maintainer): New function.
60051         * modules/*: Add Maintainer entry.
60052
60053 2003-01-16  Jim Meyering  <jim@meyering.net>
60054
60055         * m4/regex.m4: The `regex' struct is both input and output.
60056         Initialize it before each use.  Patch by Tim Waugh.
60057
60058 2003-01-16  Bruno Haible  <bruno@clisp.org>
60059
60060         * MODULES.html.sh: Add a table of contents. Add the module name as
60061         leftmost column. Add hyperlinks.
60062
60063 2003-01-15  Bruno Haible  <bruno@clisp.org>
60064
60065         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
60066
60067 2003-01-15  Bruno Haible  <bruno@clisp.org>
60068
60069         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
60070         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
60071         suffix.
60072
60073 2003-01-15  Bruno Haible  <bruno@clisp.org>
60074
60075         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
60076
60077 2003-01-15  Bruno Haible  <bruno@clisp.org>
60078
60079         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
60080         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
60081
60082 2003-01-14  Jim Meyering  <jim@meyering.net>
60083
60084         * lib/same.c (same_name): Tweak a comment.
60085
60086 2003-01-14  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
60089         when a string comparison is sufficient.
60090
60091 2003-01-14  Bruno Haible  <bruno@clisp.org>
60092
60093         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
60094         'unsigned int'.
60095
60096 2003-01-14  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/hash-pjw.c: Add comment about low quality of this function.
60099
60100 2003-01-13  Bruno Haible  <bruno@clisp.org>
60101
60102         * modules/stpcpy: Distribute lib/stpcpy.h.
60103         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
60104
60105 2003-01-13  Bruno Haible  <bruno@clisp.org>
60106
60107         * modules/*: Add a description.
60108         * modules/strpbrk: Fix Makefile.am snippet.
60109         * modules/strtoimax: Fix dependencies.
60110         * modules/strtoumax: Likewise.
60111
60112 2003-01-13  Bruno Haible  <bruno@clisp.org>
60113
60114         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
60115         * modules/alloca (Makefile.am): All object files depend on alloca.h.
60116         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
60117
60118 2003-01-13  Bruno Haible  <bruno@clisp.org>
60119
60120         * gnulib-tool (func_create_testdir): Store config/* files in the main
60121         directory.
60122         * config.rpath: Move to ...
60123         * config/config.rpath: ... here.
60124         * modules/gettext: Contains config/config.rpath, not config.rpath.
60125         * modules/iconv: Likewise.
60126
60127 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60128
60129         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60130         to avoid collisions with libcurses and libreadline.
60131
60132         * m4/getstr.m4: Remove.
60133         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
60134
60135 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60136
60137         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60138         to avoid collisions with libcurses and libreadline.
60139
60140         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
60141         * lib/getstr.h, getstr.c: Remove.
60142         * lib/getline.c: Include "getline.h", to check interface.
60143         Move body of old getstr.c here: this defines MIN_CHUNK and
60144         declares getdelim2, which is renamed from getstr.
60145         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
60146
60147         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
60148         All uses changed.
60149         * lib/linebuffer.h: Likewise.
60150         (readline): Remove backward-compatibility macro.
60151
60152 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60153
60154         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60155         to avoid collisions with libcurses and libreadline.
60156         * getstr: Remove.
60157         * MODULES.html.sh: Remove getstr.
60158         * modules/getline: Depend on unlocked-io, not getstr.
60159
60160 2003-01-12  Jim Meyering  <jim@meyering.net>
60161
60162         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
60163
60164 2003-01-10  Bruno Haible  <bruno@clisp.org>
60165
60166         * modules/alloca: Change Makefile.am requirements. Simplify Include
60167         requirements. Add lib/alloca_.h to file list.
60168
60169 2003-01-10  Bruno Haible  <bruno@clisp.org>
60170
60171         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
60172
60173 2003-01-10  Bruno Haible  <bruno@clisp.org>
60174
60175         * lib/alloca_.h: New file.
60176         * lib/getdate.y: Unconditionally include alloca.h.
60177         * lib/makepath.c: Likewise.
60178         * lib/setenv.c: Likewise.
60179         * lib/userspec.c: Likewise.
60180
60181 2003-01-09  Karl Berry  <karl@gnu.org>
60182
60183         * MODULES.html.sh: include `dirname $0` in PATH, to find
60184         gnulib-tool.
60185
60186 2003-01-09  Bruno Haible  <bruno@clisp.org>
60187
60188         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60189         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60190
60191 2003-01-09  Bruno Haible  <bruno@clisp.org>
60192
60193         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60194
60195 2003-01-09  Bruno Haible  <bruno@clisp.org>
60196
60197         * lib/stdbool.h.in: New file.
60198
60199 2003-01-09  Bruno Haible  <bruno@clisp.org>
60200
60201         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60202         * MODULES.html.sh: Likewise.
60203
60204 2003-01-08  Jim Meyering  <jim@meyering.net>
60205
60206         * lib/full-write.c: Undefine and define-away `const' after inclusion
60207         of errno.h, not before.  Suggestion from Bruno Haible.
60208
60209 2003-01-08  Bruno Haible  <bruno@clisp.org>
60210
60211         * modules/full-read: Depend on full-write.
60212
60213 2003-01-08  Bruno Haible  <bruno@clisp.org>
60214
60215         * lib/safe-read.c: Include specification header first, to ensure its
60216         selfcontainedness.
60217         * lib/full-write.c: Likewise.
60218
60219 2003-01-07  Jim Meyering  <jim@meyering.net>
60220
60221         * lib/full-write.c: Rework so that it may serve to define full_read,
60222         too.
60223         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60224
60225 2003-01-07  Bruno Haible  <bruno@clisp.org>
60226
60227         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60228         <inttypes.h>.
60229         * lib/xstrtol.h: Likewise.
60230         * lib/xstrtoimax.c: Likewise.
60231         * lib/xstrtoumax.c: Likewise.
60232         * lib/human.h: Likewise.
60233
60234         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60235         on systems that have <inttypes.h> but not <stdint.h>.
60236
60237 2003-01-07  Bruno Haible  <bruno@clisp.org>
60238
60239         * MODULES.html.sh: Add copyright notice.
60240         (missed_files): Omit CVS directory entries.
60241         (func_module): Make it work with sed-3.02.
60242         * MODULES.txt: Remove file.
60243
60244 2003-01-06  Jim Meyering  <jim@meyering.net>
60245
60246         * lib/version-etc.c: Update year in translatable copyright string.
60247
60248 2003-01-03  Karl Berry  <karl@gnu.org>
60249
60250         * config/config.{guess,sub}: update from prep.
60251
60252 2003-01-02  Karl Berry  <karl@gnu.org>
60253
60254         * doc/COPYING.DOC: belatedly updated to 1.2.
60255
60256 2003-01-01  Karl Berry  <karl@gnu.org>
60257
60258         * gnulib-tool (func_verify_module): report module name $module in
60259         error message, not $1.
60260         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60261         be created, only if it doesn't exist.
60262         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60263
60264 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60265
60266         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60267
60268 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60269
60270         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60271         memcmp if strcoll doesn't work.
60272
60273 2002-12-31  Bruno Haible  <bruno@clisp.org>
60274
60275         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60276         nonempty.
60277
60278 2002-12-31  Bruno Haible  <bruno@clisp.org>
60279
60280         * lib/memcoll.c (STRCOLL): New macro.
60281         (memcoll): Use it.
60282
60283 2002-12-31  Bruno Haible  <bruno@clisp.org>
60284
60285         * lib/localcharset.h: New file.
60286         * lib/localcharset.c: Include it.
60287         * lib/unicodeio.c: Likewise.
60288
60289 2002-12-31  Bruno Haible  <bruno@clisp.org>
60290
60291         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60292         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60293
60294 2002-12-31  Bruno Haible  <bruno@clisp.org>
60295
60296         * lib/getline.h: Include <stddef.h>, for size_t.
60297
60298         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60299         * lib/unicodeio.c: Don't include <stddef.h>.
60300
60301 2002-12-31  Bruno Haible  <bruno@clisp.org>
60302
60303         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60304         HAVE_TM_ZONE.
60305
60306 2002-12-24  Karl Berry  <karl@gnu.org>
60307
60308         * config/config.guess: update from prep.
60309
60310 2002-12-24  Bruno Haible  <bruno@clisp.org>
60311
60312         General infrasructure.
60313         * m4/README: Rewritten.
60314         * m4/onceonly.m4: New file.
60315         * m4/onceonly_2_57.m4: New file.
60316
60317         Module atexit.
60318         * m4/atexit.m4: New file.
60319
60320         Module strtod.
60321         * m4/strtod.m4: New file.
60322
60323         Module strtol.
60324         * m4/strtol.m4: New file.
60325
60326         Module strtoul.
60327         * m4/strtoul.m4: New file.
60328
60329         Module memchr.
60330         * m4/memchr.m4: New file.
60331
60332         Module memcmp.
60333         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60334         (jm_FUNC_MEMCMP): Invoke it.
60335
60336         Module memcpy.
60337         * m4/memcpy.m4: New file.
60338
60339         Module memmove.
60340         * m4/memmove.m4: New file.
60341
60342         Module memset.
60343         * m4/memset.m4: New file.
60344
60345         Module strcspn.
60346         * m4/strcspn.m4: New file.
60347
60348         Module strpbrk.
60349         * m4/strpbrk.m4: New file.
60350
60351         Module strstr.
60352         * m4/strstr.m4: New file.
60353
60354         Module strerror.
60355         * m4/strerror.m4: New file.
60356
60357         Module mktime.
60358         * m4/mktime.m4: Renamed from jm-mktime.m4.
60359         (gl_PREREQ_MKTIME): New macro.
60360         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60361
60362         Module malloc.
60363         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60364         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60365         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60366
60367         Module realloc.
60368         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60369         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60370         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60371
60372         Module strftime.
60373         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60374         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60375         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60376         gl_TM_GMTOFF.
60377         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60378
60379         Module xalloc.
60380         * m4/xalloc.m4: New file.
60381
60382         Module alloca.
60383         * m4/alloca.m4: New file.
60384
60385         Module putenv.
60386         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60387         (jm_FUNC_PUTENV): Invoke it.
60388
60389         Module setenv.
60390         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60391         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60392         when invoked twice.
60393         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60394         gt_FUNC_SETENV.
60395
60396         Module memrchr.
60397         * m4/memrchr.m4: New file.
60398
60399         Module stpcpy.
60400         * m4/stpcpy.m4: New file.
60401
60402         Module strcase.
60403         * m4/strcase.m4: New file.
60404
60405         Module strdup.
60406         * m4/strdup.m4: New file.
60407
60408         Module strnlen.
60409         * m4/strnlen.m4: New file.
60410
60411         Module strndup.
60412         * m4/strndup.m4: New file.
60413
60414         Module xstrtod.
60415         * m4/xstrtod.m4: New file.
60416
60417         Module xstrtol.
60418         * m4/xstrtol.m4: New file.
60419
60420         Module getdate.
60421         * m4/getdate.m4: New file.
60422
60423         Module unlocked-io.
60424         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60425         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60426         * m4/jm-glibc-io.m4n: Remove file.
60427
60428         Module long-options.
60429         * m4/long-options.m4: New file.
60430
60431         Module md5.
60432         * m4/md5.m4: New file.
60433
60434         Module sha.
60435         * m4/sha.m4: New file.
60436
60437         Module getstr.
60438         * m4/getstr.m4: New file.
60439
60440         Module getline.
60441         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60442         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60443         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60444         simply getline. Infoke gl_PREREQ_GETLINE.
60445
60446         Module obstack.
60447         * m4/obstack.m4: New file.
60448
60449         Module hash.
60450         * m4/hash.m4: New file.
60451
60452         Module readtokens.
60453         * m4/readtokens.m4: New file.
60454
60455         Module strverscmp.
60456         * m4/strverscmp.m4: New file.
60457
60458         Module stdbool.
60459         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60460         OSF/1.
60461
60462         Module strtoll.
60463         * m4/strtoll.m4: New file.
60464
60465         Module strtoull.
60466         * m4/strtoull.m4: New file.
60467
60468         Module strtoimax.
60469         * m4/strtoimax.m4: New file.
60470
60471         Module strtoumax.
60472         * m4/strtoumax.m4: New file.
60473
60474         Module xstrtoimax.
60475         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60476         jm_AC_PREREQ_XSTRTOIMAX.
60477         Moved the strtol prerequisites to strtol.m4.
60478         Moved the strtoll prerequisites to strtoll.m4.
60479         Moved the strtoimax prerequisites to strtoimax.m4.
60480
60481         Module xstrtoumax.
60482         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60483         jm_AC_PREREQ_XSTRTOUMAX.
60484         Moved the strtoul prerequisites to strtoul.m4.
60485         Moved the strtoull prerequisites to strtoull.m4.
60486         Moved the strtoumax prerequisites to strtoumax.m4.
60487
60488         Module chown.
60489         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60490         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60491
60492         Module dup2.
60493         * m4/dup2.m4: New file.
60494
60495         Module ftruncate.
60496         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60497         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60498
60499         Module getgroups.
60500         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60501         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60502
60503         Module gettimeofday.
60504         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60505         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60506         gl_PREREQ_GETTIMEOFDAY.
60507
60508         Module mkdir.
60509         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60510         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60511
60512         Module mkstemp.
60513         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60514         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60515         jm_AC_TYPE_UINTMAX_T.
60516         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60517
60518         Module stat.
60519         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60520         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60521
60522         Module lstat.
60523         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60524         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60525
60526         Module timespec.
60527         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60528         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60529         * m4/st_mtim.m4: Indentation.
60530
60531         Module nanosleep.
60532         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60533         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60534         gl_PREREQ_NANOSLEEP.
60535
60536         Module regex.
60537         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60538         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60539         (gl_REGEX): New macro.
60540
60541         Module rename.
60542         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60543         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60544
60545         Module rmdir.
60546         * m4/rmdir.m4: New file.
60547
60548         Module utime.
60549         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60550         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60551         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60552
60553         Module dirname.
60554         * m4/dirname.m4: New file.
60555
60556         Module getopt.
60557         * m4/getopt.m4: New file.
60558
60559         Module unistd-safer.
60560         * m4/unistd-safer.m4: New file.
60561
60562         Module fnmatch.
60563         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60564         declaration.
60565         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60566         (gl_FUNC_FNMATCH_POSIX): New macro.
60567         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60568         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60569         simply fnmatch.
60570
60571         Module exclude.
60572         * m4/exclude.m4: New file.
60573
60574         Module human.
60575         * m4/human.m4: New file.
60576
60577         Module acl.
60578         * m4/acl.m4: Nop.
60579
60580         Module backupfile.
60581         * m4/backupfile.m4: New file.
60582         * m4/d-ino.m4: Indentation.
60583
60584         Module fsusage.
60585         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60586         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60587         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60588
60589         Module dirfd.
60590         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60591         requirements.
60592
60593         Module euidaccess.
60594         * m4/euidaccess.m4: New file.
60595
60596         Module file-type.
60597         * m4/file-type.m4: New file.
60598
60599         Module fileblocks.
60600         * m4/fileblocks.m4: New file.
60601
60602         Module filemode.
60603         * m4/filemode.m4: New file.
60604
60605         Module isdir.
60606         * m4/isdir.m4: New file.
60607
60608         Module lchown.
60609         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60610         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60611
60612         Module makepath.
60613         * m4/makepath.m4: New file.
60614
60615         Module modechange.
60616         * m4/modechange.m4: New file.
60617
60618         Module mountlist.
60619         * m4/mountlist.m4: New file.
60620         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60621         Indentation.
60622
60623         Module path-concat.
60624         * m4/path-concat.m4: New file.
60625
60626         Module pathmax.
60627         * m4/pathmax.m4: New file.
60628
60629         Module same.
60630         * m4/same.m4: New file.
60631
60632         Module save-cwd.
60633         * m4/save-cwd.m4: New file.
60634
60635         Module savedir.
60636         * m4/savedir.m4: New file.
60637
60638         Module xgetcwd.
60639         * m4/xgetcwd.m4: New file.
60640         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60641
60642         Module xreadlink.
60643         * m4/xreadlink.m4: New file.
60644
60645         Module safe-read.
60646         * m4/safe-read.m4: New file.
60647
60648         Module safe-write.
60649         * m4/safe-write.m4: New file.
60650
60651         Module closeout.
60652         * m4/closeout.m4: New file.
60653
60654         Module stdio-safer.
60655         * m4/stdio-safer.m4: New file.
60656
60657         Module getpass.
60658         * m4/getpass.m4: New file.
60659
60660         Module getugroups.
60661         * m4/getugroups.m4: New file.
60662
60663         Module group-member.
60664         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60665         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60666
60667         Module idcache.
60668         * m4/idcache.m4: New file.
60669
60670         Module userspec.
60671         * m4/userspec.m4: New file.
60672
60673         Module gettime.
60674         * m4/clock_time.m4: New file.
60675         * m4/gettime.m4: New file.
60676
60677         Module settime.
60678         * m4/settime.m4: New file.
60679
60680         Module posixtm.
60681         * m4/posixtm.m4: New file.
60682
60683         Module gethostname.
60684         * m4/gethostname.m4: New file.
60685
60686         Module canon-host.
60687         * m4/canon-host.m4: New file.
60688
60689         Module gettext.
60690         * m4/codeset.m4: New file, from gettext-0.11.5.
60691         * m4/gettext.m4: New file, from gettext-0.11.5.
60692         * m4/glibc21.m4: New file, from gettext-0.11.5.
60693         * m4/iconv.m4: New file, from gettext-0.11.5.
60694         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60695         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60696         * m4/inttypes.m4: New file, from gettext-0.11.5.
60697         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60698         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60699         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60700         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60701         * m4/lib-link.m4: New file, from gettext-0.11.5.
60702         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60703         * m4/progtest.m4: New file, from gettext-0.11.5.
60704         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60705         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60706         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60707
60708         Module localcharset.
60709         * m4/localcharset.m4: New file.
60710
60711         Module hard-locale.
60712         * m4/hard-locale.m4: New file.
60713
60714         Module mbswidth.
60715         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60716         onceonly macros.
60717         * m4/mbrtowc.m4: Add comment.
60718
60719         Module memcasecmp.
60720         * m4/memcasecmp.m4: New file.
60721
60722         Module memcoll.
60723         * m4/memcoll.m4: New file.
60724
60725         Module unicodeio.
60726         * m4/unicodeio.m4: New file.
60727
60728         Module rpmatch.
60729         * m4/rpmatch.m4: New file.
60730
60731         Module yesno.
60732         * m4/yesno.m4: New file.
60733
60734         Module exitfail.
60735         * m4/exitfail.m4: New file.
60736
60737         Module c-stack.
60738         * m4/c-stack.m4 (gl_C_STACK): New macro.
60739         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60740
60741         Module error.
60742         * m4/error.m4 (gl_ERROR): New macro.
60743         (jm_PREREQ_ERROR): Use onceonly macros.
60744
60745         Module fatal.
60746         * m4/fatal.m4: New file.
60747
60748         Module getloadavg.
60749         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60750         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60751
60752         Module getpagesize.
60753         * m4/getpagesize.m4: New file.
60754
60755         Module getusershell.
60756         * m4/getusershell.m4: New file.
60757
60758         Module physmem.
60759         * m4/physmem.m4: New file.
60760
60761         Module posixver.
60762         * m4/posixver.m4: New file.
60763
60764         Module quotearg.
60765         * m4/quotearg.m4: New file.
60766
60767         Module quote.
60768         * m4/quote.m4: New file.
60769
60770         Module readutmp.
60771         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60772
60773         Module sig2str.
60774         * m4/sig2str.m4: New file.
60775
60776         Other.
60777         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60778         ulonglong.m4.
60779         * m4/intmax_t.m4: New file.
60780         * m4/d-type.m4: Indentation.
60781         * m4/jm-macros.m4: Update.
60782         * m4/prereq.m4 (jm_PREREQ): Update.
60783         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60784         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60785         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60786         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60787         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60788         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60789         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60790         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60791         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60792         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60793         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60794         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60795         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60796         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60797         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60798         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60799         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60800         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60801         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60802
60803 2002-12-24  Bruno Haible  <bruno@clisp.org>
60804
60805         * MODULES.txt: Update according to m4/ changes.
60806
60807         Module gettext.
60808         * config.rpath: New file, from gettext-0.11.5.
60809
60810         * modules/*: New module descriptions.
60811         * gnulib-tool: New file.
60812         * MODULES.html.sh: New file.
60813
60814 2002-12-21  Karl Berry  <karl@gnu.org>
60815
60816         * doc/fdl.texi: update to version 1.2.
60817
60818 2002-12-19  Karl Berry  <karl@gnu.org>
60819
60820         * config/config.guess: update from prep.
60821
60822 2002-12-18  Bruno Haible  <bruno@clisp.org>
60823
60824         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60825         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60826
60827 2002-12-17  Bruno Haible  <bruno@clisp.org>
60828
60829         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60830         stdlib.h, string.h.
60831
60832 2002-12-17  Bruno Haible  <bruno@clisp.org>
60833
60834         * lib/canon-host.c (strdup): Remove unused declaration.
60835
60836         * lib/fsusage.c: Include full_read.h.
60837         (get_fs_usage): Use full_read instead of safe_read.
60838
60839         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60840
60841 2002-12-12  Karl Berry  <karl@gnu.org>
60842
60843         * config/config.guess: update from prep.
60844
60845 2002-12-11  Bruno Haible  <bruno@clisp.org>
60846
60847         * m4/setenv.m4: New file, from gettext-0.11.5.
60848
60849 2002-12-11  Bruno Haible  <bruno@clisp.org>
60850
60851         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60852         not unsetenv().
60853         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60854         modifications:
60855
60856         2002-12-11  Bruno Haible  <bruno@clisp.org>
60857
60858                 * setenv.c (alloca): Fall back to malloc.
60859                 (freea): New macro.
60860                 (setenv): Use freea() to free memory allocated with alloca().
60861
60862         2002-11-13  Bruno Haible  <bruno@clisp.org>
60863
60864                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60865                 function declarations.
60866                 * unsetenv.c (unsetenv): Likewise.
60867
60868         2002-03-04  Bruno Haible  <bruno@clisp.org>
60869
60870                 Portability to AIX 4.3.3.
60871                 * unsetenv.c: New file, extracted from setenv.c.
60872                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60873
60874         2001-12-20  Bruno Haible  <bruno@clisp.org>
60875
60876                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60877                 use malloc instead. For SunOS 4.
60878
60879         2001-12-11  Bruno Haible  <bruno@clisp.org>
60880
60881                 * setenv.c: Declare alloca.
60882                 (compar_fn_t): New typedef.
60883                 (KNOWN_VALUE, STORE_VALUE): Use it.
60884
60885         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60886         setenv.h.
60887
60888 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60889
60890         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60891         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60892         Choose values that are less likely to collide with system fnmatch
60893         options.
60894         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60895         defined (e.g., a pure POSIX system).
60896         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60897         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60898
60899 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60900
60901         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60902         a pain in practice to deal with generated m4 files.  This change
60903         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60904
60905         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60906         and jm-glibc-io.m4, as they are no longer a special case.
60907         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60908         kludge and the auto-generation stuff.  Check only whether the
60909         functions are declared, not whether they exist, since older hosts
60910         that don't declare the functions can't use the optimization anyway.
60911
60912 2002-12-06  Jim Meyering  <jim@meyering.net>
60913
60914         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60915
60916         Merge in changes from libc's misc/error.c, in preparation
60917         for the merge of gnulib's changes back into libc.
60918
60919         * lib/error.c (_): Define only if not already defined.
60920         Move definition to follow all #include directives.
60921         Include unlocked-io.h only if !_LIBC.
60922         [_LIBC]: Include <libio/libioP.h>.
60923         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60924         (fflush): Tweak definition to use INTUSE.
60925         (putc): Define.
60926
60927 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60928
60929         * lib/alloca.c [defined emacs]: Include "lisp.h".
60930         (xalloc_die) [defined emacs]: New macro.
60931         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60932         [! defined emacs]: Include <xalloc.h>.
60933         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60934         (pointer): Typedef to POINTER_TYPE *.
60935         (malloc): Remove decl; we now always use xmalloc.
60936         (alloca): Use old-style definition, since Emacs needs this.
60937         Check for arithmetic overflow when computing combined size.
60938
60939 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60940
60941         Do not generate unlocked-io.h automatically, since it's easier to
60942         maintain it by hand.
60943
60944         * lib/unlocked-io.h: New file, from GNU diffutils,
60945         but with proper copyright notice and attribution.
60946         * lib/gen-uio: Remove.
60947         * lib/Makefile.am: Add copyright notice.
60948         (libfetish_a_SOURCES): Add unlocked-io.h.
60949         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60950         (DISTCLEANFILES, io_functions): Remove macros.
60951         (EXTRA_DIST): Remove gen_uio.
60952         (unlocked-io.h): Remove rule.
60953
60954 2002-12-04  Jim Meyering  <jim@meyering.net>
60955
60956         Reflect the fact that stat.c and lstat.c are no longer generated.
60957         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60958         (DISTCLEANFILES): Likewise.
60959         (EXTRA_DIST): Likewise.
60960         (all_local): Don't depend on stat.c or lstat.c.
60961         (stat.c, lstat.c): Remove rules.
60962         (EXTRA_DIST): Remove xstat.in.
60963
60964         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60965         * lib/stat.c: New file.  Contents mostly from xstat.in.
60966         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60967         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60968
60969         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60970         too.
60971         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60972
60973 2002-12-03  Jim Meyering  <jim@meyering.net>
60974
60975         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60976         but not semantics, to minimize the differences between these two files.
60977         (safe_read): Change comment to mention SAFE_READ_ERROR.
60978
60979         * lib/safe-read.c (IS_EINTR): Define.
60980         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60981
60982 2002-12-02  Jim Meyering  <jim@meyering.net>
60983
60984         * lib/safe-read.c (EINTR): Define.
60985         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60986         (INT_MAX): Provide fallback.
60987         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60988
60989         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60990
60991 2002-12-02  Bruno Haible  <bruno@clisp.org>
60992
60993         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60994         Define, taken from safe-read.c.
60995         (INT_MAX): Provide fallback.
60996         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60997         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60998
60999         * lib/safe-read.c (EINTR): Remove definition.
61000         (safe_read): Don't use EINTR if it is absent.
61001
61002 2002-12-01  Jim Meyering  <jim@meyering.net>
61003
61004         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
61005         zero.
61006         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
61007
61008 2002-11-27  Paul Eggert  <eggert@twinsun.com>
61009
61010         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
61011         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
61012         with `if (! (value < limit)) abort ();', for readability.
61013
61014 2002-11-26  Karl Berry  <karl@gnu.org>
61015
61016         * lib/strdup.c: copy from libc again, with jim's ok.
61017         * lib/.cppi-disable: re-add strdup.c
61018
61019 2002-11-25  Karl Berry  <karl@gnu.org>
61020
61021         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
61022         instead of "strtol.c".
61023
61024 2002-11-25  Karl Berry  <karl@gnu.org>
61025
61026         * config/install-sh: update from automake for variable quoting, $0 in
61027         error msgs, etc.
61028
61029         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
61030         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
61031         entry.
61032
61033 2002-11-25  Jim Meyering  <jim@meyering.net>
61034
61035         * lib/mktime.c: Sync from libc, now that it has the latest fix.
61036
61037 2002-11-24  Karl Berry  <karl@gnu.org>
61038
61039         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
61040         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
61041
61042 2002-11-24  Jim Meyering  <jim@meyering.net>
61043
61044         Update from coreutils:
61045
61046         * lib/mktime.c: Merge in changes from libc.
61047
61048         Avoid a link-time failure on some Linux systems.
61049         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
61050         (otherwise).
61051         (__mon_yday): Declare with the STATIC attribute.
61052         (__mktime_internal): Likewise.
61053         Based on a report from Greg Schafer.
61054
61055 2002-11-23  Jim Meyering  <jim@meyering.net>
61056
61057         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
61058         Use `unsigned', not `int', as type of index.
61059
61060         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
61061
61062         * lib/fsusage.c: Remove unneeded parentheses around operands of
61063         `defined'.
61064
61065 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61066
61067         * lib/quotearg.h: Allow multiple inclusion by surrounding with
61068         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
61069         so that we can be included first.
61070         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
61071         * lib/quotearg.c: Include quotearg.h immediately after config.h.
61072         No need to include stddef.h or sys/types.h any more.
61073         Surround local include files with "", not "<>".
61074         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
61075         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
61076         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
61077         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
61078         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
61079         (ISPRINT): Remove; no longer needed now that we assume C89.
61080
61081         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
61082         Preserve errno.
61083
61084         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
61085         quotearg_char): Use SIZE_MAX rather than
61086         (size_t) -1 when we are talking about "infinity".
61087
61088         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
61089
61090 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61091
61092         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
61093         hint that one should use `if (! x) abort ();' rather than `assert
61094         (x);', and anyway it's one less thing to worry about configuring.
61095         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
61096         hash_rehash, hash_insert): Use abort rather than assert.
61097
61098 2002-11-22  Bruno Haible  <bruno@clisp.org>
61099
61100         * lib/safe-read.h: Assume C89. Add comments.
61101         (safe_read): Change return type to size_t.
61102         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
61103         byte counts > SSIZE_MAX correctly.
61104         * lib/safe-write.h: New file.
61105         * lib/safe-write.c: New file.
61106         * lib/full-read.h: New file.
61107         * lib/full-read.c: New file.
61108         * lib/full-write.h: Assume C89. Add comments.
61109         * lib/full-write.c: Include safe-write.h.
61110         (full_write): Rewritten to use safe_write.
61111         Suggested by Jim Meyering and Paul Eggert.
61112
61113 2002-11-21  Jim Meyering  <jim@meyering.net>
61114
61115         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
61116
61117         Merge in changes from the coreutils.
61118
61119         2002-09-25  Paul Eggert  <eggert@twinsun.com>
61120         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
61121         <stdint.h>.
61122         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
61123         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
61124         int.  Work more efficiently if X is the same width as uintmax_t.
61125         Do not compare X to -1, to avoid bogus compiler warning.
61126         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
61127         Don't assume that f_frsize and f_bsize are the same type.
61128
61129         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
61130         warning on FreeBSD.
61131
61132         * lib/makepath.c (make_path): Restore umask *before* creating the final
61133         component.
61134         (make_path): Minor reformatting.
61135
61136         * lib/xmalloc.c: Adjust to work with new autoconf macros,
61137         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
61138         HAVE_MALLOC/HAVE_REALLOC.
61139
61140         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
61141         dummy ones.  At least on GNU/Linux systems, `auto' means something
61142         else.
61143         From Michael Stone.
61144
61145 2002-11-21  Bruno Haible  <bruno@clisp.org>
61146
61147         Remove case insensitive option matching.
61148         * lib/argmatch.h (argcasematch): Remove declaration.
61149         (ARGCASEMATCH): Remove macro.
61150         (__xargmatch_internal): Remove case_sensitive argument.
61151         (XARGMATCH): Update.
61152         (XARGCASEMATCH): Remove macro.
61153         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
61154         case_sensitive argument.
61155         (argcasematch): Remove function.
61156         (__xargmatch_internal): Remove case_sensitive argument.
61157         (main): Use XARGMATCH instead of XARGCASEMATCH.
61158
61159         * lib/xmalloc.c: Change compile-time error message. Add comment about
61160         required autoconf version.
61161
61162 2002-11-20  Paul Eggert  <eggert@twinsun.com>
61163
61164         Merge argmatch cleanups from Bison.  Assume C89.
61165
61166         * lib/argmatch.c: Include config.h here, not in argmatch.h.
61167         Include stdlib.h, for EXIT_FAILURE.
61168         Always include <string.h>, since we assume C89.
61169         (EXIT_FAILURE): Remove pre-C89 bug workaround.
61170         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
61171         Include <stddef.h> instead, since it's all we need for size_t.
61172         (PARAMS): Remove.  All uses removed.
61173         (ARRAY_CARDINALITY): Do not bother to #undef.
61174         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
61175         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61176         Remove unnecessary parentheses.
61177         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61178         Insert necessary parentheses.
61179         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61180         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61181
61182 2002-11-19  Bruno Haible  <bruno@clisp.org>
61183
61184         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61185         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61186
61187         * lib/mbswidth.h (PARAMS): Remove macro.
61188         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61189         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61190
61191         * lib/gcd.h (PARAMS): Remove macro.
61192         (gcd): Use ANSI C function declarations.
61193         * lib/gcd.c (gcd): Likewise.
61194
61195 2002-11-15  Bruno Haible  <bruno@clisp.org>
61196
61197         * lib/strcspn.c: Include <stddef.h>.
61198         (strcspn): Use ANSI C function declaration. Change return type to
61199         size_t. Use NULL.
61200         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61201         (strpbrk): Use NULL.
61202         * lib/strpbrk.h (PARAMS): Remove macro.
61203         (strpbrk): Use ANSI C function declaration.
61204         * lib/strstr.c: Don't include <sys/types.h>.
61205         * lib/strstr.h (PARAMS): Remove macro.
61206         (strstr): Use ANSI C function declarations.
61207
61208 2002-11-14  Karl Berry  <karl@gnu.org>
61209
61210         * config/mkinstalldirs: `do' on separate line, instead of
61211         `for var; do'.
61212
61213 2002-11-06  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61216         * lib/gcd.c (gcd): Likewise.
61217
61218 2002-11-05  Bruno Haible  <bruno@clisp.org>
61219
61220         * lib/gcd.h: New file, from gettext-0.11.5.
61221         * lib/gcd.c: New file, from gettext-0.11.5.
61222
61223 2002-11-05  Bruno Haible  <bruno@clisp.org>
61224
61225         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61226         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61227         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61228         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61229
61230         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61231         <libintl.h>.
61232         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61233         <libintl.h>.
61234
61235         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61236         * lib/human.c: Include gettext.h instead of <libintl.h>.
61237         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61238         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61239         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61240         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61241         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61242         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61243         (textdomain): Remove definition.
61244         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61245
61246         * lib/long-options.c: Remove include of <libintl.h> and definition of
61247         _.
61248         * lib/same.c: Remove include of <libintl.h> and definition of _.
61249
61250 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61251
61252         * lib/config.charset: A few additions for Solaris.
61253
61254 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61255
61256         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61257         * lib/localcharset.c (locale_charset): Declare as extern "C".
61258
61259 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61260
61261         * lib/config.charset: msdos in uk_UA uses CP1125.
61262
61263 2002-11-04  Bruno Haible  <bruno@clisp.org>
61264
61265         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61266         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61267         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61268         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61269         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61270
61271 2002-11-04  Bruno Haible  <bruno@clisp.org>
61272
61273         * lib/localcharset.c (locale_charset): Don't return an empty string.
61274
61275 2002-11-04  Bruno Haible  <bruno@clisp.org>
61276
61277         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61278         aliases.
61279
61280 2002-11-04  Bruno Haible  <bruno@clisp.org>
61281
61282         * lib/config.charset: Update for newest glibc. Add canonical names
61283         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61284
61285 2002-11-04  Bruno Haible  <bruno@clisp.org>
61286
61287         * lib/config.charset: Add support for NetBSD.
61288
61289 2002-11-04  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61292
61293 2002-11-01  Bruno Haible  <bruno@clisp.org>
61294
61295         * configure.in: Add AC_CONFIG_AUX_DIR call.
61296         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61297         test/Makefile.
61298         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61299
61300 2002-09-28  Karl Berry  <karl@gnu.org>
61301
61302         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61303         installed automake until the next release, since changes have been
61304         made.
61305
61306 2002-09-25  Karl Berry  <karl@gnu.org>
61307
61308         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61309         * lib/getopt*: copy from libc/posix.
61310         * lib/gettext.h: copy from gettext.
61311         * lib/.cppi-disable: add strdup.c, gettext.h.
61312
61313 2002-09-25  Karl Berry  <karl@gnu.org>
61314
61315         * config/srclist.txt: enable gettext.h check.
61316         * config/config.{guess,sub}: update from prep.
61317         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61318                 from automake 1.6.3.
61319         See srclist*.
61320
61321 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61322
61323         * regex.c (PATFETCH): Remove the translating fetch.
61324         (PATFETCH_RAW): Rename to PATFETCH.
61325         (set_image_of_range): New fun.
61326         (SET_RANGE_TABLE_WORK_AREA): Use it.
61327         (regex_compile): Don't translate the pattern chars so eagerly.
61328         Only do it when inserting an `exactn' bytecode or when handling
61329         a char-range.
61330         (mutually_exclusive_p): Avoid empty statement.
61331
61332 2002-07-06  Jim Meyering  <meyering@lucent.com>
61333
61334         * m4/README: Don't mention Makefile.am.in.
61335         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61336
61337 2002-07-01  Jim Meyering  <meyering@lucent.com>
61338
61339         * lib/c-stack.c: Include sys/time.h.
61340         From Volker Borchert.
61341
61342 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61343
61344         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61345
61346 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61347
61348         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61349         New macro.  Use it uniformly instead of
61350         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61351         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61352         reported by Vin Shelton.
61353
61354 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61355
61356         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61357         Do not assume SA_SIGINFO behavior.
61358         Bug reported by Jim Meyering on NetBSD 1.5.2.
61359
61360 2002-06-22  Jim Meyering  <meyering@lucent.com>
61361
61362         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61363         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61364
61365         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61366         now that configure.ac uses AC_GNU_SOURCE.
61367         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61368         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61369
61370         Update to latest tools.  Suggestions from Paul Eggert.
61371         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61372         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61373         * m4/fnmatch.m4: Likewise.
61374         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61375         to AC_HEADER_STDBOOL
61376
61377 2002-06-22  Jim Meyering  <meyering@lucent.com>
61378
61379         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61380         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61381
61382 2002-06-22  Jim Meyering  <meyering@lucent.com>
61383
61384         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61385
61386         * lib/exitfail.c, exitfail.h: Likewise.
61387         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61388
61389         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61390         of fnmatch.h.
61391         (EXTRA_DIST): Add fnmatch_loop.c.
61392         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61393
61394         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61395         * lib/fnmatch.c: Update from diffutils-2.8.2.
61396         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61397         * lib/fnmatch.h: Remove file.
61398
61399 2002-06-21  Jim Meyering  <meyering@lucent.com>
61400
61401         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61402         * m4/mbrtowc.m4: Likewise.
61403
61404         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61405         * m4/mbswidth.m4: Reflect name change:
61406         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61407         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61408
61409         * m4/lib-link.m4: Update from gettext-0.11.2.
61410         * m4/gettext.m4: Likewise.
61411
61412         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61413         From Alfred M. Szmidt.
61414
61415 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61416
61417         * lib/file-type.h: Report an error if neither S_ISREG nor
61418         S_IFREG is defined, instead of using a test specific to glibc
61419         2.2.  This should be safe, since POSIX requires S_ISREG and
61420         Unix Version 7 had S_IFREG.  We don't need to check for
61421         <sys/types.h> since we don't use any symbols that it defines.
61422
61423 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61424
61425         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61426         $@-t, so that each temporary file name is unique and valid in the first
61427         8 characters, for operation under DOS.
61428
61429 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61430
61431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61432
61433 2002-06-15  Jim Meyering  <meyering@lucent.com>
61434
61435         Work even with DJGPP 2.03, which lacks support for symlinks.
61436         From Richard Dawe.
61437         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61438         is defined.
61439         * lib/lchown.c (S_ISLNK): Likewise.
61440
61441 2002-06-15  Jim Meyering  <meyering@lucent.com>
61442
61443         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61444         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61445         have been included before this file.
61446
61447 2002-06-14  Jim Meyering  <meyering@lucent.com>
61448
61449         * lib/file-type.h: Use the version from diffutils-2.8.2.
61450         * lib/file-type.c: Likewise.
61451
61452 2002-06-07  Jim Meyering  <meyering@lucent.com>
61453
61454         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61455         They're needed at least for NetBSD 1.5.2.
61456         ($statxfs_includes): Include those same headers.
61457         ($statxfs_includes): Include sys/vfs.h if available.
61458         ($statxfs_includes): Likewise for sys/statvfs.h.
61459         Check for the following members in both structs statfs and statvfs:
61460         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61461
61462 2002-06-01  Jim Meyering  <meyering@lucent.com>
61463
61464         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61465         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61466
61467 2002-05-28  Jim Meyering  <meyering@lucent.com>
61468
61469         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61470         Reported by Volker Borchert.
61471
61472 2002-05-27  Jim Meyering  <meyering@lucent.com>
61473
61474         Fix a problem seen only on nonconforming systems whereby ls.c's
61475         use of localtime, and then of gettimeofday would cause trouble:
61476         the localtime call used to initialize rpl_gettimeofday's save
61477         mechanism would clobber ls's current local time information so
61478         that in any long listing the first file would always be listed
61479         with date 1970-01-01.  Analysis by Volker Borchert.
61480
61481         * lib/gettimeofday.c (localtime): Undefine.
61482         (rpl_localtime): New function.
61483
61484 2002-05-27  Jim Meyering  <meyering@lucent.com>
61485
61486         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61487         localtime.
61488
61489         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61490         use the replacement function; it wouldn't resolve at link time.
61491         Reported by Volker Borchert.
61492
61493 2002-05-22  Jim Meyering  <meyering@lucent.com>
61494
61495         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61496         file-type.h.
61497         * lib/file-type.h: New file.
61498         * lib/file-type.c (file_type): New file/function.  Extracted from
61499         diffutils.
61500
61501 2002-04-30  Jim Meyering  <meyering@lucent.com>
61502
61503         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61504
61505 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61506
61507         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61508
61509 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61510
61511         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61512         Do not check for alloca.h (no longer used) or stdbool.h (was never
61513         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61514
61515 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61516
61517         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61518
61519 2002-04-29  Jim Meyering  <meyering@lucent.com>
61520
61521         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61522         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61523         Use AC_FUNC_STRNLEN here instead.
61524
61525         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61526         With autoconf-2.53a, it's part of AC_PROG_CC.
61527
61528 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61529
61530         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61531         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61532
61533 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61534
61535         * lib/sig2str.h, lib/sig2str.c: New files.
61536         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61537
61538 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61539
61540         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61541         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61542         of 127, since 64 is the largest conceivable number for ancient
61543         nonstandard hosts.
61544         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61545
61546 2002-04-28  Jim Meyering  <meyering@lucent.com>
61547
61548         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61549
61550 2002-04-24  Jim Meyering  <meyering@lucent.com>
61551
61552         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61553         (jm_PREREQ): Use it.
61554
61555         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61556         mach/mach.h fcntl.h.
61557         Check for this function: setlocale.
61558
61559 2002-04-24  Jim Meyering  <meyering@lucent.com>
61560
61561         * lib/gettext.h: New file, from Gettext.
61562         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61563         (libfetish_a_SOURCES): Add gettext.h.
61564
61565 2002-04-16  Jim Meyering  <meyering@lucent.com>
61566
61567         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61568         ut_pid, ut_id, ut_exit.
61569
61570 2002-04-16  Jim Meyering  <meyering@lucent.com>
61571
61572         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61573         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61574         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61575
61576 2002-04-12  Jim Meyering  <meyering@lucent.com>
61577
61578         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61579         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61580         existence of the getmntinfo function.  Needed for Darwin 5.3.
61581
61582         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61583         This is necessary at least on Darwin 5.3.
61584
61585         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61586         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61587         strnlen.o in the library, and that makes some versions of ranlib
61588         object.
61589
61590 2002-04-12  Jim Meyering  <meyering@lucent.com>
61591
61592         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61593
61594 2002-04-09  Jim Meyering  <meyering@lucent.com>
61595
61596         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61597         to be more precise.  Rather than saying we're checking whether the
61598         function `works', say what we're testing.
61599         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61600         Reported by Bruno Haible.
61601
61602 2002-03-10  Jim Meyering  <meyering@lucent.com>
61603
61604         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61605         Suggestion from Santiago Vila.
61606
61607 2002-03-08  Jim Meyering  <meyering@lucent.com>
61608
61609         * lib/rename.c: Mention that this wrapper is needed also on
61610         mips-dec-ultrix4.4 systems.
61611
61612 2002-03-02  Jim Meyering  <meyering@lucent.com>
61613
61614         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61615         not HAVE_CLOCK_SETTIME.
61616
61617 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61618
61619         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61620         Check for clock_settime.
61621
61622 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61623
61624         * lib/nanosleep.h: Rename to....
61625         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61626
61627         * lib/gettime.c: New file.
61628         * lib/settime.c: New file.
61629         * lib/stime.c: Remove.
61630
61631         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61632         timespec.h.  Remove nanosleep.h.
61633
61634 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61635
61636         * m4/acl.m4: New file.
61637         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61638         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61639
61640 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61641
61642         * lib/acl.c, lib/acl.h: New files.
61643         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61644
61645 2002-02-24  Jim Meyering  <meyering@lucent.com>
61646
61647         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61648         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61649         cause trouble.  Reported by Nelson Beebe.
61650
61651 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61652
61653         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61654         compilers that don't know that xalloc_die never returns.
61655
61656 2002-02-20  Jim Meyering  <meyering@lucent.com>
61657
61658         * lib/getdate.c: Regenerate using bison-1.33.
61659
61660 2002-02-17  Jim Meyering  <meyering@lucent.com>
61661
61662         * config/config.guess (main): Don't use `head -1'; it's no longer
61663         portable. Use `sed 1q' instead.
61664
61665 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61666
61667         * m4/codeset.m4: Upgrade to gettext-0.11.
61668         * m4/gettext.m4: Upgrade to gettext-0.11.
61669         * m4/glibc21.m4: Upgrade to gettext-0.11.
61670         * m4/iconv.m4: Upgrade to gettext-0.11.
61671         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61672         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61673         * m4/lib-ld.m4: New file, from gettext-0.11.
61674         * m4/lib-link.m4: New file, from gettext-0.11.
61675         * m4/lib-prefix.m4: New file, from gettext-0.11.
61676         * m4/progtest.m4: Upgrade to gettext-0.11.
61677
61678 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61679
61680         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61681         (jm_PREREQ): Use it.
61682
61683 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61684
61685         * lib/posixver.c, lib/posixver.h: New files.
61686         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61687
61688 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61689             Bruno Haible  <bruno@clisp.org>
61690
61691         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61692         (fwrite_success_callback): New declaration.
61693         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61694         print_unicode_char. Call failure callback instead of error.
61695         (fwrite_success_callback): New function.
61696         (exit_failure_callback): New function.
61697         (fallback_failure_callback): New function.
61698         (print_unicode_char): Call unicode_to_mb.
61699
61700 2002-01-26  Jim Meyering  <meyering@lucent.com>
61701
61702         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61703         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61704
61705 2002-01-26  Jim Meyering  <meyering@lucent.com>
61706
61707         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61708
61709 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61710
61711         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61712
61713 2002-01-22  Jim Meyering  <meyering@lucent.com>
61714
61715         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61716         Otherwise, some versions of automake would omit the rule that makes
61717         Makefile from Makefile.in.
61718
61719 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61720
61721         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61722         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61723         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61724         (memcoll): Set errno to zero if there is no error.
61725
61726         * lib/quotearg.c (quotearg_buffer_restyled):
61727         Fix bug with quoting buffers containing NUL when backslashing escapes.
61728         This bug was exposed by the other changes in this patch.
61729         (quotearg_n_options): New arg ARGSIZE.
61730         All callers changed.
61731         (quoting_options_from_style): New function.
61732         (quotearg_n_style): Use it.
61733         (quotearg_n_style_mem): New function.
61734
61735         * lib/quotearg.h (quotearg_n_style_mem): New function.
61736
61737 2002-01-19  Jim Meyering  <meyering@lucent.com>
61738
61739         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61740         Remove useless quotes: DF_PROG="df".
61741         * m4/strnlen.m4: New file.
61742
61743 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61744
61745         * lib/backupfile.c (ISDIGIT): Comment fix.
61746         * lib/getdate.y (ISDIGIT): Likewise.
61747         * lib/posixtm.c (ISDIGIT, year): Likewise.
61748         * lib/strverscmp.c (ISDIGIT): Likewise.
61749         * lib/userspec.c (ISDIGIT): Likewise.
61750
61751 2002-01-16  Jim Meyering  <meyering@lucent.com>
61752
61753         * lib/getdate.y: Add three semicolons, each just before a closing
61754         brace. Bison (as of version 1.31) no longer papers over that mistake.
61755
61756 2002-01-05  Jim Meyering  <meyering@lucent.com>
61757
61758         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61759
61760 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61761
61762         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61763         not silently exit merely because the output buffer happens to
61764         have nothing pending.
61765
61766 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61767
61768         See the big note in ../ChangeLog.
61769         * lib/human.c (suffixes): Prefer K to k for 1024.
61770         (generate_suffix_backwards): New function.
61771         (human_readable_inexact): Use it.
61772         * lib/xstrtol.c (__xstrtol): If there is no number but there
61773         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61774         Accept 'K' as well as 'k'.
61775
61776 2001-12-15  Jim Meyering  <meyering@lucent.com>
61777
61778         * lib/regex.h (__restrict_arr): Update from libc.
61779
61780         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61781         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61782         (STREQ): Define.
61783
61784 2001-12-14  Jim Meyering  <meyering@lucent.com>
61785
61786         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61787         Suggestion from Bruno Haible.
61788
61789 2001-12-10  Jim Meyering  <meyering@lucent.com>
61790
61791         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61792         xrealloc, Instead, include "xalloc.h".
61793         (initbuffer): Don't cast xmalloc return value to char*.
61794         (readline): Reword comment.
61795         Don't cast xrealloc return value to char*
61796         Return NULL, not 0.
61797
61798 2001-12-09  Jim Meyering  <meyering@lucent.com>
61799
61800         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61801         about `signed and unsigned type in conditional expression'.
61802         * lib/posixtm.c (posix_time_parse): Likewise.
61803
61804         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61805
61806         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61807         to avoid a pedantic warning.
61808
61809         * lib/getstr.c: Don't include assert.h.
61810         (getstr): Remove warning-evoking assertions.
61811         Return -1 if offset parameter is out of bounds.
61812         Change the type of a local from int to size_t.
61813
61814         * lib/strftime.c (my_strftime_localtime_r): Include this function
61815         definition in the `#if ! HAVE_TM_GMTOFF' block.
61816
61817         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61818         Include xalloc.h instead.
61819
61820 2001-12-02  Jim Meyering  <meyering@lucent.com>
61821
61822         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61823         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61824         included.
61825
61826         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61827         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61828
61829 2001-11-30  Akim Demaille  <akim@epita.fr>
61830
61831         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61832         before being defined.
61833
61834 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61835
61836         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61837         First arg is int, not unsigned.
61838         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61839         (SIZE_MAX, UINT_MAX): New macros.
61840         (quotearg_n_options): Abort if N is negative.
61841         Avoid overflow check on hosts where size_t is 64 bits and int
61842         is 32 bits, as overflow is impossible there.
61843         Fix off-by-one typo that caused unnecessary reallocation.
61844
61845 2001-11-27  Jim Meyering  <meyering@lucent.com>
61846
61847         * lib/tempname.c: Merge with version from libc.
61848         * lib/regex.c: Likewise.
61849
61850         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61851         systems for which STDC_HEADERS is 0, it was not included, resulting in
61852         a warning about an integer-to-pointer conversion problem with getenv.
61853         Reported by Volker Borchert.
61854
61855 2001-11-26  Jim Meyering  <meyering@lucent.com>
61856
61857         * lib/gtod.h: Remove file.
61858         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61859         * lib/gettimeofday.c: Don't include gtod.h.
61860         (GTOD_init): Remove function.
61861         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61862         Suggestion from Volker Borchert.
61863
61864 2001-11-23  Jim Meyering  <meyering@lucent.com>
61865
61866         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61867         it.
61868         * lib/hash.c (struct hash_table): Define it here instead.
61869
61870 2001-11-22  Jim Meyering  <meyering@lucent.com>
61871
61872         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61873
61874 2001-11-20  Jim Meyering  <meyering@lucent.com>
61875
61876         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61877         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61878
61879 2001-11-19  Jim Meyering  <meyering@lucent.com>
61880
61881         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61882         directory.  Use "conftestXXXXXX" as the template.
61883         Suggestion from Paul Eggert.
61884
61885         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61886         immediately, so the test doesn't mistakenly hit the max-open-files
61887         limit.
61888
61889 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61890
61891         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61892         (TEMPORARIES): New macro.
61893         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61894         removes an artificial limitation (e.g. HP-UX 10.20, where
61895         TMP_MAX is 17576).
61896
61897 2001-11-18  Jim Meyering  <meyering@lucent.com>
61898
61899         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61900
61901 2001-11-18  Jim Meyering  <meyering@lucent.com>
61902
61903         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61904         on SunOS 4.
61905
61906         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61907         files will be created before anything else.
61908
61909 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61910
61911         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61912         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61913
61914 2001-11-17  Jim Meyering  <meyering@lucent.com>
61915
61916         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61917         Prompted by a report from Bob Proulx.
61918
61919         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61920         Instead, require UTILS_FUNC_MKSTEMP.
61921
61922 2001-11-17  Jim Meyering  <meyering@lucent.com>
61923
61924         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61925         Now, that's done as part of AC_FUNC_STRTOD.
61926
61927 2001-11-17  Jim Meyering  <meyering@lucent.com>
61928
61929         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61930         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61931         rather than group writable.  Patch by Juan F. Codagnone.
61932
61933         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61934         xrealloc, Instead, include "xalloc.h".
61935
61936         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61937         Remove explicit declarations of xmalloc, xrealloc,
61938         and xstrdup.  Instead, include "xalloc.h".
61939
61940         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61941         unlocked-io.h.
61942         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61943         Likewise.
61944         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61945
61946         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61947         Reported by Padraig Brady.
61948
61949         * lib/mkstemp.c: #undef mkstemp.
61950         Include config.h.
61951         (rpl_mkstemp): Rename from mkstemp.
61952         Protoize.
61953
61954 2001-11-16  Jim Meyering  <meyering@lucent.com>
61955
61956         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61957         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61958         determine the amount of total physical memory, use pstat_getstatic.
61959         HPUX-11 doesn't define _SC_PHYS_PAGES.
61960         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61961         If sysconf couldn't be used to determine the amount of available
61962         physical memory, use both pstat_getstatic and pstat_getdynamic.
61963         Based on a patch from Bob Proulx.
61964
61965 2001-11-10  Jim Meyering  <meyering@lucent.com>
61966
61967         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61968         (jm_PREREQ): Use it.
61969
61970 2001-11-09  Jim Meyering  <meyering@lucent.com>
61971
61972         * m4/jm-macros.m4: Require autoconf-2.52f.
61973         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61974         Use these AC_-prefixed names, not the AM_-prefixed ones.
61975
61976         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61977
61978 2001-11-05  Jim Meyering  <meyering@lucent.com>
61979
61980         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61981
61982 2001-11-04  Jim Meyering  <meyering@lucent.com>
61983
61984         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61985         $DEFS.
61986
61987 2001-11-03  Jim Meyering  <meyering@lucent.com>
61988
61989         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61990         of AC_DEFUN.
61991
61992         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61993         know the name of the variable in the macro definition.
61994
61995 2001-11-03  Jim Meyering  <meyering@lucent.com>
61996
61997         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61998         in argmatch_to_argument call.
61999
62000         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
62001         argument.
62002
62003         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
62004         e.g., a fault due to an attempt to free a NULL pointer.
62005
62006 2001-11-01  Jim Meyering  <meyering@lucent.com>
62007
62008         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
62009         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
62010
62011 2001-11-01  Jim Meyering  <meyering@lucent.com>
62012
62013         * lib/dirfd.c, lib/dirfd.h: New files.
62014         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
62015
62016         * lib/hash.c (hash_print) [TESTING]: Clean up.
62017
62018 2001-10-22  Paul Eggert  <eggert@twinsun.com>
62019
62020         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
62021         to avoid a warning if -Wall.
62022
62023 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
62024
62025         * README: New file
62026         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
62027         (per RMS's instructions, this is now the canonical source)
62028         * lgpl/, gpl/: New directories.
62029
62030 2001-10-21  Paul Eggert  <eggert@twinsun.com>
62031
62032         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
62033
62034 2001-10-21  Jim Meyering  <meyering@lucent.com>
62035
62036         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
62037         this code would end up calling gettext even in packages built
62038         with --disable-nls.
62039         * lib/getopt.c (_): Likewise.
62040         * lib/regex.c (_): Likewise.
62041
62042 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62043
62044         * m4/error.m4 (jm_PREREQ_ERROR):
62045         Do not invoke AC_CHECK_FUNCS with strerror_r, as
62046         AC_FUNC_STRERROR_R does that.
62047         Check for strerror declaration.
62048
62049         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
62050         are supposed to have them these days.
62051         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
62052         Merge changes from latest Autoconf CVS.
62053         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
62054         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
62055         POSIX decided to standardize on the int flavor of strerror_r.
62056
62057 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62058
62059         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
62060         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
62061         Use strerror_r that is only a macro, even if it is not a function.
62062         (strerror): Check for HAVE_DECL_STRERROR before declaring.
62063         (private_strerror): Use prototypes, not old-style function definition.
62064         (print_errno_message): New function.
62065         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
62066         char*-flavored one.
62067         (error_tail, error, error_at_line): Use it.
62068
62069 2001-10-11  Jim Meyering  <meyering@lucent.com>
62070
62071         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
62072         and quote_n (1, ... to avoid clobbering a buffer.
62073
62074 2001-10-05  Jim Meyering  <meyering@lucent.com>
62075
62076         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
62077         hash-pjw.h.
62078         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
62079         * lib/hash-pjw.h: New file.
62080
62081 2001-09-30  Jim Meyering  <meyering@lucent.com>
62082
62083         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
62084         `struct fsstat' has the `f_fstypename' member.
62085         Use that to define FS_TYPE, which is now used to make
62086         the getfsstat link test tighter.
62087
62088 2001-09-30  Jim Meyering  <meyering@lucent.com>
62089
62090         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
62091         Include <sys/ucred.h>, for Apple Darwin.
62092         Include sys/mount.h and sys/fs_types.h only if available.
62093         (FS_TYPE): Define.
62094         (read_filesystem_list): Use FS_TYPE.
62095
62096 2001-09-29  Paul Eggert  <eggert@twinsun.com>
62097
62098         * lib/exclude.c (excluded_filename): 0 -> false, since it's
62099         a boolean context.
62100
62101 2001-09-29  Jim Meyering  <meyering@lucent.com>
62102
62103         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62104         [one-argument getmntent function]): Include stdio.h before mntent.h.
62105         SunOS 4.1.x needs it for the declaration of `FILE'.
62106         Patch by Volker Borchert.
62107
62108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62109         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
62110         sys/fs_types.h, and make the link-test for getfsstat guard #include
62111         directives with appropriate #if HAVE_*_H tests so that we can
62112         detect getfsstat on Apple Darwin1.3.7 systems.
62113         Reported by Nelson Beebe.
62114         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
62115
62116 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62117
62118         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62119         #defines strtoimax.  Also treat the other strto* functions
62120         like strtoimax.
62121
62122         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62123         Check for strtoul and strtoumax,
62124         as those declarations are made even in the signed case.
62125         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
62126         Likewise, for strtol and strtoimax.
62127
62128 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62129
62130         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62131         #defines strtoimax.  Also treat the other strto* functions
62132         like strtoimax.
62133
62134         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
62135         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
62136         (strtoimax, strtoumax): Do not declare if already defined as a macro.
62137
62138 2001-09-26  Jim Meyering  <meyering@lucent.com>
62139
62140         Most macros in unlocked-io.h had the wrong number of arguments.
62141         * lib/gen-uio: New script.
62142         (USE_UNLOCKED_IO): Define to 1 if not already defined.
62143         * lib/unlocked-io.hin: Remove file.
62144         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
62145         rather than trying to embed it here.
62146         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
62147         Reported by Padraig Brady.
62148
62149 2001-09-25  Volker Borchert  <bt@teknon.de>
62150
62151         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
62152         `result'.
62153
62154 2001-09-24  Jim Meyering  <meyering@lucent.com>
62155
62156         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
62157
62158 2001-09-23  Jim Meyering  <meyering@lucent.com>
62159
62160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
62161         instead of the mere test for existence of mntent.h.  The latter
62162         would get a false-positive on AIX 3.4 systems.
62163         In the outer getmntent if-block, don't die if neither of the getmntent
62164         tests succeeds.  Instead, just fall through and continue with the
62165         remaining tests.
62166
62167 2001-09-23  Jim Meyering  <meyering@lucent.com>
62168
62169         * lib/mountlist.c: Remove useless parentheses in #if directives.
62170         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
62171         the deprecated MOUNTED symbol is no longer defined in mntent.h.
62172
62173 2001-09-22  Jim Meyering  <meyering@lucent.com>
62174
62175         * m4/gettext.m4: New file.  From gettext.
62176         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62177         * m4/progtest.m4: Likewise
62178         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62179         * m4/glibc21.m4: Likewise.
62180
62181         * m4/libintl.m4: Remove.  No longer used.
62182
62183 2001-09-22  Jim Meyering  <meyering@lucent.com>
62184
62185         * lib/localcharset.c: Update from latest gettext.
62186         * lib/config.charset: Likewise.
62187
62188 2001-09-20  Jim Meyering  <meyering@lucent.com>
62189
62190         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62191         strtoimax.
62192         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62193         strtoumax.
62194
62195 2001-09-20  Jim Meyering  <meyering@lucent.com>
62196
62197         * lib/xstrtol.c (strtoimax): Guard declaration with
62198         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62199         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62200         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62201         (strtoumax): Likewise, for completeness (it wasn't necessary).
62202
62203 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62204
62205         * lib/strtoimax.c (HAVE_LONG_LONG):
62206         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62207         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62208         to work around bug in IBM C compiler.
62209
62210 2001-09-17  Jim Meyering  <meyering@lucent.com>
62211
62212         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62213         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62214         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62215         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62216         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62217         whenever the right hand side need not be expanded by the shell.
62218
62219 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62220
62221         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62222         library.  It's not correct, as some older glibcs are buggy.
62223         fnmatch wasn't fixed until glibc 2.2.
62224
62225         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62226         special shell magic here.
62227
62228 2001-09-16  Jim Meyering  <meyering@lucent.com>
62229
62230         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62231         * m4/jm-macros.m4: Require it.
62232
62233 2001-09-16  Jim Meyering  <meyering@lucent.com>
62234
62235         * lib/mkdir.c: New file.
62236
62237 2001-09-15  Jim Meyering  <meyering@lucent.com>
62238
62239         * m4/jm-macros.m4: Check for help2man.
62240
62241 2001-09-11  Jim Meyering  <meyering@lucent.com>
62242
62243         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62244         The body, by Paul Eggert, was moved here from configure.in.
62245         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62246
62247 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62248
62249         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62250         (jm_PREREQ): Use it.
62251
62252 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62253
62254         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62255         Use ssize_t, not int, to store result of readlink.
62256         Check for ssize_t overflow as well as size_t overflow,
62257         as POSIX says the result of readlink is implementation-defined
62258         when ssize_t overflows.
62259         Remove unnecessary cast to char*.
62260         Use free+malloc instead of realloc, as the storage doesn't need
62261         to be preserved and it's clearer and can be more efficient that way.
62262         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62263         * lib/xreadlink.h (xreadlink): Update prototype.
62264
62265 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62266
62267         * lib/xgetcwd.c: Revert some of the previous change; intead,
62268         fix the HAVE_GETCWD_NULL code to behave more like the
62269         !HAVE_GETCWD_NULL code used to.
62270
62271         Include "xalloc.h".
62272         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62273         invoke xalloc_die.
62274
62275 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62276
62277         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62278         sys/param.h, as pathmax.h includes them.
62279
62280 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62281
62282         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62283         (jm_PREREQ_XGETCWD): New macro.
62284
62285         * m4/getcwd.m4: New file.
62286
62287 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62288
62289         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62290         like the HAVE_GETCWD_NULL code.
62291         Include pathmax.h if not HAVE_GETCWD.
62292         Do not include xalloc.h.
62293         (INITIAL_BUFFER_SIZE): New symbol.
62294         Do not use xmalloc / xrealloc, since the caller is responsible for
62295         handling errors.  Preserve errno around `free' during failure.
62296         Do not overrun buffer when using getwd.
62297
62298 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62299
62300         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62301         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62302         getcwd (NULL, 0).
62303
62304 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62305
62306         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62307         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62308         spotted by Jim Meyering.
62309
62310 2001-09-03  Jim Meyering  <meyering@lucent.com>
62311
62312         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62313         failure.
62314
62315 2001-09-02  Jim Meyering  <meyering@lucent.com>
62316
62317         * lib/error.c: Update from GNU libc.
62318
62319 2001-09-01  Jim Meyering  <meyering@lucent.com>
62320
62321         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62322         Used by df.
62323
62324 2001-09-01  Jim Meyering  <meyering@lucent.com>
62325
62326         * lib/xreadlink.c: New file.
62327         * lib/xreadlink.h: New file.
62328         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62329         xreadlink.h.
62330
62331         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62332         doesn't conflict with sparc Solaris 7's definition in
62333         /usr/include/sys/int_types.h.
62334
62335         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62336         files.
62337         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62338         and strncasecmp as r-values.  Unixware didn't have declarations.
62339
62340 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62341
62342         * lib/xstrtol.h: Add copyright notice.
62343         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62344         LONGINT_INVALID_SUFFIX_CHAR.
62345
62346 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62347
62348         * lib/xstrtol.c (strtoimax): New decl.
62349
62350 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62351
62352         * lib/xgetcwd.c: Don't include pathmax.h.
62353         Include stdlib.h and unistd.h if available.
62354         Include xalloc.h.
62355         (xmalloc, xstrdup, free): Remove decls.
62356         (xgetcwd): Don't assume sizes fit in unsigned.
62357         Check for overflow when computing sizes.
62358         Simplify reallocation code.
62359
62360 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62361
62362         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62363         a directory's st_size can have an arbitrary value, so the old
62364         usage could waste an arbitrary amount of memory.  All uses
62365         changed.
62366         * lib/savedir.h: Update prototype.
62367
62368 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62369
62370         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62371
62372         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62373         old strtoimax.c.
62374
62375         Also, make the following further changes to make this file's
62376         configuration more similar to that of strtol.c:
62377         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62378         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62379         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62380         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62381         changed to signed values.
62382
62383         And make the following changes as well:
62384         Fix copyright notice, as 1999 was missing.
62385         (verify): New macro.
62386         (strtoimax): Check sizes at compile-time, not run-time.
62387         Prefer strtol to strtoll if both work.
62388         (main): Remove; it was not that useful and was a pain to maintain.
62389
62390         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62391
62392 2001-08-31  Jim Meyering  <meyering@lucent.com>
62393
62394         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62395         Use an initial, malloc'd, buffer of length 128 rather than
62396         a statically allocated one of length 1024.
62397
62398 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62399
62400         Simplify code, partly by assuming autoconf 2.52 semantics.
62401
62402         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62403
62404         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62405         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62406         All uses removed.
62407         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62408         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62409         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62410         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62411         jm_AC_HEADER_INTTYPES_H.
62412         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62413
62414         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62415
62416         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62417         Quote first arg of AC_DEFUN.
62418         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62419         since they are needed to parse the include file even if we need
62420         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62421         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62422         but with opposite signedness.
62423
62424 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62425
62426         Merge 'exclude' changes from tar 1.13.22.
62427         This fixes one or two unlikely storage allocation overflow bugs,
62428         but doesn't change user-visible behavior otherwise.
62429
62430 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62431
62432         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62433         (jm_PREREQ_EXCLUDE): New macro.
62434
62435 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62436
62437         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62438         tm to be declared.
62439
62440 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62441
62442         * lib/hash.c: Remove '2001' from copyright notice.
62443
62444 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62445
62446         * lib/full-write.h: New file.
62447         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62448         * lib/full-write.c: Correct credits, as cccp.c no longer
62449         exists and anyway it was so heavily changed from the old cccp
62450         code as to be unrecognizable.  Include full-write.h.
62451         (full_write) Return size_t, with short writes meaning failure.
62452         All callers changed.  This fixes a bug with large buffers
62453         on 64-bit hosts.
62454         * lib/utime.c: Include full-write.h.
62455
62456 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62457
62458         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62459         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62460         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62461         Include if available.
62462         (<xalloc.h>): Include
62463         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62464         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62465         collide with FNM macros.
62466         (struct patopts): New struct.
62467         (struct exclude): Use it, as exclude patterns now come with options.
62468         (new_exclude): Support above changes.
62469         (new_exclude, add_exclude_file):
62470         Initial size must now be a power of two to simplify overflow checking.
62471         (free_exclude, fnmatch_no_wildcards): New function.
62472         (excluded_filename): No longer requires options arg, as the options
62473         are determined by add_exclude.  Now returns bool, not int.
62474         (excluded_filename, add_exclude):
62475         Add support for the fancy new exclusion options.
62476         (add_exclude, add_exclude_file): Now takes int options arg.
62477         Check for arithmetic overflow when computing sizes.
62478         (add_exclude_file): xrealloc might modify errno, so don't
62479         realloc until after errno might be used.
62480
62481         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62482         New macros.
62483         (free_exclude): New decl.
62484         (add_exclude, add_exclude_file): Now takes int options arg.
62485         (excluded_filename): No longer requires options arg, as the options
62486         are determined by add_exclude.  Now returns bool, not int.
62487
62488 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62489
62490         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62491
62492 2001-08-27  Jim Meyering  <meyering@lucent.com>
62493
62494         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62495
62496         * lib/version-etc.c (N_): Remove definition.
62497         Revert most of last change.
62498         Instead, simply don't mark the `Copyright...' string for translation.
62499         Based on advice from Paul Eggert.
62500
62501         * lib/strtoxmax.c: Tweak comment.
62502
62503 2001-08-26  Jim Meyering  <meyering@lucent.com>
62504
62505         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62506
62507         * m4/xstrtoimax.m4: New file.
62508         * m4/xstrtoumax.m4: Add comments explaining why we
62509         AC_REPLACE_FUNCS(strtol).
62510
62511 2001-08-26  Jim Meyering  <meyering@lucent.com>
62512
62513         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62514         of copyright with `%s' so translators don't get an untranslated
62515         message in 2002.
62516         (COPYRIGHT_YEAR): Define.
62517         (version_etc): Use fprintf rather than fputs.
62518         Suggestion from Ulrich Drepper.
62519
62520         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62521
62522         * lib/strtoll.c: New file, from GNU libc.
62523         * lib/xstrtoimax.c: New file.
62524
62525         * lib/xstrtol.h: Add xstrtoimax.
62526         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62527         * lib/strtoimax.c: New file.  Likewise, but first define
62528         STRTOUXMAX_SIGNED.
62529
62530         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62531         ...
62532         * lib/strtoxmax.c: ... then renamed to this.
62533
62534 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62535
62536         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62537         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62538         (jm_AC_TYPE_INTMAX_T): New macro.
62539         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62540
62541         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62542
62543         * m4/longlong.m4: Renamed from ulonglong.m4.
62544         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62545         * m4/uintmax_t.m4: Removed.
62546
62547 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62548
62549         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62550         Port to Solaris 8, where 'sed' requires a space after the 'r'
62551         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62552         Redirect output to $tmp just once.
62553
62554 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62555
62556         * lib/addext.c (<errno.h>): Include.
62557         (errno): Declare if not defined.
62558         (addext): Work correctly when pathconf returns -1 and leaves
62559         errno alone because there is no limit.  Also, work even if
62560         pathconf returns a value greater than SIZE_MAX.
62561
62562 2001-08-12  Jim Meyering  <meyering@lucent.com>
62563
62564         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62565         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62566         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62567         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62568         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62569         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62570         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62571         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62572         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62573         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62574         utime.m4, utimes.m4, xstrtoumax.m4:
62575         Quote the first argument in each use of AC_DEFUN.
62576
62577 2001-08-12  Jim Meyering  <meyering@lucent.com>
62578
62579         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62580         Simply `return getcwd (NULL, 0);'.
62581         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62582         Use 1300 as initial value for length, not PATH_MAX.
62583
62584         * lib/pathmax.h: Clean up cpp syntax.
62585
62586 2001-08-12  Jim Meyering  <meyering@lucent.com>
62587
62588         * lib/gettimeofday.c: New file.
62589         * lib/gtod.h: New file.
62590         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62591
62592 2001-08-05  Jim Meyering  <meyering@lucent.com>
62593
62594         * m4/jm-macros.m4: Require autoconf-2.52.
62595
62596 2001-08-04  Jim Meyering  <meyering@lucent.com>
62597
62598         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62599         stmt, to get in sync with glibc.
62600
62601 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62602
62603         The following changes are from gettext 0.10.39 as maintained by
62604         Bruno Haible.
62605
62606         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62607         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62608         with inverted sense.  All uses changed.
62609
62610         * lib/mbswidth.c: Don't include <limits.h>.
62611         Include <stdlib.h> and <string.h> unconditionally.
62612         (iswcntrl, mbsinit, ISCNTRL): New macros.
62613         (mbsnwidth): Use K&R style function declarations.
62614         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62615         can optimize it when MB_CUR_MAX == 1.
62616         The width of control characters is zero, not 1.
62617
62618 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62619
62620         The following changes are from gettext 0.10.39 as maintained by
62621         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62622
62623         * m4/codeset.m4: Upgrade to serial AM1.
62624         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62625         all uses changed.  Quote first arg of AC_DEFUN.
62626         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62627
62628         * m4/iconv.m4: Upgrade to serial AM2.
62629         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62630         Add --with-libconv-prefix.
62631         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62632         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62633         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62634         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62635         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62636
62637         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62638         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62639         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62640         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62641         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62642         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62643         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62644         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62645         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62646
62647         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62648         string.h any more.
62649
62650         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62651         not the default value.
62652
62653         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62654         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62655         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62656         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62657         Also check for iswcntrl, used for wcwidth fallback.
62658         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62659         to Autoconf 2.13.
62660
62661 2001-08-03  Jim Meyering  <meyering@lucent.com>
62662
62663         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62664         as it was in the original.  Reported by Paul Eggert.
62665
62666 2001-07-16  Jim Meyering  <meyering@lucent.com>
62667
62668         * m4/gettimeofday.m4: New file.
62669         Prompted by a report from Bernhard Baehr.
62670
62671 2001-07-15  Jim Meyering  <meyering@lucent.com>
62672
62673         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62674         stuff. Now it's in ../Makefile.cfg.
62675
62676 2001-07-15  Jim Meyering  <meyering@lucent.com>
62677
62678         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62679         (BUILT_SOURCES): Add unlocked-io.h.
62680         (io_functions): Define.
62681         (unlocked-io.h): New rule.
62682         (DISTCLEANFILES): Add unlocked-io.h.
62683         (all-local): Depend on unlocked-io.h, to ensure it is created.
62684
62685         * lib/unlocked-io.hin: New file
62686
62687         * lib/regex.c: Update from glibc.
62688
62689 2001-07-05  Jim Meyering  <meyering@lucent.com>
62690
62691         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62692         recommendation.
62693         (libfetish_a_SOURCES): Put all .h files here instead.
62694         Remove a thus-exposed (better checks in automake) duplicate and
62695         two unnecessary .h files.
62696
62697 2001-07-04  Jim Meyering  <meyering@lucent.com>
62698
62699         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62700         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62701         distcheck failure.
62702
62703 2001-07-02  Jim Meyering  <meyering@lucent.com>
62704
62705         The following changes were prompted by suggestions from Bruno Haible.
62706
62707         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62708         is now generated.
62709         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62710         definition of EXTRA_DIST.
62711         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62712         ensure that the generated file is created/updated whenever the list
62713         of $(unlocked_functions) is changed.
62714         (jm-glibc-io.m4): New rule.
62715         (unlocked-io.h): New rule -- currently unused.
62716
62717 2001-06-24  Jim Meyering  <meyering@lucent.com>
62718
62719         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62720         unmatched right bracket, rather than kludging it with an extra,
62721         falsely-matching quote in a comment.  Patch by Akim Demaille.
62722
62723 2001-06-11  Jim Meyering  <meyering@lucent.com>
62724
62725         * lib/regex.c: Update from GNU libc.
62726
62727 2001-05-27  Jim Meyering  <meyering@lucent.com>
62728
62729         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62730         Check for ut_type in struct utmp.
62731
62732 2001-05-27  Jim Meyering  <meyering@lucent.com>
62733
62734         * lib/readutmp.h (UT_TYPE): Define.
62735
62736 2001-05-24  Jim Meyering  <meyering@lucent.com>
62737
62738         * lib/argmatch.c: Include "quote.h".
62739         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62740         quote function.  Reported by Göran Uddeborg.
62741
62742 2001-05-22  Jim Meyering  <meyering@lucent.com>
62743
62744         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62745         now that we use the package-supplied version unconditionally.
62746         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62747
62748 2001-05-21  Jim Meyering  <meyering@lucent.com>
62749
62750         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62751         shell syntax errors.
62752
62753 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62754
62755         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62756
62757 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62758
62759         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62760         Don't bother to check library strftime, since
62761         we'll be using our own my_strftime function anyway.
62762         Define my_strftime instead of strftime.
62763
62764 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62765
62766         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62767         which is not yet declared.
62768
62769 2001-05-15  Jim Meyering  <meyering@lucent.com>
62770
62771         * m4/regex.m4: Use proper quoting so brackets appear in the test
62772         program.
62773         Reported by, and with help from, Bruno Haible.
62774
62775 2001-05-13  Jim Meyering  <meyering@lucent.com>
62776
62777         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62778         undefined.
62779
62780 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62781
62782         dirname code cleanup.  base_name now behaves more compatibly
62783         with POSIX basename when given file names that have trailing
62784         slashes, and similarly for dir_name.  Add new primitives
62785         base_len and dir_len.  Put the directory-name-related decls
62786         into dirname.h.
62787
62788         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62789         * lib/backupfile.c (base_name): Likewise.
62790         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62791         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62792         * lib/makepath.c (strip_trailing_slashes): Likewise.
62793         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62794         ISSLASH): Likewise.
62795         * lib/rename.c (strip_trailing_slashes): Likewise.
62796         * lib/same.c (base_name): Likewise.
62797         * lib/stripslash.c (ISSLASH): Likewise.
62798
62799         * lib/addext.c: Include <dirname.h> after size_t is defined.
62800         * lib/backupfile.c: Likewise.
62801
62802         * lib/addext.c (addext): Use base_len to trim redundant
62803         trailing slashes instead of doing it ourselves.
62804         But do not trim the last slash if it is not redundant.
62805
62806         * lib/backupfile.c (find_backup_file_name,
62807         max_backup_version): Use base_len instead of rolling it ourselves.
62808         Handle the case of "" and (on DOS) "C:" correctly.
62809
62810         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62811         needed. Include <string.h>, <dirname.h>.
62812         (base_name): Allow file names ending in slashes, other than names
62813         that are all slashes.  In this case, return the basename followed
62814         by the slashes.  This is more general, and can be used in places
62815         where the original base_name purposely had an assertion failure.
62816         (base_len): New function.
62817
62818         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62819         Do not include <assert.h>; no longer needed.
62820         Include xalloc.h.
62821         (memrchr): Remove decl.
62822         (dir_name_r): Remove.
62823         (dir_len): Renamed from dirlen.  All callers changed.
62824         Rewrite in terms of base_name, for simplicity and consistency.
62825         (dir_name): Never return NULL.  All callers changed.
62826         Do not include <stdlib.h> in test program; no longer needed.
62827         return 0; is fine for test program.
62828
62829         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62830         New macros.
62831         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62832
62833         * lib/path-concat.c (path_concat): Use base_len to compute
62834         base length, not strlen; this means we cannot rely on memcpy
62835         to null-terminate.
62836
62837         * lib/same.c (STREQ): Remove.
62838         (same_name): Handle the case where the basename ends in trailing '/'.
62839
62840         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62841         a slash was stripped.  Do not strip the last slash after a
62842         file system prefix.
62843
62844 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62845
62846         * lib/Makefile.am (libfetish_a_SOURCES):
62847         Add strftime.c, since we now compile it on all hosts.
62848
62849         * lib/strftime.c (my_strftime):
62850         Define to nstrftime if emacs, but only if my_strftime is not defined.
62851         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62852         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62853         Add one more extra argument: a nanoseconds value.
62854         All uses changed.
62855         (ns): New macro.
62856         (my_strftime function): Add %N format.
62857         (emacs_strftimeu): Renamed from emacs_strftime,
62858         with extra ut argument.
62859
62860 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62861
62862         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62863
62864 2001-04-21  Jim Meyering  <meyering@lucent.com>
62865
62866         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62867         doesn't interfere.
62868
62869 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62870
62871         * m4/ftruncate.m4: Check for chsize.
62872         Link with ftruncate.o unconditionally if ftruncate is missing.
62873         This was required when cross-compiling to i586-mingw32msvc.
62874
62875 2001-04-08  Jim Meyering  <meyering@lucent.com>
62876
62877         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62878         recomputed; that's necessary when the offset spans a DST transition.
62879         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62880
62881 2001-04-02  Jim Meyering  <meyering@lucent.com>
62882
62883         * lib/regex.h, regex.c: Update from GNU libc.
62884
62885 2001-03-24  Jim Meyering  <meyering@lucent.com>
62886
62887         * m4/jm-macros.m4: Require autoconf-2.49d.
62888
62889 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62890
62891         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62892
62893 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62894
62895         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62896
62897 2001-03-17  Jim Meyering  <meyering@lucent.com>
62898
62899         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62900         now that the version in autoconf is equivalent.
62901         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62902
62903         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62904         Suggestion from Akim Demaille.
62905
62906         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62907         (jm_PREREQ_TEMPNAME): New function.
62908
62909 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62910
62911         * lib/tempname.c (uint64_t): Define to uintmax_t if
62912         not defined, and if UINT64_MAX is not defined.
62913         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62914         Reported by John David Anglin.
62915
62916 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62917
62918         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62919         resolve alias if codeset is empty.
62920         * lib/config.charset (BeOS): Use wildcard syntax.
62921
62922 2001-03-13  Jim Meyering  <meyering@lucent.com>
62923
62924         * lib/path-concat.c (path_concat)
62925         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62926         concatenating e.g., `C:' and `foo'.
62927         From Bruno Haible.
62928
62929 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62930
62931         * lib/localcharset.c (locale_charset): Don't use
62932         setlocale(LC_CTYPE,NULL). Don't return NULL.
62933         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62934
62935 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62936
62937         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62938         support for DOS/DJGPP.
62939
62940 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62941
62942         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62943         lacks mkstemp.  Compile our own tempname.c if we compile our own
62944         mkstemp.c, as mkstemp relies on tempname.
62945
62946 2001-03-01  Jim Meyering  <meyering@lucent.com>
62947
62948         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62949         AH_VERBATIM really does output its argument verbatim.
62950
62951 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62952
62953         * lib/Makefile.am (libfetish_a_SOURCES):
62954         Add dup-safer.c, fopen-safer.c.
62955         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62956
62957         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62958         * lib/unistd-safer.h: New files.
62959
62960 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62961
62962         The mkstemp replacement is taken from glibc 2.2.2, with some
62963         portability fixes for use outside glibc, as follows:
62964
62965         * lib/tempname.c (struct_stat64): New macro.
62966         (direxists, __gen_tempname): Use it.
62967         This avoids a portability problem with Solaris 8.
62968
62969         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62970         (<stddef.h>, <stdint.h>, <string.h>):
62971         Include only if STDC_HEADERS || _LIBC.
62972         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62973         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62974         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62975         (__set_errno): Define this macro if <errno.h> doesn't.
62976         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62977         Define these macros if <stdio.h> doesn't.
62978         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62979         Define these macros if <sys/stat.h>
62980         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62981         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62982         __xstat64): Define if not _LIBC.
62983         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62984         (__gen_tempname): Invoke gettimeofday only if
62985         HAVE_GETTIMEOFDAY || _LIBC;
62986         otherwise, fall back on plain "time".
62987         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62988
62989         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62990
62991         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62992
62993 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62994
62995         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62996
62997 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62998
62999         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
63000         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
63001         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
63002         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
63003
63004 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63005
63006         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
63007         Remove workaround macros for hosts that have mbrtowc but not
63008         mbstate_t, as we now insist on proper declarations for both
63009         before using mbrtowc.
63010
63011 2001-02-17  Jim Meyering  <meyering@lucent.com>
63012
63013         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
63014         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
63015         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
63016         UnixWare 7.1.1.
63017
63018         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
63019         rather than AC_CACHE_VAL.
63020
63021 2001-02-17  Jim Meyering  <meyering@lucent.com>
63022
63023         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
63024         around included file name.
63025
63026         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
63027
63028         * lib/strftime.c: Update from GNU libc (the only changes were to
63029         comments).
63030
63031 2001-02-17  Jim Meyering  <meyering@lucent.com>
63032
63033         * lib/regex.c: Update from libc.
63034
63035 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
63036
63037         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
63038         clash.
63039
63040 2001-02-16  Paul Eggert  <eggert@twinsun.com>
63041
63042         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
63043         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
63044         Reported by Mark Hounschell via Paul Eggert.
63045
63046 2001-02-07  Jim Meyering  <meyering@lucent.com>
63047
63048         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
63049
63050 2001-02-05  Jim Meyering  <meyering@lucent.com>
63051
63052         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
63053         it includes the patch required for `large file' support with at least
63054         HP-UX's 10.20 /bin/cc.
63055
63056 2001-02-03  Jim Meyering  <meyering@lucent.com>
63057
63058         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
63059         AS_IF, now that it works once again (mysteriously).
63060         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63061
63062 2001-01-30  Jim Meyering  <meyering@lucent.com>
63063
63064         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
63065         * m4/chown.m4: Rename conftestchown to conftest.chown.
63066         * m4/rename.m4: s/conftestdir/conftest.d1/ and
63067         s/conftestdir2/conftest.d2/.
63068         * m4/utimes.m4: s/conftestdata/conftest.data/
63069         Inspired by Pavel Roskin's change in autoconf.
63070
63071 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
63072
63073         * lib/config.charset: Update for FreeBSD 4.2.
63074
63075 2001-01-27  Jim Meyering  <meyering@lucent.com>
63076
63077         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
63078         a use of AS_IF.
63079         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63080
63081 2001-01-26  Jim Meyering  <meyering@lucent.com>
63082
63083         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
63084         quotearg.c includes it.
63085
63086 2001-01-26  Jim Meyering  <meyering@lucent.com>
63087
63088         * lib/quotearg.c: Include stddef.h.
63089         * lib/quote.c: Include stddef.h.
63090         Reported by Axel Kittenberger.
63091
63092         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
63093         line in double quotes so that it evokes a better diagnostic.
63094         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
63095         Reported by Axel Kittenberger.
63096
63097 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
63098
63099         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
63100         as if it was a `charset'.
63101
63102 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63103
63104         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
63105         has const.
63106
63107 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63108
63109         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
63110         to avoid a warning.  Add back 'const' to inptr.
63111
63112 2001-01-20  Jim Meyering  <meyering@lucent.com>
63113
63114         Be sure that headers are checked before used in code compiled
63115         for the type checks.
63116         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
63117         In place of that, invoke jm_CHECK_ALL_TYPES.
63118         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
63119         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
63120         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
63121         The check for ssize_t was mistakenly run before the test for unistd.h.
63122
63123         The configure-time check for stdbool.h was missing.
63124         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
63125         (jm_PREREQ_HASH): New function.
63126
63127 2001-01-17  Jim Meyering  <meyering@lucent.com>
63128
63129         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
63130         for autoconf-2.49c.
63131         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
63132
63133 2001-01-16  Jim Meyering  <meyering@lucent.com>
63134
63135         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
63136         From Bruno Haible.
63137
63138 2001-01-14  Jim Meyering  <meyering@lucent.com>
63139
63140         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
63141         foo and bar.  Create conftestdir/ in the script, not in the C code.
63142         Remove directories in the script, not in the C code.
63143         Remove conftestdir{,2} before trying to create the directory.
63144         Make the entire configure script fail if the mkdir fails.
63145
63146 2001-01-14  Jim Meyering  <meyering@lucent.com>
63147
63148         * lib/rename.c: New file.  From Volker Borchert.
63149         Include stdlib.h, string.h or strings.h, and xalloc.h.
63150         Use strip_trailing_slashes rather than open-coding it.
63151
63152 2001-01-03  Paul Eggert  <eggert@twinsun.com>
63153
63154         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
63155
63156 2001-01-03  Jim Meyering  <meyering@lucent.com>
63157
63158         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
63159         of local `inptr' to avoid warning with some system declarations of
63160         iconv.
63161
63162 2001-01-02  Volker Borchert  <bt@teknon.de>
63163
63164         * m4/rename.m4: New file.
63165         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
63166
63167 2001-01-01  Jim Meyering  <meyering@lucent.com>
63168
63169         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
63170         even on systems with utmpx.h.  It's necessary for the declaration of
63171         utmp's ut_user member.  Reported by Andreas Jaeger.
63172
63173         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
63174         available. They are required for the declarations of getgrgid and
63175         getpwuid resp.
63176         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63177         Reported by Andreas Jaeger.
63178
63179 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63180
63181         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63182         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63183         so `make install' also works in VPATH builds.
63184
63185 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63186
63187         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63188         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63189         can be used in subdirectories.
63190
63191 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63192
63193         * lib/modechange.c: Do not assume that mode_t uses the
63194         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63195         the other-execute bit of FOO even if S_IXOTH != 1.
63196
63197         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63198         WOTH, XOTH, ALLM): New macros.
63199         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63200          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63201         Use them.
63202         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63203         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63204         (mode_compile):
63205         No need to use uintmax_t; unsigned long is long enough.
63206         Don't bother to get suffix since we don't use it.
63207
63208 2000-12-26  Jim Meyering  <meyering@lucent.com>
63209
63210         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63211         better with autoheader.
63212
63213 2000-12-24  Jim Meyering  <meyering@lucent.com>
63214
63215         * lib/hash.c (is_prime): Return explicit boolean values.
63216         (hash_get_first): Return NULL to appease Irix5.6's 89.
63217         Reported by Nelson Beebe.
63218
63219 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63220
63221         * lib/localcharset.c (locale_charset): Add support for Win32.
63222
63223 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63224
63225         * lib/physmem.h, lib/physmem.c: New files.
63226
63227         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63228         (noinst_HEADERS): Add physmem.h.
63229
63230         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63231         't' for compatibility with Solaris 8 sort.
63232
63233 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63234
63235         * lib/config.charset: Add support for BeOS.
63236
63237 2000-12-17  Jim Meyering  <meyering@lucent.com>
63238
63239         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63240         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63241
63242 2000-12-16  Jim Meyering  <meyering@lucent.com>
63243
63244         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63245         N and M) would have treated it like `chown N:N FILE'.
63246
63247         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63248
63249 2000-12-16  Jim Meyering  <meyering@lucent.com>
63250
63251         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63252         SHELLS_FILE to a file name that's useful on djgpp systems.
63253         Include stdlib.h.
63254         (ADDITIONAL_DEFAULT_SHELLS): Define.
63255         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63256         Based mostly on a patch from Prashant TR.
63257
63258 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63259
63260         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63261         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63262         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63263
63264 2000-12-08  Andreas Schwab  <schwab@suse.de>
63265
63266         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63267         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63268
63269 2000-12-07  Jim Meyering  <meyering@lucent.com>
63270
63271         * lib/stripslash.c (ISSLASH): Define.
63272         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63273         `/'.
63274         From Prashant TR.
63275
63276         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63277         (dir_name_r): Declare this function as static.
63278         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63279         manifest itself on a name containing a mix of slashes and
63280         backslashes.
63281         Make this function work with names starting with a DOS-style
63282         drive letter and colon prefix.
63283         (dir_name): Append `.' if necessary.
63284         Based mostly on patches from Prashant TR and Eli Zaretskii.
63285
63286         * lib/dirname.h (dir_name_r): Remove prototype.
63287
63288 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63289
63290         * m4/off_t-format.m4: Remove this file.
63291         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63292
63293 2000-12-06  Jim Meyering  <meyering@lucent.com>
63294
63295         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63296         replacement strtoull, we may well need the replacement strtoul, too.
63297         Check for declarations of strtoul and strtoull.
63298         Check for strtol.  Mainly as a cue to cause automake to include
63299         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63300         Check for limits.h -- strtol.c needs it.
63301
63302 2000-12-05  Jim Meyering  <meyering@lucent.com>
63303
63304         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63305
63306 2000-12-04  Jim Meyering  <meyering@lucent.com>
63307
63308         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63309         Also include memory.h, stdlib.h, unistd.h if appropriate.
63310         Reported by Andreas Jaeger (conflicting declaration of malloc).
63311
63312 2000-12-02  Jim Meyering  <meyering@lucent.com>
63313
63314         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63315         * m4/jm-macros.m4 (jm_MACROS): require it.
63316
63317 2000-12-02  Jim Meyering  <meyering@lucent.com>
63318
63319         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63320
63321 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63322
63323         * lib/memrchr.c: Include <config.h> before any system include file.
63324
63325 2000-11-30  Jim Meyering  <meyering@lucent.com>
63326
63327         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63328
63329 2000-11-30  Jim Meyering  <meyering@lucent.com>
63330
63331         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63332
63333 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63334
63335         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63336
63337 2000-11-26  Jim Meyering  <meyering@lucent.com>
63338
63339         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63340
63341 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63342
63343         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63344         size of (size_t) -1; it's not portable.
63345
63346 2000-11-17  Jim Meyering  <meyering@lucent.com>
63347
63348         * lib/strstr.c: Update from GNU libc.
63349
63350 2000-11-17  Akim Demaille  <akim@epita.fr>
63351
63352         * lib/obstack.h: Formatting changes.
63353         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63354         prevent type checking.
63355         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63356         cast the value to (void *): assigning a `foo *' to a `void *'
63357         variable is valid.
63358         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63359
63360 2000-11-16  Jim Meyering  <meyering@lucent.com>
63361
63362         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63363
63364 2000-11-11  Jim Meyering  <meyering@lucent.com>
63365
63366         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63367
63368 2000-11-10  Jim Meyering  <meyering@lucent.com>
63369
63370         * lib/obstack.h: Update from GNU libc.
63371         * lib/obstack.c: Likewise.
63372
63373 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63374
63375         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63376
63377 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63378
63379         * lib/getusershell.c (setusershell): Use rewind rather than
63380         fseek/fseeko, to avoid configuration hassles with fseeko.
63381         Don't bother opening SHELLS_FILE if shellstream is NULL;
63382         it's not necessary.
63383
63384 2000-11-05  Jim Meyering  <meyering@lucent.com>
63385
63386         * lib/makepath.h (make_dir): Declare.
63387         * lib/makepath.c (make_dir): Remove `static' attribute.
63388         Tweak a comment.
63389
63390 2000-11-04  Jim Meyering  <meyering@lucent.com>
63391
63392         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63393
63394 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63395
63396         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63397         last one in a bucket, advance to the next bucket.
63398
63399 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63400
63401         * lib/fnmatch.c: Do not comment out all the code if we are using
63402         the GNU C library, because in some cases we are replacing buggy
63403         code in the GNU C library itself.
63404
63405 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63406
63407         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63408         (regex_compile): Catch bogus \(\1\).
63409
63410 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63411
63412         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63413         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63414         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63415
63416 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63417
63418         * lib/error.h, getline.h, modechange.h:
63419         Remove "2000" from Copyright line, as the file hasn't been
63420         changed this year other than in the copyright notice.
63421
63422         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63423         was changed this year.
63424
63425 2000-10-29  Jim Meyering  <meyering@lucent.com>
63426
63427         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63428         renaming.
63429         * m4/ls-mntd-fs.m4: Likewise
63430
63431 2000-10-29  Jim Meyering  <meyering@lucent.com>
63432
63433         * lib/xstat.in: Fix grammar in comment.
63434
63435 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63436
63437         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63438         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63439         doesn't define __restrict_arr.
63440
63441 2000-10-28  Jim Meyering  <meyering@lucent.com>
63442
63443         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63444         (jm_PREREQ_MEMCHR): New function.
63445
63446 2000-10-28  Jim Meyering  <meyering@lucent.com>
63447
63448         * lib/memchr.c: Update from libc.
63449         Adjust for portability:
63450         [HAVE_STDLIB_H]: Include stdlib.h.
63451         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63452         Undef __memchr, too.
63453         [!weak_alias]: Define __memchr to memchr.
63454
63455         * lib/regex.c: Update from libc.
63456         * lib/regex.h: Likewise.
63457         * lib/getopt1.c: Likewise.
63458         * lib/memcmp.c: Likewise.
63459
63460         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63461         Avoid using fseek, when possible -- it's broken by design.
63462         Patch by Ulrich Drepper.
63463
63464 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63465
63466         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63467         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63468         Giving in to popular pressure to shut up the compiler with casts.
63469
63470 2000-10-26  Jim Meyering  <meyering@lucent.com>
63471
63472         * lib/strftime.c: Update from libc.
63473
63474 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63475
63476         * regex.c: More `unsigned char' -> `re_char' changes.
63477         Also change several `int' into `re_wchar_t'.
63478         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63479         (PUSH_FAILURE_POINTER): Don't cast any more.
63480         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63481         We want GCC to complain, since this piece of code makes
63482         re_match non-reentrant, which *should* be fixed.
63483         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63484         (EXTEND_BUFFER): Use RETALLOC.
63485         (SET_LIST_BIT): Don't cast.
63486         (re_wchar_t): New type.
63487         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63488         that those two functions will always properly return.
63489         (IMMEDIATE_QUIT_CHECK): Cast to void.
63490         (analyse_first): Use recursion rather than an explicit stack.
63491         (re_compile_fastmap): Can't fail anymore.
63492         (re_search_2): Don't check re_compile_fastmap for failure.
63493         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63494         Now also sets the new value (passed in a new argument).
63495         (re_match_2_internal): Use it.
63496         Also, use a new var `reg' of type size_t when looping through regs
63497         rather than reuse the inappropriate `mcnt'.
63498
63499 2000-10-25  Jim Meyering  <meyering@lucent.com>
63500
63501         * lib/obstack.c: Update from libc.
63502
63503 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63504
63505         * regex.c (regex_compile): Change the way of handling a range from
63506         a char less than 256 to a char not less than 256.
63507
63508 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63509
63510         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63511         NT-Emacs only.
63512         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63513         so that re_search functions only quit when callers expect them to.
63514
63515 2000-10-23  Jim Meyering  <meyering@lucent.com>
63516
63517         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63518         wrong.  That set_locale call must not have any side effects.
63519         From Paul Eggert.
63520
63521 2000-10-22  Jim Meyering  <meyering@lucent.com>
63522
63523         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63524         [CYCLIC]: Remove now-unused definition.
63525
63526         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63527         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63528         Suggestion from Ulrich Drepper.
63529
63530 2000-10-21  Jim Meyering  <meyering@lucent.com>
63531
63532         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63533         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63534         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63535
63536 2000-10-21  Jim Meyering  <meyering@lucent.com>
63537
63538         * lib/dirname.c (memrchr): Declare if necessary.
63539         (dir_name): Remove the restriction that there be no
63540         trailing slashes.  Now, this code skips past them, effectively
63541         ignoring them.
63542         [TEST_DIRNAME] (main): New unit tests.
63543
63544         * lib/memrchr.c: New file from GNU libc.
63545         Undef __memrchr, too.
63546         [!weak_alias]: Define __memrchr to memrchr.
63547         Guard weak_alias use with `#ifdef weak_alias'.
63548
63549 2000-10-21  Jim Meyering  <meyering@lucent.com>
63550
63551         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63552         (dir_name): Use dir_name_r.
63553         * lib/dirname.h (dir_name_r): Declare it.
63554
63555 2000-10-17  Jim Meyering  <meyering@lucent.com>
63556
63557         * lib/quote.h (PARAMS): Define and use.
63558         Reported by Akim Demaille.
63559
63560         * lib/getopt.c: Update from libc.
63561
63562 2000-10-16  Jim Meyering  <meyering@lucent.com>
63563
63564         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63565         setlocale.
63566         From Jan Fedak.
63567
63568 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63569
63570         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63571
63572 2000-09-25  Jim Meyering  <meyering@lucent.com>
63573
63574         * lib/md5.h (rol): Define (from GnuPG).
63575
63576         * lib/sha.c: Give credit (GnuPG) where due.
63577         (M): Use rol rather than open-coding it.
63578         Add a FIXME comment.
63579
63580 2000-09-21  Jim Meyering  <meyering@lucent.com>
63581
63582         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63583         Reported by Michael Stone.
63584
63585 2000-09-20  Jim Meyering  <meyering@lucent.com>
63586
63587         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63588         (noinst_HEADERS): Add sha.h.
63589         Based on code from Scott G. Miller and from GnuPG.
63590
63591 2000-09-18  Jim Meyering  <meyering@lucent.com>
63592
63593         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63594         LIBS. Otherwise, everyone ends up linking with -lelf for some
63595         configurations.
63596         Reported by Mike Stone.
63597
63598 2000-09-15  Jim Meyering  <meyering@lucent.com>
63599
63600         * lib/regex.c: Update from libc.
63601
63602 2000-09-10  Jim Meyering  <meyering@lucent.com>
63603
63604         * lib/getopt.c (_getopt_internal): Update from glibc.
63605
63606 2000-09-09  Jim Meyering  <meyering@lucent.com>
63607
63608         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63609         think it should be used as a general replacement for isascii.
63610         * lib/fnmatch.c: Likewise.
63611         * lib/mbswidth.c: Likewise
63612         * lib/regex.c: Likewise.
63613
63614         Don't use atoi.
63615         * lib/userspec.c: Include sys/param.h and limits.h.
63616         Include xstrtol.h.
63617         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63618         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63619         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63620         UID, GID.  Check range.
63621
63622 2000-09-06  Jim Meyering  <meyering@lucent.com>
63623
63624         * lib/getopt.c (_getopt_internal): Update from glibc.
63625
63626 2000-08-30  Jim Meyering  <meyering@lucent.com>
63627
63628         * lib/strftime.c: Merge in changes from GNU libc.
63629
63630 2000-08-26  Jim Meyering  <meyering@lucent.com>
63631
63632         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63633         * m4/fpending.m4: New file.
63634
63635 2000-08-26  Jim Meyering  <meyering@lucent.com>
63636
63637         * lib/closeout.c: Include "__fpending.h".
63638         (close_stdout_status): Return right away if there's nothing to flush.
63639
63640         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63641         * lib/__fpending.c: New file.
63642         * lib/__fpending.h: New file.
63643
63644 2000-08-20  Jim Meyering  <meyering@lucent.com>
63645
63646         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63647         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63648         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63649
63650 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63651
63652         Improve fileutils installation on systems where running
63653         programs (like install) can't be unlinked.
63654         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63655         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63656
63657 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63658
63659         Standardize on "memory exhausted" instead of "Memory exhausted"
63660         or "virtual memory exhausted".
63661         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63662         "virtual memory exhausted".
63663         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63664         our own message.
63665         * lib/userspec.c (parse_user_spec): Likewise.
63666         * lib/bumpalloc.h: comment fix
63667         * lib/same.c, userspec.c: Include xalloc.h.
63668
63669         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63670         not char *const and pointing to a constant array.
63671         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63672         (xrealloc): Comment fix.
63673
63674         * lib/userspec.c (parse_user_spec):
63675         Don't translate a message until just before returning,
63676         to avoid unnecessary translation.
63677
63678 2000-08-07  Jim Meyering  <meyering@lucent.com>
63679
63680         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63681         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63682         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63683         getgroups.c, gethostname.c, getopt.h, group-member.c,
63684         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63685         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63686         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63687         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63688         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63689         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63690         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63691         yesno.c: Back out Copyright date changes for each file with no change
63692         this year.  This eases coordination with other programs using the same
63693         source code modules.  From Paul Eggert.
63694
63695 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63696
63697         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63698         not char, for compatibility with glibc 2.1.3 strftime.c.
63699
63700 2000-08-03  Greg McGary  <greg@mcgary.org>
63701
63702         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63703         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63704         (EXTEND_BUFFER): Use them.
63705
63706 2000-08-01  Jim Meyering  <meyering@lucent.com>
63707
63708         * lib/dirname.c (ISSLASH): Define.
63709         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63710         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63711         both `\' and `/' may be use as path separators.
63712         Based on a patch from Prashant TR.
63713
63714 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63715
63716         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63717         slot vector a constant, since it might get modified.
63718
63719 2000-07-31  Jim Meyering  <meyering@lucent.com>
63720
63721         * lib/xmalloc.c: Use `virtual memory exhausted', not
63722         `Memory exhausted'.
63723         * lib/obstack.c (print_and_abort): Likewise.
63724
63725 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63726
63727         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63728         buffer, so that the caller can always quote one small
63729         component of a "memory exhausted" message in slot 0.
63730         From a suggestion by Jim Meyering.
63731
63732 2000-07-30  Jim Meyering  <meyering@lucent.com>
63733
63734         * lib/makepath.c (make_path): Quote the other instance, too.
63735
63736         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63737         (STATIC_BUF_SIZE): Define.
63738         (quotearg_n_options): Use only statically allocated storage when
63739         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63740         than STATIC_BUF_SIZE.
63741
63742 2000-07-29  Jim Meyering  <meyering@lucent.com>
63743
63744         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63745         * lib/dirname.c (dir_name): Likewise.
63746
63747         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63748         `/'.
63749
63750         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63751         (dir_name): Assert that there are no trailing slashes.
63752
63753 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63754
63755         * lib/mbswidth.h (mbswidth): Add a flags argument.
63756         (mbswidth): New declaration.
63757         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63758         * lib/mbswidth.c (mbswidth): Add a flags argument.
63759         (mbsnwidth): New function.
63760
63761 2000-07-24  Jim Meyering  <meyering@lucent.com>
63762
63763         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63764
63765 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63766
63767         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63768
63769 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63770
63771         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63772         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63773         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63774         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63775         invoke multibyte primitives.
63776
63777 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63778
63779         * lib/quotearg.c:
63780         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63781         so that mbstate_t is always defined.
63782
63783         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63784         be 1 in at least one GCC installation, and this configuration
63785         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63786         performance on hosts that have mbrtowc but have only unibyte
63787         locales, but I assume these hosts are rare.
63788
63789 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63790
63791         * lib/mbswidth.c (_XOPEN_SOURCE):
63792         Don't define; this causes problems on Solaris 7.
63793         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63794
63795 2000-07-23  Jim Meyering  <meyering@lucent.com>
63796
63797         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63798         too: getgrgid, getpwuid, getuid.
63799
63800 2000-07-23  Jim Meyering  <meyering@lucent.com>
63801
63802         * lib/basename.c (base_name): Add an assertion.
63803
63804 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63805
63806         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63807         shadow its mbsinit function.
63808
63809 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63810
63811         * lib/mbswidth.h: New file.
63812         * lib/mbswidth.c: New file.
63813         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63814         (noinst_HEADERS): Add mbswidth.h.
63815
63816 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63817
63818         * lib/config.charset: Add support for FreeBSD. Improve support for
63819         HP-UX and IRIX 6.
63820
63821 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63822
63823         * m4/mbswidth.m4: New file.
63824         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63825
63826 2000-07-15  Jim Meyering  <meyering@lucent.com>
63827
63828         * lib/makepath.c: Include quote.h.
63829         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63830         corresponding argument in a `quote (...)' call.
63831         Give better diagnostics.
63832
63833         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63834         (noinst_HEADERS): Add quote.h.
63835
63836         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63837         from tar's src/misc.c.
63838         * lib/quote.h: New file.  Prototypes for same.
63839
63840 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63841
63842         From a suggestion by Bruno Haible.
63843         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63844         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63845         to decide whether to define the BeOS workaround macro;
63846         this adjusts to the change to AC_MBSTATE_T.
63847
63848 2000-07-14  Jim Meyering  <meyering@lucent.com>
63849
63850         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63851         jm_AC_TYPE_UINTMAX_T.
63852
63853 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63854
63855         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63856
63857         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63858         quotearg_buffer_restyled): Add support for
63859         clocale_quoting_style.  Undo previous change to
63860         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63861         and "{RIGHT QUOTATION MARK}" msgids.
63862
63863 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63864
63865         From a suggestion by Bruno Haible.
63866         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63867         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63868         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63869         and mbstate_t, to a single-part test that simply defines mbstate_t.
63870         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63871         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63872
63873 2000-07-10  Jim Meyering  <meyering@lucent.com>
63874
63875         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63876
63877         * m4/gnu-source.m4: Output to confdefs.h directly.
63878         Suggestion from Akim Demaille.
63879
63880 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63881
63882         The old behavior of quoting `like this' doesn't look good with
63883         newer, ISO-style fonts.  See:
63884         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63885
63886         Instead, quote "like this" by default.  Let the translator
63887         tailor the locale-specific quoting behavior by providing
63888         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63889
63890         * lib/quotearg.c (N_): New macro.
63891         (gettext_default): New function.
63892         (quotearg_buffer_restyled): Use
63893         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63894         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63895
63896 2000-07-09  Jim Meyering  <meyering@lucent.com>
63897
63898         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63899         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63900
63901         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63903
63904 2000-07-09  Jim Meyering  <meyering@lucent.com>
63905
63906         * lib/Most files: Update copyright dates to include 2000.
63907
63908 2000-07-08  Jim Meyering  <meyering@lucent.com>
63909
63910         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63911         if not defined.
63912         (xgethostname): Remove now-unnecessary #ifdef.
63913         Move declaration of `err' into loop where it's used.
63914
63915 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63916         and Bruno Haible  <haible@clisp.cons.org>
63917
63918         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63919         only if the test for an object-type mbstate_t fails.  This
63920         prevents us from mistakenly reporting that mbstate_t is a
63921         system object type after we "#define mbstate_t int" to work
63922         around its lack.
63923
63924 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63925         and Bruno Haible  <haible@clisp.cons.org>
63926
63927         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63928
63929 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63930
63931         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63932         to strerror_r.
63933         Include <ctype.h> for use of isalpha.
63934
63935 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63936
63937         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63938         by allocating a larger buffer. Test the gethostname return value for
63939         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63940         returns an error and ENAMETOOLONG isn't defined.
63941
63942 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63943
63944         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63945         dimension.
63946
63947 2000-07-04  Jim Meyering  <meyering@lucent.com>
63948
63949         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63950         of the deprecated AC_CHECKING.
63951
63952 2000-07-04  Jim Meyering  <meyering@lucent.com>
63953
63954         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63955         Reported by Bruno Haible.
63956
63957 2000-07-04  Jim Meyering  <meyering@lucent.com>
63958
63959         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63960         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63961         lacks mbrtowc.
63962
63963 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63964
63965         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63966         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63967
63968 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63969         and Bruno Haible  <haible@clisp.cons.org>
63970
63971         * lib/quotearg.c (mbrtowc):
63972         Assign to *pwc, and return 1 only if result is nonzero.
63973         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63974
63975 2000-07-03  Jim Meyering  <meyering@lucent.com>
63976
63977         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63978
63979 2000-07-03  Jim Meyering  <meyering@lucent.com>
63980
63981         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63982         This is necessary to get a definition of e.g., UTMP_FILE on
63983         HP-UX 10.20.
63984         From Bob Proulx.
63985
63986 2000-07-02  Jim Meyering  <meyering@lucent.com>
63987
63988         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63989
63990         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63991         AC_LIBOBJ(function_name).
63992         * m4/chown.m4: Likewise.
63993         * m4/fnmatch.m4: Likewise.
63994         * m4/ftruncate.m4: Likewise.
63995         * m4/getgroups.m4: Likewise.
63996         * m4/getline.m4: Likewise.
63997         * m4/group-member.m4: Likewise.
63998         * m4/jm-macros.m4: Likewise.
63999         * m4/lstat.m4: Likewise.
64000         * m4/malloc.m4: Likewise.
64001         * m4/memcmp.m4: Likewise.
64002         * m4/nanosleep.m4: Likewise.
64003         * m4/putenv.m4: Likewise.
64004         * m4/realloc.m4: Likewise.
64005         * m4/regex.m4: Likewise.
64006         * m4/stat.m4: Likewise.
64007         * m4/strftime.m4: Likewise.
64008
64009 2000-07-02  Jim Meyering  <meyering@lucent.com>
64010
64011         * lib/quotearg.c (mbstate_t): Don't define here.
64012
64013 2000-07-02  Jim Meyering  <meyering@lucent.com>
64014
64015         * lib/nanosleep.c (SIGCONT): Define if not already defined.
64016
64017 2000-07-01  Jim Meyering  <meyering@lucent.com>
64018
64019         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
64020
64021 2000-07-01  Jim Meyering  <meyering@lucent.com>
64022
64023         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
64024         problem.
64025
64026 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64027
64028         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
64029         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
64030
64031 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64032
64033         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
64034         per change in ../m4/ls-mntd-fs.m4.
64035         (read_filesystem_list): Ignore symbolic links.
64036
64037 2000-06-29  Jim Meyering  <meyering@lucent.com>
64038
64039         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
64040         for declaration of strcmp.
64041
64042         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
64043
64044         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
64045         Avoid warning by casting result to `char *' to remove `const'.
64046
64047 2000-06-28  Jim Meyering  <meyering@lucent.com>
64048
64049         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
64050         included by quotearg.c, for which we perform this test.  From
64051         Bruno Haible.
64052
64053 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64054
64055         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
64056         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
64057         <utmpx.h> exists, put readutmp.o into LIBOBJS.
64058
64059 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64060
64061         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
64062
64063 2000-06-26  Paul Eggert  <eggert@twinsun.com>
64064
64065         savedir now sets errno on failure and invokes xmalloc to get memory.
64066         Fix a couple of other minor bugs while we're at it.
64067
64068         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
64069         (NAMLEN): Remove macro.
64070         (malloc, realloc): Remove decls.
64071         (stpcpy): Likewise.
64072         ("xalloc.h"): Include.
64073         (NAME_SIZE_DEFAULT): New macro.
64074         (savedir): Use xmalloc / xrealloc to allocate memory.
64075         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
64076         Skip "" directory entries.
64077         Use strlen to calculate directory entry length, since the old method
64078         is rarely used these days and isn't worth supporting.
64079         Don't use a pointer after freeing it.
64080         Check for integer overflow when calculating allocation size.
64081         Use memcpy to copy entries, instead of stpcpy.
64082         Set errno properly when returning NULL.
64083         Check for readdir error.
64084
64085 2000-06-26  Jim Meyering  <meyering@lucent.com>
64086
64087         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
64088
64089 2000-06-25  Jim Meyering  <meyering@lucent.com>
64090
64091         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
64092         Linux header bug when _XOPEN_SOURCE is defined to 500.
64093
64094 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64095
64096         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
64097         deficiency.
64098
64099 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64100
64101         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
64102         Include xalloc.h.
64103         Don't include <stdlib.h>.  Don't declare malloc, realloc.
64104
64105 2000-06-24  Jim Meyering  <meyering@lucent.com>
64106
64107         * m4/strerror_r.m4: Revive this file -- to try out an experimental
64108         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
64109         for which strerror does return char*, but which lacks a conveniently
64110         accessible declaration of the function.  If the compile-test says
64111         strerror_r doesn't work, then resort to a `run'-test that works on
64112         BeOS and segfaults on DEC Unix.
64113
64114 2000-06-24  Jim Meyering  <meyering@lucent.com>
64115
64116         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
64117
64118 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64119
64120         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
64121         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
64122
64123 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64124
64125         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
64126         (mbrtowc, mbstate_t): Define substitutes if
64127         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
64128         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
64129         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
64130
64131 2000-06-23  Jim Meyering  <meyering@lucent.com>
64132
64133         * m4/afs.m4: Add missing AC_MSG_RESULT.
64134         Reported by Bruno Haible.
64135
64136         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
64137         Suggestion from Bruno Haible.
64138
64139 2000-06-23  Jim Meyering  <meyering@lucent.com>
64140
64141         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
64142
64143 2000-06-21  Jim Meyering  <meyering@lucent.com>
64144
64145         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
64146
64147 2000-06-21  Jim Meyering  <meyering@lucent.com>
64148
64149         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
64150         (noinst_HEADERS): Add getstr.h.
64151
64152         * lib/getline.c (getstr): Move into a separate file.
64153         * lib/getstr.c (getstr): New file, extracted from getline.c, with
64154         the following changes: new parameter, delim2; both delim[12]
64155         parameters have type `int', not `char'.  The latter would lose
64156         with 8-bit delimiters.
64157         * lib/getstr.h: New file.
64158
64159 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64160
64161         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
64162         than 1024, return a memory chunk of least possible size, instead
64163         of size PATH_MAX + 2. In the loop, increment the size proportionally.
64164         Use free/xmalloc instead of xrealloc to avoid copying for very long
64165         paths.
64166
64167 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64168
64169         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
64170         the empty string.
64171
64172 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64173
64174         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
64175         address, not strdup.  Include <stdlib.h> and don't declare free().
64176
64177 2000-06-19  Jim Meyering  <meyering@lucent.com>
64178
64179         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64180
64181 2000-06-18  Jim Meyering  <meyering@lucent.com>
64182
64183         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64184
64185         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64186         `checking whether...' message to be consistent with that of the
64187         lstat test.
64188
64189 2000-06-18  Jim Meyering  <meyering@lucent.com>
64190
64191         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64192         Besides, these days every porting target provides a mkdir function.
64193
64194         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64195         needed. (this snippet comes from src/system.h).
64196
64197 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64198
64199         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64200
64201 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64202
64203         * lib/human.c (adjust_value): New function.
64204         (human_readable_inexact): Apply rounding style even when
64205         printing approximate values.
64206
64207 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64208
64209         * lib/human.c (human_readable_inexact): Allow an input block
64210         size that is not a multiple of the output block size, and vice versa.
64211         Reported by Piergiorgio Sartor.
64212
64213 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64214
64215         * lib/getdate.y (get_date): Apply relative times after time
64216         zone indicator, not before.  Reported by Todd A. Jacobs.
64217
64218 2000-06-13  Jim Meyering  <meyering@lucent.com>
64219
64220         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64221
64222         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64223
64224 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64225
64226         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64227
64228 2000-06-12  Jim Meyering  <meyering@lucent.com>
64229
64230         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64231         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64232         optional argument.
64233         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64234         the optional argument, `lib'.
64235
64236 2000-06-08  Jim Meyering  <meyering@lucent.com>
64237
64238         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64239
64240 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64241
64242         Rewrite largefile configuration so that we don't need to run
64243         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64244         AC_CANONICAL_HOST in configure.in -- jmm]
64245
64246         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64247         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64248         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64249         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64250         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64251         All uses changed.
64252         Instead of inspecting the output of getconf, try to compile the
64253         test program without and with the macro definition.
64254         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64255         for getconf.  Instead, check for the needed flags by compiling
64256         test programs.
64257
64258 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64259
64260         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64261
64262 2000-06-04  Jim Meyering  <meyering@lucent.com>
64263
64264         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64265         SunOS 4.1.4 for which gid_t is an unsigned type.
64266
64267 2000-06-03  Jim Meyering  <meyering@lucent.com>
64268
64269         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64270         now that autoconf requires that.
64271
64272         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64273         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64274         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64275
64276 2000-06-03  Jim Meyering  <meyering@lucent.com>
64277
64278         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64279
64280 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64281
64282         * m4/glibc21.m4: New file.
64283         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64284
64285 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64286
64287         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64288         newer, don't install charset.alias.
64289         * lib/config.charset: Change the Linux/glibc rules so they become empty
64290         on glibc-2.1 or newer.
64291
64292 2000-06-02  Jim Meyering  <meyering@lucent.com>
64293
64294         * lib/mountlist.c: Back out last change.  Instead, do this...
64295         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64296         me_dummy member using the same `ignore'-testing code.
64297         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64298         fs_type strings.
64299         From Mark D. Roth.
64300
64301 2000-05-29  Jim Meyering  <meyering@lucent.com>
64302
64303         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64304         mounts with the `ignore' attribute.  Based on a patch from
64305         Mark D. Roth.
64306
64307 2000-05-28  Jim Meyering  <meyering@lucent.com>
64308
64309         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64310         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64311         * m4/stat.m4: Likewise.
64312         * m4/lstat.m4: Likewise.
64313         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64314
64315         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64316         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64317
64318 2000-05-26  Jim Meyering  <meyering@lucent.com>
64319
64320         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64321
64322 2000-05-24  Jim Meyering  <meyering@lucent.com>
64323
64324         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64325         autoconf requires that.
64326         * m4/lib-check.m4: Likewise.
64327         * m4/jm-macros.m4: Likewise.
64328         * m4/strftime.m4: Likewise.
64329
64330         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64331         AC_CHECK_DECLS, now that autoconf requires that.
64332
64333 2000-05-22  Jim Meyering  <meyering@lucent.com>
64334
64335         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64336         * m4/lstat.m4: Likewise.
64337
64338 2000-05-22  Jim Meyering  <meyering@lucent.com>
64339
64340         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64341
64342 2000-05-20  Jim Meyering  <meyering@lucent.com>
64343
64344         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64345         (jm_PREREQ): Use it.
64346
64347 2000-05-18  Jim Meyering  <meyering@lucent.com>
64348
64349         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64350         back, too, since it may have been modified by allocate_entry.
64351         (hash_delete): Rewrite to use neither the assignment operator
64352         nor the comma operator in an if-expression.
64353
64354 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64355
64356         * lib/closeout.c:
64357         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64358         Remove; no longer needed.
64359         "quotearg.h": Add include.
64360         (file_name): Do not bother to explicitly initialize to NULL; it's less
64361         efficient on some hosts.
64362         (close_stdout_status): Remove test as to whether stdout was already
64363         closed; it breaks for the case "echo x | sort >&-".
64364         Quote file name colons.
64365         Do not assume that _("write error") lacks format strings.
64366
64367 2000-05-15  Jim Meyering  <meyering@lucent.com>
64368
64369         * lib/version-etc.c (version_etc_copyright): Update the copyright
64370         string used in all --version output.
64371
64372 2000-05-14  Jim Meyering  <meyering@lucent.com>
64373
64374         * lib/closeout.c (close_stdout_set_file_name): New function.
64375         (close_stdout_status): Use new file-scoped global.
64376         Return right away if fstat says the stdout file descriptor is invalid.
64377         * lib/closeout.h (close_stdout_set_file_name): Declare.
64378
64379 2000-05-10  Jim Meyering  <meyering@lucent.com>
64380
64381         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64382         (close_stdout_set_status): New function.
64383         * lib/closeout.h (close_stdout_set_status): Declare.
64384
64385 2000-05-09  Jim Meyering  <meyering@lucent.com>
64386
64387         * m4/gettext.m4: Rename this...
64388         * m4/libintl.m4: ...to this.
64389
64390 2000-05-08  Jim Meyering  <meyering@lucent.com>
64391
64392         * lib/long-options.c: Don't include closeout.h.
64393         (parse_long_options): Don't call close_stdout for --version.
64394
64395 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64396
64397         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64398         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64399         2.1.3 bug.  This avoids a clash when files like regex.c define
64400         _GNU_SOURCE.
64401
64402 2000-05-06  Jim Meyering  <meyering@lucent.com>
64403
64404         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64405         (AC_REPLACE_FUNCS): Add strnlen.
64406
64407         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64408         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64409
64410         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64411         AC_SEARCH_LIBS call for nanosleep.
64412         (LIB_NANOSLEEP): Set and AC_SUBST.
64413
64414 2000-05-06  Jim Meyering  <meyering@lucent.com>
64415
64416         * lib/strnlen.c: Undefine __strnlen and strnlen.
64417         [!weak_alias]: Define __strnlen to strnlen.
64418
64419         * lib/atexit.c: New file, from libiberty.
64420
64421 2000-05-06  Jim Meyering  <meyering@lucent.com>
64422
64423         * lib/closeout.c (close_stdout_status): Also check for errors on the
64424         stderr stream.
64425
64426 2000-05-05  Jim Meyering  <meyering@lucent.com>
64427
64428         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64429         AC_SEARCH_LIBS call for clock_gettime.
64430         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64431
64432         * m4/search-libs.m4: Update from autoconf.
64433
64434         su doesn't work on Solaris 2.6.
64435         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64436         <shadow.h>.  Reported by Dragos Harabor.
64437
64438 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64439
64440         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64441         memcpy instead of xmalloc, xrealloc, path_concat.
64442         (locale_charset): Treat empty environment variables as absent.
64443         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64444
64445 2000-05-04  Jim Meyering  <meyering@lucent.com>
64446
64447         * lib/getopt.c: Update from glibc.
64448         * lib/obstack.c: Likewise.
64449         * lib/obstack.h: Likewise.
64450         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64451         file
64452
64453         * lib/regex.h: Likewise.
64454         * lib/strndup.c: Likewise.
64455         * lib/strnlen.c: New file, from glibc.
64456
64457 2000-05-03  Jim Meyering  <meyering@lucent.com>
64458
64459         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64460
64461 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64462
64463         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64464         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64465         compile-time test, rather than inspecting host and OS, to
64466         decide whether to define _LARGEFILE_SOURCE.
64467
64468 2000-05-01  Jim Meyering  <meyering@lucent.com>
64469
64470         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64471
64472         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64473         Based on a patch from Bruno Haible.
64474
64475 2000-05-01  Jim Meyering  <meyering@lucent.com>
64476
64477         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64478
64479 2000-04-29  Jim Meyering  <meyering@lucent.com>
64480
64481         * lib/path-concat.c: Declare strdup only if it's not defined.
64482         * lib/canon-host.c: Likewise.
64483
64484 2000-04-28  Jim Meyering  <meyering@lucent.com>
64485
64486         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64487         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64488         is included first, then limits.h is included by locale.h by libintl.h.
64489         From John David Anglin.
64490
64491 2000-04-25  Jim Meyering  <meyering@lucent.com>
64492
64493         * lib/makepath.c (S_IRWXUGO): Define.
64494         (make_path): Always perform explicit chmod if MODE specifies any
64495         of the `special' permission bits.  Prompted by a bug report against
64496         install from Mate Wierdl and Joost van Baal.
64497
64498 2000-04-18  Jim Meyering  <meyering@lucent.com>
64499
64500         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64501         (jm_PREREQ): Use it.
64502
64503 2000-04-18  Jim Meyering  <meyering@lucent.com>
64504
64505         * lib/README: New file.
64506
64507         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64508         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64509
64510 2000-04-17  Jim Meyering  <meyering@lucent.com>
64511
64512         Get it right :-)
64513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64514         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64515         Suggestion from Akim Demaille.
64516
64517 2000-04-17  Jim Meyering  <meyering@lucent.com>
64518
64519         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64520         the definition of it to rpl_strftime also defined-away the system's
64521         declaration.
64522
64523 2000-04-15  Jim Meyering  <meyering@lucent.com>
64524
64525         Use `C' to denote so-called `contiguous' files, the same way
64526         that tar does.
64527         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64528         (ftypelet): Use S_ISCTG.
64529         From Michael Deutschmann.
64530
64531 2000-04-14  Jim Meyering  <meyering@lucent.com>
64532
64533         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64534         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64535         clobbered.
64536
64537 2000-04-14  Jim Meyering  <meyering@lucent.com>
64538
64539         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64540
64541 2000-04-13  Jim Meyering  <meyering@lucent.com>
64542
64543         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64544         AH_VERBATIM to insert required #ifndef into config.h.in.
64545         Suggestion from Akim Demaille.
64546
64547 2000-04-12  Jim Meyering  <meyering@lucent.com>
64548
64549         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64550         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64551         Christian Krackowizer.
64552
64553         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64554         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64555         (AC_SYS_LARGEFILE): Require.
64556         (AM_C_PROTOTYPES): Require.
64557
64558 2000-04-08  Jim Meyering  <meyering@lucent.com>
64559
64560         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64561         names don't conflict.  Reported by Eli Zaretskii.
64562
64563 2000-04-07  Jim Meyering  <meyering@lucent.com>
64564
64565         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64566         sys/types.h, to work around system header problems on AIX 3.2.5.
64567         From Bruno Haible.
64568
64569 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64570
64571         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64572         bug.  Deal with the different error behavior of Irix iconv.
64573
64574 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64575
64576         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64577         IRIX if the installer said otherwise.
64578
64579 2000-04-05  Jim Meyering  <meyering@lucent.com>
64580
64581         Portability tweaks required for ultrix4.3.
64582         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64583         (jm_CHECK_DECLS): Add getutent to the list of functions.
64584         (_jm_DECL_HEADERS): Add utmpx.h.
64585         From John David Anglin.
64586
64587         * m4/strftime.m4: Back out the 2000-04-02 change.
64588         Instead of that change, simply undefine putenv in the test program.
64589
64590 2000-04-05  Jim Meyering  <meyering@lucent.com>
64591
64592         Portability tweaks required for ultrix4.3.
64593         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64594         getutent.
64595         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64596         * lib/canon-host.c: Declare strdup.
64597         * lib/path-concat.c: Likewise.
64598         From John David Anglin.
64599
64600 2000-04-04  Jim Meyering  <meyering@lucent.com>
64601
64602         Be more DOS 8.3-friendly.
64603         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64604         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64605         * lib/Makefile.am: Reflect renaming.
64606         Reported by Eli Zaretskii.
64607
64608         Use a temporary file name that won't clash with `charset.alias'
64609         in the DOS 8.3 name space.
64610         * lib/Makefile.am (charset_tmp): Define.
64611         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64612         (uninstall-local): Likewise.
64613         Reported by Eli Zaretskii.
64614
64615 2000-04-03  Jim Meyering  <meyering@lucent.com>
64616
64617         * m4/gettext.m4: Fix typo in comment.
64618
64619         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64620         textutils/configure.in).  Suggestion from Paul Eggert.
64621         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64622
64623 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64624
64625         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64626         variable in the shell rather than using putenv, which isn't
64627         portable.  This avoids the configure-time inter-test dependency
64628         on the potentially-renamed putenv function.
64629
64630 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64631
64632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64633         before checking struct stat.st_blksize, so that
64634         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64635
64636 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64637
64638         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64639         since strftime.c uses HAVE_STRFTIME to decide whether to use
64640         the underlying strftime.
64641
64642 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64643
64644         * lib/time/strftime.c (my_strftime): Make sure we call the system
64645         strftime, not ourselves, when invoking the underlying strftime.
64646
64647 2000-03-24  Jim Meyering  <meyering@lucent.com>
64648
64649         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64650         (charset_alias): Define.
64651         (install-exec-local): Factor out common code.
64652         (uninstall-local): Split lines longer than 80.
64653         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64654         (SUFFIXES): Define.
64655         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64656         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64657
64658 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64659
64660         * lib/config.charset: Output a line containing "Packages using this
64661         file".
64662         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64663         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64664         ref-del.sed): New rules.
64665
64666 2000-03-17  Jim Meyering  <meyering@lucent.com>
64667
64668         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64669         Otherwise, include <strings.h>
64670
64671 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64672
64673         * lib/unicodeio.c (utf8_wctomb): New function.
64674         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64675         format instead of in UCS-4 with platform dependent endianness.
64676
64677 2000-03-10  Jim Meyering  <meyering@lucent.com>
64678
64679         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64680         From Marco Franzen.
64681
64682 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64683
64684         * lib/savedir.c (savedir): Work even if directory size is
64685         negative; this can happen with some screwy NFS configurations.
64686
64687 2000-03-06  Jim Meyering  <meyering@lucent.com>
64688
64689         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64690         if it's NULL (because we ran out of memory).  From Bruno Haible.
64691
64692 2000-03-05  Jim Meyering  <meyering@lucent.com>
64693
64694         * lib/localcharset.c ("path-concat.h"): Include.
64695         (get_charset_aliases): Use path_concat instead of ANSI string
64696         concatenation.
64697
64698         * lib/unicodeio.h (PARAMS): Define.
64699         Use it to guard prototype.
64700
64701 2000-03-04  Jim Meyering  <meyering@lucent.com>
64702
64703         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64704         for lib/localcharset.c.
64705
64706 2000-03-04  Jim Meyering  <meyering@lucent.com>
64707
64708         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64709         installing into it.
64710         (uninstall-local): Uncomment this rule so `make distcheck' works
64711         once again.
64712
64713         * lib/unicodeio.c (<errno.h>): Include it.
64714         (errno): Declare if not defined.
64715
64716         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64717
64718         * lib/config.charset: New version, incorporating remarks from a linux
64719         i18n mailing list.  From Bruno Haible.
64720
64721 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64722
64723         * m4/codeset.m4: New file.
64724         * m4/iconv.m4: New file.
64725         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64726
64727 2000-03-03  Jim Meyering  <meyering@lucent.com>
64728
64729         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64730
64731 2000-03-02  Jim Meyering  <meyering@lucent.com>
64732
64733         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64734         the messages come out on separate lines.
64735
64736         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64737         rather than jm_CHECK_DECLARATIONS.
64738         * m4/decl.m4: Remove now-unused file.
64739
64740         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64741         geteuid.
64742
64743 2000-03-02  Jim Meyering  <meyering@lucent.com>
64744
64745         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64746
64747 2000-03-01  Jim Meyering  <meyering@lucent.com>
64748
64749         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64750         * lib/unicodeio.c: Likewise.
64751
64752 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64753
64754         * lib/config.charset: New file.
64755         * lib/localcharset.c: New file.
64756         * lib/unicodeio.h, lib/unicodeio.c: New files.
64757         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64758         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64759         (noinst_HEADERS): Add unicodeio.h.
64760         (all-local, install-exec-local, charset.alias): New targets.
64761
64762 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64763
64764         * lib/quotearg.c (ALERT_CHAR): New macro.
64765         (quotearg_buffer_restyled): Use it.
64766
64767 2000-02-27  Jim Meyering  <meyering@lucent.com>
64768
64769         * m4/check-decl.m4: Add getenv to the list.
64770
64771 2000-02-27  Jim Meyering  <meyering@lucent.com>
64772
64773         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64774         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64775
64776         * lib/backupfile.c: Guard inclusion of stdlib.h with
64777         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64778         Declare malloc if needed.
64779
64780         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64781         `#ifndef HAVE_DECL..'
64782         now that autoconf always defines the HAVE_DECL_ symbols.
64783         * lib/human.c: Likewise.
64784         * lib/same.c: Likewise.
64785         * lib/strtoumax.c: Likewise.
64786
64787         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64788         declaration check was not run.
64789         * lib/hash.c: Likewise.
64790         * lib/human.c: Likewise.
64791         * lib/same.c: Likewise.
64792         * lib/strtoumax.c: Likewise.
64793
64794         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64795         `.', then first look up the entire `.'-containing string as a login
64796         name.
64797
64798 2000-02-23  Jim Meyering  <meyering@lucent.com>
64799
64800         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64801         in place of my hack.
64802
64803 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64804
64805         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64806         (textint): New typedef.
64807         (parser_control): Member year changed from int to textint.
64808         All uses changed.
64809         (YYSTYPE): Removed; replaced by %union with int and textint members.
64810         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64811         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64812         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64813         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64814         (date, number, to_year): Use width of number in digits, not its value,
64815         to determine whether it's a 2-digit year, or a 2-digit time.
64816         (yylex): Store number of digits of numeric tokens.
64817         Reported by John Kendall.
64818
64819         (parser_control): Changed from struct parser_control to typedef (for
64820         consistency).  All uses changed.
64821
64822         (tID): Removed; not used.
64823         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64824
64825 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64826
64827         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64828         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64829
64830 2000-02-12  Jim Meyering  <meyering@lucent.com>
64831
64832         * lib/userspec.c (ISDIGIT): Define it.
64833         (isdigit): Remove definition.
64834         (is_number): Use ISDIGIT, not isdigit.
64835         <libintl.h>: Include.
64836         (_ and N_): Define.
64837         (parse_user_spec): Mark translatable strings.
64838
64839 2000-02-10  Jim Meyering  <meyering@lucent.com>
64840
64841         With these changes, nanosleep.[ch] are finally enough like the other
64842         lib/* replacement files to compile on a few more losing systems.
64843
64844         * lib/nanosleep.h: Don't include config.h.
64845         Remove prototype from declaration of nanosleep.
64846         (PARAMS): Remove now-unneeded definition.
64847         * lib/nanosleep.c: #undef nanosleep.
64848         (rpl_nanosleep): Rename from nanosleep.
64849
64850 2000-02-10  Jim Meyering  <meyering@lucent.com>
64851
64852         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64853         gnu_nanosleep to rpl_nanosleep.
64854
64855 2000-02-09  Jim Meyering  <meyering@lucent.com>
64856
64857         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64858         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64859
64860 2000-02-08  Akim Demaille  <akim@epita.fr>
64861
64862         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64863         `[' and `]' and remove uses of `changequote'.
64864         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64865         (AC_SYS_LARGEFILE): Likewise.
64866         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64867         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64868         of changequote.
64869         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64870         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64871         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64872         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64873
64874 2000-02-05  Jim Meyering  <meyering@lucent.com>
64875
64876         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64877         Remove explicit use of AC_HEADER_TIME.  It is required by
64878         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64879         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64880         in autoconf whereby the expansion of the latter ended up preceding
64881         the expansion of its prerequisite, AC_HEADER_TIME.
64882         Reported by Volker Borchert.
64883
64884 2000-02-03  Jim Meyering  <meyering@lucent.com>
64885
64886         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64887
64888 2000-02-03  Jim Meyering  <meyering@lucent.com>
64889
64890         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64891         rather than with `#if HAVE_UTMPNAME'.
64892
64893 2000-02-02  Jim Meyering  <meyering@lucent.com>
64894
64895         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64896         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64897         Reported by Eli Zaretskii.
64898
64899 2000-02-01  Jim Meyering  <meyering@lucent.com>
64900
64901         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64902
64903 2000-01-31  Jim Meyering  <meyering@lucent.com>
64904
64905         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64906         functions.  Add the time.h and sys/time.h headers along with the
64907         AC_REQUIRE'ment of AC_HEADER_TIME.
64908
64909 2000-01-31  Jim Meyering  <meyering@lucent.com>
64910
64911         * lib/nanosleep.h (nanosleep): Guard declaration with
64912         `#if ! HAVE_DECL_NANOSLEEP'.
64913         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64914         the declaration in that vendor's sys/timers.h.
64915         Reported by Christian Krackowizer.
64916
64917         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64918         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64919         (ISPRINT): Likewise.
64920         Reported by Tom Tromey.
64921
64922 2000-01-30  Jim Meyering  <meyering@lucent.com>
64923
64924         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64925
64926         * m4/prereq.m4 (utmp_includes): Define.
64927         Check for ut_user and ut_name members in both struct utmpx
64928         and struct utmp.
64929
64930 2000-01-30  Jim Meyering  <meyering@lucent.com>
64931
64932         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64933         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64934         header files where only utmpx.ut_user is declared.
64935
64936         * lib/readutmp.h (UT_USER): Define.
64937
64938 2000-01-29  Jim Meyering  <meyering@lucent.com>
64939
64940         * m4/lib-check.m4: New file containing library-related checks from
64941         fileutils and sh-utils (textutils had none).
64942
64943 2000-01-28  Jim Meyering  <meyering@lucent.com>
64944
64945         * m4/perl.m4: Change format of warning message to look more like that
64946         from the missing script.  Suggestion from François Pinard.
64947
64948 2000-01-25  Jim Meyering  <meyering@lucent.com>
64949
64950         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64951         well as time.h in the compile check.
64952         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64953         Fix typo in cross-compiling case: s/yes/no/.
64954
64955 2000-01-23  Jim Meyering  <meyering@lucent.com>
64956
64957         * m4/jm-macros.m4: Move df-related tests here from
64958         fileutils/configure.in
64959
64960         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64961         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64962
64963         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64964         s/space/ac_fsusage_space/.
64965         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64966
64967         * m4/ftruncate.m4: New file (derived from part of
64968         fileutils/configure.in).
64969         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64970         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64971
64972         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64973         AC_SUBST these here, rather than just in sh-util/configure.in, so
64974         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64975         all the same.
64976         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64977         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64978         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64979         (AC_SUBST(POW_LIBM)): Likewise.
64980         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64981
64982 2000-01-23  Jim Meyering  <meyering@lucent.com>
64983
64984         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64985         obstack.c.
64986
64987 2000-01-22  Jim Meyering  <meyering@lucent.com>
64988
64989         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64990
64991         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64992
64993         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64994         configure.in
64995         (AC_CHECK_HEADERS): Likewise for sh-utils.
64996         (AC_CHECK_HEADERS): Likewise for textutils.
64997         Merge the three lists of headers.
64998
64999         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
65000         from fileutils' configure.in.
65001
65002         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
65003         code. Moved tests into their own function (_jm_DECL_HEADERS) in
65004         check-decl.m4.
65005
65006         * m4/check-decl.m4: Use #if rather than #ifdef.
65007         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
65008         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
65009         (_jm_DECL_HEADERS): Define new function.
65010         (jm_CHECK_DECLARATIONS): Require it.
65011
65012 2000-01-22  Jim Meyering  <meyering@lucent.com>
65013
65014         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
65015         [! HAVE_DECL_STRTOULL]: Declare strtoull.
65016         Required for some AIX systems.  Reported by Christian Krackowizer.
65017         [TESTING] (main): New function.
65018
65019         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
65020         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
65021         letters.
65022
65023         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
65024         iswprint.
65025
65026         * lib/strverscmp.c (ISDIGIT): Define.
65027         (strverscmp): Use ISDIGIT, not isdigit.
65028
65029 2000-01-19  Jim Meyering  <meyering@lucent.com>
65030
65031         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
65032         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
65033         defines `struct timespec' in <sys/time.h>
65034
65035         * m4/c-bs-a.m4: Remove uses of changequote altogether.
65036         Thanks to Akim for explaining.
65037
65038 2000-01-17  Paul Eggert  <eggert@twinsun.com>
65039
65040         * lib/nanosleep.c (nanosleep):
65041         Don't use SA_INTERRUPT to decide whether to call sigaction, as
65042         POSIX.1 doesn't require SA_INTERRUPT and some systems
65043         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
65044         it's been part of POSIX.1 since day 1 (in 1988).
65045
65046 2000-01-17  Jim Meyering  <meyering@lucent.com>
65047
65048         * lib/interlock: Remove unused file.  Reported by François Pinard.
65049
65050 2000-01-16  Paul Eggert  <eggert@twinsun.com>
65051
65052         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
65053         alert, backslash, formfeed, and vertical tab unnecessarily in
65054         shell quoting style.
65055
65056 2000-01-16  Jim Meyering  <meyering@lucent.com>
65057
65058         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
65059         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
65060         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
65061         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
65062
65063 2000-01-16  Jim Meyering  <meyering@lucent.com>
65064
65065         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
65066         because the latter didn't work.
65067
65068 2000-01-15  Jim Meyering  <meyering@lucent.com>
65069
65070         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
65071         (AC_REPLACE_FUNCS): Add memcpy and memset.
65072         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
65073         Add strpbrk.
65074         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
65075
65076 2000-01-12  Jim Meyering  <meyering@lucent.com>
65077
65078         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
65079         (jm_PREREQ): Use it.
65080         (jm_PREREQ_READUTMP): New macro.
65081         (jm_PREREQ): Use it.
65082
65083 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65084
65085         Quote multibyte characters correctly.
65086         * m4/c-bs-a.m4: New file.
65087         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
65088         (jm_PREREQ): Use it.
65089
65090 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65091
65092         * m4/uintmax_t.m4: Port to autoconf 2.13.
65093
65094 2000-01-08  Jim Meyering  <meyering@ascend.com>
65095
65096         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
65097         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
65098
65099 2000-01-04  Jim Meyering  <meyering@ascend.com>
65100
65101         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
65102         jm_STRUCT_DIRENT_D_TYPE.
65103         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
65104         jm_STRUCT_DIRENT_D_INO.
65105         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
65106         jm_STRUCT_UTIMBUF.
65107         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
65108         renamings.
65109         * m4/utime.m4: Likewise.
65110
65111         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
65112         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
65113
65114 2000-01-03  Paul Eggert  <eggert@twinsun.com>
65115
65116         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
65117         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
65118
65119 2000-01-02  Jim Meyering  <meyering@ascend.com>
65120
65121         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
65122         remember if this is necessary.
65123
65124 1999-12-26  Jim Meyering  <meyering@ascend.com>
65125
65126         * m4/jm-macros.m4: Use it here.
65127         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
65128
65129 1999-12-23  Jim Meyering  <meyering@ascend.com>
65130
65131         * m4/jm-macros.m4: Check for clock_gettime (moved from
65132         fileutils/configure.in)
65133         Check for gettimeofday.
65134
65135 1999-12-20  Jim Meyering  <meyering@ascend.com>
65136
65137         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
65138         autoconf-2.14a-1999-12-20.
65139
65140 1999-12-19  Jim Meyering  <meyering@ascend.com>
65141
65142         * m4/lstat-slash.m4: New file.
65143         * m4/jm-macros.m4: Use the new macro:
65144         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65145
65146 1999-12-07  Jim Meyering  <meyering@ascend.com>
65147
65148         * m4/perl.m4: Require that File::Compare be available, too.
65149         Too many systems seem to lack it.
65150
65151         * m4/strftime.m4: Add checks for most of the cpp macros tested in
65152         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
65153
65154 1999-11-18  Paul Eggert  <eggert@twinsun.com>
65155
65156         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
65157         problem with the QNX 4.25 shell, which doesn't propagate exit
65158         status of failed commands inside shell assignments.
65159
65160 1999-11-17  Jim Meyering  <meyering@ascend.com>
65161
65162         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
65163
65164 1999-11-07  Jim Meyering  <meyering@ascend.com>
65165
65166         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
65167
65168 1999-11-06  Jim Meyering  <meyering@ascend.com>
65169
65170         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
65171         * m4/jm-macros.m4 (jm_MACROS): Use it here.
65172
65173 1999-11-05  Jim Meyering  <meyering@ascend.com>
65174
65175         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
65176         configure.in of textutils, fileutils, and sh-utils into this one
65177         (shared between those packages) file.
65178         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65179         AC_STRUCT_ST_BLKSIZE.
65180
65181 1999-11-03  Jim Meyering  <meyering@ascend.com>
65182
65183         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65184         of AC_CHECK_TYPE checks includes unistd.h.
65185         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65186         Suggestion from Akim Demaille.
65187
65188 1999-10-30  Jim Meyering  <meyering@ascend.com>
65189
65190         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65191         m4-quoted string.
65192         * m4/ls-mntd-fs.m4: Likewise.
65193         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65194         * m4/jm-winsz1.m4: Likewise.
65195
65196         * m4/const.m4: Remove file, since the fix made it into the experimental
65197         version of autoconf.
65198         * m4/mktime.m4: Likewise.
65199
65200         * m4/check-type.m4: Remove file, now that the latest version of
65201         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65202
65203         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65204         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65205         AC_CHECK_TYPE.
65206
65207 1999-10-04  Jim Meyering  <meyering@ascend.com>
65208
65209         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65210
65211 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65212
65213         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65214         2.95.1 bug with HP-UX 10.20.
65215
65216 1999-09-17  Jim Meyering  <meyering@ascend.com>
65217
65218         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65219         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65220         due to missing strdup (against sh-utils-2.0).
65221
65222 1999-08-29  Jim Meyering  <meyering@ascend.com>
65223
65224         * m4/jm-macros.m4: Require jm_BISON.
65225         * m4/bison.m4: New file.
65226
65227 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65228
65229         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65230         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65231
65232 1999-08-05  Jim Meyering  <meyering@ascend.com>
65233
65234         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65235         to avoid conflicts with `conftest' on 8+3 filesystems.
65236         Suggestion from Eli Zaretskii.
65237
65238 1999-08-04  Jim Meyering  <meyering@ascend.com>
65239
65240         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65241         fileutils and sh-utils (textutils's getline test was inadequate).
65242         (AM_FUNC_GETLINE): Run this test.
65243         (AC_CHECK_FUNCS): Check for getdelim.
65244         Reported by Bob Proulx.
65245
65246 1999-08-02  Jim Meyering  <meyering@ascend.com>
65247
65248         * m4/jm-macros.m4: Add a comment.
65249
65250 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65251
65252         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65253         <inttypes.h> defines strtoumax as a macro (and not as a
65254         function).
65255
65256 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65257
65258         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65259         that we can shift, multiply and divide unsigned long long
65260         values; Ultrix cc can't do it.
65261
65262 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65263
65264         * m4/mktime.m4: New file, which is a preview of what should appear
65265         in the next public autoconf release.
65266
65267 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65268
65269         * m4/lfs.m4: Remove this file.
65270         * m4/largefile.m4: New file.  It contains the old contents of
65271         lfs.m4, except that all names with prefix AC_LFS have been
65272         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65273         compatible with future autoconf versions.  Also, some minor m4
65274         quoting problems have been fixed.
65275
65276 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65277
65278         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65279         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65280         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65281         and simplify the shell code.
65282
65283 1999-08-01  Jim Meyering  <meyering@ascend.com>
65284
65285         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65286         m4.
65287
65288 1999-07-20  Jim Meyering  <meyering@ascend.com>
65289
65290         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65291
65292 1999-07-15  Jim Meyering  <meyering@ascend.com>
65293
65294         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65295
65296 1999-05-22  Jim Meyering  <meyering@ascend.com>
65297
65298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65299
65300 1999-05-20  Jim Meyering  <meyering@ascend.com>
65301
65302         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65303         Add a colon after each `then' in case $4 is empty.
65304
65305 1999-05-16  Jim Meyering  <meyering@ascend.com>
65306
65307         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65308
65309 1999-05-10  Jim Meyering  <meyering@ascend.com>
65310
65311         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65312
65313         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65314         AC_FUNC_MKTIME.
65315
65316 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65317
65318         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65319
65320 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65321
65322         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65323         not CPPFLAGS, so that linking works correctly in IRIX.
65324
65325 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65326
65327         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65328
65329 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65330
65331         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65332         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65333         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65334         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65335         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65336
65337         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65338
65339 1999-04-20  Jim Meyering  <meyering@ascend.com>
65340
65341         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65342         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65343         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65344
65345 1999-04-18  Jim Meyering  <meyering@ascend.com>
65346
65347         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65348         * m4/jm-macros.m4: Use it.
65349
65350 1999-04-06  Jim Meyering  <meyering@ascend.com>
65351
65352         * m4/strftime.m4: Remove test for %f.
65353
65354 1999-03-29  Jim Meyering  <meyering@ascend.com>
65355
65356         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65357         superset of the AC_TYPE_* checks in the textutils, fileutils,
65358         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65359         AC_TYPE_PID_T.
65360
65361 1999-03-28  Jim Meyering  <meyering@ascend.com>
65362
65363         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65364         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65365         replaced e.g., in the *.sh files of the sh-utils.
65366
65367 1999-03-20  Jim Meyering  <meyering@ascend.com>
65368
65369         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65370         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65371         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65372
65373 1999-03-19  Jim Meyering  <meyering@ascend.com>
65374
65375         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65376
65377 1999-03-12  Jim Meyering  <meyering@ascend.com>
65378
65379         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65380
65381 1999-03-07  Jim Meyering  <meyering@ascend.com>
65382
65383         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65384         declared.
65385
65386 1999-02-17  Jim Meyering  <meyering@ascend.com>
65387
65388         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65389         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65390
65391 1999-02-07  Jim Meyering  <meyering@ascend.com>
65392
65393         * m4/group-member.m4: New file -- extracted from sh-utils'
65394         configure.in.
65395
65396         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65397         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65398
65399 1999-02-06  Jim Meyering  <meyering@ascend.com>
65400
65401         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65402         * m4/fnmatch.m4: Likewise.
65403         * m4/getgroups.m4: Likewise.
65404         * m4/lstat.m4: Likewise.
65405         * m4/malloc.m4: Likewise.
65406         * m4/putenv.m4: Likewise.
65407         * m4/realloc.m4: Likewise.
65408         * m4/regex.m4: Likewise.
65409         * m4/stat.m4: Likewise.
65410         * m4/strftime.m4: Likewise.
65411         Suggestion from Alain Magloire.
65412
65413         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65414         * m4/fnmatch.m4: Likewise.
65415         * m4/getgroups.m4: Likewise.
65416         * m4/getline.m4: Likewise.
65417         * m4/lstat.m4: Likewise.
65418         * m4/malloc.m4: Likewise.
65419         * m4/memcmp.m4: Likewise.
65420         * m4/putenv.m4: Likewise.
65421         * m4/realloc.m4: Likewise.
65422         * m4/regex.m4: Likewise.
65423         * m4/stat.m4: Likewise.
65424         * m4/strftime.m4: Likewise.
65425         Suggestion from Alain Magloire.
65426
65427         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65428         an argument.
65429
65430         * m4/regex.m4: Add a run-time Test for proper operation of
65431         re_compile_pattern.
65432
65433 1999-01-31  Jim Meyering  <meyering@ascend.com>
65434
65435         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65436
65437 1999-01-30  Jim Meyering  <meyering@ascend.com>
65438
65439         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65440
65441         * m4/jm-mktime.m4: Make this a wrapper around the official
65442         AM_FUNC_MKTIME rather than my private copy, now that the official one
65443         is up to date.
65444         * m4/mktime.m4: Remove file.
65445
65446         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65447         * m4/uptime.m4: Likewise.
65448         * m4/uintmax_t.m4: Likewise.
65449
65450 1999-01-28  Jim Meyering  <meyering@ascend.com>
65451
65452         * m4/jm-macros.m4: Use jm_AFS.
65453         * m4/afs.m4: New file (from fileutils' configure.in).
65454
65455         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65456         * m4/chown.m4: Likewise.
65457         * m4/d-ino.m4: Likewise.
65458         * m4/d-type.m4: Likewise.
65459         * m4/fnmatch.m4: Likewise.
65460         * m4/getgroups.m4: Likewise.
65461         * m4/gettext.m4: Likewise.
65462         * m4/jm-mktime.m4: Likewise.
65463         * m4/jm-winsz2.m4: Likewise.
65464         * m4/lcmessage.m4: Likewise.
65465         * m4/ls-mntd-fs.m4: Likewise.
65466         * m4/malloc.m4: Likewise.
65467         * m4/memcmp.m4: Likewise.
65468         * m4/putenv.m4: Likewise.
65469         * m4/realloc.m4: Likewise.
65470         * m4/st_mtim.m4: Likewise.
65471         * m4/strftime.m4: Likewise.
65472
65473 1999-01-16  Jim Meyering  <meyering@ascend.com>
65474
65475         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65476         (ARGMATCH_DIE_DECL): Define.
65477
65478 1999-01-12  Jim Meyering  <meyering@ascend.com>
65479
65480         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65481         Reported by Lars Hecking.
65482
65483 1999-01-10  Jim Meyering  <meyering@ascend.com>
65484
65485         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65486         gross kludge.
65487         * m4/inttypes_h.m4: Likewise.
65488         * m4/lstat.m4: Likewise.
65489         * m4/malloc.m4: Likewise.
65490         * m4/readdir.m4: Likewise.
65491         * m4/realloc.m4: Likewise.
65492         * m4/st_dm_mode.m4: Likewise.
65493         * m4/stat.m4: Likewise.
65494         * m4/utimbuf.m4: Likewise.
65495         * m4/utimes.m4: Likewise.
65496
65497         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65498         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65499         comments in config.h.in are meaningful.
65500
65501         * m4/jm-macros.m4: Require autoconf-2.13 here.
65502
65503         * m4/regex.m4: By default, don't use the included regex.c on systems
65504         with glibc 2.  Suggestion from Uli Drepper.
65505
65506 1999-01-02  Jim Meyering  <meyering@ascend.com>
65507
65508         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65509
65510 1998-12-18  Jim Meyering  <meyering@ascend.com>
65511
65512         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65513         Based on a suggestion from Lars Hecking.
65514
65515 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65516
65517         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65518
65519 1998-11-16  Jim Meyering  <meyering@ascend.com>
65520
65521         * m4/lfs.m4: Double-quote the `uname...` expression.
65522
65523 1998-11-14  Jim Meyering  <meyering@ascend.com>
65524
65525         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65526         * m4/stat.m4: Likewise.
65527
65528 1998-11-03  Jim Meyering  <meyering@ascend.com>
65529
65530         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65531         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65532
65533 1998-10-18  Jim Meyering  <meyering@ascend.com>
65534
65535         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65536
65537 1998-10-17  Jim Meyering  <meyering@ascend.com>
65538
65539         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65540         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65541         calls for those previously hard-coded headers.  Instead, take a new
65542         parameter.
65543         (jm_CHECK_DECLARATIONS): Reflect interface change.
65544         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65545         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65546
65547         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65548
65549 1998-10-14  Jim Meyering  <meyering@ascend.com>
65550
65551         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65552         instead of "TZ=America/Vancouver".  From Paul Eggert.
65553
65554 1998-10-11  Jim Meyering  <meyering@ascend.com>
65555
65556         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65557         This adds a test for a recently added compatibility fix for mktime.c.
65558         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65559
65560 1998-09-27  Jim Meyering  <meyering@ascend.com>
65561
65562         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65563
65564         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65565         ../configure.in, including a change from Gordon Matzigkeit to allow
65566         cross-compiling for the Hurd.
65567
65568         * m4/glibc.m4: New file/macro to test for the GNU C Library
65569         versions 1 and 2.  From Gordon Matzigkeit.
65570         Indent.
65571
65572 1998-09-21  Jim Meyering  <meyering@ascend.com>
65573
65574         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65575
65576 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65577
65578         Port nanosecond-resolution times to UnixWare 2.1.2 and
65579         pedantic Solaris 2.6.
65580
65581         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65582         AC_STRUCT_ST_MTIM.
65583         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65584         Generate name of ns member, instead of just 1 or undef.
65585         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65586
65587 1998-08-15  Jim Meyering  <meyering@ascend.com>
65588
65589         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65590         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65591         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65592         instead of jm_TYPE_SSIZE_T.
65593
65594 1998-08-12  Jim Meyering  <meyering@ascend.com>
65595
65596         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65597
65598 1998-08-02  Jim Meyering  <meyering@ascend.com>
65599
65600         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65601         in acconfig.h manually.
65602
65603 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65604
65605         * m4/st_mtim.m4: New file.
65606
65607 1998-07-28  Jim Meyering  <meyering@ascend.com>
65608
65609         * m4/utimes.m4: Undef stat.
65610
65611 1998-07-25  Jim Meyering  <meyering@ascend.com>
65612
65613         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65614         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65615
65616 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65617
65618         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65619         uid and gid actually remain unchanged.
65620
65621 1998-07-07  Jim Meyering  <meyering@ascend.com>
65622
65623         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65624
65625 1998-07-04  Jim Meyering  <meyering@ascend.com>
65626
65627         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65628         to prove that this macro can be used in packages without regex.c.
65629
65630 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65631
65632         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65633         is to be used.
65634
65635 1998-07-03  Jim Meyering  <meyering@ascend.com>
65636
65637         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65638
65639         * m4/gettext.m4: New file -- from gettext-0.10.35.
65640         * m4/lcmessage.m4: Likewise.
65641         * m4/progtest.m4: Likewise.
65642
65643         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65644         * m4/jm-macros.m4: Require the new macro.
65645
65646 1998-06-29  Jim Meyering  <meyering@ascend.com>
65647
65648         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65649         for the definition of NGROUPS (used in a system header included
65650         by sys/mount.h).
65651
65652 1998-06-28  Jim Meyering  <meyering@ascend.com>
65653
65654         * m4/ls-mntd-fs.m4: New file.
65655         * m4/fstypename.m4: New file.
65656
65657         * m4/jm-macros.m4: Require the new macro.
65658         * m4/jm-glibc-io.m4: New file.
65659
65660 1998-05-19  Jim Meyering  <meyering@ascend.com>
65661
65662         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65663         * m4/lchown.m4: New file.
65664
65665         * m4/Makefile.am.in: New file.
65666         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65667
65668 1998-05-14  Jim Meyering  <meyering@ascend.com>
65669
65670         * m4/Makefile.am (EXTRA_DIST): Add them.
65671         * m4/jm-macros.m4: New file.
65672         * m4/utimbuf.m4: New file.
65673
65674 1998-05-12  Jim Meyering  <meyering@ascend.com>
65675
65676         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65677
65678 1998-05-11  Jim Meyering  <meyering@ascend.com>
65679
65680         * m4/isc-posix.m4: New file.
65681
65682 1998-05-10  Jim Meyering  <meyering@ascend.com>
65683
65684         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65685
65686 1998-05-09  Jim Meyering  <meyering@ascend.com>
65687
65688         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65689         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65690         with automake.
65691
65692         * m4/ssize_t.m4: New file.
65693         * m4/mktime.m4: Remove file -- the new automake has this now.
65694
65695 1998-04-26  Jim Meyering  <meyering@ascend.com>
65696
65697         * m4/assert.m4: New file.
65698         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65699
65700 1998-04-05  Jim Meyering  <meyering@ascend.com>
65701
65702         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65703         (jm_PREREQ): Use it here.
65704
65705 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65706
65707         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65708         in acconfig.h.
65709
65710 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65711
65712         * m4/prereq.m4: New file.
65713         * m4/error.m4: New file.
65714         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65715
65716 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65717
65718         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65719         cache-check for the same variable -- that defeated the purpose of
65720         the test; the test program was never run.  This was a problem only
65721         on systems with losing getline functions -- HP-UX 10.20 is one.
65722         Reported by Bjorn Helgaas.
65723
65724 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65725
65726         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65727
65728 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65729
65730         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65731
65732         * m4/const.m4: New file.  Use an initializer in this declaration
65733         typedef int charset[2]; const charset x;
65734         Reported by Bob Glickstein.
65735
65736 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65737
65738         * m4/chown.m4: Fix reversed types on -1 args to chown.
65739         From Kaveh Ghazi.
65740
65741 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65742
65743         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65744         Add lseek and memchr.
65745
65746         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65747         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65748         have a 20-character limit on names.
65749
65750 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65751
65752         * m4/inttypes_h.m4: New file.
65753         * m4/uintmax_t.m4: New file.
65754         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65755
65756
65757         -----
65758
65759         Local Variables:
65760         coding: utf-8
65761         End:
65762
65763         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65764
65765         Copying and distribution of this file, with or without
65766         modification, are permitted provided the copyright notice
65767         and this notice are preserved.