getopt-posix: detect MacOS bug
[gnulib.git] / ChangeLog
1 2010-04-13  Eric Blake  <eblake@redhat.com>
2
3         getopt-posix: detect MacOS bug
4         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5         optind when missing a required argument.
6         * doc/posix-functions/getopt.texi (getopt): Document the bug.
7         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9         Likewise.
10
11         getopt-posix: avoid spurious failure on Solaris
12         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13         an indicator that setting optind=1 is sufficient for reset.
14
15         getopt-posix: avoid spurious failure on FreeBSD
16         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17         in POSIX mode, since the m4 test uses it.
18
19 2010-04-13  Jim Meyering  <meyering@redhat.com>
20
21         doc: users.txt: GNU patch now uses gnulib
22         * users.txt: Add patch.
23
24 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25
26         git-version-gen: use "git update-index..." rather than "git status"
27         * build-aux/git-version-gen: Use git update-index --refresh, not
28         "git status".  With some versions of git, "git status" would fail
29         to update the index and result in an unwarranted "-dirty" suffix.
30
31 2010-04-11  Bruno Haible  <bruno@clisp.org>
32
33         libunistring: Correct value of $LTLIBUNISTRING.
34         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35         correct the value of $LTLIBUNISTRING.
36
37 2010-04-11  Bruno Haible  <bruno@clisp.org>
38
39         havelib: Add static libraries to LIBS in the right order.
40         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
41         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
42
43 2010-04-11  Bruno Haible  <bruno@clisp.org>
44
45         libunistring: Detect libunistring also when it depends on libiconv.
46         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
47         the second AC_LIB_HAVE_LINKFLAGS invocation.
48
49 2010-04-11  Bruno Haible  <bruno@clisp.org>
50
51         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
52
53 2010-04-10  Bruno Haible  <bruno@clisp.org>
54
55         mkdir: Make it work on mingw64.
56         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
57         * lib/mkdir.c: Update comment.
58         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
59
60 2010-04-10  Jim Meyering  <meyering@redhat.com>
61
62         maint.mk: correct a diagnostic
63         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
64         in diagnostic; now use $prohibit.
65
66 2010-04-10  Bruno Haible  <address@hidden>
67
68         fchownat: Fix a C++ test error on Solaris 8.
69         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
70         the function does not exist.
71
72 2010-04-10  Bruno Haible  <bruno@clisp.org>
73
74         vasnprintf: Add more tests.
75         * tests/test-vasnprintf-posix.c: Include <errno.h>.
76         (test_function): Test converting an invalid wide string.
77
78         vasnprintf: Correct handling of unconvertible wide string arguments.
79         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
80         VASNPRINTF.
81         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
82         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
83         smaller than the expected maximum need for the directive. Set errno to
84         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
85         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
86         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
87         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
88         * modules/vasnprintf (Files): Add m4/printf.m4.
89         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
90
91 2010-04-10  Bruno Haible  <bruno@clisp.org>
92
93         vasnprintf: Fix crash in %ls directive.
94         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
95         string is passed as argument to %ls, with no precision and no width.
96         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
97
98 2010-04-10  Bruno Haible  <bruno@clisp.org>
99
100         vasnprintf: Fix multiple test failures on mingw.
101         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
102         _snprintf, or snwprintf, not _snwprintf.
103
104 2010-04-10  Bruno Haible  <bruno@clisp.org>
105
106         write: Fix a C++ test error on mingw.
107         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
108
109 2010-04-10  Bruno Haible  <bruno@clisp.org>
110
111         vasnprintf test: Reduce code duplication.
112         * tests/test-vasnprintf.c (test_function): New function, extracted from
113         test_vasnprintf.
114         (test_vasnprintf, test_asnprintf): Invoke it.
115
116 2010-04-08  James Youngman  <jay@gnu.org>
117
118         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
119         the example.
120
121 2010-04-09  Jim Meyering  <meyering@redhat.com>
122
123         init.sh: run tr in the "C" locale to avoid multibyte interpretation
124         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
125         not try to interpret its random input bytes.  Jarno Rajahalme reported
126         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
127         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
128         (mktempd_): Likewise, just in case.
129
130         ftruncate: add two years to projected module removal date: 2012
131         * m4/ftruncate.m4: Adjust comments.
132
133         ftruncate: mark module as obsolete; even MinGW provides it, now
134         * modules/ftruncate (Status): Obsolete.
135         (Notice): Say that.
136         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
137         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
138
139 2010-04-08  Bruno Haible  <bruno@clisp.org>
140
141         Fix side effects from tests-related modules.
142         * modules/dprintf-posix (Comment): New section.
143         * modules/fprintf-posix (Comment): Likewise.
144         * modules/obstack-printf-posix (Comment): Likewise.
145         * modules/printf-posix (Comment): Likewise.
146         * modules/snprintf-posix (Comment): Likewise.
147         * modules/sprintf-posix (Comment): Likewise.
148         * modules/vasnprintf-posix (Comment): Likewise.
149         * modules/vasprintf-posix (Comment): Likewise.
150         * modules/vdprintf-posix (Comment): Likewise.
151         * modules/vfprintf-posix (Comment): Likewise.
152         * modules/vprintf-posix (Comment): Likewise.
153         * modules/vsnprintf-posix (Comment): Likewise.
154         * modules/vsprintf-posix (Comment): Likewise.
155         * modules/xprintf-posix (Comment): Likewise.
156         * modules/xvasprintf-posix (Comment): Likewise.
157         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
158         * modules/floorf-tests (Depends-on): Likewise.
159         * modules/round-tests (Depends-on): Likewise.
160         * modules/roundf-tests (Depends-on): Likewise.
161         * modules/trunc-tests (Depends-on): Likewise.
162         * modules/truncf-tests (Depends-on): Likewise.
163         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
164         'fprintf-posix' module is not present.
165         * tests/test-floorf2.c (check): Likewise.
166         * tests/test-trunc2.c (check): Likewise.
167         * tests/test-truncf2.c (check): Likewise.
168         * tests/test-round2.c (equal): Likewise.
169         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
170
171 2010-04-07  Karl Berry  <karl@gnu.org>
172
173         * config/srclist.txt,
174         * config/srclistvars.sh,
175         * config/srclist-update: doc fixes.
176
177 2010-04-07  Jim Meyering  <meyering@redhat.com>
178
179         maint.mk: add a PATH crosschecking syntax-check rule
180         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
181         Useful if you use a test like the one in help-version (coreutils,
182         diffutils, grep, gzip) that ensures $(VERSION) matches what is
183         printed by prog --version.
184
185 2010-04-06  Bruno Haible  <bruno@clisp.org>
186
187         Fix link error on mingw.
188         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
189         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
190
191 2010-04-06  Bruno Haible  <bruno@clisp.org>
192
193         Assume rmdir exists.
194         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
195
196 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
197
198         doc: update users.txt
199         * users.txt: Add gcal.
200
201 2010-04-06  Jim Meyering  <meyering@redhat.com>
202
203         init.sh: simply unset TMPDIR rather than risking env -i
204         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
205         although it probably works fine on all Unix-based systems, some
206         systems (Cygwin?) cannot tolerate a totally cleared environment.
207         Suggestion from Eric Blake.
208
209 2010-04-06  Jim Meyering  <meyering@redhat.com>
210
211         init.sh: portability fix: use env's POSIX-specified -i option not -u
212         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
213         than unportable env -u.  Solaris 5.11's env lacks support for -u.
214
215 2010-04-05  Bruno Haible  <bruno@clisp.org>
216
217         btowc: Work around Cygwin 1.7.2 bug.
218         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
219         does not map NUL to 0.
220         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
221
222 2010-04-05  Bruno Haible  <bruno@clisp.org>
223
224         Make the multithread modules work on Cygwin 1.7.2.
225         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
226         imported symbols can be declared weak, so that it returns "no" on
227         Cygwin 1.7.2.
228
229 2010-04-05  Bruno Haible  <bruno@clisp.org>
230
231         Use the module 'strncat'.
232         * modules/unistr/u8-strncat (Depends-on): Add strncat.
233
234         Tests for module 'strncat'.
235         * modules/strncat-tests: New file.
236         * tests/test-strncat.c: New file.
237
238         New module 'strncat'.
239         * lib/string.in.h (strncat): New declaration.
240         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
241         * m4/strncat.m4: New file, based on m4/memchr.m4.
242         * modules/strncat: New file.
243         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
244         is declared.
245         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
246         REPLACE_STRNCAT.
247         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
248         REPLACE_STRNCAT.
249         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
250         module.
251         * tests/test-string-c++.cc: Check signature of strncat.
252
253 2010-04-05  Jim Meyering  <meyering@redhat.com>
254
255         xstrtoumax-tests: convert to use init.sh
256         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
257         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
258         Use Exit, not exit.
259         Remove uses of $EXEEXT and "./" to run a program in the current dir.
260
261         xstrtoimax-tests: convert to use init.sh
262         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
263         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
264         Use Exit, not exit.
265         Remove uses of $EXEEXT and "./" to run a program in the current dir.
266
267 2010-04-05  Bruno Haible  <bruno@clisp.org>
268
269         sys_socket: Avoid #define replacements in C++ mode.
270         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
271         warning to the function if possible, rather than #defining the symbol
272         to a dysfunctional alias.
273
274 2010-04-05  Bruno Haible  <bruno@clisp.org>
275
276         fseeko: Fix C++ test error on mingw.
277         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
278         gl_FUNC_FSEEKO.
279         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
280         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
281         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
282         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
283
284 2010-04-05  Bruno Haible  <bruno@clisp.org>
285
286         duplocale: Improve test output.
287         * tests/test-duplocale.c (main): Print reason for skipped test.
288
289 2010-04-05  Bruno Haible  <bruno@clisp.org>
290
291         Assume rmdir exists.
292         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
293         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
294
295 2010-04-05  Bruno Haible  <bruno@clisp.org>
296
297         Fix link error on Solaris 8 with cc.
298         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
299
300 2010-04-05  Bruno Haible  <bruno@clisp.org>
301
302         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
303         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
304
305 2010-04-05  Bruno Haible  <bruno@clisp.org>
306
307         vasprintf: Update documentation.
308         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
309
310 2010-04-05  Bruno Haible  <bruno@clisp.org>
311
312         ptsname: Improve test.
313         * tests/test-ptsname.c (main): Also try the various master names of BSD
314         systems.
315
316 2010-04-05  Bruno Haible  <bruno@clisp.org>
317
318         memchr: Avoid a possible C++ test error.
319         * lib/string.in.h (memchr): Provide declaration if function is missing.
320         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
321         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
323         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
324
325 2010-04-05  Bruno Haible  <bruno@clisp.org>
326
327         strtok_r: Improve idiom.
328         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
329         AC_LIBOBJ is used.
330
331 2010-04-05  Bruno Haible  <bruno@clisp.org>
332
333         strdup: Improve idiom.
334         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
335         AC_LIBOBJ is used.
336         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
337         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
338         when AC_LIBOBJ is used.
339
340 2010-04-05  Bruno Haible  <bruno@clisp.org>
341
342         mbsinit, mbrtowc, wcrtomb: Improve idioms.
343         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
344         don't set REPLACE_MBSINIT to 1.
345         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
346         don't set REPLACE_MBRTOWC to 1.
347         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
348         exist, don't set REPLACE_MBSRTOWCS to 1.
349         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
350         exist, don't set REPLACE_MBSNRTOWCS to 1.
351         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
352         don't set REPLACE_WCRTOMB to 1.
353         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
354         exist, don't set REPLACE_WCSRTOMBS to 1.
355         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
356         exist, don't set REPLACE_WCSNRTOMBS to 1.
357
358 2010-04-05  Bruno Haible  <bruno@clisp.org>
359
360         ldexpl: Improve idiom.
361         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
362         make sure to set HAVE_DECL_LDEXPL to 0.
363
364 2010-04-05  Jim Meyering  <meyering@redhat.com>
365
366         xstrtol-tests: convert to use init.sh
367         * modules/xstrtol-tests (Files): Add tests/init.sh.
368         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
369         Use Exit, not exit.
370         Remove uses of $EXEEXT and "./" to run a program in the current dir.
371
372         atexit-tests: convert to use init.sh
373         * modules/atexit-tests (Files): Add tests/init.sh.
374         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
375         Use Exit, not exit.
376         Remove uses of $EXEEXT and "./" to run a program in the current dir.
377
378         init.sh: fix typo
379         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
380
381         init.sh: make it easier for a test script to write to the tty, ...
382         when using automake's parallel-tests mode.
383         * tests/init.sh (stderr_fileno_): Define overridable variable.
384         (warn_): New function, to use it.
385         (fail_, skip_, framework_failure_): Use warn_.
386
387 2010-04-04  Bruno Haible  <bruno@clisp.org>
388
389         btowc: Avoid warning.
390         * lib/btowc.c: Include <stdlib.h>.
391         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
392
393 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
394             Bruno Haible  <bruno@clisp.org>
395
396         wchar: Port to NetBSD 1.5.
397         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
398         * lib/wctype.in.h (WEOF): Likewise.
399
400 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
401             Bruno Haible  <bruno@clisp.org>
402
403         Port extended stdio to NetBSD 1.5.
404         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
405         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
406         older.
407
408 2010-04-04  Bruno Haible  <bruno@clisp.org>
409
410         string: Remove unused substitution.
411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
412         HAVE_DECL_STRERROR.
413         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
414
415 2010-04-04  Bruno Haible  <bruno@clisp.org>
416
417         strtod: Avoid a possible C++ test error.
418         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
419         set REPLACE_STRTOD.
420
421 2010-04-04  Bruno Haible  <bruno@clisp.org>
422
423         strerror: Update documentation.
424         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
425
426 2010-04-04  Bruno Haible  <bruno@clisp.org>
427
428         stdio: Fix some C++ test errors on Solaris 8 with GCC.
429         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
430         _GL_CXXALIAS_SYS_CAST.
431
432 2010-04-04  Bruno Haible  <bruno@clisp.org>
433
434         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
435         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
436         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
437         REPLACE_FREXPL to 1.
438         * doc/posix-functions/frexpl.texi: Update documentation.
439
440 2010-04-04  Bruno Haible  <bruno@clisp.org>
441
442         math: Fix some C++ test errors on Solaris 8 and Cygwin.
443         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
444
445 2010-04-04  Bruno Haible  <bruno@clisp.org>
446
447         Implement nanosleep for native Windows.
448         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
449
450 2010-04-04  Bruno Haible  <bruno@clisp.org>
451
452         math: Fix some C++ test errors on Solaris 8.
453         * lib/math.in.h (truncf, trunc): Use simpler idiom.
454
455 2010-04-04  Bruno Haible  <bruno@clisp.org>
456
457         math: Fix some C++ test errors on Cygwin.
458         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
459         truncl): Provide declaration if the system does not have it.
460         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
461         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
462         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
463         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
464         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
465         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
466         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
467         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
468         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
469         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
470         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
471         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
472         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
473         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
474         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
475         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
477         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
478         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
479         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
480         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
481         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
482
483 2010-04-04  Bruno Haible  <bruno@clisp.org>
484
485         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
486         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
487         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
488         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
489         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
490         * m4/isinf.m4 (gl_ISINF): Likewise.
491         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
492
493 2010-04-04  Bruno Haible  <bruno@clisp.org>
494
495         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
496         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
497
498 2010-04-04  Bruno Haible  <bruno@clisp.org>
499
500         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
501         * modules/tmpfile (configure.ac): Update.
502
503         tmpfile: Fix C++ test error on mingw.
504         * lib/stdio.in.h (tmpfile): New declaration.
505         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
506         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
507         * modules/tmpfile (Depends-on): Add stdio.
508         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
509         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
510         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
511         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
512         REPLACE_TMPFILE.
513         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
514
515 2010-04-04  Bruno Haible  <bruno@clisp.org>
516
517         ioctl: Fix C++ test error on mingw.
518         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
519         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
520         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
521
522 2010-04-03  Bruno Haible  <bruno@clisp.org>
523
524         wcwidth: Fix C++ test error on mingw.
525         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
527         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
528
529 2010-04-03  Bruno Haible  <bruno@clisp.org>
530
531         nanosleep: Fix C++ test error on mingw.
532         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
533         * lib/time.in.h (nanosleep): Use modern idiom.
534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
535         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
536         REPLACE_NANOSLEEP to 1.
537         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
538         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
539
540 2010-04-03  Bruno Haible  <bruno@clisp.org>
541
542         strptime: Fix C++ test error on mingw.
543         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
544         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
545         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
546         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
547         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
548         not REPLACE_STRPTIME.
549         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
550         REPLACE_STRPTIME.
551
552 2010-04-03  Bruno Haible  <bruno@clisp.org>
553
554         timegm: Fix C++ test error on mingw.
555         * lib/time.in.h (timegm): Use modern idiom.
556         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
557         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
558         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
559         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
560
561 2010-04-03  Bruno Haible  <bruno@clisp.org>
562
563         timegm: Assume declaration if function exists.
564         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
565         if it exists. Don't clobber ac_cv_func_timegm.
566
567 2010-04-03  Bruno Haible  <bruno@clisp.org>
568
569         time_r: Fix C++ test error on mingw.
570         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
571         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
572         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
573         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
574         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
575
576 2010-04-03  Bruno Haible  <bruno@clisp.org>
577
578         time_r: Minor updates.
579         * modules/time_r (Description): Mention the provided functions.
580         * lib/time_r.c: Don't include <string.h>.
581         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
582         * doc/posix-functions/localtime_r.texi: Likewise.
583
584 2010-04-03  Bruno Haible  <bruno@clisp.org>
585
586         time: Fix regression introduced on 2010-03-08.
587         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
588         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
589
590 2010-04-03  Jim Meyering  <meyering@redhat.com>
591
592         maint.mk: don't silently disable project-specific syntax-check rules
593         * top/maint.mk (_prohibit_regexp): Define, to help people realize
594         that they need to convert their project-specific syntax-check rules
595         to use the new _sc_search_regexp.
596
597 2010-04-03  Bruno Haible  <bruno@clisp.org>
598
599         fchdir: Fix regression introduced on 2010-03-08.
600         * lib/unistd.in.h (fchdir): Fix declaration.
601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
603         REPLACE_FCHDIR.
604         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
605         REPLACE_FCHDIR.
606
607 2010-04-03  Bruno Haible  <bruno@clisp.org>
608
609         getpagesize: Fix C++ test error on mingw.
610         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
611         system does not declare the function.
612         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
613         declared.
614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
615         HAVE_DECL_GETPAGESIZE.
616         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
617
618 2010-04-03  Bruno Haible  <bruno@clisp.org>
619
620         stdio: Make C++ tests work on mingw.
621         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
622         does not declare the function.
623
624 2010-04-03  Bruno Haible  <bruno@clisp.org>
625
626         ftello: Fix C++ test error on mingw.
627         * lib/stdio.in.h (ftello): Use modern idiom.
628         * lib/ftello.c (ftello): Renamed from rpl_ftello.
629         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
630         is missing and that it needs to be replaced.
631         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
633         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
634
635 2010-04-03  Bruno Haible  <bruno@clisp.org>
636
637         fseeko: Fix C++ test error on mingw.
638         * lib/stdio.in.h (fseeko): Use modern idiom.
639         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
640         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
641         is missing and that it needs to be replaced.
642         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
644         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
645
646 2010-04-03  Bruno Haible  <bruno@clisp.org>
647
648         mkstemp: Fix C++ test error on mingw.
649         * lib/stdlib.in.h (mkstemp): Use modern idiom.
650         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
651         function is missing and that it needs to be replaced.
652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
653         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
654
655 2010-04-03  Bruno Haible  <bruno@clisp.org>
656
657         stpncpy: Fix C++ test error on mingw.
658         * lib/string.in.h (stpncpy): Use modern idiom.
659         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
660         function is missing and that it needs to be replaced.
661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
662         REPLACE_STPNCPY.
663         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
664
665 2010-04-03  Bruno Haible  <bruno@clisp.org>
666
667         sys_stat: Fix C++ test error on mingw.
668         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
669         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
670
671 2010-04-03  Bruno Haible  <bruno@clisp.org>
672
673         pty: Update doc.
674         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
675
676 2010-04-03  Bruno Haible  <bruno@clisp.org>
677
678         unistd: Fix C++ test error on mingw.
679         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
680
681 2010-04-03  Bruno Haible  <bruno@clisp.org>
682
683         Update doc regarding mingw.
684         * doc/glibc-functions/openpty.texi: Update regarding mingw.
685         * doc/glibc-functions/login_tty.texi: Likewise.
686         * doc/glibc-functions/forkpty.texi: Likewise.
687
688 2010-04-03  Bruno Haible  <bruno@clisp.org>
689
690         stdlib: Avoid compilation failure of c-strtold on mingw.
691         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
692
693 2010-04-03  Bruno Haible  <bruno@clisp.org>
694
695         locale: Make C++ tests work on Cygwin and mingw.
696         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
697         cannot provide the function.
698         Reported by Simon Josefsson.
699
700 2010-04-03  Bruno Haible  <bruno@clisp.org>
701
702         localename: Port to MacOS X 10.6.
703         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
704         memory layout of the locales in MacOS X 10.6 as well.
705         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
706
707 2010-04-02  Bruno Haible  <bruno@clisp.org>
708
709         gnulib-tool: Ensure that long-running tests are executed last.
710         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
711         running tests after the one for the other tests.
712
713 2010-04-02  Bruno Haible  <bruno@clisp.org>
714
715         gnulib-tool: Ensure the tests in the main directory are executed first.
716         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
717         start with the current directory.
718
719 2010-04-02  Bruno Haible  <bruno@clisp.org>
720
721         Tests for module 'havelib', moved here from GNU gettext.
722         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
723         modifications.
724         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
725         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
726         with modifications.
727         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
728         modifications.
729         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
730         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
731         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
732         with modifications.
733         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
734         with modifications.
735         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
736         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
737         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
738         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
739         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
740         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
741         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
742         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
743         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
744         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
745         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
746         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
747         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
748         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
749         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
750         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
751         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
752         with modifications.
753         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
754         with modifications.
755         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
756         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
757         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
758         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
759         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
760         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
761         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
762         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
763         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
764         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
765         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
766         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
767         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
768         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
769         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
770         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
771         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
772         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
773         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
774         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
775         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
776         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
777         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
778         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
779         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
780         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
781         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
782         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
783         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
784         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
785         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
786         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
787         * tests/havelib/rpathx/rpathx.c: New file, from
788         gettext/autoconf-lib-link.
789         * tests/havelib/rpathx/Makefile.am: New file, from
790         gettext/autoconf-lib-link.
791         * tests/havelib/rpathx/configure.ac: New file, from
792         gettext/autoconf-lib-link with modifications.
793         * tests/havelib/rpathy/rpathy.c: New file, from
794         gettext/autoconf-lib-link.
795         * tests/havelib/rpathy/Makefile.am: New file, from
796         gettext/autoconf-lib-link.
797         * tests/havelib/rpathy/configure.ac: New file, from
798         gettext/autoconf-lib-link with modifications.
799         * tests/havelib/rpathz/rpathz.c: New file, from
800         gettext/autoconf-lib-link.
801         * tests/havelib/rpathz/Makefile.am: New file, from
802         gettext/autoconf-lib-link.
803         * tests/havelib/rpathz/configure.ac: New file, from
804         gettext/autoconf-lib-link with modifications.
805         * tests/havelib/rpathlx/usex.c: New file, from
806         gettext/autoconf-lib-link.
807         * tests/havelib/rpathlx/Makefile.am: New file, from
808         gettext/autoconf-lib-link.
809         * tests/havelib/rpathlx/configure.ac: New file, from
810         gettext/autoconf-lib-link with modifications.
811         * tests/havelib/rpathly/usey.c: New file, from
812         gettext/autoconf-lib-link.
813         * tests/havelib/rpathly/Makefile.am: New file, from
814         gettext/autoconf-lib-link.
815         * tests/havelib/rpathly/configure.ac: New file, from
816         gettext/autoconf-lib-link with modifications.
817         * tests/havelib/rpathlz/usez.c: New file, from
818         gettext/autoconf-lib-link.
819         * tests/havelib/rpathlz/Makefile.am: New file, from
820         gettext/autoconf-lib-link.
821         * tests/havelib/rpathlz/configure.ac: New file, from
822         gettext/autoconf-lib-link with modifications.
823         * tests/havelib/rpathlyx/usey.c: New file, from
824         gettext/autoconf-lib-link.
825         * tests/havelib/rpathlyx/Makefile.am: New file, from
826         gettext/autoconf-lib-link.
827         * tests/havelib/rpathlyx/configure.ac: New file, from
828         gettext/autoconf-lib-link with modifications.
829         * tests/havelib/rpathlzyx/usez.c: New file, from
830         gettext/autoconf-lib-link.
831         * tests/havelib/rpathlzyx/Makefile.am: New file, from
832         gettext/autoconf-lib-link.
833         * tests/havelib/rpathlzyx/configure.ac: New file, from
834         gettext/autoconf-lib-link with modifications.
835         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
836         with modifications.
837
838 2010-04-02  Bruno Haible  <bruno@clisp.org>
839
840         gnulib-tool: Create distributed built sources also for the tests.
841         * gnulib-tool (func_create_testdir): Also generate distributed built
842         sources in the tests directory.
843
844 2010-04-02  Bruno Haible  <bruno@clisp.org>
845
846         gnulib-tool: Obey user's environment variables.
847         * gnulib-tool (func_create_testdir): When creating built sources,
848         respect the environment variables for autoconf, automake, etc. given by
849         the user.
850
851 2010-04-02  Bruno Haible  <bruno@clisp.org>
852
853         gnulib-tool: Provide the value of --m4-base to modules.
854         * gnulib-tool (func_import, func_create_testdir): Emit a definition
855         of gl_m4_base.
856
857 2010-04-02  Eric Blake  <eblake@redhat.com>
858
859         maint.mk: fix some fallout
860         * NEWS: Document the incompatible change, and its effect on cfg.mk.
861         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
862
863 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
864
865         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
866         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
867         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
868         (sc_cast_of_x_alloc_return_value): Likewise.
869         (sc_cast_of_alloca_return_value): Likewise.
870         (sc_space_tab): Likewise.
871         (sc_prohibit_atoi_atof): Likewise.
872         (sc_prohibit_magic_number_exit): Likewise.
873         (sc_error_exit_success): Likewise.
874         (sc_file_system): Likewise.
875         (sc_prohibit_have_config_h): Likewise.
876         (sc_require_config_h): Likewise.
877         (sc_prohibit_HAVE_MBRTOWC): Likewise.
878         (sc_obsolete_symbols): Likewise.
879         (sc_changelog): Likewise.
880         (sc_program_name): Likewise.
881         (sc_the_the): Likewise.
882         (sc_trailing_blank): Likewise.
883         (sc_two_space_separator_in_usage): Likewise.
884         (sc_useless_cpp_parens): Likewise.
885         (sc_GPL_version): Likewise.
886         (sc_GFDL_version): Likewise.
887         (sc_texinfo_acronym): Likewise.
888         (sc_prohibit_cvs_keyword): Likewise.
889         (sc_prohibit_stat_st_blocks): Likewise.
890         (sc_prohibit_S_IS_definition): Likewise.
891         (sc_redundant_const): Likewise.
892         (sc_makefile_TAB_only_indentation): Likewise.
893         (sc_m4_quote_check): Likewise.
894         (sc_makefile_path_separator_check): Likewise.
895         (sc_copyright_check): Likewise.
896         (sc_Wundef_boolean): Likewise.
897         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
898
899         maint.mk: match 0 or more whitespace-before-function-call '('
900         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
901         that have zero or two-and-more spaces between the function name
902         and the open parenthesis.
903         (sc_error_message_warn_fatal): Likewise.
904         (sc_error_message_uppercase): Likewise.
905         (sc_error_message_period): Likewise.
906
907 2010-03-31  Eric Blake  <eblake@redhat.com>
908
909         maint.mk: check for [ as well as test
910         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
911         Based on a libvirt report by Matthias Bolte.
912
913         gnumakefile: don't squelch _version output
914         * top/GNUmakefile (_version): Create one-shot dependency rather
915         than using $(shell) when version must be regenerated.
916         (_autoreconf): Run verbosely, by default.
917
918         sys_time: avoid compiler warnings
919         * lib/sys_time.in.h (includes): Ensure gcc pragma is
920         unconditional, fixing regression from 2010-03-29.
921         Reported by Simon Josefsson.
922
923 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
924
925         maint.mk: s/_header_without_use/_sc_header_without_use/
926         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
927         (sc_prohibit_assert_without_use): Use the new name.
928         (sc_prohibit_close_stream_without_use): Likewise.
929         (sc_prohibit_getopt_without_use): Likewise.
930         (sc_prohibit_quotearg_without_use): Likewise.
931         (sc_prohibit_quote_without_use): Likewise.
932         (sc_prohibit_long_options_without_use): Likewise.
933         (sc_prohibit_inttostr_without_use): Likewise.
934         (sc_prohibit_ignore_value_without_use): Likewise.
935         (sc_prohibit_error_without_use): Likewise.
936         (sc_prohibit_xalloc_without_use): Likewise.
937         (sc_prohibit_hash_without_use): Likewise.
938         (sc_prohibit_hash_pjw_without_use): Likewise.
939         (sc_prohibit_safe_read_without_use): Likewise.
940         (sc_prohibit_argmatch_without_use): Likewise.
941         (sc_prohibit_canonicalize_without_use): Likewise.
942         (sc_prohibit_root_dev_ino_without_use): Likewise.
943         (sc_prohibit_openat_without_use): Likewise.
944         (sc_prohibit_c_ctype_without_use): Likewise.
945         (sc_prohibit_signal_without_use): Likewise.
946         (sc_prohibit_intprops_without_use): Likewise.
947
948 2010-03-30  Eric Blake  <eblake@redhat.com>
949
950         maint: improve module indicators
951         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
952         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
953         columns, and avoid extra macro expansion.
954
955         fdopendir: work around FreeBSD bug
956         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
957         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
958         * modules/dirent (Makefile.am): Substitute it.
959         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
960         declaration.
961         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
962         fix.
963         Reported by Christian Weisgerber <naddy@mips.inka.de>.
964
965 2010-03-29  Bruno Haible  <bruno@clisp.org>
966
967         Emit #pragma system_header after the inclusion guard, not before.
968         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
969         guard that spans the entire file, not before. This enables an
970         optimization in GCC's preprocessor.
971         * lib/ctype.in.h: Likewise.
972         * lib/dirent.in.h: Likewise.
973         * lib/errno.in.h: Likewise.
974         * lib/float.in.h: Likewise.
975         * lib/getopt.in.h: Likewise.
976         * lib/iconv.in.h: Likewise.
977         * lib/langinfo.in.h: Likewise.
978         * lib/locale.in.h: Likewise.
979         * lib/math.in.h: Likewise.
980         * lib/netdb.in.h: Likewise.
981         * lib/netinet_in.in.h: Likewise.
982         * lib/pty.in.h: Likewise.
983         * lib/sched.in.h: Likewise.
984         * lib/se-selinux.in.h: Likewise.
985         * lib/search.in.h: Likewise.
986         * lib/spawn.in.h: Likewise.
987         * lib/stdarg.in.h: Likewise.
988         * lib/stdint.in.h: Likewise.
989         * lib/string.in.h: Likewise.
990         * lib/strings.in.h: Likewise.
991         * lib/sys_file.in.h: Likewise.
992         * lib/sys_ioctl.in.h: Likewise.
993         * lib/sys_time.in.h: Likewise.
994         * lib/sys_times.in.h: Likewise.
995         * lib/sys_utsname.in.h: Likewise.
996         * lib/sys_wait.in.h: Likewise.
997         * lib/sysexits.in.h: Likewise.
998         * lib/wctype.in.h: Likewise.
999
1000 2010-03-28  James Youngman  <jay@gnu.org>
1001
1002         save-cwd: don't leak a file descriptor when the caller execs.
1003         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
1004         saved file descriptor.
1005         * modules/save-cwd (Depends-on): Depend on cloexec.
1006
1007 2010-03-29  Bruno Haible  <bruno@clisp.org>
1008
1009         Remove vestiges of fts-lgpl module.
1010         * lib/fts_.h: Assume GNULIB_FTS is 1.
1011         * lib/fts.c: Likewise.
1012         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1013
1014 2010-03-28  Bruno Haible  <bruno@clisp.org>
1015
1016         Fix definition of tests witness macro.
1017         * gnulib-tool (func_import): Fix definition of witness macro.
1018
1019 2010-03-28  Bruno Haible  <bruno@clisp.org>
1020
1021         Fix ioctl's protoype on glibc systems.
1022         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
1023         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
1024         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
1025         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
1026         signature. If not, arrange to replace the ioctl function.
1027         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1028         REPLACE_IOCTL.
1029         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
1030         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
1031         Reported by Ludovic Courtès <ludo@gnu.org>.
1032
1033 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
1034
1035         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
1036         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
1037         made it so grep -r --include=GLOB* ... did not work.
1038
1039 2010-03-26  Jim Meyering  <meyering@redhat.com>
1040             Eric Blake  <eblake@redhat.com>
1041
1042         maint.mk: prohibit use of test's -o and -a operators
1043         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
1044
1045 2010-03-28  Bruno Haible  <bruno@clisp.org>
1046
1047         Remove unused GNULIB_XYZ macro definitions.
1048         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
1049         invocation.
1050
1051 2010-03-28  Bruno Haible  <bruno@clisp.org>
1052
1053         Mark privileged tests modules.
1054         * modules/idpriv-drop-tests (Status): New section.
1055         * modules/idpriv-droptemp-tests (Status): New section.
1056
1057 2010-03-28  Bruno Haible  <bruno@clisp.org>
1058
1059         Split C++ tests into separate tests modules.
1060         * modules/dirent-c++-tests: New file, extracted from
1061         modules/dirent-tests.
1062         * modules/dirent-tests: Depend on it.
1063         * modules/fcntl-h-c++-tests: New file, extracted from
1064         modules/fcntl-h-tests.
1065         * modules/fcntl-h-tests: Depend on it.
1066         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
1067         * modules/glob-tests: Depend on it.
1068         * modules/iconv-h-c++-tests: New file, extracted from
1069         modules/iconv-h-tests.
1070         * modules/iconv-h-tests: Depend on it.
1071         * modules/langinfo-c++-tests: New file, extracted from
1072         modules/langinfo-tests.
1073         * modules/langinfo-tests: Depend on it.
1074         * modules/locale-c++-tests: New file, extracted from
1075         modules/locale-tests.
1076         * modules/locale-tests: Depend on it.
1077         * modules/math-c++-tests: New file, extracted from modules/math-tests.
1078         * modules/math-tests: Depend on it.
1079         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
1080         * modules/pty-tests: Depend on it.
1081         * modules/search-c++-tests: New file, extracted from
1082         modules/search-tests.
1083         * modules/search-tests: Depend on it.
1084         * modules/signal-c++-tests: New file, extracted from
1085         modules/signal-tests.
1086         * modules/signal-tests: Depend on it.
1087         * modules/spawn-c++-tests: New file, extracted from
1088         modules/spawn-tests.
1089         * modules/spawn-tests: Depend on it.
1090         * modules/stdio-c++-tests: New file, extracted from
1091         modules/stdio-tests.
1092         * modules/stdio-tests: Depend on it.
1093         * modules/stdlib-c++-tests: New file, extracted from
1094         modules/stdlib-tests.
1095         * modules/stdlib-tests: Depend on it.
1096         * modules/string-c++-tests: New file, extracted from
1097         modules/string-tests.
1098         * modules/string-tests: Depend on it.
1099         * modules/sys_ioctl-c++-tests: New file, extracted from
1100         modules/sys_ioctl-tests.
1101         * modules/sys_ioctl-tests: Depend on it.
1102         * modules/sys_select-c++-tests: New file, extracted from
1103         modules/sys_select-tests.
1104         * modules/sys_select-tests: Depend on it.
1105         * modules/sys_socket-c++-tests: New file, extracted from
1106         modules/sys_socket-tests.
1107         * modules/sys_socket-tests: Depend on it.
1108         * modules/sys_stat-c++-tests: New file, extracted from
1109         modules/sys_stat-tests.
1110         * modules/sys_stat-tests: Depend on it.
1111         * modules/sys_time-c++-tests: New file, extracted from
1112         modules/sys_time-tests.
1113         * modules/sys_time-tests: Depend on it.
1114         * modules/time-c++-tests: New file, extracted from modules/time-tests.
1115         * modules/time-tests: Depend on it.
1116         * modules/unistd-c++-tests: New file, extracted from
1117         modules/unistd-tests.
1118         * modules/unistd-tests: Depend on it.
1119         * modules/wchar-c++-tests: New file, extracted from
1120         modules/wchar-tests.
1121         * modules/wchar-tests: Depend on it.
1122         * modules/wctype-c++-tests: New file, extracted from
1123         modules/wctype-tests.
1124         * modules/wctype-tests: Depend on it.
1125         Reported by Simon Josefsson.
1126
1127 2010-03-28  Bruno Haible  <bruno@clisp.org>
1128
1129         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
1130         * gnulib-tool (func_exists_module): New function, extracted from
1131         func_verify_module.
1132         (func_verify_module): Use it.
1133         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
1134         'foo' only if 'foo' exists.
1135         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
1136         module.
1137
1138 2010-03-28  Bruno Haible  <bruno@clisp.org>
1139
1140         gnulib-tool: Add support for special categories of tests.
1141         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
1142         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
1143         (func_usage): Document them.
1144         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
1145         inc_unportable_tests, inc_all_tests): New variables.
1146         (func_acceptable): Consider these variables.
1147         (func_modules_transitive_closure): Make it work when the 'Status' field
1148         consists of multiple words.
1149         (func_import): Store and restore the values of inc_cxx_tests,
1150         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
1151         inc_all_tests in gnulib-comp.m4.
1152         (func_create_testdir): Set inc_all_tests to true.
1153         * doc/gnulib.texi (Extra tests modules): New section.
1154         Suggested by Jim Meyering.
1155
1156 2010-03-28  Bruno Haible  <bruno@clisp.org>
1157
1158         ansi-c++-opt: Allow turning off the C++ build by default.
1159         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
1160         gl_CXX_CHOICE_DEFAULT_NO is defined.
1161         Requested by Eric Blake.
1162
1163 2010-03-28  Bruno Haible  <bruno@clisp.org>
1164
1165         unistd: Avoid #define replacements in C++ mode.
1166         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1167         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1168         setsockopt, shutdown, select): In C++, attach a warning to the function
1169         if possible, rather than #defining the symbol to a dysfunctional alias.
1170         Reported by John W. Eaton <jwe@gnu.org>.
1171
1172 2010-03-28  Bruno Haible  <bruno@clisp.org>
1173
1174         Fix link errors on mingw.
1175         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
1176         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
1177         $(LIBSOCKET).
1178         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
1179         $(LIBSOCKET).
1180
1181 2010-03-28  Bruno Haible  <bruno@clisp.org>
1182             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1183
1184         lib-ignore: Determine different options for different compilers.
1185         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
1186         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
1187         Add comments.
1188         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
1189         * NEWS: Mention the change.
1190
1191 2010-03-27  Bruno Haible  <bruno@clisp.org>
1192
1193         Remove unused GNULIB_XYZ macro definitions.
1194         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1195         * modules/fseek (configure.ac): Likewise.
1196         * modules/ioctl (configure.ac): Likewise.
1197         * modules/open (configure.ac): Likewise.
1198         * modules/stdlib-safer (configure.ac): Likewise.
1199
1200 2010-03-27  Bruno Haible  <bruno@clisp.org>
1201
1202         Add a remark about certain modules.
1203         * modules/malloc (Comment): New section.
1204         * modules/realloc (Comment): Likewise.
1205         * modules/sigpipe (Comment): Likewise.
1206
1207 2010-03-27  Bruno Haible  <bruno@clisp.org>
1208
1209         Resolve conflict between the two kinds of module indicators.
1210         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
1211         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
1212         * modules/canonicalize (configure.ac): Invoke
1213         gl_MODULE_INDICATOR_FOR_TESTS.
1214         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
1215         GNULIB_XYZ.
1216         * tests/test-dirent-c++.cc: Likewise.
1217         * tests/test-dirent-safer.c: Likewise.
1218         * tests/test-dup2.c: Likewise.
1219         * tests/test-fchdir.c: Likewise.
1220         * tests/test-fcntl-h-c++.cc: Likewise.
1221         * tests/test-getopt.c: Likewise.
1222         * tests/test-getopt.h: Likewise.
1223         * tests/test-langinfo-c++.cc: Likewise.
1224         * tests/test-locale-c++.cc: Likewise.
1225         * tests/test-math-c++.cc: Likewise.
1226         * tests/test-pty-c++.cc: Likewise.
1227         * tests/test-search-c++.cc: Likewise.
1228         * tests/test-signal-c++.cc: Likewise.
1229         * tests/test-spawn-c++.cc: Likewise.
1230         * tests/test-stdio-c++.cc: Likewise.
1231         * tests/test-stdlib-c++.cc: Likewise.
1232         * tests/test-string-c++.cc: Likewise.
1233         * tests/test-sys_ioctl-c++.cc: Likewise.
1234         * tests/test-sys_select-c++.cc: Likewise.
1235         * tests/test-sys_socket-c++.cc: Likewise.
1236         * tests/test-sys_stat-c++.cc: Likewise.
1237         * tests/test-sys_time-c++.cc: Likewise.
1238         * tests/test-time-c++.cc: Likewise.
1239         * tests/test-unistd-c++.cc: Likewise.
1240         * tests/test-wchar-c++.cc: Likewise.
1241         * tests/uninorm/test-u8-nfc.c: Likewise.
1242         * tests/uninorm/test-u8-nfd.c: Likewise.
1243         * tests/uninorm/test-u8-nfkc.c: Likewise.
1244         * tests/uninorm/test-u8-nfkd.c: Likewise.
1245         * tests/uninorm/test-u16-nfc.c: Likewise.
1246         * tests/uninorm/test-u16-nfd.c: Likewise.
1247         * tests/uninorm/test-u16-nfkc.c: Likewise.
1248         * tests/uninorm/test-u16-nfkd.c: Likewise.
1249         * tests/uninorm/test-u32-nfc.c: Likewise.
1250         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1251         * tests/uninorm/test-u32-nfd.c: Likewise.
1252         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1253         * tests/uninorm/test-u32-nfkc.c: Likewise.
1254         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1255         * tests/uninorm/test-u32-nfkd.c: Likewise.
1256         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1257         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1258
1259 2010-03-27  Bruno Haible  <bruno@clisp.org>
1260
1261         Distinguish two kinds of module indicators.
1262         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1263         gl_MODULE_INDICATOR.
1264         (gl_MODULE_INDICATOR): New macro.
1265         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1266         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1267         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1268         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1269         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1270         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1271         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1272         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1273         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1274         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1275         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1276         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1277         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1278         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1279         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1280         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1281         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1282         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1283         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1284         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1285         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1286         * modules/cloexec (configure.ac): Likewise.
1287         * modules/getopt-gnu (configure.ac): Likewise.
1288         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1289         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1290         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1291         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1292
1293 2010-03-27  Bruno Haible  <bruno@clisp.org>
1294
1295         New module description field 'Comment'.
1296         * gnulib-tool: New option --extract-comment.
1297         (func_usage): Document it.
1298         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1299         (func_get_comment): New function.
1300         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1301
1302 2010-03-27  Bruno Haible  <bruno@clisp.org>
1303
1304         Addendum to 2010-02-07 commit.
1305         * gnulib-tool (func_usage): Document --extract-applicability option.
1306
1307 2010-03-27  Bruno Haible  <bruno@clisp.org>
1308
1309         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1310         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1311         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1312         rather than link errors.
1313
1314 2010-03-27  Bruno Haible  <bruno@clisp.org>
1315
1316         Avoid side effects from tests-related modules on the compilation of lib.
1317         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1318         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1319         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1320         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1321         macro.
1322         (func_import): Define a witness macro. Assign it a value that depends
1323         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1324         tests-related modules.
1325         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1326         Reported by Jim Meyering.
1327
1328 2010-03-27  Bruno Haible  <bruno@clisp.org>
1329
1330         Factorize common .m4 code.
1331         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1332         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1333         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1334         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1335         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1336         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1337         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1338         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1339         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1340         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1341         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1342         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1343         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1344         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1345         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1346         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1347         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1348         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1350         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1351         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1352         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1353         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1354         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1355         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1356         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1357         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1358         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1359         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1360         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1361         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1362         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1363
1364 2010-03-27  Bruno Haible  <bruno@clisp.org>
1365
1366         Fix a compilation error on Cygwin with g++ >= 4.3.
1367         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1368         if it is undefined or if we alias it to chmod.
1369         (lstat): Don't warn about the use of this function if it is undefined
1370         or if we alias it to stat.
1371         Reported by Simon Josefsson.
1372
1373 2010-03-27  Bruno Haible  <bruno@clisp.org>
1374
1375         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1376         * modules/getlogin (configure.ac): Update.
1377
1378         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1379         * modules/getlogin_r (configure.ac): Update.
1380
1381         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1382         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1383         * modules/inet_ntop (configure.ac): Update.
1384
1385         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1386         * modules/inet_pton (configure.ac): Update.
1387
1388         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1389         * modules/mbslen (configure.ac): Update.
1390
1391         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1392         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1393         * modules/forkpty (configure.ac): Update.
1394         * modules/openpty (configure.ac): Update.
1395
1396 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1397
1398         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1399         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1400
1401 2010-03-25  Eric Blake  <eblake@redhat.com>
1402
1403         maint: use pragma consistently across replacement headers
1404         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1405         * lib/dirent.in.h (system_header): Likewise.
1406         * lib/errno.in.h (system_header): Likewise.
1407         * lib/float.in.h (system_header): Likewise.
1408         * lib/getopt.in.h (system_header): Likewise.
1409         * lib/iconv.in.h (system_header): Likewise.
1410         * lib/inttypes.in.h (system_header): Likewise.
1411         * lib/langinfo.in.h (system_header): Likewise.
1412         * lib/locale.in.h (system_header): Likewise.
1413         * lib/math.in.h (system_header): Likewise.
1414         * lib/netdb.in.h (system_header): Likewise.
1415         * lib/netinet_in.in.h (system_header): Likewise.
1416         * lib/pty.in.h (system_header): Likewise.
1417         * lib/sched.in.h (system_header): Likewise.
1418         * lib/se-selinux.in.h (system_header): Likewise.
1419         * lib/search.in.h (system_header): Likewise.
1420         * lib/spawn.in.h (system_header): Likewise.
1421         * lib/stdarg.in.h (system_header): Likewise.
1422         * lib/stdint.in.h (system_header): Likewise.
1423         * lib/string.in.h (system_header): Likewise.
1424         * lib/strings.in.h (system_header): Likewise.
1425         * lib/sys_file.in.h (system_header): Likewise.
1426         * lib/sys_ioctl.in.h (system_header): Likewise.
1427         * lib/sys_socket.in.h (system_header): Likewise.
1428         * lib/sys_times.in.h (system_header): Likewise.
1429         * lib/sys_utsname.in.h (system_header): Likewise.
1430         * lib/sys_wait.in.h (system_header): Likewise.
1431         * lib/sysexits.in.h (system_header): Likewise.
1432         * lib/unistd.in.h (system_header): Likewise.
1433         * lib/wctype.in.h (system_header): Likewise.
1434
1435         arpa/inet: fix mingw compilation warning
1436         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1437         Reported by Matthew Bolte.
1438
1439 2010-03-25  Bruno Haible  <bruno@clisp.org>
1440
1441         Avoid collision between gnulib wrapper and libintl wrapper.
1442         * lib/printf.c (printf): Don't define if a printf wrapper is already
1443         defined in intl/printf.c.
1444         Reported by Michel Boaventura <michel@michelboaventura.com>.
1445
1446 2010-03-25  Bruno Haible  <bruno@clisp.org>
1447
1448         Use ANSI C.
1449         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1450
1451 2010-03-25  Bruno Haible  <bruno@clisp.org>
1452
1453         Minor formatting changes.
1454         * lib/acosl.c: Insert space before function argument list.
1455         * lib/argz.c: Likewise.
1456         * lib/asinl.c: Likewise.
1457         * lib/expl.c: Likewise.
1458         * lib/gen-uni-tables.c: Likewise.
1459         * lib/gettext.h: Likewise.
1460         * lib/glthread/lock.h: Likewise.
1461         * lib/tanl.c: Likewise.
1462         * lib/uniname/uniname.c: Likewise.
1463         * tests/test-idpriv-drop.c: Likewise.
1464         * tests/test-idpriv-droptemp.c: Likewise.
1465         * tests/test-lock.c: Likewise.
1466         * tests/test-tls.c: Likewise.
1467         * lib/argp-help.c: Insert space before function-like macro argument
1468         list.
1469         * lib/memcmp.c: Likewise.
1470         * tests/test-base64.c: Likewise.
1471         * lib/localename.c: Insert space before sizeof's argument list.
1472         * lib/safe-alloc.h: Likewise.
1473         * lib/file-set.h: Insert space before macro argument list.
1474         * tests/test-argp.c: Likewise.
1475         * lib/argp-namefrob.h: Insert space before function parameter list.
1476         * lib/getaddrinfo.c: Likewise.
1477         * lib/netdb.in.h: Likewise.
1478         * lib/parse-duration.h: Likewise.
1479         * lib/parse-duration.c: Likewise.
1480         * lib/poll.c: Likewise.
1481         * lib/select.c: Likewise.
1482         * lib/trim.h: Likewise.
1483         * tests/test-usleep.c: Likewise.
1484         * lib/ldexpl.c: Insert space before function parameter list and before
1485         function argument list.
1486         * lib/logl.c: Likewise.
1487         * lib/sqrtl.c: Likewise.
1488         * lib/trim.c: Likewise.
1489         * lib/cosl.c: Use GNU style indentation. Insert space before function
1490         argument list.
1491         * lib/sinl.c: Likewise.
1492         * lib/tsearch.c: Insert space after 'for'.
1493         Reported by Jim Meyering.
1494
1495 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1496
1497         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1498         config header before grepping, as it's not present before
1499         autoreconf/configure are run.  Reported by Simon Josefsson.
1500
1501 2010-03-23  Bruno Haible  <bruno@clisp.org>
1502
1503         pt_chown: Make it work with automake < 1.11.
1504         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1505         Reported by Simon Josefsson.
1506
1507 2010-03-23  Bruno Haible  <bruno@clisp.org>
1508
1509         pt_chown: Don't depend on GPLed modules.
1510         * lib/pt_chown.c: Don't include idpriv.h.
1511         (main): Don't drop privileges.
1512         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1513         Reported by Simon Josefsson.
1514
1515 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1516
1517         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1518         suggestions from karl@freefriends.org (Karl Berry).
1519
1520 2010-03-22  Eric Blake  <eblake@redhat.com>
1521
1522         gethostname: further tweaks
1523         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1524         are overriding gethostname.
1525         Suggested by Bruno Haible.
1526
1527 2010-03-21  Bruno Haible  <bruno@clisp.org>
1528
1529         Fix comments.
1530         * lib/forkpty.c (rpl_forkpty): Fix comment.
1531         * lib/openpty.c (rpl_openpty): Likewise.
1532         Reported by Eric Blake.
1533
1534 2010-03-22  Eric Blake  <eblake@redhat.com>
1535
1536         gethostname: fix build on mingw
1537         * lib/unistd.in.h (includes): Work around fact that mingw
1538         <winsock2.h> re-includes <unistd.h>, by avoiding any
1539         redeclarations if we are being included by <winsock2.h>.
1540         Reported by Matthias Bolte.
1541
1542 2010-03-21  Bruno Haible  <bruno@clisp.org>
1543
1544         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1545         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1546         modifications.
1547         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1548         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1549         provide the replacement.
1550         * modules/forkpty (Depends-on): Add openpty, login_tty.
1551         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1552         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1553         * doc/glibc-functions/forkpty.texi: More supported platforms.
1554         * config/srclist.txt: Add forkpty.c (commented).
1555
1556 2010-03-21  Bruno Haible  <bruno@clisp.org>
1557
1558         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1559         (Makefile.am): Verify that PTY_LIB is defined.
1560
1561         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1562
1563 2010-03-21  Bruno Haible  <bruno@clisp.org>
1564
1565         Tests for module 'login_tty'.
1566         * modules/login_tty-tests: New file.
1567         * tests/test-login_tty.c: New file.
1568
1569         New module 'login_tty'.
1570         * lib/login_tty.c: New file.
1571         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1572         * modules/login_tty: New file.
1573         * doc/glibc-functions/login_tty.texi: Mention the new module.
1574
1575 2010-03-21  Bruno Haible  <bruno@clisp.org>
1576
1577         login_tty: Documentation.
1578         * doc/glibc-functions/login_tty.texi: New file.
1579         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1580
1581 2010-03-21  Bruno Haible  <bruno@clisp.org>
1582
1583         pty: Consistent macro naming.
1584         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1585         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1586         * modules/pty (configure.ac): Update.
1587
1588 2010-03-21  Bruno Haible  <bruno@clisp.org>
1589
1590         Tests for openpty: Make stricter.
1591         * tests/test-openpty.c (main): Add test of canonical processing and
1592         erase.
1593         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1594
1595         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1596         * lib/openpty.c (openpty): New replacement function.
1597         * lib/pty.in.h: Include <termios.h>.
1598         (openpty): Update declaration. Add comments.
1599         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1600         is not declared, arrange to provide the replacement. Check for _getpty
1601         and posix_openpt.
1602         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1603         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1604         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1605         * modules/pty-tests (test_pty_c___LDADD): New variable.
1606         * doc/glibc-functions/openpty.texi: More supported platforms.
1607
1608 2010-03-21  Bruno Haible  <bruno@clisp.org>
1609
1610         setenv: Tweaks.
1611         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1612         the test program.
1613         * doc/posix-functions/setenv.texi: Update platforms list.
1614
1615 2010-03-21  Bruno Haible  <bruno@clisp.org>
1616
1617         New module 'unlockpt'.
1618         * lib/unlockpt.c: New file, from glibc with modifications.
1619         * m4/unlockpt.m4: New file.
1620         * modules/unlockpt: New file.
1621         * lib/stdlib.in.h (unlockpt): New declaration.
1622         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1623         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1624         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1625         HAVE_UNLOCKPT.
1626         * doc/posix-functions/unlockpt.texi: Mention the new module.
1627         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1628         * config/srclist.txt: Add unlockpt.c (commented).
1629
1630 2010-03-21  Jim Meyering  <meyering@redhat.com>
1631
1632         maint.mk: prohibit inclusion of "intprops.h" without use
1633         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1634
1635 2010-03-21  Bruno Haible  <bruno@clisp.org>
1636
1637         New module 'grantpt'.
1638         * lib/grantpt.c: New file, from glibc with modifications.
1639         * m4/grantpt.m4: New file.
1640         * modules/grantpt: New file.
1641         * lib/stdlib.in.h (grantpt): New declaration.
1642         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1643         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1644         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1645         HAVE_GRANTPT.
1646         * doc/posix-functions/grantpt.texi: Mention the new module.
1647         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1648         * config/srclist.txt: Add grantpt.c (commented).
1649
1650 2010-03-21  Bruno Haible  <bruno@clisp.org>
1651
1652         New module 'pt_chown'.
1653         * lib/pt_chown.c: New file, from glibc with modifications.
1654         * lib/pty-private.h: New file, from glibc with modifications.
1655         * modules/pt_chown: New file.
1656         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1657
1658 2010-03-21  Bruno Haible  <bruno@clisp.org>
1659
1660         Tests for module 'ptsname'.
1661         * modules/ptsname-tests: New file.
1662         * tests/test-ptsname.c: New file.
1663
1664         New module 'ptsname'.
1665         * lib/ptsname.c: New file, from glibc with modifications.
1666         * m4/ptsname.m4: New file.
1667         * modules/ptsname: New file.
1668         * lib/stdlib.in.h (ptsname): New declaration.
1669         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1670         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1671         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1672         HAVE_PTSNAME.
1673         * doc/posix-functions/ptsname.texi: Mention the new module.
1674         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1675         * config/srclist.txt: Add ptsname.c (commented).
1676
1677 2010-03-21  Bruno Haible  <bruno@clisp.org>
1678
1679         Tests for module 'ttyname_r'.
1680         * modules/ttyname_r-tests: New file.
1681         * tests/test-ttyname_r.c: New file.
1682
1683         New module 'ttyname_r'.
1684         * lib/ttyname_r.c: New file.
1685         * m4/ttyname_r.m4: New file.
1686         * modules/ttyname_r: New file.
1687         * lib/unistd.in.h (ttyname_r): New declaration.
1688         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1689         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1690         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1691         HAVE_TTYNAME_R.
1692         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1693         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1694
1695 2010-03-20  Bruno Haible  <bruno@clisp.org>
1696
1697         signal: Undefine macro definitions in C++ mode.
1698         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1699         sigfillset): Undefine macro definitions from the system header in C++
1700         mode.
1701         Reported by John W. Eaton <jwe@gnu.org>.
1702
1703 2010-03-20  Bruno Haible  <bruno@clisp.org>
1704
1705         Ensure no #include statements inside extern "C" { ... }.
1706         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1707         contain #include statements.
1708         * lib/time.in.h: Likewise.
1709
1710 2010-03-20  Bruno Haible  <bruno@clisp.org>
1711
1712         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1713         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1714         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1715         Reported by John W. Eaton <jwe@gnu.org>.
1716
1717 2010-03-20  Bruno Haible  <bruno@clisp.org>
1718
1719         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1720         Reported by Jim Meyering.
1721
1722 2010-03-20  Bruno Haible  <bruno@clisp.org>
1723
1724         pipe: Set errno upon failure.
1725         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1726         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1727         errno value in error message.
1728
1729 2010-03-20  Bruno Haible  <bruno@clisp.org>
1730             Jim Meyering  <meyering@redhat.com>
1731
1732         lchown: Avoid "unused variable" warning.
1733         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1734
1735 2010-03-20  Bruno Haible  <bruno@clisp.org>
1736
1737         Work around unlink() bug on MacOS X 10.5.6.
1738         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1739         attempting to unlink a parent directory.
1740         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1741         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1742         activate for the replacement function.
1743         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1744
1745 2010-03-20  Bruno Haible  <bruno@clisp.org>
1746
1747         Fix link errors on Solaris 8.
1748         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1749         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1750
1751 2010-03-19  Jim Meyering  <meyering@redhat.com>
1752
1753         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1754         The _LIBC implementation of build_range_exp correctly honors the
1755         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1756         However, the non-_LIBC implementation would ignore that syntax-bit
1757         flag and return REG_ERANGE unconditionally.
1758         This change makes it honor that flag.
1759         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1760         Make two pointer parameters "const".
1761         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1762         (parse_bracket_exp): Update caller.
1763
1764         regex.m4: correct the reversed range endpoint ([b-a]) test
1765         * m4/regex.m4: When requiring that [b-a] evoke failure,
1766         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1767         test pass once again for x86-based systems.
1768
1769 2010-03-19  Bruno Haible  <bruno@clisp.org>
1770
1771         scandir: Fix link error on Solaris 8.
1772         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1773         macros.
1774
1775 2010-03-19  Bruno Haible  <bruno@clisp.org>
1776
1777         getusershell: Fix documentation.
1778         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1779         module.
1780         * doc/glibc-functions/setusershell.texi: Likewise.
1781
1782         getusershell: Provide declaration, missing on Solaris 9.
1783         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1784         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1785         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1786         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1788         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1789         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1790         HAVE_GETUSERSHELL.
1791         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1792
1793 2010-03-19  Bruno Haible  <bruno@clisp.org>
1794
1795         wctype: Provide iswblank function.
1796         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1797         exists and is fine.
1798         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1799         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1800         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1801         * doc/posix-functions/iswblank.texi: Update.
1802
1803 2010-03-19  Bruno Haible  <bruno@clisp.org>
1804
1805         Tests of module 'pty' in C++ mode.
1806         * modules/pty-tests: New file.
1807         * tests/test-pty-c++.cc: New file.
1808         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1809
1810 2010-03-19  Eric Blake  <eblake@redhat.com>
1811
1812         logb: fix documentation
1813         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1814         1.5 declaration bug.
1815
1816         forkpty, openpty: prefer glibc's const-safe prototype
1817         * lib/forkpty.c (rpl_forkpty): New file.
1818         * lib/openpty.c (rpl_openpty): Likewise.
1819         * modules/forkpty (Files): Distribute it.
1820         * modules/openpty (Files): Likewise.
1821         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1822         check...
1823         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1824         replacement for for non-const BSD signature.
1825         * modules/pty (Makefile.am): Substitute witnesses.
1826         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1827         * tests/test-forkpty.c: Update signature check.
1828         * tests/test-openpty.c: Likewise.
1829         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1830         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1831
1832         forkpty, openpty: split functions into new modules
1833         * modules/pty (Makefile.am): Substitute new witnesses.
1834         (Libraries): Move library detection...
1835         * modules/forkpty: ...into new module.
1836         * modules/openpty: Another new module.
1837         * modules/pty-tests: Rename and split...
1838         * modules/forkpty-tests: ...to this...
1839         * modules/openpty-tests: ...and this.
1840         * tests/test-pty.c: Rename and split...
1841         * tests/test-forkpty.c: ...to this...
1842         * tests/test-openpty.c: ...and this.
1843         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1844         (gl_PTY): Split library searching...
1845         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1846         (gl_FORKPTY, gl_OPENPTY): New macros.
1847         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1848         * NEWS: Mention the split.
1849         * MODULES.html.sh (Misc): Document the modules.
1850         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1851         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1852
1853         pty: improve replacement header
1854         * lib/pty.in.h: New file.
1855         * modules/pty (Files): Ship it.
1856         (Makefile.am): Always build replacement.
1857         * m4/pty.m4: Rename...
1858         * m4/pty_h.m4: ...to this.
1859         (gl_PTY): Modernize setting of witness macros; update check of
1860         forkpty to take proper advantage of cache.
1861         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1862
1863         getopt: avoid compiler warning
1864         * lib/getopt.c (attribute_hidden): Remove unused macro.
1865
1866 2010-03-18  Bruno Haible  <bruno@clisp.org>
1867
1868         Fix link errors on Solaris 8.
1869         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1870         * modules/search-tests (test_search_c___LDADD): Likewise.
1871         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1872         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1873         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1874         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1875         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1876         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1877         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1878
1879 2010-03-18  Bruno Haible  <bruno@clisp.org>
1880
1881         Fix bug introduced on 2010-03-14.
1882         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1883         (gl_SPAWN_H): Require it.
1884         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1885         Reported by Simon Josefsson.
1886
1887 2010-03-18  Bruno Haible  <bruno@clisp.org>
1888
1889         Fix typo introduced on 2009-12-31.
1890         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1891         posix_spawn_file_actions_adddup2.
1892
1893 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1894         and Eric Blake  <eblake@redhat.com>
1895
1896         test-vc-list-files-git: make more robust
1897         * tests/test-vc-list-files-git.sh: Unset problematic environment
1898         variables.  Chain commands together.
1899
1900 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1901
1902         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1903         `AC_CHECK_DECL' invocation.
1904
1905 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1906
1907         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1908         appears before executable statements. Suggested by Petr Sumbera
1909         <Petr.Sumbera@Sun.COM>.
1910
1911 2010-03-14  Bruno Haible  <bruno@clisp.org>
1912
1913         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1914         portability problems. Instead use a simpler test.
1915         (main): Check that invalid arguments are rejected only on Linux.
1916
1917 2010-03-14  Bruno Haible  <bruno@clisp.org>
1918
1919         Fix bug introduced on 2009-12-31.
1920         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1921         gl_PREREQ_SYS_H_WINSOCK2 always.
1922         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1923         SYS_SOCKET_H variable.
1924         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1925         Update comments.
1926         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1927         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1928         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1929         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1930         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1931
1932 2010-03-14  Bruno Haible  <bruno@clisp.org>
1933
1934         Fix values returned by sinl, cosl.
1935         * lib/trigl.h: Add specification comments.
1936         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1937         that combines the values from the precomputed table with the values of
1938         the Chebyshev polynomials.
1939
1940 2010-03-14  Bruno Haible  <bruno@clisp.org>
1941
1942         Fix compilation error when modules 'posix_spawn[p]' are not used.
1943         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1944         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1945
1946 2010-03-14  Bruno Haible  <bruno@clisp.org>
1947
1948         Fix compilation error on mingw when module 'time_r' is not used.
1949         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1950         is 1.
1951         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1952         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1953         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1954         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1955
1956 2010-03-14  Bruno Haible  <bruno@clisp.org>
1957
1958         Fix compilation error with Sun C.
1959         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1960         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1961         instead of GCC specific ULONG_LONG_MAX.
1962         * lib/xstrtoll.c: Likewise.
1963         * lib/xstrtoull.c: Likewise.
1964
1965 2010-03-13  Bruno Haible  <bruno@clisp.org>
1966
1967         Allow the user to disable C++ code and tests.
1968         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1969         (gl_PROG_ANSI_CXX): Require it.
1970
1971 2010-03-13  Bruno Haible  <bruno@clisp.org>
1972
1973         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1974         cases.
1975
1976 2010-03-13  Bruno Haible  <bruno@clisp.org>
1977
1978         Test that gnulib does not break the standard C++ headers.
1979         * tests/test-locale-c++2.cc: New file.
1980         * modules/locale-tests (Files): Add it.
1981         (Makefile.am): Compile it for test-locale-c++.
1982         * tests/test-math-c++2.cc: New file.
1983         * modules/math-tests (Files): Add it.
1984         (Makefile.am): Compile it for test-math-c++.
1985         * tests/test-signal-c++2.cc: New file.
1986         * modules/signal-tests (Files): Add it.
1987         (Makefile.am): Compile it for test-signal-c++.
1988         * tests/test-stdio-c++2.cc: New file.
1989         * modules/stdio-tests (Files): Add it.
1990         (Makefile.am): Compile it for test-stdio-c++.
1991         * tests/test-stdlib-c++2.cc: New file.
1992         * modules/stdlib-tests (Files): Add it.
1993         (Makefile.am): Compile it for test-stdlib-c++.
1994         * tests/test-string-c++2.cc: New file.
1995         * modules/string-tests (Files): Add it.
1996         (Makefile.am): Compile it for test-string-c++.
1997         * tests/test-time-c++2.cc: New file.
1998         * modules/time-tests (Files): Add it.
1999         (Makefile.am): Compile it for test-time-c++.
2000         Reported by John W. Eaton <jwe@gnu.org>.
2001
2002 2010-03-13  Bruno Haible  <bruno@clisp.org>
2003
2004         * gnulib-tool (func_usage): Clarify which options are available for
2005         --create-testdir and --create-megatestdir.
2006
2007 2010-03-13  Bruno Haible  <bruno@clisp.org>
2008
2009         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
2010         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
2011         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
2012         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2013         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
2014         when appropriate.
2015         Reported by Jim Meyering.
2016
2017 2010-03-12  Simon Josefsson  <simon@josefsson.org>
2018
2019         * gnulib-tool (func_import): Explain origin of code.
2020
2021 2010-03-12  Bruno Haible  <bruno@clisp.org>
2022
2023         Fix problem with automake's definition of CXXLINK.
2024         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
2025         Reported by Simon Josefsson and Ludovic Courtès.
2026
2027 2010-03-12  Bruno Haible  <bruno@clisp.org>
2028
2029         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
2030         stable releases.
2031
2032 2010-03-11  Bruno Haible  <bruno@clisp.org>
2033
2034         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
2035         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
2036         whether the system provides one variant or multiple variants of the
2037         function.
2038         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
2039         C++ compilers.
2040         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
2041         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
2042         Reported by Jim Meyering.
2043
2044 2010-03-09  Simon Josefsson  <simon@josefsson.org>
2045
2046         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
2047
2048 2010-03-08  Bruno Haible  <bruno@clisp.org>
2049
2050         gnulib-tool: Add support for --libtool in --create-testdir.
2051         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
2052         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
2053
2054 2010-03-08  Eric Blake  <eblake@redhat.com>
2055
2056         gnulib-tool.texi: mention possibility of git submodule
2057         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
2058         submodules.
2059         * doc/.gitignore: Ignore another generated file.
2060
2061 2010-03-08  Karl Berry  <karl@gnu.org>
2062
2063         * doc/gnulib-tool.texi (VCS Issues): Mention third option
2064         of committing gnulib files while skipping others.
2065
2066 2010-03-07  Bruno Haible  <bruno@clisp.org>
2067
2068         Tests of module 'wctype' in C++ mode.
2069         * tests/test-wctype-c++.cc: New file.
2070         * modules/wctype-tests (Files): Add it and tests/signature.h.
2071         (Depends-on): Add ansi-c++-opt.
2072         (Makefile.am): Arrange to compile and run test-wctype-c++.
2073
2074         Tests of module 'wchar' in C++ mode.
2075         * tests/test-wchar-c++.cc: New file.
2076         * modules/wchar-tests (Files): Add it and tests/signature.h.
2077         (Depends-on): Add ansi-c++-opt.
2078         (Makefile.am): Arrange to compile and run test-wchar-c++.
2079         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
2080         gl_MODULE_INDICATOR.
2081
2082         Tests of module 'unistd' in C++ mode.
2083         * tests/test-unistd-c++.cc: New file.
2084         * modules/unistd-tests (Files): Add it and tests/signature.h.
2085         (Depends-on): Add ansi-c++-opt.
2086         (Makefile.am): Arrange to compile and run test-unistd-c++.
2087         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
2088         gl_MODULE_INDICATOR.
2089
2090         Tests of module 'time' in C++ mode.
2091         * tests/test-time-c++.cc: New file.
2092         * modules/time-tests (Files): Add it and tests/signature.h.
2093         (Depends-on): Add ansi-c++-opt.
2094         (Makefile.am): Arrange to compile and run test-time-c++.
2095         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2096
2097         Tests of module 'sys_time' in C++ mode.
2098         * tests/test-sys_time-c++.cc: New file.
2099         * modules/sys_time-tests (Files): Add it and tests/signature.h.
2100         (Depends-on): Add ansi-c++-opt.
2101         (Makefile.am): Arrange to compile and run test-sys_time-c++.
2102         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
2103         gl_MODULE_INDICATOR.
2104
2105         Tests of module 'sys_stat' in C++ mode.
2106         * tests/test-sys_stat-c++.cc: New file.
2107         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
2108         (Depends-on): Add ansi-c++-opt.
2109         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
2110         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
2111         gl_MODULE_INDICATOR.
2112
2113         Tests of module 'sys_socket' in C++ mode.
2114         * tests/test-sys_socket-c++.cc: New file.
2115         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
2116         (Depends-on): Add ansi-c++-opt.
2117         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
2118         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
2119         gl_MODULE_INDICATOR.
2120
2121         Tests of module 'sys_select' in C++ mode.
2122         * tests/test-sys_select-c++.cc: New file.
2123         * modules/sys_select-tests (Files): Add it and tests/signature.h.
2124         (Depends-on): Add ansi-c++-opt.
2125         (Makefile.am): Arrange to compile and run test-sys_select-c++.
2126         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
2127         gl_MODULE_INDICATOR.
2128
2129         Tests of module 'sys_ioctl' in C++ mode.
2130         * tests/test-sys_ioctl-c++.cc: New file.
2131         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
2132         (Depends-on): Add ansi-c++-opt.
2133         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
2134         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
2135         gl_MODULE_INDICATOR.
2136
2137         Tests of module 'string' in C++ mode.
2138         * tests/test-string-c++.cc: New file.
2139         * modules/string-tests (Files): Add it and tests/signature.h.
2140         (Depends-on): Add ansi-c++-opt.
2141         (Makefile.am): Arrange to compile and run test-string-c++.
2142         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
2143         gl_MODULE_INDICATOR.
2144
2145         Tests of module 'stdlib' in C++ mode.
2146         * tests/test-stdlib-c++.cc: New file.
2147         * modules/stdlib-tests (Files): Add it and tests/signature.h.
2148         (Depends-on): Add ansi-c++-opt.
2149         (Makefile.am): Arrange to compile and run test-stdlib-c++.
2150         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
2151         gl_MODULE_INDICATOR.
2152
2153         Tests of module 'stdio' in C++ mode.
2154         * tests/test-stdio-c++.cc: New file.
2155         * modules/stdio-tests (Files): Add it and tests/signature.h.
2156         (Depends-on): Add ansi-c++-opt.
2157         (Makefile.am): Arrange to compile and run test-stdio-c++.
2158         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
2159         gl_MODULE_INDICATOR.
2160
2161         Tests of module 'spawn' in C++ mode.
2162         * tests/test-spawn-c++.cc: New file.
2163         * modules/spawn-tests (Files): Add it and tests/signature.h.
2164         (Depends-on): Add ansi-c++-opt.
2165         (Makefile.am): Arrange to compile and run test-spawn-c++.
2166         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
2167         gl_MODULE_INDICATOR.
2168
2169         Tests of module 'signal' in C++ mode.
2170         * tests/test-signal-c++.cc: New file.
2171         * modules/signal-tests (Files): Add it and tests/signature.h.
2172         (Depends-on): Add ansi-c++-opt.
2173         (Makefile.am): Arrange to compile and run test-signal-c++.
2174         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
2175         gl_MODULE_INDICATOR.
2176
2177         Tests of module 'search' in C++ mode.
2178         * tests/test-search-c++.cc: New file.
2179         * modules/search-tests (Files): Add it and tests/signature.h.
2180         (Depends-on): Add ansi-c++-opt.
2181         (Makefile.am): Arrange to compile and run test-search-c++.
2182         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
2183         gl_MODULE_INDICATOR.
2184
2185         Tests of module 'math' in C++ mode.
2186         * tests/test-math-c++.cc: New file.
2187         * modules/math-tests (Files): Add it and tests/signature.h.
2188         (Depends-on): Add ansi-c++-opt.
2189         (Makefile.am): Arrange to compile and run test-math-c++.
2190         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2191
2192         Tests of module 'locale' in C++ mode.
2193         * tests/test-locale-c++.cc: New file.
2194         * modules/locale-tests (Files): Add it and tests/signature.h.
2195         (Depends-on): Add ansi-c++-opt.
2196         (Makefile.am): Arrange to compile and run test-locale-c++.
2197         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
2198         gl_MODULE_INDICATOR.
2199
2200         Tests of module 'langinfo' in C++ mode.
2201         * tests/test-langinfo-c++.cc: New file.
2202         * modules/langinfo-tests (Files): Add it and tests/signature.h.
2203         (Depends-on): Add ansi-c++-opt.
2204         (Makefile.am): Arrange to compile and run test-langinfo-c++.
2205         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
2206         gl_MODULE_INDICATOR.
2207
2208         Tests of module 'iconv-h' in C++ mode.
2209         * tests/test-iconv-h-c++.cc: New file.
2210         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
2211         (Depends-on): Add ansi-c++-opt.
2212         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
2213
2214         Tests of module 'glob' in C++ mode.
2215         * tests/test-glob-c++.cc: New file.
2216         * modules/glob-tests (Files): Add it.
2217         (Depends-on): Add ansi-c++-opt.
2218         (Makefile.am): Arrange to compile and run test-glob-c++.
2219
2220         Tests of module 'fcntl-h' in C++ mode.
2221         * tests/test-fcntl-h-c++.cc: New file.
2222         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2223         (Depends-on): Add ansi-c++-opt.
2224         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2225         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2226         gl_MODULE_INDICATOR.
2227
2228         Tests of module 'dirent' in C++ mode.
2229         * tests/test-dirent-c++.cc: New file.
2230         * modules/dirent-tests (Files): Add it and tests/signature.h.
2231         (Depends-on): Add ansi-c++-opt.
2232         (Makefile.am): Arrange to compile and run test-dirent-c++.
2233         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2234         gl_MODULE_INDICATOR.
2235
2236         New module 'ansi-c++-opt'.
2237         * modules/ansi-c++-opt: New file.
2238         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2239
2240         Document C++ namespace mode.
2241         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2242
2243         wctype: Avoid #define replacements in C++ mode.
2244         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2245         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2246         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2247         In C++, define a namespaced alias symbol.
2248         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2249         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2250         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2251         rule.
2252
2253         wchar: Avoid #define replacements in C++ mode.
2254         * lib/wchar.in.h: Include c++defs.h.
2255         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2256         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2257         symbol.
2258         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2259         * modules/wchar (Depends-on): Add c++defs.
2260         (Makefile.am): Update wchar.h rule.
2261
2262         unistd: Avoid #define replacements in C++ mode.
2263         * lib/unistd.in.h: Include c++defs.h.
2264         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2265         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2266         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2267         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2268         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2269         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2270         symbol.
2271         (environ): Update.
2272         * modules/unistd (Depends-on): Add c++defs.
2273         (Makefile.am): Update unistd.h rule.
2274
2275         time: Avoid #define replacements in C++ mode.
2276         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2277         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2278         define a namespaced alias symbol.
2279         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2280         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2281         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2282         * modules/time (Depends-on): Add c++defs, warn-on-use.
2283         (Makefile.am): Update time.h rule.
2284         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2285         * modules/nanosleep (configure.ac): Likewise.
2286         * modules/strptime (configure.ac): Likewise.
2287         * modules/timegm (configure.ac): Likewise.
2288
2289         sys_time: Avoid #define replacements in C++ mode.
2290         * lib/sys_time.in.h: Include c++defs.h.
2291         (gettimeofday): In C++, define a namespaced alias symbol.
2292         * modules/sys_time (Depends-on): Add c++defs.
2293         (Makefile.am): Update sys/time.h rule.
2294
2295         sys_stat: Avoid #define replacements in C++ mode.
2296         * lib/sys_stat.in.h: Include c++defs.h.
2297         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2298         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2299         namespaced alias symbol.
2300         In C++, define a namespaced alias symbol.
2301         * modules/sys_stat (Depends-on): Add c++defs.
2302         (Makefile.am): Update sys/stat.h rule.
2303
2304         sys_socket: Avoid #define replacements in C++ mode.
2305         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2306         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2307         definitions also when the system has a <sys/socket.h>.
2308         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2309         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2310         In C++, define a namespaced alias symbol.
2311         * modules/sys_socket (Depends-on): Add c++defs.
2312         (Makefile.am): Update sys/socket.h rule.
2313
2314         sys_select: Avoid #define replacements in C++ mode.
2315         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2316         definitions also when the system has a <sys/select.h>.
2317         (select): In C++, define a namespaced alias symbol.
2318         * modules/sys_select (Depends-on): Add c++defs.
2319         (Makefile.am): Update sys/select.h rule.
2320
2321         sys_ioctl: Avoid #define replacements in C++ mode.
2322         * lib/sys_ioctl.in.h: Include c++defs.h.
2323         (ioctl): In C++, define a namespaced alias symbol.
2324         * modules/sys_ioctl (Depends-on): Add c++defs.
2325         (Makefile.am): Update sys/ioctl.h rule.
2326
2327         string: Avoid #define replacements in C++ mode.
2328         * lib/string.in.h: Include c++defs.h.
2329         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2330         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2331         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2332         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2333         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2334         * modules/string (Depends-on): Add c++defs.
2335         (Makefile.am): Update string.h rule.
2336
2337         stdlib: Avoid #define replacements in C++ mode.
2338         * lib/stdlib.in.h: Include c++defs.h.
2339         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2340         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2341         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2342         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2343         symbol.
2344         * modules/stdlib (Depends-on): Add c++defs.
2345         (Makefile.am): Update stdlib.h rule.
2346
2347         stdio: Avoid #define replacements in C++ mode.
2348         * lib/stdio.in.h: Include c++defs.h.
2349         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2350         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2351         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2352         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2353         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2354         namespaced alias symbol.
2355         * modules/stdio (Depends-on): Add c++defs.
2356         (Makefile.am): Update stdio.h rule.
2357
2358         spawn: Avoid #define replacements in C++ mode.
2359         * lib/spawn.in.h: Include c++defs.h.
2360         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2361         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2362         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2363         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2364         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2365         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2366         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2367         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2368         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2369         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2370         In C++, define a namespaced alias symbol.
2371         * modules/spawn (Depends-on): Add c++defs.
2372         (Makefile.am): Update spawn.h rule.
2373
2374         signal: Avoid #define replacements in C++ mode.
2375         * lib/signal.in.h: Include c++defs.h.
2376         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2377         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2378         namespaced alias symbol.
2379         * modules/signal (Depends-on): Add c++defs.
2380         (Makefile.am): Update signal.h rule.
2381
2382         search: Avoid #define replacements in C++ mode.
2383         * lib/search.in.h: Include c++defs.h.
2384         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2385         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2386         symbol.
2387         * modules/search (Depends-on): Add c++defs.
2388         (Makefile.am): Update search.h rule.
2389
2390         math: Avoid #define replacements in C++ mode.
2391         * lib/math.in.h: Include c++defs.h.
2392         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2393         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2394         trunc, truncl): In C++, define a namespaced alias symbol.
2395         * modules/math (Depends-on): Add c++defs.
2396         (Makefile.am): Update math.h rule.
2397
2398         locale: Avoid #define replacements in C++ mode.
2399         * lib/locale.in.h: Include c++defs.h.
2400         (duplocale): In C++, define a namespaced alias symbol.
2401         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2402         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2403         * modules/locale (Depends-on): Add c++defs.
2404         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2405
2406         langinfo: Avoid #define replacements in C++ mode.
2407         * lib/langinfo.in.h: Include c++defs.h.
2408         (nl_langinfo): In C++, define a namespaced alias symbol.
2409         * modules/langinfo (Depends-on): Add c++defs.
2410         (Makefile.am): Update langinfo.h rule.
2411
2412         iconv-h: Avoid #define replacements in C++ mode.
2413         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2414         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2415         symbol.
2416         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2417         whenever iconv is present.
2418         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2419         (Makefile.am): Update iconv.h rule.
2420
2421         glob: Avoid #define replacements in C++ mode.
2422         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2423         (_gl_glob_errfunc_fn): New type.
2424         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2425         symbol.
2426         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2427         (Makefile.am): Update glob.h rule.
2428
2429         fcntl-h: Avoid #define replacements in C++ mode.
2430         * lib/fcntl.in.h: Include c++defs.h.
2431         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2432         * modules/fcntl-h (Depends-on): Add c++defs.
2433         (Makefile.am): Update fcntl.h rule.
2434
2435         dirent: Avoid #define replacements in C++ mode.
2436         * lib/dirent.in.h: Include c++defs.h.
2437         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2438         namespaced alias symbol.
2439         (dirfd): Update declaration.
2440         * modules/dirent (Depends-on): Add c++defs.
2441         (Makefile.am): Update dirent.h rule.
2442
2443         ctype: Make it usable in C++ code.
2444         * lib/ctype.in.h: Include c++defs.h.
2445         (isblank): Declare as extern "C".
2446         * modules/ctype (Depends-on): Add c++defs.
2447         (Makefile.am): Update ctype.h rule.
2448
2449         New module 'c++defs'.
2450         * modules/c++defs: New file.
2451         * build-aux/c++defs.h: New file.
2452         Reported by John W. Eaton <jwe@gnu.org>.
2453
2454 2010-03-07  Bruno Haible  <bruno@clisp.org>
2455
2456         logb: Provide missing declaration for Cygwin.
2457         * lib/math.in.h (logb): New declaration.
2458         * m4/logb.m4: New file.
2459         * modules/logb (Files): Add m4/logb.m4.
2460         (Depends-on): Add math.
2461         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2462         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2464         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2465         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2466
2467 2010-03-07  Bruno Haible  <bruno@clisp.org>
2468
2469         Fix test-cond link error.
2470         * tests/test-cond.c: Include <stdio.h>.
2471
2472 2010-03-07  Bruno Haible  <bruno@clisp.org>
2473
2474         Fix test-dirent-safer link error.
2475         * modules/dirent-safer-tests (Makefile.am): Define
2476         test_dirent_safer_LDADD.
2477
2478 2010-03-07  Bruno Haible  <bruno@clisp.org>
2479
2480         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2481         among default module list.
2482
2483 2010-03-07  Bruno Haible  <bruno@clisp.org>
2484
2485         Fix link error on platforms with GNU libiconv.
2486         * modules/unistr/u8-strcoll-tests (Makefile): Define
2487         test_u8_strcoll_LDADD.
2488         * modules/unistr/u16-strcoll-tests (Makefile): Define
2489         test_u16_strcoll_LDADD.
2490         * modules/unistr/u32-strcoll-tests (Makefile): Define
2491         test_u32_strcoll_LDADD.
2492
2493 2010-03-07  Bruno Haible  <bruno@clisp.org>
2494
2495         Use POSIX declarations for socket functions.
2496         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2497         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2498         rpl_sendto): Change declaration to match POSIX.
2499         * lib/connect.c (rpl_connect): Likewise.
2500         * lib/accept.c (rpl_accept): Likewise.
2501         * lib/bind.c (rpl_bind): Likewise.
2502         * lib/getpeername.c (rpl_getpeername): Likewise.
2503         * lib/getsockname.c (rpl_getsockname): Likewise.
2504         * lib/recv.c (rpl_recv): Likewise.
2505         * lib/send.c (rpl_send): Likewise.
2506         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2507         * lib/sendto.c (rpl_sendto): Likewise.
2508
2509 2010-03-06  Bruno Haible  <bruno@clisp.org>
2510
2511         Clarify access, euidaccess, faccessat.
2512         * doc/posix-functions/faccessat.texi: Mention security problem under
2513         "Other problems", not "Portability problems".
2514         * doc/posix-functions/access.texi: Likewise. Mention a related security
2515         problem.
2516         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2517         * lib/euidaccess.c: Add comments about platforms.
2518         * lib/unistd.in.h (access, euidaccess): Add warnings.
2519
2520 2010-03-07  Bruno Haible  <bruno@clisp.org>
2521
2522         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2523         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2524         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2525         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2526         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2527         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2528         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2529         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2530         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2531         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2532         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2533         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2534         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2535         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2536         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2537         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2538         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2539         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2540         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2541         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2542         Likewise.
2543         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2544         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2545         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2546         Likewise.
2547         * tests/test-spawn.c (main): Make it work when
2548         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2549
2550 2010-03-07  Bruno Haible  <bruno@clisp.org>
2551
2552         Fix incorrect Makefile.am generation in German locale.
2553         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2554         Execute sed command with character range in C locale.
2555
2556 2010-03-06  Bruno Haible  <bruno@clisp.org>
2557
2558         Tests for module 'iconv-h'.
2559         * modules/iconv-h-tests: New file.
2560         * tests/test-iconv-h.c: New file.
2561
2562         New module 'iconv-h'.
2563         * modules/iconv-h: New file.
2564         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2565         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2566         (configure.ac): Remove gl_ICONV_H.
2567         (Makefile.am): Remove rule for iconv.h.
2568
2569 2010-03-06  Bruno Haible  <bruno@clisp.org>
2570
2571         More consistent naming of *.m4 files.
2572         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2573         * modules/wctype (Files): Update.
2574
2575         More consistent naming of *.m4 files.
2576         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2577         * modules/wchar (Files): Update.
2578
2579 2010-03-06  Jim Meyering  <meyering@redhat.com>
2580
2581         euidaccess: relax license to LGPLv2+
2582         * modules/euidaccess (License): Relax to LGPLv2+.
2583
2584 2010-03-06  Bruno Haible  <bruno@clisp.org>
2585
2586         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2587         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2588         (Makefile.am): Augment lib_SOURCES instead.
2589
2590 2010-03-04  Jim Meyering  <meyering@redhat.com>
2591
2592         utime: remove obsolete module
2593         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2594         unnecessary for years, and has been marked as obsolete for 10 months.
2595         * modules/utime: Remove file.
2596         * lib/utime.c: Remove file.
2597         * m4/utime.m4: Remove file.
2598         * m4/utimes-null.m4: Remove file.
2599         * doc/posix-functions/utime.texi (utime): Remove reference to
2600         the module.  Move the sole "fixed by gnulib" item into the
2601         "problems not fixed by Gnulib" list.
2602         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2603
2604 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2605
2606         * modules/exit (License): Relax license to LGPLv2+.
2607         (Status): Mark as obsolete.
2608         * NEWS: Mention deprecated 'exit' module.
2609         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2610         of now obsolete 'exit'.
2611
2612 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2613
2614         fts-lgpl: remove unused module
2615         * modules/fts-lgpl: Remove.
2616         * MODULES.html.sh (func_all_modules): Adjust.
2617         * check-module (find_included_lib_files): Adjust.
2618         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2619
2620 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2621
2622         copy-acl: enhance Solaris ACL error handling
2623         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2624         * lib/set-mode-acl.c (qset_acl): Likewise.
2625
2626 2010-03-02  Bruno Haible  <bruno@clisp.org>
2627
2628         spawn: Don't override the system defined values on FreeBSD 8.
2629         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2630         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2631         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2632         if HAVE_POSIX_SPAWN is 1.
2633         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2634
2635 2010-03-01  Bruno Haible  <bruno@clisp.org>
2636
2637         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2638         regarding Automake.
2639
2640 2010-02-25  Bruno Haible  <bruno@clisp.org>
2641
2642         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2643         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2644         setting, not afterwards.
2645         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2646
2647 2010-02-24  Eric Blake  <eblake@redhat.com>
2648
2649         bootstrap, git-version-gen: use timestamp
2650         * build-aux/git-version-gen (scriptversion): Force UTC.
2651         * build-aux/bootstrap (scriptversion): New variable.
2652
2653         bootstrap: allow older git
2654         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2655         older than 1.6.4.  Requested by the libvirt project.
2656
2657 2010-02-23  Eric Blake  <eblake@redhat.com>
2658
2659         warn-on-use: work with old autoconf
2660         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2661         AS_VAR semantics of autoconf 2.60.
2662         Reported by Bruno Haible.
2663
2664         bootstrap: improve some comments
2665         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2666         clarification comments.
2667
2668         gettimeofday: provide correct function
2669         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2670         when replacement is declared, otherwise provide gettimeofday.
2671         Reported by Michael Goffioul.
2672
2673 2010-02-23  Jim Meyering  <meyering@redhat.com>
2674
2675         lib-ignore: relax license to "unlimited", not LGPLv2+
2676         * modules/lib-ignore (License): Relax to "unlimited".
2677
2678 2010-02-23  Jim Meyering  <meyering@redhat.com>
2679
2680         lib-ignore: relax license to LGPLv2+
2681         * modules/lib-ignore (License): Relax to LGPLv2+.
2682
2683 2010-02-22  Eric Blake  <eblake@redhat.com>
2684
2685         lseek: avoid bash 3.2 broken pipe bug
2686         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2687         warning from bash 3.2.
2688         Reported by Ben Pfaff, with analysis from Bruno Haible.
2689
2690         bootstrap: support non-FSF copyright holder
2691         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2692         bootstrap.conf override of COPYRIGHT_HOLDER.
2693         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2694
2695         bootstrap: interoperate with gettext 0.14.1
2696         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2697
2698         bootstrap: allow for alternate submodule location
2699         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2700         hardcoding submodule location.
2701         (gnulib_mk): Allow direct use of Makefile.am.
2702
2703         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2704         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2705         rather than reconfiguring where the submodule points.
2706
2707         gettimeofday: restore support for platforms that lack function
2708         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2709         replacement if function is missing.
2710         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2711         * modules/sys_time (Makefile.am): Substitute it.
2712         * lib/sys_time.in.h (gettimeofday): Check it.
2713         Reported by Michael Goffioul.
2714
2715 2010-02-21  Bruno Haible  <bruno@clisp.org>
2716
2717         * lib/stdio.in.h (obstack_printf): Fix typo.
2718
2719 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2720
2721         vc-list-files: use bzr ls's -R option
2722         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2723         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2724
2725 2010-02-21  Jim Meyering  <meyering@redhat.com>
2726
2727         init.sh: fix EXEEXT shims to work also for names like test-prog
2728         * tests/init.sh: Re-exec a better shell, when needed.
2729         If the current shell lacks support for posix $(...), an init.sh-using
2730         test will now try to find a shell that supports that.  If EXEEXT is
2731         nonempty, we also require support for hyphen-in-alias-name and shell
2732         substitutions like ${var#glob}.  Failure to find such a shell results
2733         in a skipped test.
2734
2735 2010-02-21  Bruno Haible  <bruno@clisp.org>
2736
2737         Really work around around "broken pipe" error message from bash 3.2.
2738         * gnulib-tool (func_reset_sigpipe): Remove function.
2739         (echo): In bash 3.2, define to a function that uses printf.
2740         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2741
2742 2010-02-20  Bruno Haible  <bruno@clisp.org>
2743
2744         Restore support for automake 1.9.6 with autoconf 2.61.
2745         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2746         Reported by James Youngman <jay@gnu.org>.
2747
2748 2010-02-20  Bruno Haible  <bruno@clisp.org>
2749
2750         Improve *printf warning condition.
2751         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2752         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2753         and the function is overridden due to SIGPIPE emulation.
2754
2755 2010-02-20  Bruno Haible  <bruno@clisp.org>
2756
2757         * lib/stdio.in.h: Tweak comments.
2758
2759 2010-02-19  Bruno Haible  <bruno@clisp.org>
2760
2761         Make it easier to find modules. New gnulib-tool option '--find'.
2762         * gnulib-tool: New option --find.
2763         (func_usage): Document it.
2764         (func_sanitize_modulelist): New function, extracted from
2765         func_all_modules.
2766         (func_all_modules): Invoke it.
2767         * doc/gnulib-tool.texi (Which modules?): New node.
2768
2769 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2770
2771         * lib/sys_select.in.h: Provide select replacement even if
2772         sys/select.h exists on a system, for Interix.
2773
2774 2010-02-18  Jim Meyering  <meyering@redhat.com>
2775
2776         init.sh: don't use $(...) just yet
2777         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2778         to accommodate e.g., Solaris' /bin/sh.
2779
2780 2010-02-17  Bruno Haible  <bruno@clisp.org>
2781
2782         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2783         Reported by Ludovic Courtès <ludo@gnu.org>.
2784
2785 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2786
2787         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2788         linking with -lintl.
2789
2790 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2791
2792         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2793         if not provided by the system's netdb.h.  Reported by
2794         ludo@gnu.org (Ludovic Courtès).
2795
2796 2010-02-15  Jim Meyering  <meyering@redhat.com>
2797
2798         init.sh: improve portability and efficiency
2799         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2800         "dummy" in a for loop.
2801         Use '!', not '^' to select the complement of a character set used
2802         in a "case" statement.
2803         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2804         Suggestions from Eric Blake.
2805
2806         init.sh: automatically accommodate programs with the .exe suffix
2807         Automatically arrange for an invocation of "prog" to execute the
2808         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2809         may use the simpler "prog", yet still work when built on a system
2810         that requires specifying the added suffix.
2811         Do this by constructing a function named "prog" that invokes
2812         "prog.exe" for each .exe file in selected directories.
2813         * tests/init.sh (find_exe_basenames_): New function.
2814         (create_exe_shim_functions_): New function.
2815         (path_prepend_): Use it.
2816
2817         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2818         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2819         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2820
2821 2010-02-14  Jim Meyering  <meyering@redhat.com>
2822
2823         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2824         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2825         (sc_prohibit_hash_pjw_without_use): New rule.
2826
2827         maint.mk: allow the default upload destination dir to be overridden
2828         * top/maint.mk (upload_dest_dir_): Define with a default that
2829         preserves the status quo.
2830         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2831         Reported by Peter Simons.
2832
2833         maint.mk: prohibit inclusion of "hash.h" without_use
2834         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2835
2836 2010-02-10  Jim Meyering  <meyering@redhat.com>
2837
2838         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2839         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2840
2841 2010-02-09  Eric Blake  <ebb9@byu.net>
2842         and Bruno Haible  <bruno@clisp.org>
2843
2844         obstack-printf-posix: ensure declaration
2845         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2846         extracted from gl_FUNC_OBSTACK_PRINTF.
2847         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2848         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2849         Likewise.
2850         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2851         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2852         0.
2853
2854 2010-02-08  Bruno Haible  <bruno@clisp.org>
2855
2856         gnulib-tool: Fix typo in 2010-02-07 commit.
2857         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2858         Reported by Eric Blake.
2859
2860 2010-02-07  Bruno Haible  <bruno@clisp.org>
2861
2862         gnulib-tool: Fix up caching patches.
2863         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2864         option --no-cache. Use associative arrays when supported by the shell.
2865         (sed_comments): New variable.
2866         (modcache): Renamed from do_cache.
2867         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2868         abbreviate unnecessarily.
2869         (have_associative): New variable.
2870         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2871         way also for ksh and zsh.
2872         (func_init_sed_convert_to_cache_statements): New function, extracted
2873         from func_cache_lookup_module. Add support for associative arrays.
2874         Don't set the c_MODULE_cached variable here. Ignore all lines before
2875         the first field header. Remove only the final newline, not all trailing
2876         newlines. Support empty fields correctly. Limit the use of 'eval' to
2877         assignments.
2878         (func_get_description, func_get_status, func_get_notice,
2879         func_get_applicability, func_get_filelist, func_get_dependencies,
2880         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2881         func_get_automake_snippet, func_get_include_directive,
2882         func_get_link_directive, func_get_license, func_get_maintainer):
2883         Update documentation. List the unoptimized code first. Add support for
2884         associative arrays. Limit the use of 'eval' to assignments.
2885         (func_get_applicability): Undo stylistic pessimisations.
2886         (func_get_automake_snippet, func_get_include_directive): Reduce code
2887         duplication.
2888         (func_modules_transitive_closure, func_modules_add_dummy,
2889         func_modules_notice, func_modules_to_filelist, func_add_file,
2890         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2891         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2892         func_create_testdir, func_create_megatestdir): Update documentation.
2893
2894 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2895
2896         * gnulib-tool (func_cache_lookup_module): Store the module name
2897         belonging to the cache variable; error out if two different
2898         module names map to the same cache variable name.
2899
2900 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2901
2902         gnulib-tool: Make caching optional.
2903         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2904         Update matching short versions of --no-changelog.
2905         (func_usage): Update.
2906         (sed_extract_cache_prog): Renamed from ...
2907         (sed_extract_prog): ... this; revert to old extraction script.
2908         (func_get_description, func_get_status)
2909         (func_get_notice, func_get_applicability, func_get_filelist)
2910         (func_get_dependencies, func_get_autoconf_early_snippet)
2911         (func_get_autoconf_snippet, func_get_automake_snippet)
2912         (func_get_include_directive, func_get_link_directive)
2913         (func_get_license, func_get_maintainer): If $do_cache is false,
2914         use old, non-caching extraction scripts.
2915         Suggestion by Bruno Haible.
2916
2917 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2918
2919         gnulib-tool: cache module metainformation.
2920         * gnulib-tool (sed_extract_prog): Match newline before each
2921         header, and rewrite header to a shell variable suffix.
2922         (func_cache_var, func_cache_lookup_module): New functions,
2923         to turn a module name into a cache variable prefix, and to
2924         look up and cache module metainformation.
2925         (func_get_description, func_get_status)
2926         (func_get_notice, func_get_applicability, func_get_filelist)
2927         (func_get_dependencies, func_get_autoconf_early_snippet)
2928         (func_get_autoconf_snippet, func_get_automake_snippet)
2929         (func_get_include_directive, func_get_link_directive)
2930         (func_get_license, func_get_maintainer): Use
2931         func_cache_lookup_module.
2932
2933 2010-02-07  Bruno Haible  <bruno@clisp.org>
2934
2935         fnctl: Fix missing dependency.
2936         * modules/fcntl (Depends-on): Add getdtablesize.
2937         Reported by John W. Eaton <jwe@gnu.org>.
2938
2939 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2940
2941         Argp: fix recognition of short alias options.
2942
2943         * lib/argp-parse.c (convert_options): Fix improper use of
2944         `|' between character values.
2945         * tests/test-argp.c (group1_option): New alias option
2946         --read (-r).
2947         (group1_parser): Special handling for 'r'.
2948         (test15): New test case.
2949         (test_fun): Add test15.
2950         * tests/test-argp-2.sh: Update expected --help and --usage
2951         outputs.
2952
2953 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2954
2955         * tests/test-argp.c: Fix indentation.
2956
2957 2010-02-04  Eric Blake  <ebb9@byu.net>
2958
2959         gettimeofday: expose type of second argument
2960         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2961         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2962         * tests/test-gettimeofday.c: Use it to silence warning.
2963         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2964         the issue.
2965
2966 2010-02-03  Jim Meyering  <meyering@redhat.com>
2967
2968         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2969         * lib/regcomp.c (TYPE_SIGNED): Define.
2970         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2971
2972         regcomp.c: avoid a new -Wshadow warning
2973         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2974
2975 2010-02-01  Jim Meyering  <meyering@redhat.com>
2976
2977         removing useless parentheses in cpp #define directives
2978         For motivation, see commit c0221df4, "define STREQ(a,b)
2979         consistently, removing useless parentheses"
2980         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2981         * lib/mountlist.c (MNT_IGNORE): Likewise.
2982         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2983
2984 2010-02-01  Eric Blake  <ebb9@byu.net>
2985
2986         sys_time: use link-warning
2987         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2988         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2989         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2990         * modules/sys_time (Depends-on): Add warn-on-use.
2991         (Makefile.am): Always build replacement.
2992         (configure.ac): Update substitutions.
2993         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2994         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2995         bother with SYS_TIME_H.
2996         * modules/gettimeofday (configure.ac): Declare indicator.
2997         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2998         in use.
2999
3000         closein-tests: silence compiler warning
3001         * tests/test-closein.c (main): Ignore fread result.
3002         * modules/closein-tests (Depends-on): Add ignore-value.
3003
3004         tests: silence warning about system return
3005         * tests/test-areadlink-with-size.c (main): Ignore system result.
3006         * tests/test-areadlink.c (main): Likewise.
3007         * tests/test-areadlinkat-with-size.c (main): Likewise.
3008         * tests/test-areadlinkat.c (main): Likewise.
3009         * tests/test-canonicalize-lgpl.c (main): Likewise.
3010         * tests/test-canonicalize.c (main): Likewise.
3011         * tests/test-chown.c (main): Likewise.
3012         * tests/test-fchownat.c (main): Likewise.
3013         * tests/test-fdutimensat.c (main): Likewise.
3014         * tests/test-fstatat.c (main): Likewise.
3015         * tests/test-futimens.c (main): Likewise.
3016         * tests/test-lchown.c (main): Likewise.
3017         * tests/test-link.c (main): Likewise.
3018         * tests/test-linkat.c (main): Likewise.
3019         * tests/test-lstat.c (main): Likewise.
3020         * tests/test-mkdir.c (main): Likewise.
3021         * tests/test-mkdirat.c (main): Likewise.
3022         * tests/test-mkfifo.c (main): Likewise.
3023         * tests/test-mkfifoat.c (main): Likewise.
3024         * tests/test-mknod.c (main): Likewise.
3025         * tests/test-readlink.c (main): Likewise.
3026         * tests/test-remove.c (main): Likewise.
3027         * tests/test-rename.c (main): Likewise.
3028         * tests/test-renameat.c (main): Likewise.
3029         * tests/test-rmdir.c (main): Likewise.
3030         * tests/test-symlink.c (main): Likewise.
3031         * tests/test-symlinkat.c (main): Likewise.
3032         * tests/test-unlink.c (main): Likewise.
3033         * tests/test-unlinkat.c (main): Likewise.
3034         * tests/test-utimens.c (main): Likewise.
3035         * tests/test-utimensat.c (main): Likewise.
3036         * modules/areadlink-tests (Depends-on): Add ignore-value.
3037         * modules/areadlink-with-size-tests (Depends-on): Likewise.
3038         * modules/areadlinkat-tests (Depends-on): Likewise.
3039         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
3040         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3041         * modules/canonicalize-tests (Depends-on): Likewise.
3042         * modules/chown-tests (Depends-on): Likewise.
3043         * modules/fdutimensat-tests (Depends-on): Likewise.
3044         * modules/futimens-tests (Depends-on): Likewise.
3045         * modules/lchown-tests (Depends-on): Likewise.
3046         * modules/link-tests (Depends-on): Likewise.
3047         * modules/linkat-tests (Depends-on): Likewise.
3048         * modules/lstat-tests (Depends-on): Likewise.
3049         * modules/mkdir-tests (Depends-on): Likewise.
3050         * modules/mkfifo-tests (Depends-on): Likewise.
3051         * modules/mkfifoat-tests (Depends-on): Likewise.
3052         * modules/mknod-tests (Depends-on): Likewise.
3053         * modules/openat-tests (Depends-on): Likewise.
3054         * modules/readlink-tests (Depends-on): Likewise.
3055         * modules/remove-tests (Depends-on): Likewise.
3056         * modules/rename-tests (Depends-on): Likewise.
3057         * modules/renameat-tests (Depends-on): Likewise.
3058         * modules/rmdir-tests (Depends-on): Likewise.
3059         * modules/symlink-tests (Depends-on): Likewise.
3060         * modules/symlinkat-tests (Depends-on): Likewise.
3061         * modules/unlink-tests (Depends-on): Likewise.
3062         * modules/utimens-tests (Depends-on): Likewise.
3063         * modules/utimensat-tests (Depends-on): Likewise.
3064
3065 2010-01-31  Bruno Haible  <bruno@clisp.org>
3066
3067         Perform the same test for many <math.h> functions.
3068         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
3069         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
3070         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
3071         of gl_MATHFUNC.
3072         * modules/acos (configure.ac): Likewise.
3073         * modules/asin (configure.ac): Likewise.
3074         * modules/atan (configure.ac): Likewise.
3075         * modules/atan2 (configure.ac): Likewise.
3076         * modules/cbrt (configure.ac): Likewise.
3077         * modules/copysign (configure.ac): Likewise.
3078         * modules/cos (configure.ac): Likewise.
3079         * modules/cosh (configure.ac): Likewise.
3080         * modules/erf (configure.ac): Likewise.
3081         * modules/erfc (configure.ac): Likewise.
3082         * modules/exp (configure.ac): Likewise.
3083         * modules/fmod (configure.ac): Likewise.
3084         * modules/hypot (configure.ac): Likewise.
3085         * modules/j0 (configure.ac): Likewise.
3086         * modules/j1 (configure.ac): Likewise.
3087         * modules/jn (configure.ac): Likewise.
3088         * modules/lgamma (configure.ac): Likewise.
3089         * modules/log (configure.ac): Likewise.
3090         * modules/log10 (configure.ac): Likewise.
3091         * modules/log1p (configure.ac): Likewise.
3092         * modules/pow (configure.ac): Likewise.
3093         * modules/remainder (configure.ac): Likewise.
3094         * modules/sin (configure.ac): Likewise.
3095         * modules/sinh (configure.ac): Likewise.
3096         * modules/tan (configure.ac): Likewise.
3097         * modules/tanh (configure.ac): Likewise.
3098         * modules/y0 (configure.ac): Likewise.
3099         * modules/y1 (configure.ac): Likewise.
3100         * modules/yn (configure.ac): Likewise.
3101         Suggested by Paolo Bonzini.
3102
3103 2010-01-31  Bruno Haible  <bruno@clisp.org>
3104
3105         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
3106
3107 2010-01-31  Bruno Haible  <bruno@clisp.org>
3108
3109         Work around getdelim() bug on FreeBSD 8.0.
3110         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
3111         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
3112         not work.
3113         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
3114         is 1.
3115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
3116         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
3117         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
3118         a non-zero size.
3119         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
3120
3121 2010-01-31  Bruno Haible  <bruno@clisp.org>
3122
3123         Work around getline() bug on FreeBSD 8.0.
3124         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
3125         and a non-zero size.
3126         * tests/test-getline.c (main): Likewise.
3127         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
3128         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
3129
3130 2010-01-28  Eric Blake  <ebb9@byu.net>
3131
3132         regex: fix build failure
3133         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
3134         platforms.
3135
3136 2010-01-28  Jim Meyering  <meyering@redhat.com>
3137
3138         regex: do not ignore memory allocation failure
3139         * lib/regex_internal.c (create_cd_newstate): Detect
3140         re_node_set_init_copy failure.   Extracted from glibc commit
3141         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3142
3143         regex: sync more white-space changes from libc
3144         * lib/regex_internal.c: White-space only changes.
3145         * lib/regexec.c: Likewise.
3146
3147         regex: add many uses of __attribute_warn_unused_result__
3148         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
3149         * lib/regexec.c: Likewise.
3150         Extracted from a messy glibc commit.
3151
3152         regcomp.c: spelling and merge-artifact from glibc
3153         * lib/regcomp.c: Merge remainder of glibc's
3154         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3155
3156         regcomp.c: sync white-space changes from glibc
3157         * lib/regcomp.c: Merge to accommodate white space
3158         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3159
3160         regcomp.c: do not ignore internal return values
3161         * lib/regcomp.c: Do not ignore internal return values.
3162         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
3163         but without its white-space changes and spelling fixes.
3164
3165         regex_internal.h: define __attribute_warn_unused_result__
3166         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
3167
3168         maint: add a syntax-check rule to check for vulnerable Makefile.in
3169         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
3170
3171 2010-01-27  Jim Meyering  <meyering@redhat.com>
3172
3173         ncftpput-ftp: clean up spaces
3174         * build-aux/ncftpput-ftp: Make Copyright line consistent.
3175         Remove trailing blanks.
3176
3177 2010-01-27  Simon Josefsson  <simon@josefsson.org>
3178
3179         * build-aux/git-version-gen: Fix copyright statement.
3180         * build-aux/gnupload: Likewise.
3181         * tests/test-arcfour.c: Likewise.
3182         * tests/test-arctwo.c: Likewise.
3183         * tests/test-count-one-bits.c: Likewise.
3184         * tests/test-crc.c: Likewise.
3185         * tests/test-des.c: Likewise.
3186         * tests/test-gc-arcfour.c: Likewise.
3187         * tests/test-gc-arctwo.c: Likewise.
3188         * tests/test-gc-des.c: Likewise.
3189         * tests/test-gc-hmac-md5.c: Likewise.
3190         * tests/test-gc-hmac-sha1.c: Likewise.
3191         * tests/test-gc-md2.c: Likewise.
3192         * tests/test-gc-md4.c: Likewise.
3193         * tests/test-gc-md5.c: Likewise.
3194         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3195         * tests/test-gc-rijndael.c: Likewise.
3196         * tests/test-gc-sha1.c: Likewise.
3197         * tests/test-gc.c: Likewise.
3198         * tests/test-gethostname.c: Likewise.
3199         * tests/test-gettimeofday.c: Likewise.
3200         * tests/test-hash.c: Likewise.
3201         * tests/test-hmac-md5.c: Likewise.
3202         * tests/test-hmac-sha1.c: Likewise.
3203         * tests/test-md2.c: Likewise.
3204         * tests/test-md4.c: Likewise.
3205         * tests/test-md5.c: Likewise.
3206         * tests/test-memchr.c: Likewise.
3207         * tests/test-memchr2.c: Likewise.
3208         * tests/test-memcmp.c: Likewise.
3209         * tests/test-memmem.c: Likewise.
3210         * tests/test-memrchr.c: Likewise.
3211         * tests/test-rawmemchr.c: Likewise.
3212         * tests/test-read-file.c: Likewise.
3213         * tests/test-rijndael.c: Likewise.
3214         * tests/test-sockets.c: Likewise.
3215         * tests/test-strchrnul.c: Likewise.
3216         * tests/test-strstr.c: Likewise.
3217         * tests/test-strtod.c: Likewise.
3218         * build-aux/ncftpput-ftp: Likewise.
3219
3220 2010-01-26  Eric Blake  <ebb9@byu.net>
3221
3222         ignore-value: update recommended header name
3223         * modules/ignore-value (Include): Only use <> for headers that
3224         exist in glibc.
3225
3226 2010-01-26  Jim Meyering  <meyering@redhat.com>
3227
3228         test-userspec.c: avoid compiler warnings
3229         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3230         and "initialization discards qualifiers..." warnings.
3231         Put the first "uid" in its own scope, and make char* members "const".
3232
3233 2010-01-25  Bruno Haible  <bruno@clisp.org>
3234
3235         gnulib-tool: Make warning diagnostics consistent.
3236         * gnulib-tool (func_warning): New function.
3237         Use it everywhere where gnulib-tool produces output to stderr and it is
3238         not a fatal error.
3239
3240 2010-01-25  Bruno Haible  <bruno@clisp.org>
3241
3242         Fix test dependencies.
3243         * modules/xstrtol-tests (Depends-on): Add inttypes.
3244         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3245
3246 2010-01-25 Pádraig Brady <P@draigBrady.com>
3247
3248         syntax-check: detect incorrect boolean macro values in config.h
3249         * modules/maintainer-makefile (configure.ac): Parameterize the location
3250         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3251         The logic is from Eric Blake and the location indicated by Jim Meyering.
3252         Note the more natural CONFIG_HEADER name is prohibited by automake
3253         for backwards compatibility reasons.
3254         * top/maint.mk (sc_Wundef_boolean): New rule.
3255
3256 2010-01-25  Jim Meyering  <meyering@redhat.com>
3257
3258         bootstrap: detect MacOS 10.6's shasum, too
3259         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3260         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3261
3262 2010-01-23  Jim Meyering  <meyering@redhat.com>
3263
3264         xstrtoll: new module
3265         * modules/xstrtoll: New file.
3266         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3267         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3268         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3269         ./configure fails if you use this module and lack "long long".
3270         * modules/xstrtoll-tests: New module.
3271         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3272         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3273         new init.sh-based test framework.
3274
3275 2010-01-24  Bruno Haible  <bruno@clisp.org>
3276
3277         Tests for module 'yn'.
3278         * modules/yn-tests: New file.
3279         * tests/test-yn.c: New file.
3280
3281         Tests for module 'y1'.
3282         * modules/y1-tests: New file.
3283         * tests/test-y1.c: New file.
3284
3285         Tests for module 'y0'.
3286         * modules/y0-tests: New file.
3287         * tests/test-y0.c: New file.
3288
3289         Tests for module 'tanh'.
3290         * modules/tanh-tests: New file.
3291         * tests/test-tanh.c: New file.
3292
3293         Tests for module 'tan'.
3294         * modules/tan-tests: New file.
3295         * tests/test-tan.c: New file.
3296
3297         Tests for module 'sqrt'.
3298         * modules/sqrt-tests: New file.
3299         * tests/test-sqrt.c: New file.
3300
3301         Tests for module 'sinh'.
3302         * modules/sinh-tests: New file.
3303         * tests/test-sinh.c: New file.
3304
3305         Tests for module 'sin'.
3306         * modules/sin-tests: New file.
3307         * tests/test-sin.c: New file.
3308
3309         Tests for module 'rint'.
3310         * modules/rint-tests: New file.
3311         * tests/test-rint.c: New file.
3312
3313         Tests for module 'remainder'.
3314         * modules/remainder-tests: New file.
3315         * tests/test-remainder.c: New file.
3316
3317         Tests for module 'pow'.
3318         * modules/pow-tests: New file.
3319         * tests/test-pow.c: New file.
3320
3321         Tests for module 'nextafter'.
3322         * modules/nextafter-tests: New file.
3323         * tests/test-nextafter.c: New file.
3324
3325         Tests for module 'modf'.
3326         * modules/modf-tests: New file.
3327         * tests/test-modf.c: New file.
3328
3329         Tests for module 'logb'.
3330         * modules/logb-tests: New file.
3331         * tests/test-logb.c: New file.
3332
3333         Tests for module 'log1p'.
3334         * modules/log1p-tests: New file.
3335         * tests/test-log1p.c: New file.
3336
3337         Tests for module 'log10'.
3338         * modules/log10-tests: New file.
3339         * tests/test-log10.c: New file.
3340
3341         Tests for module 'log'.
3342         * modules/log-tests: New file.
3343         * tests/test-log.c: New file.
3344
3345         Tests for module 'lgamma'.
3346         * modules/lgamma-tests: New file.
3347         * tests/test-lgamma.c: New file.
3348
3349         Tests for module 'ldexp'.
3350         * modules/ldexp-tests: New file.
3351         * tests/test-ldexp.c: New file.
3352
3353         Tests for module 'jn'.
3354         * modules/jn-tests: New file.
3355         * tests/test-jn.c: New file.
3356
3357         Tests for module 'j1'.
3358         * modules/j1-tests: New file.
3359         * tests/test-j1.c: New file.
3360
3361         Tests for module 'j0'.
3362         * modules/j0-tests: New file.
3363         * tests/test-j0.c: New file.
3364
3365         Tests for module 'hypot'.
3366         * modules/hypot-tests: New file.
3367         * tests/test-hypot.c: New file.
3368
3369         Tests for module 'fmod'.
3370         * modules/fmod-tests: New file.
3371         * tests/test-fmod.c: New file.
3372
3373         Tests for module 'fabs'.
3374         * modules/fabs-tests: New file.
3375         * tests/test-fabs.c: New file.
3376
3377         Tests for module 'exp'.
3378         * modules/exp-tests: New file.
3379         * tests/test-exp.c: New file.
3380
3381         Tests for module 'erfc'.
3382         * modules/erfc-tests: New file.
3383         * tests/test-erfc.c: New file.
3384
3385         Tests for module 'erf'.
3386         * modules/erf-tests: New file.
3387         * tests/test-erf.c: New file.
3388
3389         Tests for module 'cosh'.
3390         * modules/cosh-tests: New file.
3391         * tests/test-cosh.c: New file.
3392
3393         Tests for module 'cos'.
3394         * modules/cos-tests: New file.
3395         * tests/test-cos.c: New file.
3396
3397         Tests for module 'copysign'.
3398         * modules/copysign-tests: New file.
3399         * tests/test-copysign.c: New file.
3400
3401         Tests for module 'cbrt'.
3402         * modules/cbrt-tests: New file.
3403         * tests/test-cbrt.c: New file.
3404
3405         Tests for module 'atan2'.
3406         * modules/atan2-tests: New file.
3407         * tests/test-atan2.c: New file.
3408
3409         Tests for module 'atan'.
3410         * modules/atan-tests: New file.
3411         * tests/test-atan.c: New file.
3412
3413         Tests for module 'asin'.
3414         * modules/asin-tests: New file.
3415         * tests/test-asin.c: New file.
3416
3417         Tests for module 'acos'.
3418         * modules/acos-tests: New file.
3419         * tests/test-acos.c: New file.
3420
3421 2010-01-24  Bruno Haible  <bruno@clisp.org>
3422
3423         Fix tests for common <math.h> functions.
3424         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3425         code snippet that references the function pointer, rather than merely
3426         calling the function. Substitute the FUNC_LIBM variable.
3427         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3428         * modules/acos (configure.ac): Likewise.
3429         * modules/asin (configure.ac): Likewise.
3430         * modules/atan (configure.ac): Likewise.
3431         * modules/atan2 (configure.ac): Likewise.
3432         * modules/cbrt (configure.ac): Likewise.
3433         * modules/copysign (configure.ac): Likewise.
3434         * modules/cos (configure.ac): Likewise.
3435         * modules/cosh (configure.ac): Likewise.
3436         * modules/erf (configure.ac): Likewise.
3437         * modules/erfc (configure.ac): Likewise.
3438         * modules/exp (configure.ac): Likewise.
3439         * modules/fabs (configure.ac): Likewise.
3440         * modules/fmod (configure.ac): Likewise.
3441         * modules/hypot (configure.ac): Likewise.
3442         * modules/j0 (configure.ac): Likewise.
3443         * modules/j1 (configure.ac): Likewise.
3444         * modules/jn (configure.ac): Likewise.
3445         * modules/ldexp (configure.ac): Likewise.
3446         * modules/lgamma (configure.ac): Likewise.
3447         * modules/log (configure.ac): Likewise.
3448         * modules/log10 (configure.ac): Likewise.
3449         * modules/log1p (configure.ac): Likewise.
3450         * modules/logb (configure.ac): Likewise.
3451         * modules/modf (configure.ac): Likewise.
3452         * modules/nextafter (configure.ac): Likewise.
3453         * modules/pow (configure.ac): Likewise.
3454         * modules/remainder (configure.ac): Likewise.
3455         * modules/rint (configure.ac): Likewise.
3456         * modules/sin (configure.ac): Likewise.
3457         * modules/sinh (configure.ac): Likewise.
3458         * modules/tan (configure.ac): Likewise.
3459         * modules/tanh (configure.ac): Likewise.
3460         * modules/y0 (configure.ac): Likewise.
3461         * modules/y1 (configure.ac): Likewise.
3462         * modules/yn (configure.ac): Likewise.
3463
3464 2010-01-24  Bruno Haible  <bruno@clisp.org>
3465
3466         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3467         * tests/test-acosl.c (x): New variable.
3468         (main): Store argument in x and fetch it from x.
3469         * tests/test-asinl.c (x): New variable.
3470         (main): Store argument in x and fetch it from x.
3471         * tests/test-atanl.c (x): New variable.
3472         (main): Store argument in x and fetch it from x.
3473         * tests/test-cosl.c (x): New variable.
3474         (main): Store argument in x and fetch it from x.
3475         * tests/test-expl.c (x): New variable.
3476         (main): Store argument in x and fetch it from x.
3477         * tests/test-logl.c (x): New variable.
3478         (main): Store argument in x and fetch it from x.
3479         * tests/test-sinl.c (x): New variable.
3480         (main): Store argument in x and fetch it from x.
3481         * tests/test-sqrtl.c (x): New variable.
3482         (main): Store argument in x and fetch it from x.
3483         * tests/test-tanl.c (x): New variable.
3484         (main): Store argument in x and fetch it from x.
3485
3486 2010-01-24  Bruno Haible  <bruno@clisp.org>
3487
3488         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3489         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3490         assignments to the initial TESTS_ENVIRONMENT.
3491         * doc/gnulib.texi (Unit test modules): Document it.
3492         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3493         TESTS_ENVIRONMENT.
3494         * modules/btowc-tests (Makefile.am): Likewise.
3495         * modules/c-stack-tests (Makefile.am): Likewise.
3496         * modules/c-strcase-tests (Makefile.am): Likewise.
3497         * modules/copy-file-tests (Makefile.am): Likewise.
3498         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3499         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3500         * modules/mbrtowc-tests (Makefile.am): Likewise.
3501         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3502         * modules/mbscasestr-tests (Makefile.am): Likewise.
3503         * modules/mbschr-tests (Makefile.am): Likewise.
3504         * modules/mbscspn-tests (Makefile.am): Likewise.
3505         * modules/mbsinit-tests (Makefile.am): Likewise.
3506         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3507         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3508         * modules/mbspbrk-tests (Makefile.am): Likewise.
3509         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3510         * modules/mbsrchr-tests (Makefile.am): Likewise.
3511         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3512         * modules/mbsspn-tests (Makefile.am): Likewise.
3513         * modules/mbsstr-tests (Makefile.am): Likewise.
3514         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3515         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3516         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3517         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3518         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3519         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3520         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3521         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3522         * modules/wcrtomb-tests (Makefile.am): Likewise.
3523         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3524         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3525         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3526         assignments from TESTS_ENVIRONMENT.
3527         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3528         augmentation.
3529         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3530         * modules/atexit-tests (Makefile.am): Likewise.
3531         * modules/binary-io-tests (Makefile.am): Likewise.
3532         * modules/closein-tests (Makefile.am): Likewise.
3533         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3534         * modules/exclude-tests (Makefile.am): Likewise.
3535         * modules/fflush-tests (Makefile.am): Likewise.
3536         * modules/fpending-tests (Makefile.am): Likewise.
3537         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3538         * modules/freadahead-tests (Makefile.am): Likewise.
3539         * modules/freadptr-tests (Makefile.am): Likewise.
3540         * modules/freadseek-tests (Makefile.am): Likewise.
3541         * modules/fseek-tests (Makefile.am): Likewise.
3542         * modules/fseeko-tests (Makefile.am): Likewise.
3543         * modules/ftell-tests (Makefile.am): Likewise.
3544         * modules/ftello-tests (Makefile.am): Likewise.
3545         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3546         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3547         * modules/lseek-tests (Makefile.am): Likewise.
3548         * modules/parse-duration-tests (Makefile.am): Likewise.
3549         * modules/perror-tests (Makefile.am): Likewise.
3550         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3551         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3552         * modules/pipe-tests (Makefile.am): Likewise.
3553         * modules/pread-tests (Makefile.am): Likewise.
3554         * modules/printf-posix-tests (Makefile.am): Likewise.
3555         * modules/select-tests (Makefile.am): Likewise.
3556         * modules/sigpipe-tests (Makefile.am): Likewise.
3557         * modules/tsearch-tests (Makefile.am): Likewise.
3558         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3559         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3560         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3561         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3562         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3563         * modules/version-etc-tests (Makefile.am): Likewise.
3564         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3565         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3566         * modules/xalloc-die-tests (Makefile.am): Likewise.
3567         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3568         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3569         * modules/xstrtol-tests (Makefile.am): Likewise.
3570         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3571         * modules/yesno-tests (Makefile.am): Likewise.
3572         Suggested by Jim Meyering.
3573
3574 2010-01-24  Bruno Haible  <bruno@clisp.org>
3575
3576         More documentation.
3577         * doc/gnulib.texi (Writing modules): New chapter.
3578         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3579         the new chapter.
3580
3581 2010-01-24  Jim Meyering  <meyering@redhat.com>
3582
3583         maint.mk: do not prepend "./" after filtering
3584         * top/maint.mk (_prepend_srcdir_prefix): New variable
3585         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3586         "./" when $(srcdir) is ".".
3587
3588         define STREQ(a,b) consistently, removing useless parentheses
3589         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3590         since the only risk is that "a" or "b" contains an unparenthesized
3591         comma, but if either did that, STREQ would have 3 or more arguments.
3592         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3593         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3594         * lib/hash-triple.c (STREQ): Likewise.
3595         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3596         * lib/getugroups.c (STREQ): Likewise.
3597
3598 2010-01-23  Jim Meyering  <meyering@redhat.com>
3599
3600         maint.mk: fix syntax-check in a non-srcdir build directory
3601         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3602         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3603
3604 2010-01-22  Jim Meyering  <meyering@redhat.com>
3605
3606         userspec: add unit tests
3607         * tests/test-userspec.c: New file.
3608         * modules/userspec-tests: Likewise.
3609
3610 2010-01-21  Jim Meyering  <meyering@redhat.com>
3611
3612         maint.mk: handle source file names containing "." robustly
3613         * top/maint.mk (_dot_escaped_srcdir): Define.
3614         (VC_LIST): Use it in LHS of sed substitution.
3615
3616 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3617
3618         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3619         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3620         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3621         from a non-srcdir build.
3622
3623 2010-01-20  Eric Blake  <ebb9@byu.net>
3624
3625         warn-on-use: use instead of link-warning
3626         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3627         * modules/unistd (Depends-on, Makefile.am): Likewise.
3628         * modules/arpa_inet (Depends-on): Replace link-warning with
3629         warn-on-use.
3630         (Makefile.am): Update rules accordingly.
3631         * modules/ctype (Depends-on, Makefile.am): Likewise.
3632         * modules/dirent (Depends-on, Makefile.am): Likewise.
3633         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3634         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3635         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3636         * modules/locale (Depends-on, Makefile.am): Likewise.
3637         * modules/math (Depends-on, Makefile.am): Likewise.
3638         * modules/search (Depends-on, Makefile.am): Likewise.
3639         * modules/signal (Depends-on, Makefile.am): Likewise.
3640         * modules/spawn (Depends-on, Makefile.am): Likewise.
3641         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3642         * modules/string (Depends-on, Makefile.am): Likewise.
3643         * modules/strings (Depends-on, Makefile.am): Likewise.
3644         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3645         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3646         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3647         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3648         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3649         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3650         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3651         * modules/wchar (Depends-on, Makefile.am): Likewise.
3652         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3653         should be poisoned.
3654         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3655         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3656         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3657         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3658         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3659         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3660         * m4/math_h.m4 (gl_MATH_H): Likewise.
3661         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3662         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3663         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3664         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3665         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3666         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3667         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3668         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3669         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3670         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3671         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3672         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3673         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3674         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3675         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3676         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3677         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3678         GL_LINK_WARNING.
3679         * lib/ctype.in.h: Likewise.
3680         * lib/dirent.in.h: Likewise.
3681         * lib/fcntl.in.h: Likewise.
3682         * lib/inttypes.in.h: Likewise.
3683         * lib/langinfo.in.h: Likewise.
3684         * lib/locale.in.h: Likewise.
3685         * lib/math.in.h: Likewise.
3686         * lib/search.in.h: Likewise.
3687         * lib/signal.in.h: Likewise.
3688         * lib/spawn.in.h: Likewise.
3689         * lib/stdio.in.h: Likewise.
3690         * lib/stdlib.in.h: Likewise.
3691         * lib/string.in.h: Likewise.
3692         * lib/strings.in.h: Likewise.
3693         * lib/sys_file.in.h: Likewise.
3694         * lib/sys_ioctl.in.h: Likewise.
3695         * lib/sys_select.in.h: Likewise.
3696         * lib/sys_socket.in.h: Likewise.
3697         * lib/sys_stat.in.h: Likewise.
3698         * lib/sys_times.in.h: Likewise.
3699         * lib/sys_utsname.in.h: Likewise.
3700         * lib/unistd.in.h: Likewise.
3701         * lib/wchar.in.h: Likewise.
3702
3703 2010-01-20  Bruno Haible  <bruno@clisp.org>
3704
3705         Avoid duplicate -lm.
3706         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3707         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3708         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3709         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3710         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3711         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3712         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3713         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3714         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3715         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3716         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3717         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3718         Reported by Paolo Bonzini.
3719
3720 2010-01-19  Bruno Haible  <bruno@clisp.org>
3721
3722         langinfo, nl_langinfo: Relicense under LGPLv2+.
3723         * modules/langinfo (License): Change to LGPLv2+.
3724         * modules/nl_langinfo (License): Likewise.
3725         Patch by David Lutterkort <lutter@redhat.com>.
3726
3727 2010-01-19  Bruno Haible  <bruno@clisp.org>
3728
3729         Avoid compilation error with cc on OSF/1 5.1.
3730         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3731         statement, not before.
3732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3733
3734 2010-01-18  Bruno Haible  <bruno@clisp.org>
3735
3736         Avoid a link error due to the __printf__ symbol.
3737         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3738         and 2.6.x.
3739         (__format__, __printf__): Remove definitions.
3740         * lib/argp-fmtstream.h: Likewise.
3741         * lib/argp.h: Likewise.
3742         * lib/error.h: Likewise.
3743         * lib/vasnprintf.h: Likewise.
3744         * lib/xprintf.h: Likewise.
3745         * lib/xvasprintf.h: Likewise.
3746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3747
3748 2010-01-18  Bruno Haible  <bruno@clisp.org>
3749
3750         Tests for module 'tanl'.
3751         * modules/tanl-tests: New file.
3752         * tests/test-tanl.c: New file.
3753
3754         Tests for module 'sqrtl'.
3755         * modules/sqrtl-tests: New file.
3756         * tests/test-sqrtl.c: New file.
3757
3758         Tests for module 'sinl'.
3759         * modules/sinl-tests: New file.
3760         * tests/test-sinl.c: New file.
3761
3762         Tests for module 'logl'.
3763         * modules/logl-tests: New file.
3764         * tests/test-logl.c: New file.
3765
3766         Tests for module 'expl'.
3767         * modules/expl-tests: New file.
3768         * tests/test-expl.c: New file.
3769
3770         Tests for module 'cosl'.
3771         * modules/cosl-tests: New file.
3772         * tests/test-cosl.c: New file.
3773
3774         Tests for module 'atanl'.
3775         * modules/atanl-tests: New file.
3776         * tests/test-atanl.c: New file.
3777
3778         Tests for module 'asinl'.
3779         * modules/asinl-tests: New file.
3780         * tests/test-asinl.c: New file.
3781
3782         Tests for module 'acosl'.
3783         * modules/acosl-tests: New file.
3784         * tests/test-acosl.c: New file.
3785
3786         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3787         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3788         tanl): Use the standard gnulib idiom.
3789         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3790         * lib/sinl.c: Likewise.
3791         * lib/tanl.c: Don't include trigl.c.
3792         (kernel_tanl): Make static.
3793         * lib/sincosl.c: Include trigl.h first.
3794         * lib/trigl.c: Likewise.
3795         * m4/acosl.m4: New file.
3796         * m4/asinl.m4: New file.
3797         * m4/atanl.m4: New file.
3798         * m4/cosl.m4: New file.
3799         * m4/expl.m4: New file.
3800         * m4/logl.m4: New file.
3801         * m4/sinl.m4: New file.
3802         * m4/sqrtl.m4: New file.
3803         * m4/tanl.m4: New file.
3804         * m4/mathl.m4: Remove file.
3805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3806         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3807         Don't initialize GNULIB_MATHL.
3808         * modules/acosl: New file.
3809         * modules/asinl: New file.
3810         * modules/atanl: New file.
3811         * modules/cosl: New file.
3812         * modules/expl: New file.
3813         * modules/logl: New file.
3814         * modules/sinl: New file.
3815         * modules/sqrtl: New file.
3816         * modules/tanl: New file.
3817         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3818         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3819         substitute GNULIB_MATHL.
3820         * modules/mathl: Rewritten.
3821         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3822         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3823         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3824         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3825         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3826         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3827         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3828         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3829         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3830
3831 2010-01-18  Bruno Haible  <bruno@clisp.org>
3832
3833         sqrt: Make gl_FUNC_SQRT requirable.
3834         * m4/sqrt.m4: New file.
3835         * modules/sqrt (Files): Add it.
3836         (configure.ac): Invoke gl_FUNC_SQRT.
3837
3838 2010-01-18  Bruno Haible  <bruno@clisp.org>
3839
3840         New modules for common <math.h> functions.
3841         * m4/mathfunc.m4: New file.
3842         * modules/acos: New file.
3843         * modules/asin: New file.
3844         * modules/atan: New file.
3845         * modules/atan2: New file.
3846         * modules/cbrt: New file.
3847         * modules/copysign: New file.
3848         * modules/cos: New file.
3849         * modules/cosh: New file.
3850         * modules/erf: New file.
3851         * modules/erfc: New file.
3852         * modules/exp: New file.
3853         * modules/fabs: New file.
3854         * modules/fmod: New file.
3855         * modules/hypot: New file.
3856         * modules/j0: New file.
3857         * modules/j1: New file.
3858         * modules/jn: New file.
3859         * modules/ldexp: New file.
3860         * modules/lgamma: New file.
3861         * modules/log: New file.
3862         * modules/log10: New file.
3863         * modules/log1p: New file.
3864         * modules/logb: New file.
3865         * modules/modf: New file.
3866         * modules/nextafter: New file.
3867         * modules/pow: New file.
3868         * modules/remainder: New file.
3869         * modules/rint: New file.
3870         * modules/sin: New file.
3871         * modules/sinh: New file.
3872         * modules/sqrt: New file.
3873         * modules/tan: New file.
3874         * modules/tanh: New file.
3875         * modules/y0: New file.
3876         * modules/y1: New file.
3877         * modules/yn: New file.
3878         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3879         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3880         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3881         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3882         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3883         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3884         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3885         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3886         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3887         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3888         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3889         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3890         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3891         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3892         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3893         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3894         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3895         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3896         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3897         * doc/posix-functions/log.texi: Mention the 'log' module.
3898         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3899         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3900         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3901         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3902         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3903         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3904         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3905         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3906         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3907         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3908         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3909         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3910         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3911         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3912         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3913         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3914
3915 2010-01-18  Jim Meyering  <meyering@redhat.com>
3916
3917         ignore-value: relax license to LGPLv2+
3918         * modules/ignore-value (License): Relax to LGPLv2+.
3919
3920         getdate: don't leak when TZ contains two or more '"'s
3921         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3922         double quote in TZ after the first one.
3923
3924         readtokens: do not leak internal token_lengths buffer
3925         * lib/readtokens.c (readtokens): Free the local, lengths,
3926         when the supplied "token_lengths" parameter is NULL.
3927
3928 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3929
3930         Fix a couple of missing LIBTHREAD link failures on AIX.
3931         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3932         $(LIBTHREAD).
3933         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3934
3935         Link test-poll against INET_PTON_LIB.
3936         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3937         for inet_pton on Solaris 10.
3938
3939 2010-01-17  Bruno Haible  <bruno@clisp.org>
3940
3941         unistdio/*-sprintf: Fix typo in module description.
3942         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3943         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3944         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3945         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3946         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3947         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3948         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3949         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3950
3951 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3952
3953         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3954         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3955         variables in shell case patterns, for AIX and HP-UX ksh.
3956
3957         Split large sed scripts, for HP-UX sed.
3958         * modules/stdio: Split sed scripts around 50 sed commands,
3959         to avoid HP-UX limit of 99 commands, in the near future.
3960         * modules/string: Likewise.
3961         * modules/unistd: Likewise.
3962
3963         gnulib-tool: avoid writing in the current directory.
3964         * gnulib-tool (func_emit_lib_Makefile_am)
3965         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3966         not in the current directory, so concurrent gnulib-tool
3967         instances do not interfere.
3968
3969 2010-01-16  Jim Meyering  <meyering@redhat.com>
3970
3971         doc: update users.txt
3972         * users.txt: Add grep.
3973         (diffutils, gzip): Update URLs.
3974
3975 2010-01-12  Bruno Haible  <bruno@clisp.org>
3976
3977         posix_spawn: Avoid test failure on Cygwin.
3978         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3979         characters.
3980         Reported by Simon Josefsson.
3981
3982 2010-01-12  Bruno Haible  <bruno@clisp.org>
3983
3984         * tests/test-cond.c (main): When skipping the test, show the reason.
3985
3986 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3987
3988         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3989
3990 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3991
3992         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3993         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3994
3995 2010-01-12  Eric Blake  <ebb9@byu.net>
3996
3997         build: guarantee AS_VAR_IF
3998         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3999         (gl_AS_VAR_IF): Move...
4000         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
4001         Reported by Simon Josefsson.
4002
4003 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4004
4005         * lib/stdio.in.h: Fix typo.
4006
4007 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4008
4009         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
4010         libgpg-error.
4011
4012 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4013
4014         * tests/test-xalloc-die.sh: Use $EXEEXT.
4015
4016 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4017             Bruno Haible  <bruno@clisp.org>
4018
4019         getlogin, getlogin_r: Avoid test failure.
4020         * tests/test-getlogin.c: Include <stdio.h>.
4021         (main): Skip the test when the function fails because stdin is not a
4022         tty.
4023         * tests/test-getlogin_r.c: Include <stdio.h>.
4024         (main): Skip the test when the function fails because stdin is not a
4025         tty.
4026
4027 2010-01-11  Eric Blake  <ebb9@byu.net>
4028
4029         tests: avoid more large file warnings
4030         * tests/test-fflush.c: Avoid warning about ftell use.
4031         * tests/test-fseek.c: Avoid warning about fseek use.
4032
4033 2010-01-10  Bruno Haible  <bruno@clisp.org>
4034
4035         nproc: Work better on Linux when /proc and /sys are not mounted.
4036         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
4037         as lower bound when, on glibc/Linux systems,
4038         sysconf (_SC_NPROCESSORS_CONF) returns 1.
4039         Suggested by Pádraig Brady <P@draigbrady.com>.
4040         Reported by Dmitry V. Levin <ldv@altlinux.org>.
4041
4042         nproc: Refactor.
4043         * lib/nproc.c (num_processors_via_affinity_mask): New function,
4044         extracted from num_processors.
4045         (num_processors): Call it.
4046
4047 2010-01-11  Jim Meyering  <meyering@redhat.com>
4048
4049         utimecmp: avoid new warning from upcoming gcc-4.5.0
4050         * lib/utimecmp.c (BILLION): Define using #define rather than an
4051         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
4052
4053 2010-01-11  Eric Blake  <ebb9@byu.net>
4054
4055         math: add portability warnings for classification macros
4056         * modules/math (Depends-on): Add warn-on-use.
4057         (Makefile.am): Provide new substitutions.
4058         * m4/math_h.m4 (gl_MATH_H): Require inline.
4059         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
4060         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
4061         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
4062         implement warnings.
4063
4064         unistd: warn on use of environ without module
4065         * modules/unistd (Depends-on): Add warn-on-use.
4066         (Makefile.am): Provide new substitutions.
4067         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
4068         * lib/unistd.in.h (environ): Wrap with a warning helper function.
4069
4070         stdio: warn on suspicious uses
4071         * modules/stdio (Depends-on): Add warn-on-use.
4072         (Makefile.am): Provide new substitutions.
4073         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
4074         fseeko.
4075         * lib/stdio.in.h (gets): Always warn on use.
4076         (fseek, ftell): Adjust when warnings are issued, and honor
4077         _GL_NO_LARGE_FILES as a way to silence the warning.
4078         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
4079         any warning about large file offsets.
4080         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
4081         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
4082         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
4083         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
4084         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
4085         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
4086         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
4087         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
4088
4089         warn-on-use: new module
4090         * modules/warn-on-use: New file.
4091         * build-aux/warn-on-use.h: Likewise.
4092         * m4/warn-on-use.m4: Likewise.
4093         * MODULES.html.sh (Support for building): Mention it.
4094
4095 2010-01-10  Bruno Haible  <bruno@clisp.org>
4096
4097         Tests for module 'unistr/u32-strdup'.
4098         * modules/unistr/u32-strdup-tests: New file.
4099         * tests/unistr/test-u32-strdup.c: New file.
4100
4101         Tests for module 'unistr/u16-strdup'.
4102         * modules/unistr/u16-strdup-tests: New file.
4103         * tests/unistr/test-u16-strdup.c: New file.
4104
4105         Tests for module 'unistr/u8-strdup'.
4106         * modules/unistr/u8-strdup-tests: New file.
4107         * tests/unistr/test-u8-strdup.c: New file.
4108         * tests/unistr/test-strdup.h: New file.
4109
4110         Tests for module 'unistr/u32-strncmp'.
4111         * modules/unistr/u32-strncmp-tests: New file.
4112         * tests/unistr/test-u32-strncmp.c: New file.
4113
4114         Tests for module 'unistr/u16-strncmp'.
4115         * modules/unistr/u16-strncmp-tests: New file.
4116         * tests/unistr/test-u16-strncmp.c: New file.
4117
4118         Tests for module 'unistr/u8-strncmp'.
4119         * modules/unistr/u8-strncmp-tests: New file.
4120         * tests/unistr/test-u8-strncmp.c: New file.
4121         * tests/unistr/test-strncmp.h: New file.
4122
4123         Tests for module 'unistr/u32-strcoll'.
4124         * modules/unistr/u32-strcoll-tests: New file.
4125         * tests/unistr/test-u32-strcoll.c: New file.
4126
4127         Tests for module 'unistr/u16-strcoll'.
4128         * modules/unistr/u16-strcoll-tests: New file.
4129         * tests/unistr/test-u16-strcoll.c: New file.
4130
4131         Tests for module 'unistr/u8-strcoll'.
4132         * modules/unistr/u8-strcoll-tests: New file.
4133         * tests/unistr/test-u8-strcoll.c: New file.
4134
4135         Tests for module 'unistr/u32-strcmp'.
4136         * modules/unistr/u32-strcmp-tests: New file.
4137         * tests/unistr/test-u32-strcmp.c: New file.
4138         * tests/unistr/test-u32-strcmp.h: New file.
4139
4140         Tests for module 'unistr/u16-strcmp'.
4141         * modules/unistr/u16-strcmp-tests: New file.
4142         * tests/unistr/test-u16-strcmp.c: New file.
4143         * tests/unistr/test-u16-strcmp.h: New file.
4144
4145         Tests for module 'unistr/u8-strcmp'.
4146         * modules/unistr/u8-strcmp-tests: New file.
4147         * tests/unistr/test-u8-strcmp.c: New file.
4148         * tests/unistr/test-u8-strcmp.h: New file.
4149         * tests/unistr/test-strcmp.h: New file.
4150
4151         Tests for module 'unistr/u32-strncat'.
4152         * modules/unistr/u32-strncat-tests: New file.
4153         * tests/unistr/test-u32-strncat.c: New file.
4154
4155         Tests for module 'unistr/u16-strncat'.
4156         * modules/unistr/u16-strncat-tests: New file.
4157         * tests/unistr/test-u16-strncat.c: New file.
4158
4159         Tests for module 'unistr/u8-strncat'.
4160         * modules/unistr/u8-strncat-tests: New file.
4161         * tests/unistr/test-u8-strncat.c: New file.
4162         * tests/unistr/test-strncat.h: New file.
4163
4164         Tests for module 'unistr/u32-strcat'.
4165         * modules/unistr/u32-strcat-tests: New file.
4166         * tests/unistr/test-u32-strcat.c: New file.
4167
4168         Tests for module 'unistr/u16-strcat'.
4169         * modules/unistr/u16-strcat-tests: New file.
4170         * tests/unistr/test-u16-strcat.c: New file.
4171
4172         Tests for module 'unistr/u8-strcat'.
4173         * modules/unistr/u8-strcat-tests: New file.
4174         * tests/unistr/test-u8-strcat.c: New file.
4175         * tests/unistr/test-strcat.h: New file.
4176
4177         Tests for module 'unistr/u32-stpncpy'.
4178         * modules/unistr/u32-stpncpy-tests: New file.
4179         * tests/unistr/test-u32-stpncpy.c: New file.
4180
4181         Tests for module 'unistr/u16-stpncpy'.
4182         * modules/unistr/u16-stpncpy-tests: New file.
4183         * tests/unistr/test-u16-stpncpy.c: New file.
4184
4185         Tests for module 'unistr/u8-stpncpy'.
4186         * modules/unistr/u8-stpncpy-tests: New file.
4187         * tests/unistr/test-u8-stpncpy.c: New file.
4188         * tests/unistr/test-stpncpy.h: New file.
4189
4190         Tests for module 'unistr/u32-strncpy'.
4191         * modules/unistr/u32-strncpy-tests: New file.
4192         * tests/unistr/test-u32-strncpy.c: New file.
4193
4194         Tests for module 'unistr/u16-strncpy'.
4195         * modules/unistr/u16-strncpy-tests: New file.
4196         * tests/unistr/test-u16-strncpy.c: New file.
4197
4198         Tests for module 'unistr/u8-strncpy'.
4199         * modules/unistr/u8-strncpy-tests: New file.
4200         * tests/unistr/test-u8-strncpy.c: New file.
4201         * tests/unistr/test-strncpy.h: New file.
4202
4203         Tests for module 'unistr/u32-stpcpy'.
4204         * modules/unistr/u32-stpcpy-tests: New file.
4205         * tests/unistr/test-u32-stpcpy.c: New file.
4206
4207         Tests for module 'unistr/u16-stpcpy'.
4208         * modules/unistr/u16-stpcpy-tests: New file.
4209         * tests/unistr/test-u16-stpcpy.c: New file.
4210
4211         Tests for module 'unistr/u8-stpcpy'.
4212         * modules/unistr/u8-stpcpy-tests: New file.
4213         * tests/unistr/test-u8-stpcpy.c: New file.
4214         * tests/unistr/test-stpcpy.h: New file.
4215
4216         Tests for module 'unistr/u32-strcpy'.
4217         * modules/unistr/u32-strcpy-tests: New file.
4218         * tests/unistr/test-u32-strcpy.c: New file.
4219
4220         Tests for module 'unistr/u16-strcpy'.
4221         * modules/unistr/u16-strcpy-tests: New file.
4222         * tests/unistr/test-u16-strcpy.c: New file.
4223
4224         Tests for module 'unistr/u8-strcpy'.
4225         * modules/unistr/u8-strcpy-tests: New file.
4226         * tests/unistr/test-u8-strcpy.c: New file.
4227         * tests/unistr/test-strcpy.h: New file.
4228
4229         Tests for module 'unistr/u32-strnlen'.
4230         * modules/unistr/u32-strnlen-tests: New file.
4231         * tests/unistr/test-u32-strnlen.c: New file.
4232
4233         Tests for module 'unistr/u16-strnlen'.
4234         * modules/unistr/u16-strnlen-tests: New file.
4235         * tests/unistr/test-u16-strnlen.c: New file.
4236
4237         Tests for module 'unistr/u8-strnlen'.
4238         * modules/unistr/u8-strnlen-tests: New file.
4239         * tests/unistr/test-u8-strnlen.c: New file.
4240         * tests/unistr/test-strnlen.h: New file.
4241
4242         Tests for module 'unistr/u32-strlen'.
4243         * modules/unistr/u32-strlen-tests: New file.
4244         * tests/unistr/test-u32-strlen.c: New file.
4245
4246         Tests for module 'unistr/u16-strlen'.
4247         * modules/unistr/u16-strlen-tests: New file.
4248         * tests/unistr/test-u16-strlen.c: New file.
4249
4250         Tests for module 'unistr/u8-strlen'.
4251         * modules/unistr/u8-strlen-tests: New file.
4252         * tests/unistr/test-u8-strlen.c: New file.
4253
4254         Tests for module 'unistr/u32-prev'.
4255         * modules/unistr/u32-prev-tests: New file.
4256         * tests/unistr/test-u32-prev.c: New file.
4257
4258         Tests for module 'unistr/u16-prev'.
4259         * modules/unistr/u16-prev-tests: New file.
4260         * tests/unistr/test-u16-prev.c: New file.
4261
4262         Tests for module 'unistr/u8-prev'.
4263         * modules/unistr/u8-prev-tests: New file.
4264         * tests/unistr/test-u8-prev.c: New file.
4265
4266         Tests for module 'unistr/u32-next'.
4267         * modules/unistr/u32-next-tests: New file.
4268         * tests/unistr/test-u32-next.c: New file.
4269
4270         Tests for module 'unistr/u16-next'.
4271         * modules/unistr/u16-next-tests: New file.
4272         * tests/unistr/test-u16-next.c: New file.
4273
4274         Tests for module 'unistr/u8-next'.
4275         * modules/unistr/u8-next-tests: New file.
4276         * tests/unistr/test-u8-next.c: New file.
4277
4278         Tests for module 'unistr/u32-strmbtouc'.
4279         * modules/unistr/u32-strmbtouc-tests: New file.
4280         * tests/unistr/test-u32-strmbtouc.c: New file.
4281
4282         Tests for module 'unistr/u16-strmbtouc'.
4283         * modules/unistr/u16-strmbtouc-tests: New file.
4284         * tests/unistr/test-u16-strmbtouc.c: New file.
4285
4286         Tests for module 'unistr/u8-strmbtouc'.
4287         * modules/unistr/u8-strmbtouc-tests: New file.
4288         * tests/unistr/test-u8-strmbtouc.c: New file.
4289
4290         Tests for module 'unistr/u32-strmblen'.
4291         * modules/unistr/u32-strmblen-tests: New file.
4292         * tests/unistr/test-u32-strmblen.c: New file.
4293
4294         Tests for module 'unistr/u16-strmblen'.
4295         * modules/unistr/u16-strmblen-tests: New file.
4296         * tests/unistr/test-u16-strmblen.c: New file.
4297
4298         Tests for module 'unistr/u8-strmblen'.
4299         * modules/unistr/u8-strmblen-tests: New file.
4300         * tests/unistr/test-u8-strmblen.c: New file.
4301
4302         Tests for module 'unistr/u32-cpy-alloc'.
4303         * modules/unistr/u32-cpy-alloc-tests: New file.
4304         * tests/unistr/test-u32-cpy-alloc.c: New file.
4305
4306         Tests for module 'unistr/u16-cpy-alloc'.
4307         * modules/unistr/u16-cpy-alloc-tests: New file.
4308         * tests/unistr/test-u16-cpy-alloc.c: New file.
4309
4310         Tests for module 'unistr/u8-cpy-alloc'.
4311         * modules/unistr/u8-cpy-alloc-tests: New file.
4312         * tests/unistr/test-u8-cpy-alloc.c: New file.
4313         * tests/unistr/test-cpy-alloc.h: New file.
4314
4315         Tests for module 'unistr/u32-mbsnlen'.
4316         * modules/unistr/u32-mbsnlen-tests: New file.
4317         * tests/unistr/test-u32-mbsnlen.c: New file.
4318
4319         Tests for module 'unistr/u16-mbsnlen'.
4320         * modules/unistr/u16-mbsnlen-tests: New file.
4321         * tests/unistr/test-u16-mbsnlen.c: New file.
4322
4323         Tests for module 'unistr/u8-mbsnlen'.
4324         * modules/unistr/u8-mbsnlen-tests: New file.
4325         * tests/unistr/test-u8-mbsnlen.c: New file.
4326
4327         Tests for module 'unistr/u32-chr'.
4328         * modules/unistr/u32-chr-tests: New file.
4329         * tests/unistr/test-u32-chr.c: New file.
4330
4331         Tests for module 'unistr/u16-chr'.
4332         * modules/unistr/u16-chr-tests: New file.
4333         * tests/unistr/test-u16-chr.c: New file.
4334
4335         Tests for module 'unistr/u8-chr'.
4336         * modules/unistr/u8-chr-tests: New file.
4337         * tests/unistr/test-u8-chr.c: New file.
4338         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4339
4340         Tests for module 'unistr/u32-cmp2'.
4341         * modules/unistr/u32-cmp2-tests: New file.
4342         * tests/unistr/test-u32-cmp2.c: New file.
4343
4344         Tests for module 'unistr/u16-cmp2'.
4345         * modules/unistr/u16-cmp2-tests: New file.
4346         * tests/unistr/test-u16-cmp2.c: New file.
4347
4348         Tests for module 'unistr/u8-cmp2'.
4349         * modules/unistr/u8-cmp2-tests: New file.
4350         * tests/unistr/test-u8-cmp2.c: New file.
4351         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4352
4353         Tests for module 'unistr/u32-cmp'.
4354         * modules/unistr/u32-cmp-tests: New file.
4355         * tests/unistr/test-u32-cmp.c: New file.
4356
4357         Tests for module 'unistr/u16-cmp'.
4358         * modules/unistr/u16-cmp-tests: New file.
4359         * tests/unistr/test-u16-cmp.c: New file.
4360
4361         Tests for module 'unistr/u8-cmp'.
4362         * modules/unistr/u8-cmp-tests: New file.
4363         * tests/unistr/test-u8-cmp.c: New file.
4364         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4365
4366         Tests for module 'unistr/u32-set'.
4367         * modules/unistr/u32-set-tests: New file.
4368         * tests/unistr/test-u32-set.c: New file.
4369
4370         Tests for module 'unistr/u16-set'.
4371         * modules/unistr/u16-set-tests: New file.
4372         * tests/unistr/test-u16-set.c: New file.
4373
4374         Tests for module 'unistr/u8-set'.
4375         * modules/unistr/u8-set-tests: New file.
4376         * tests/unistr/test-u8-set.c: New file.
4377         * tests/unistr/test-set.h: New file.
4378
4379         Tests for module 'unistr/u32-move'.
4380         * modules/unistr/u32-move-tests: New file.
4381         * tests/unistr/test-u32-move.c: New file.
4382
4383         Tests for module 'unistr/u16-move'.
4384         * modules/unistr/u16-move-tests: New file.
4385         * tests/unistr/test-u16-move.c: New file.
4386
4387         Tests for module 'unistr/u8-move'.
4388         * modules/unistr/u8-move-tests: New file.
4389         * tests/unistr/test-u8-move.c: New file.
4390         * tests/unistr/test-move.h: New file.
4391
4392         Tests for module 'unistr/u32-cpy'.
4393         * modules/unistr/u32-cpy-tests: New file.
4394         * tests/unistr/test-u32-cpy.c: New file.
4395
4396         Tests for module 'unistr/u16-cpy'.
4397         * modules/unistr/u16-cpy-tests: New file.
4398         * tests/unistr/test-u16-cpy.c: New file.
4399
4400         Tests for module 'unistr/u8-cpy'.
4401         * modules/unistr/u8-cpy-tests: New file.
4402         * tests/unistr/test-u8-cpy.c: New file.
4403         * tests/unistr/test-cpy.h: New file.
4404
4405 2010-01-09  Bruno Haible  <bruno@clisp.org>
4406
4407         Tests for module 'unistr/u32-uctomb'.
4408         * modules/unistr/u32-uctomb-tests: New file.
4409         * tests/unistr/test-u32-uctomb.c: New file.
4410
4411         Tests for module 'unistr/u16-uctomb'.
4412         * modules/unistr/u16-uctomb-tests: New file.
4413         * tests/unistr/test-u16-uctomb.c: New file.
4414
4415         Tests for module 'unistr/u8-uctomb'.
4416         * modules/unistr/u8-uctomb-tests: New file.
4417         * tests/unistr/test-u8-uctomb.c: New file.
4418
4419         Tests for module 'unistr/u32-mbtoucr'.
4420         * modules/unistr/u32-mbtoucr-tests: New file.
4421         * tests/unistr/test-u32-mbtoucr.c: New file.
4422
4423         Tests for module 'unistr/u16-mbtoucr'.
4424         * modules/unistr/u16-mbtoucr-tests: New file.
4425         * tests/unistr/test-u16-mbtoucr.c: New file.
4426
4427         Tests for module 'unistr/u8-mbtoucr'.
4428         * modules/unistr/u8-mbtoucr-tests: New file.
4429         * tests/unistr/test-u8-mbtoucr.c: New file.
4430
4431         Tests for module 'unistr/u32-mbtouc'.
4432         * modules/unistr/u32-mbtouc-tests: New file.
4433         * tests/unistr/test-u32-mbtouc.c: New file.
4434
4435         Tests for module 'unistr/u16-mbtouc'.
4436         * modules/unistr/u16-mbtouc-tests: New file.
4437         * tests/unistr/test-u16-mbtouc.c: New file.
4438
4439         Tests for module 'unistr/u8-mbtouc'.
4440         * modules/unistr/u8-mbtouc-tests: New file.
4441         * tests/unistr/test-u8-mbtouc.c: New file.
4442
4443         Tests for module 'unistr/u32-mbtouc-unsafe'.
4444         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4445         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4446         * tests/unistr/test-u32-mbtouc.h: New file.
4447
4448         Tests for module 'unistr/u16-mbtouc-unsafe'.
4449         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4450         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4451         * tests/unistr/test-u16-mbtouc.h: New file.
4452
4453         Tests for module 'unistr/u8-mbtouc-unsafe'.
4454         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4455         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4456         * tests/unistr/test-u8-mbtouc.h: New file.
4457
4458         Tests for module 'unistr/u32-mblen'.
4459         * modules/unistr/u32-mblen-tests: New file.
4460         * tests/unistr/test-u32-mblen.c: New file.
4461
4462         Tests for module 'unistr/u16-mblen'.
4463         * modules/unistr/u16-mblen-tests: New file.
4464         * tests/unistr/test-u16-mblen.c: New file.
4465
4466         Tests for module 'unistr/u8-mblen'.
4467         * modules/unistr/u8-mblen-tests: New file.
4468         * tests/unistr/test-u8-mblen.c: New file.
4469
4470         Tests for module 'unistr/u32-to-u16'.
4471         * modules/unistr/u32-to-u16-tests: New file.
4472         * tests/unistr/test-u32-to-u16.c: New file.
4473
4474         Tests for module 'unistr/u32-to-u8'.
4475         * modules/unistr/u32-to-u8-tests: New file.
4476         * tests/unistr/test-u32-to-u8.c: New file.
4477
4478         Tests for module 'unistr/u16-to-u32'.
4479         * modules/unistr/u16-to-u32-tests: New file.
4480         * tests/unistr/test-u16-to-u32.c: New file.
4481
4482         Tests for module 'unistr/u16-to-u8'.
4483         * modules/unistr/u16-to-u8-tests: New file.
4484         * tests/unistr/test-u16-to-u8.c: New file.
4485
4486         Tests for module 'unistr/u8-to-u32'.
4487         * modules/unistr/u8-to-u32-tests: New file.
4488         * tests/unistr/test-u8-to-u32.c: New file.
4489
4490         Tests for module 'unistr/u8-to-u16'.
4491         * modules/unistr/u8-to-u16-tests: New file.
4492         * tests/unistr/test-u8-to-u16.c: New file.
4493
4494         Tests for module 'unistr/u32-check'.
4495         * modules/unistr/u32-check-tests: New file.
4496         * tests/unistr/test-u32-check.c: New file.
4497
4498         Tests for module 'unistr/u16-check'.
4499         * modules/unistr/u16-check-tests: New file.
4500         * tests/unistr/test-u16-check.c: New file.
4501
4502         Tests for module 'unistr/u8-check'.
4503         * modules/unistr/u8-check-tests: New file.
4504         * tests/unistr/test-u8-check.c: New file.
4505
4506         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4507         (category_equals): New function.
4508         (main): Add more tests.
4509         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4510
4511         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4512
4513 2010-01-10  Bruno Haible  <bruno@clisp.org>
4514
4515         unistr/u*-strcoll: Try harder to distinguish different strings.
4516         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4517         compare s1 and s2 to see if they are different.
4518
4519 2010-01-10  Bruno Haible  <bruno@clisp.org>
4520
4521         unistr/u*-stpncpy: Fix the return value.
4522         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4523         description of the return value consistent with stpncpy in glibc.
4524         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4525         written non-NUL unit.
4526
4527 2010-01-10  Bruno Haible  <bruno@clisp.org>
4528
4529         unistr/u*-next: Add missing dependencies.
4530         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4531         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4532         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4533
4534 2010-01-10  Bruno Haible  <bruno@clisp.org>
4535
4536         unistr/u8-mbsnlen: Fix return value for incomplete character.
4537         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4538         u8_mblen.
4539         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4540         Remove unistr/u8-mblen.
4541         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4542         u16_mblen.
4543         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4544         Remove unistr/u16-mblen.
4545
4546 2010-01-10  Bruno Haible  <bruno@clisp.org>
4547
4548         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4549         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4550         Reported by Brian Gough <bjg@gnu.org> and
4551         Chris Clayton <chris2553@googlemail.com> via
4552         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4553
4554 2010-01-09  Bruno Haible  <bruno@clisp.org>
4555
4556         unistr/u16-to-u32: Reject invalid input.
4557         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4558         u16_mbtouc.
4559         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4560         Remove unistr/u16-mbtouc.
4561
4562         unistr/u16-to-u8: Reject invalid input.
4563         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4564         u16_mbtouc.
4565         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4566         Remove unistr/u16-mbtouc.
4567
4568         unistr/u8-to-u32: Reject invalid input.
4569         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4570         u8_mbtouc.
4571         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4572         Remove unistr/u8-mbtouc.
4573
4574         unistr/u8-to-u16: Reject invalid input.
4575         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4576         u8_mbtouc.
4577         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4578         Remove unistr/u8-mbtouc.
4579
4580 2010-01-09  Bruno Haible  <bruno@clisp.org>
4581
4582         Tests for module 'getlogin'.
4583         * modules/getlogin-tests: New file.
4584         * tests/test-getlogin.c: New file.
4585
4586         New module 'getlogin'.
4587         * lib/unistd.in.h (getlogin): New declaration.
4588         * lib/getlogin.c: New file.
4589         * m4/getlogin.m4: New file.
4590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4591         HAVE_GETLOGIN.
4592         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4593         HAVE_GETLOGIN.
4594         * modules/getlogin: New file.
4595         * doc/posix-functions/getlogin.texi: Mention the new module.
4596         Reported by John W. Eaton <jwe@gnu.org>.
4597
4598 2010-01-09  Bruno Haible  <bruno@clisp.org>
4599
4600         getlogin_r: Support for native Windows.
4601         * lib/getlogin_r.c: Include <windows.h>
4602         (getlogin_r): Implement for native Windows.
4603         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4604         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4605         via John W. Eaton <jwe@gnu.org>.
4606
4607 2010-01-09  Bruno Haible  <bruno@clisp.org>
4608
4609         getlogin_r: Small fixes.
4610         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4611         succeeds.
4612         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4613         before testing whether getlogin_r is declared. No need to set
4614         HAVE_DECL_GETLOGIN_R to 1.
4615         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4616
4617 2010-01-09  Bruno Haible  <bruno@clisp.org>
4618
4619         * lib/unistd.in.h (getlogin_r): Add comment.
4620
4621 2010-01-09  Bruno Haible  <bruno@clisp.org>
4622
4623         Tests for module 'getlogin_r'.
4624         * modules/getlogin_r-tests: New file.
4625         * tests/test-getlogin_r.c: New file.
4626
4627 2010-01-09  Jim Meyering  <meyering@redhat.com>
4628
4629         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4630         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4631         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4632
4633 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4634
4635         * lib/dup2.c (rpl_dup2): Improve comment.
4636
4637 2010-01-08  Eric Blake  <ebb9@byu.net>
4638
4639         maint.mk: allow packages to add makefile @@ exceptions
4640         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4641         (sc_makefile_check): Rename...
4642         (sc_makefile_at_at_check): ...to this, and use hook.
4643
4644         dup2: work around mingw bug
4645         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4646         Reported by Simon Josefsson.
4647
4648 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4649
4650         glob: Fix C++ compilation.
4651         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4652         C++.
4653
4654 2010-01-07  Bruno Haible  <bruno@clisp.org>
4655
4656         Fix indentation of wctype.in.h, broken since 2007-01-06.
4657         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4658
4659 2010-01-07  Bruno Haible  <bruno@clisp.org>
4660
4661         mbslen: Avoid collision with system function.
4662         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4663         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4664         * m4/mbslen.m4: New file.
4665         * modules/mbslen (Files): Add it.
4666         (configure.ac): Invoke gl_MBSLEN.
4667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4668         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4669         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4670         via Ian Beckwith <ianb@erislabs.net>.
4671
4672 2010-01-07  Bruno Haible  <bruno@clisp.org>
4673
4674         dirent: Document the last fix.
4675         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4676
4677 2010-01-07  Bruno Haible  <bruno@clisp.org>
4678
4679         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4680         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4681         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4682         va_list are defined.
4683         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4684         Reported by Eric Blake.
4685
4686 2010-01-07  Bruno Haible  <bruno@clisp.org>
4687
4688         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4689         * modules/xlist (Depends-on): Add 'list',
4690         * modules/xoset (Depends-on): Add 'oset'.
4691         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4692
4693 2010-01-07  Bruno Haible  <bruno@clisp.org>
4694
4695         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4696         * doc/posix-functions/strncasecmp.texi: Likewise.
4697
4698 2010-01-07  Bruno Haible  <bruno@clisp.org>
4699
4700         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4701
4702 2010-01-07  John W. Eaton  <jwe@octave.org>
4703
4704         wctype: allow C++ use
4705         * lib/wctype.in.h: Add extern "C" block for C++.
4706
4707 2010-01-06  Eric Blake  <ebb9@byu.net>
4708
4709         maint.mk: detect incorrect GFDL usage
4710         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4711
4712 2010-01-06  Jim Meyering  <meyering@redhat.com>
4713         and Eric Blake  <ebb9@byu.net>
4714
4715         maint.mk: ignore multi-line copyright in NEWS
4716         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4717
4718 2010-01-06  Eric Blake  <ebb9@byu.net>
4719
4720         select: add missing dependency
4721         * modules/select-tests (Depends-on): Move sockets dependency...
4722         * modules/select (Depends-on): ...here.
4723         Reported by Ian Beckwith.
4724
4725         doc: regenerate INSTALL
4726         * doc/INSTALL: Reflect recent autoconf update.
4727         * doc/INSTALL.ISO: Likewise.
4728         * doc/INSTALL.UTF-8: Likewise.
4729
4730         pread: fix compilation on glibc
4731         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4732         Reported by Ralf Wildenhues.
4733
4734         dirent: fix test failure
4735         * lib/dirent.in.h (includes): Guarantee ino_t.
4736         Reported by Ralf Wildenhues.
4737
4738 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4739
4740         linkat, renameat: avoid bad free
4741         * lib/at-func2.c (at_func2): Fix typo.
4742         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4743
4744 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4745
4746         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4747         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4748         to avoid failure of symlink test later.
4749
4750 2010-01-06  Eric Blake  <ebb9@byu.net>
4751
4752         stdio, unistd: guarantee ssize_t
4753         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4754         2008 are exposed when needed.
4755         * lib/stdio.in.h (includes): Likewise.
4756         Reported by Ralf Wildenhues.
4757
4758 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4759
4760         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4761         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4762         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4763
4764 2010-01-06  Jim Meyering  <meyering@redhat.com>
4765
4766         readtokens: this module *does* require xalloc.h
4767         It uses only functions that were omitted by the old syntax-check rule.
4768         * lib/readtokens.c: Include "xalloc.h" once again.
4769         * modules/readtokens (Depends-on): Add xalloc.
4770         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4771
4772 2010-01-05  Eric Blake  <ebb9@byu.net>
4773
4774         maint: support 'make announcement' from a VPATH build
4775         * top/maint.mk (announcement): Look for correct NEWS file.
4776
4777 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4778
4779         utimens (fdutimens): ignore a negative FD, per contract
4780         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4781         when we have a valid file descriptor.  Otherwise, using a brand
4782         new glibc (with just-patched futimens that now fails with EBADF)
4783         would cause this function to fail with ENOSYS.
4784         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4785         See also http://bugzilla.redhat.com/552320.
4786
4787 2010-01-05  Eric Blake  <ebb9@byu.net>
4788
4789         strcase: document what it provides
4790         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4791         gnulib module.
4792         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4793         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4794
4795 2010-01-05  Jim Meyering  <meyering@redhat.com>
4796
4797         maint: remove useless inclusions of "xalloc.h"
4798         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4799         * lib/readtokens.c: Likewise.
4800         * lib/same.c: Likewise.
4801         * modules/getloadavg (Depends-on): Remove xalloc.
4802         * modules/readtokens: Likewise.
4803         * modules/same: Likewise.
4804
4805         maint.mk: include 4 more function names in alloca.h-checking regexp
4806         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4807         regexp.  Before, we would give a false-positive (saying alloca.h
4808         is included unnecessarily) when the only uses involved omitted symbols.
4809
4810         xalloc.h: use consistent formatting
4811         * lib/xalloc.h: Move declarations to start in the first column.
4812
4813 2010-01-05  Eric Blake  <ebb9@byu.net>
4814
4815         mkdir: avoid xalloc
4816         * lib/mkdir.c (includes): Drop unused header.
4817         Reported by John W. Eaton.
4818
4819 2010-01-04  Jim Meyering  <meyering@redhat.com>
4820
4821         nl_langinfo: avoid configure-time syntax error
4822         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4823         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4824         the empty string.  Don't let that provoke a shell syntax error.
4825
4826         regcomp, regexec, fnmatch: avoid array bounds read error
4827         * lib/regcomp.c (build_equiv_class): From glibc:
4828         Use only the low 24 bits of a findidx return value as an index
4829         into the weights array.  Patch by Ulrich Drepper:
4830         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4831         * lib/regexec.c (check_node_accept_bytes): Likewise.
4832         * lib/fnmatch_loop.c (FCT): Likewise.
4833
4834         regcomp: skip collseq lookup when there are no rules
4835         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4836         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4837
4838         regcomp: recognize ill-formed { } expressions
4839         * lib/regcomp.c (parse_dup_op): From glibc:
4840         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4841
4842         regcomp: fix typo in comment
4843         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4844         s/satisfy/satisfies/.
4845
4846         regcomp: sync from glibc: remove dead store
4847         * lib/regcomp.c (duplicate_node_closure): Remove useless
4848         search_duplicated_node call and dead store.
4849
4850         regcomp: sync from glibc; always use nl_langinfo
4851         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4852         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4853         * modules/regex (Depends-on): Add nl_langinfo.
4854
4855 2010-01-04  Eric Blake  <ebb9@byu.net>
4856
4857         fdopendir: fix configure test
4858         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4859
4860 2010-01-01  Bruno Haible  <bruno@clisp.org>
4861
4862         wchar: Remove unused configure check.
4863         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4864
4865 2010-01-01  Eric Blake  <ebb9@byu.net>
4866
4867         headers: make check of system header explicit
4868         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4869         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4870         ourselves.
4871         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4872         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4873         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4874         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4875         internals.
4876         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4877         missing.
4878         Suggested by Bruno Haible.
4879
4880 2010-01-01  Jim Meyering  <meyering@redhat.com>
4881
4882         ChangeLog: tweak to eliminate unnecessary copyright line
4883         * ChangeLog: Remove a copyright line that was mistakenly updated
4884         by today's update-copyright run.  Reported by Eric Blake.
4885
4886         test-update-copyright: don't let envvar setting cause test failure
4887         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4888
4889 2010-01-01  Bruno Haible  <bruno@clisp.org>
4890
4891         localename: Avoid gcc warning.
4892         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4893         function if it is not used.
4894
4895 2010-01-01  Jim Meyering  <meyering@redhat.com>
4896
4897         update nearly all FSF copyright year lists to include 2010
4898         Use the same procedure as for 2009, outlined in
4899         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4900
4901         version-etc: set COPYRIGHT_YEAR to 2010
4902         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4903
4904 2009-12-31  Eric Blake  <ebb9@byu.net>
4905
4906         doc: correct availability of cygwin 1.5.x getopt
4907         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4908         variables.
4909         * doc/posix-functions/opterr.texi (opterr): Likewise.
4910         * doc/posix-functions/optind.texi (optind): Likewise.
4911         * doc/posix-functions/optopt.texi (optopt): Likewise.
4912         * doc/posix-functions/tzname.texi (tzname): Likewise.
4913
4914         openat: update maintainer
4915         * modules/openat (Maintainer): Add myself.
4916
4917         utimens: avoid shadowing warning
4918         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4919         buffers into one, to avoid shadowing, as well as avoiding a
4920         redundant stat.
4921         Reported by Jim Meyering.
4922
4923         test-dup2: avoid compiler warning
4924         * tests/test-dup2.c (is_inheritable): Only define if used.
4925
4926 2010-01-01  Bruno Haible  <bruno@clisp.org>
4927
4928         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4929         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4930         defined, use wctomb instead of wcrtomb.
4931
4932 2010-01-01  Bruno Haible  <bruno@clisp.org>
4933
4934         iconv: Reject native Solaris iconv.
4935         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4936         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4937
4938 2009-12-31  Bruno Haible  <bruno@clisp.org>
4939
4940         * tests/test-signal.c (main): Remove test of 'SIG'.
4941
4942 2009-12-31  Bruno Haible  <bruno@clisp.org>
4943
4944         spawn: Fix incomplete fix.
4945         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4946         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4947         warnings for GNULIB_POSIXCHECK again.
4948         Reported by Eric Blake.
4949
4950 2009-12-31  Bruno Haible  <bruno@clisp.org>
4951
4952         Avoid namespace pollution on glibc systems.
4953         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4954         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4955         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4956         glibc systems.
4957
4958 2009-12-31  Bruno Haible  <bruno@clisp.org>
4959
4960         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4961         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4962         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4963         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4964         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4965         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4966         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4967
4968 2009-12-31  Bruno Haible  <bruno@clisp.org>
4969
4970         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4971         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4972         afterwards.
4973
4974 2009-12-31  Bruno Haible  <bruno@clisp.org>
4975
4976         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4977         SYS_UTSNAME_H.
4978
4979 2009-12-31  Bruno Haible  <bruno@clisp.org>
4980
4981         spawn: Fix misapplied patch.
4982         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4983         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4984         warnings for GNULIB_POSIXCHECK.
4985
4986 2009-12-31  Bruno Haible  <bruno@clisp.org>
4987
4988         times: Update after sys_times changed.
4989         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4990         * modules/times (Files): Add it.
4991         (configure.ac): Invoke gl_FUNC_TIMES.
4992
4993 2009-12-31  Bruno Haible  <bruno@clisp.org>
4994
4995         Use AC_C_INLINE where necessary.
4996         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4997         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4998         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4999         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
5000         * m4/mbfile.m4 (gl_MBFILE): Likewise.
5001         * m4/mbiter.m4 (gl_MBITER): Likewise.
5002         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5003         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5004         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
5005         * modules/u64 (configure.ac): Likewise.
5006
5007 2009-12-31  Bruno Haible  <bruno@clisp.org>
5008
5009         Use AC_C_INLINE instead of module 'inline' where possible.
5010         * modules/inline (Description): Clarify purpose.
5011         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
5012         * modules/count-one-bits (Depends-on): Remove inline.
5013         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
5014         * modules/openat (Depends-on): Remove inline.
5015         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
5016         instead of depending on module 'inline'.
5017         * modules/filevercmp (Depends-on, configure.ac): Likewise.
5018         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
5019         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
5020         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
5021         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
5022         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
5023         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
5024         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
5025         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
5026         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
5027         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
5028         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
5029         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
5030         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
5031         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
5032         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
5033         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
5034         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
5035         Likewise.
5036         * modules/unictype/property-ascii-hex-digit (Depends-on,
5037         configure.ac): Likewise.
5038         * modules/unictype/property-bidi-arabic-digit (Depends-on,
5039         configure.ac): Likewise.
5040         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
5041         configure.ac): Likewise.
5042         * modules/unictype/property-bidi-block-separator (Depends-on,
5043         configure.ac): Likewise.
5044         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
5045         configure.ac): Likewise.
5046         * modules/unictype/property-bidi-common-separator (Depends-on,
5047         configure.ac): Likewise.
5048         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
5049         Likewise.
5050         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
5051         configure.ac): Likewise.
5052         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
5053         configure.ac): Likewise.
5054         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
5055         configure.ac): Likewise.
5056         * modules/unictype/property-bidi-european-digit (Depends-on,
5057         configure.ac): Likewise.
5058         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
5059         configure.ac): Likewise.
5060         * modules/unictype/property-bidi-left-to-right (Depends-on,
5061         configure.ac): Likewise.
5062         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
5063         configure.ac): Likewise.
5064         * modules/unictype/property-bidi-other-neutral (Depends-on,
5065         configure.ac): Likewise.
5066         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
5067         Likewise.
5068         * modules/unictype/property-bidi-segment-separator (Depends-on,
5069         configure.ac): Likewise.
5070         * modules/unictype/property-bidi-whitespace (Depends-on,
5071         configure.ac): Likewise.
5072         * modules/unictype/property-combining (Depends-on, configure.ac):
5073         Likewise.
5074         * modules/unictype/property-composite (Depends-on, configure.ac):
5075         Likewise.
5076         * modules/unictype/property-currency-symbol (Depends-on,
5077         configure.ac): Likewise.
5078         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
5079         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
5080         Likewise.
5081         * modules/unictype/property-default-ignorable-code-point (Depends-on,
5082         configure.ac): Likewise.
5083         * modules/unictype/property-deprecated (Depends-on, configure.ac):
5084         Likewise.
5085         * modules/unictype/property-diacritic (Depends-on, configure.ac):
5086         Likewise.
5087         * modules/unictype/property-extender (Depends-on, configure.ac):
5088         Likewise.
5089         * modules/unictype/property-format-control (Depends-on, configure.ac):
5090         Likewise.
5091         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
5092         Likewise.
5093         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
5094         Likewise.
5095         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
5096         Likewise.
5097         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
5098         Likewise.
5099         * modules/unictype/property-hyphen (Depends-on, configure.ac):
5100         Likewise.
5101         * modules/unictype/property-id-continue (Depends-on, configure.ac):
5102         Likewise.
5103         * modules/unictype/property-id-start (Depends-on, configure.ac):
5104         Likewise.
5105         * modules/unictype/property-ideographic (Depends-on, configure.ac):
5106         Likewise.
5107         * modules/unictype/property-ids-binary-operator (Depends-on,
5108         configure.ac): Likewise.
5109         * modules/unictype/property-ids-trinary-operator (Depends-on,
5110         configure.ac): Likewise.
5111         * modules/unictype/property-ignorable-control (Depends-on,
5112         configure.ac): Likewise.
5113         * modules/unictype/property-iso-control (Depends-on, configure.ac):
5114         Likewise.
5115         * modules/unictype/property-join-control (Depends-on, configure.ac):
5116         Likewise.
5117         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
5118         Likewise.
5119         * modules/unictype/property-line-separator (Depends-on, configure.ac):
5120         Likewise.
5121         * modules/unictype/property-logical-order-exception (Depends-on,
5122         configure.ac): Likewise.
5123         * modules/unictype/property-lowercase (Depends-on, configure.ac):
5124         Likewise.
5125         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
5126         * modules/unictype/property-non-break (Depends-on, configure.ac):
5127         Likewise.
5128         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
5129         Likewise.
5130         * modules/unictype/property-numeric (Depends-on, configure.ac):
5131         Likewise.
5132         * modules/unictype/property-other-alphabetic (Depends-on,
5133         configure.ac): Likewise.
5134         * modules/unictype/property-other-default-ignorable-code-point
5135         (Depends-on, configure.ac): Likewise.
5136         * modules/unictype/property-other-grapheme-extend (Depends-on,
5137         configure.ac): Likewise.
5138         * modules/unictype/property-other-id-continue (Depends-on,
5139         configure.ac): Likewise.
5140         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
5141         Likewise.
5142         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
5143         Likewise.
5144         * modules/unictype/property-other-math (Depends-on, configure.ac):
5145         Likewise.
5146         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
5147         Likewise.
5148         * modules/unictype/property-paired-punctuation (Depends-on,
5149         configure.ac): Likewise.
5150         * modules/unictype/property-paragraph-separator (Depends-on,
5151         configure.ac): Likewise.
5152         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
5153         Likewise.
5154         * modules/unictype/property-pattern-white-space (Depends-on,
5155         configure.ac): Likewise.
5156         * modules/unictype/property-private-use (Depends-on, configure.ac):
5157         Likewise.
5158         * modules/unictype/property-punctuation (Depends-on, configure.ac):
5159         Likewise.
5160         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
5161         Likewise.
5162         * modules/unictype/property-radical (Depends-on, configure.ac):
5163         Likewise.
5164         * modules/unictype/property-sentence-terminal (Depends-on,
5165         configure.ac): Likewise.
5166         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
5167         Likewise.
5168         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
5169         * modules/unictype/property-terminal-punctuation (Depends-on,
5170         configure.ac): Likewise.
5171         * modules/unictype/property-titlecase (Depends-on, configure.ac):
5172         Likewise.
5173         * modules/unictype/property-unassigned-code-value (Depends-on,
5174         configure.ac): Likewise.
5175         * modules/unictype/property-unified-ideograph (Depends-on,
5176         configure.ac): Likewise.
5177         * modules/unictype/property-uppercase (Depends-on, configure.ac):
5178         Likewise.
5179         * modules/unictype/property-variation-selector (Depends-on,
5180         configure.ac): Likewise.
5181         * modules/unictype/property-white-space (Depends-on, configure.ac):
5182         Likewise.
5183         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
5184         Likewise.
5185         * modules/unictype/property-xid-start (Depends-on, configure.ac):
5186         Likewise.
5187         * modules/unictype/property-zero-width (Depends-on, configure.ac):
5188         Likewise.
5189         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
5190         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
5191         Likewise.
5192
5193 2009-12-31  Bruno Haible  <bruno@clisp.org>
5194
5195         Remove unnecessary AC_C_INLINE invocation.
5196         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
5197         since 2009-08-21.
5198
5199 2009-12-31  Jim Meyering  <meyering@redhat.com>
5200
5201         maint.mk: don't require explicit gpg_key_ID in cfg.mk
5202         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
5203         With this change, we can all remove the gpg_key_ID = ... definition
5204         from our respective cfg.mk files.
5205
5206         maint.mk: create announcement template in ~/, not in /tmp
5207         * top/maint.mk (emit_upload_commands): Adjust.
5208         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
5209         Remove temporary file, .ci-msg.
5210
5211 2009-12-31  Eric Blake  <ebb9@byu.net>
5212
5213         link-warning: always build headers with link warnings
5214         * modules/arpa_inet (Makefile.am): Always build replacement
5215         header.
5216         * modules/ctype (Makefile.am): Likewise.
5217         * modules/dirent (Makefile.am): Likewise.
5218         * modules/inttypes (Makefile.am): Likewise.
5219         * modules/langinfo (Makefile.am): Likewise.
5220         * modules/locale (Makefile.am): Likewise.
5221         * modules/spawn (Makefile.am): Likewise.
5222         * modules/sys_file (Makefile.am): Likewise.
5223         * modules/sys_ioctl (Makefile.am): Likewise.
5224         * modules/sys_select (Makefile.am): Likewise.
5225         * modules/sys_socket (Makefile.am): Likewise.
5226         * modules/sys_times (Makefile.am): Likewise.
5227         * modules/sys_utsname (Makefile.am): Likewise.
5228         * modules/sys_wait (Makefile.am): Likewise.
5229         * modules/wchar (Makefile.am): Likewise.
5230         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5231         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5232         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5233         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5234         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5235         Likewise.
5236         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5237         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5238         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5239         Likewise.
5240         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5241         Likewise.
5242         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5243         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5244         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5246         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5247         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5248         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5249         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5250         (gl_WCHAR_H_DEFAULTS): Likewise.
5251
5252 2009-12-31  Eric Blake  <ebb9@byu.net>
5253
5254         signal, spawn: use link warnings
5255         * lib/signal.in.h (sigset_t): Make unconditional.
5256         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5257         (sigpending, sigprocmask, sigaction): Add link warnings.
5258         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5259         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5260         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5261         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5262         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5263         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5264         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5265         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5266         (posix_spawn_file_actions_destroy)
5267         (posix_spawn_file_actions_addopen)
5268         (posix_spawn_file_actions_addclose)
5269         (posix_spawn_file_actions_adddup2): Likewise.
5270         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5271         * tests/test-signal.c (main): Enhance test.
5272
5273         spawn: improve wrapper support
5274         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5275         (gl_SPAWN_H_DEFAULTS): New defaults.
5276         * modules/spawn (Makefile.am): Substitute them.
5277         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5278         Only declare if missing or broken.
5279
5280         sys_times, sys_utsname: use include_next
5281         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5282         header.
5283         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5284         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5285         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5286         * modules/sys_times (Depends-on): Add include_next.
5287         (Makefile.am): Substitute additional values.
5288         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5289         * lib/sys_times.in.h (includes): Include native header, if
5290         available.
5291         * lib/sys_utsname.in.h (includes): Likewise.
5292         * tests/test-sys_times.c (main): Enhance test.
5293
5294         fdutimensat: revert prior patch
5295         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5296         utimens.h.
5297         Reported by Bruno Haible.
5298
5299 2009-12-30  Eric Blake  <ebb9@byu.net>
5300
5301         sys_wait: drop link-warning dependency
5302         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5303         link-warning efforts.
5304         * lib/sys_wait.in.h: Likewise.
5305
5306         fdutimensat: remove bogus dependency
5307         * modules/fdutimensat (Depends-on): Drop inline.
5308
5309         unistd: fix typo
5310         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5311
5312 2009-12-30  Bruno Haible  <bruno@clisp.org>
5313
5314         Fix compilation error with Solaris cc.
5315         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5316         * lib/unicase/u16-is-invariant.c: Likewise.
5317         * lib/unicase/u32-is-invariant.c: Likewise.
5318         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5319
5320 2009-12-30  Bruno Haible  <bruno@clisp.org>
5321
5322         Fix test crash.
5323         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5324         locales.
5325         Reported by Simon Josefsson <simon@josefsson.org>.
5326
5327 2009-12-30  Bruno Haible  <bruno@clisp.org>
5328
5329         Fix compilation error on most platforms.
5330         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5331         Reported by Simon Josefsson <simon@josefsson.org>
5332         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5333
5334 2009-12-30  Eric Blake  <ebb9@byu.net>
5335
5336         futimens, utimensat: work around ntfs-3g bug
5337         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5338         a ctime bug is present, and expand workaround to cover ntfs-3g.
5339         * lib/utimens.c (fdutimens, lutimens): Likewise.
5340         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5341         (validate_timespec): Adjust return value.
5342         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5343         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5344         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5345
5346 2009-12-29  Eric Blake  <ebb9@byu.net>
5347
5348         link-warning: make usage consistent
5349         * modules/ctype (Depends-on): Add link-warning.
5350         (Makefile.am): Update rules accordingly.
5351         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5352         * modules/locale (Depends-on, Makefile.am): Likewise.
5353         * modules/sys_file (Makefile.am): Likewise.
5354         * modules/getopt-posix (Makefile.am): Delete unused link warning
5355         efforts.
5356         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5357         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5358         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5359         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5360
5361         stdio: remove unused variables
5362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5363         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5364         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5365
5366         tests: test more substitute headers
5367         * modules/ctype-tests: New file.
5368         * modules/dirent-tests: Likewise.
5369         * modules/spawn-tests: Likewise.
5370         * modules/sys_file-tests: Likewise.
5371         * modules/sys_ioctl-tests: Likewise.
5372         * modules/sys_wait-tests: Likewise.
5373         * tests/test-ctype.c: Likewise.
5374         * tests/test-dirent.c: Likewise.
5375         * tests/test-spawn.c: Likewise.
5376         * tests/test-sys_file.c: Likewise.
5377         * tests/test-sys_ioctl.c: Likewise.
5378         * tests/test-sys_wait.c: Likewise.
5379         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5380         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5381         whether or not flock is in use.
5382
5383         tests: remove License section from module
5384         * modules/arpa_inet-tests: Remove unneeded section.
5385         * modules/byteswap-tests: Likewise.
5386         * modules/ceilf-tests: Likewise.
5387         * modules/ceill-tests: Likewise.
5388         * modules/crypto/des-tests: Likewise.
5389         * modules/crypto/gc-arcfour-tests: Likewise.
5390         * modules/crypto/gc-arctwo-tests: Likewise.
5391         * modules/crypto/gc-des-tests: Likewise.
5392         * modules/crypto/gc-hmac-md5-tests: Likewise.
5393         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5394         * modules/crypto/gc-md2-tests: Likewise.
5395         * modules/crypto/gc-md4-tests: Likewise.
5396         * modules/crypto/gc-md5-tests: Likewise.
5397         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5398         * modules/crypto/gc-rijndael-tests: Likewise.
5399         * modules/crypto/gc-sha1-tests: Likewise.
5400         * modules/crypto/gc-tests: Likewise.
5401         * modules/crypto/md2-tests: Likewise.
5402         * modules/crypto/md4-tests: Likewise.
5403         * modules/fcntl-h-tests: Likewise.
5404         * modules/floorf-tests: Likewise.
5405         * modules/floorl-tests: Likewise.
5406         * modules/frexp-nolibm-tests: Likewise.
5407         * modules/frexp-tests: Likewise.
5408         * modules/frexpl-nolibm-tests: Likewise.
5409         * modules/frexpl-tests: Likewise.
5410         * modules/getaddrinfo-tests: Likewise.
5411         * modules/inttypes-tests: Likewise.
5412         * modules/isfinite-tests: Likewise.
5413         * modules/isinf-tests: Likewise.
5414         * modules/ldexpl-tests: Likewise.
5415         * modules/locale-tests: Likewise.
5416         * modules/math-tests: Likewise.
5417         * modules/netdb-tests: Likewise.
5418         * modules/netinet_in-tests: Likewise.
5419         * modules/printf-frexp-tests: Likewise.
5420         * modules/printf-frexpl-tests: Likewise.
5421         * modules/priv-set-tests: Likewise.
5422         * modules/random_r-tests: Likewise.
5423         * modules/round-tests: Likewise.
5424         * modules/roundf-tests: Likewise.
5425         * modules/roundl-tests: Likewise.
5426         * modules/search-tests: Likewise.
5427         * modules/select-tests: Likewise.
5428         * modules/signal-tests: Likewise.
5429         * modules/stdbool-tests: Likewise.
5430         * modules/stddef-tests: Likewise.
5431         * modules/stdint-tests: Likewise.
5432         * modules/stdio-tests: Likewise.
5433         * modules/stdlib-tests: Likewise.
5434         * modules/string-tests: Likewise.
5435         * modules/strings-tests: Likewise.
5436         * modules/sys_select-tests: Likewise.
5437         * modules/sys_socket-tests: Likewise.
5438         * modules/sys_stat-tests: Likewise.
5439         * modules/sys_time-tests: Likewise.
5440         * modules/sys_utsname-tests: Likewise.
5441         * modules/sysexits-tests: Likewise.
5442         * modules/time-tests: Likewise.
5443         * modules/trunc-tests: Likewise.
5444         * modules/truncf-tests: Likewise.
5445         * modules/truncl-tests: Likewise.
5446         * modules/tsearch-tests: Likewise.
5447         * modules/unistd-tests: Likewise.
5448         * modules/wchar-tests: Likewise.
5449         * modules/wctype-tests: Likewise.
5450
5451         tests: fix license on several tests
5452         * tests/test-des.c: Update to GPLv3+.
5453         * tests/test-flock.c: Likewise.
5454         * tests/test-fsync.c: Likewise.
5455         * tests/test-futimens.h: Likewise.
5456         * tests/test-gc-arcfour.c: Likewise.
5457         * tests/test-gc-arctwo.c: Likewise.
5458         * tests/test-gc-des.c: Likewise.
5459         * tests/test-gc-hmac-md5.c: Likewise.
5460         * tests/test-gc-hmac-sha1.c: Likewise.
5461         * tests/test-gc-md2.c: Likewise.
5462         * tests/test-gc-md4.c: Likewise.
5463         * tests/test-gc-md5.c: Likewise.
5464         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5465         * tests/test-gc-rijndael.c: Likewise.
5466         * tests/test-gc-sha1.c: Likewise.
5467         * tests/test-gc.c: Likewise.
5468         * tests/test-getcwd.c: Likewise.
5469         * tests/test-link.c: Likewise.
5470         * tests/test-link.h: Likewise.
5471         * tests/test-lutimens.h: Likewise.
5472         * tests/test-md2.c: Likewise.
5473         * tests/test-md4.c: Likewise.
5474         * tests/test-mkdir.h: Likewise.
5475         * tests/test-rename.c: Likewise.
5476         * tests/test-rename.h: Likewise.
5477         * tests/test-safe-alloc.c: Likewise.
5478         * tests/test-utimens-common.h: Likewise.
5479         * tests/test-utimens.h: Likewise.
5480
5481         maint: sync license texts
5482         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5483         * doc/gpl-3.0.texi: Revert copyright year update.
5484         * doc/lgpl-3.0.texi: Likewise.
5485
5486 2009-12-29  Jim Meyering  <meyering@redhat.com>
5487
5488         update nearly all FSF copyright year lists to include 2009
5489         The files named by the following are exempted:
5490             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5491               test -f "$dst" && { echo "$dst"; continue; }
5492               test -d "$dst" || continue
5493               echo "$dst"/$(basename "$src")
5494             done > exempt
5495             git ls-files tests/unictype >> exempt
5496         In the remaining files, convert to all-interval notation if
5497         - there is already at least one year interval like 2000-2003
5498         - the file is maintained by me
5499         - the file is in lib/uni*/, where that style already prevails
5500         Otherwise, use update-copyright's default.
5501
5502 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5503         and Eric Blake  <ebb9@byu.net>
5504
5505         tests: don't require debug system() to pass
5506         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5507         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5508         * tests/test-unlink.h (test_unlink_func): Likewise.
5509         * tests/test-fstatat.c (main): ...into callers.
5510         * tests/test-lstat.c (main): Likewise.
5511         * tests/test-rmdir.c (main): Likewise.
5512         * tests/test-unlink.c (main): Likewise.
5513         * tests/test-unlinkat.c (main): Likewise.
5514         * tests/test-areadlink-with-size.c (main): Don't require a
5515         debug-only system call to pass, aiding cross-testing to mingw.
5516         * tests/test-areadlink.c (main): Likewise.
5517         * tests/test-areadlinkat-with-size.c (main): Likewise.
5518         * tests/test-areadlinkat.c (main): Likewise.
5519         * tests/test-canonicalize-lgpl.c (main): Likewise.
5520         * tests/test-canonicalize.c (main): Likewise.
5521         * tests/test-chown.c (main): Likewise.
5522         * tests/test-fchownat.c (main): Likewise.
5523         * tests/test-lchown.c (main): Likewise.
5524         * tests/test-fdutimensat.c (main): Likewise.
5525         * tests/test-futimens.c (main): Likewise.
5526         * tests/test-link.c (main): Likewise.
5527         * tests/test-linkat.c (main): Likewise.
5528         * tests/test-mkdir.c (main): Likewise.
5529         * tests/test-mkdirat.c (main): Likewise.
5530         * tests/test-mkfifo.c (main): Likewise.
5531         * tests/test-mkfifoat.c (main): Likewise.
5532         * tests/test-mknod.c (main): Likewise.
5533         * tests/test-readlink.c (main): Likewise.
5534         * tests/test-remove.c (main): Likewise.
5535         * tests/test-rename.c (main): Likewise.
5536         * tests/test-renameat.c (main): Likewise.
5537         * tests/test-symlink.c (main): Likewise.
5538         * tests/test-symlinkat.c (main): Likewise.
5539         * tests/test-utimens.c (main): Likewise.
5540         * tests/test-utimensat.c (main): Likewise.
5541
5542 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5543
5544         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5545         on $(UNUSED_PARAMETER_H) to avoid build failure.
5546
5547 2009-12-28  Jim Meyering  <meyering@redhat.com>
5548
5549         update-copyright: you may specify a max. line length other than 72
5550         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5551
5552         maint: use consistent FSF copyright line syntax
5553         * lib/posixtm.c: Add missing comma in FSF copyright line.
5554         * lib/posixtm.h: Likewise.
5555         * lib/getugroups.c: Add missing ", Inc.".
5556
5557         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5558         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5559         FSF copyright line.  Remove trailing blanks.
5560
5561 2009-12-28  Eric Blake  <ebb9@byu.net>
5562
5563         test-dup2: reduce dependencies
5564         * modules/cloexec (Configure.ac): Set witness.
5565         * modules/dup2-tests (Depends-on): Drop cloexec.
5566         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5567         not present.
5568         Suggested by Bruno Haible.
5569
5570 2009-12-26  Bruno Haible  <bruno@clisp.org>
5571
5572         Remove an unneeded dependency.
5573         * modules/fseterr (Depends-on): Remove dup2.
5574
5575 2009-12-26  Eric Blake  <ebb9@byu.net>
5576
5577         tests: use macros.h in more places
5578         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5579         (ASSERT_STREAM): Provide default of stderr.
5580         * tests/test-dirent-safer.c: Include macros.h, using alternate
5581         stream for assertions.
5582         * tests/test-dup-safer.c: Likewise.
5583         * tests/test-freopen-safer.c: Likewise.
5584         * tests/test-getopt.c: Likewise.
5585         * tests/test-openat-safer.c: Likewise.
5586         * tests/test-pipe.c: Likewise.
5587         * tests/test-popen-safer.c: Likewise.
5588         * modules/dirent-safer-tests (Files): Include macros.h.
5589         * modules/unistd-safer-tests (Files): Likewise.
5590         * modules/freopen-safer-tests (Files): Likewise.
5591         * modules/getopt-posix-tests (Files): Likewise.
5592         * modules/openat-safer-tests (Files): Likewise.
5593         * modules/pipe-tests (Files): Likewise.
5594
5595 2009-12-26  Bruno Haible  <bruno@clisp.org>
5596
5597         javacomp: Portability fix.
5598         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5599         that it also works on Solaris.
5600
5601 2009-12-26  Bruno Haible  <bruno@clisp.org>
5602
5603         localename: Fix storage allocation of gl_locale_name_thread's result.
5604         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5605         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5606         all platforms that have 'uselocale'.
5607         (gl_locale_name_thread_unsafe): New function, extracted from
5608         gl_locale_name_thread.
5609         (gl_locale_name_thread): Call struniq on all platforms that have
5610         'uselocale'.
5611         * tests/test-localename.c (test_locale_name_thread): Check that the
5612         resulting strings are permanently allocated.
5613         * modules/localename-tests (Depends-on): Add strdup.
5614
5615 2009-12-26  Bruno Haible  <bruno@clisp.org>
5616
5617         * tests/test-localename.c (categories): Fill in the strings.
5618
5619 2009-12-26  Jim Meyering  <meyering@redhat.com>
5620
5621         isdir: complete the removal of m4/isdir.m4
5622         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5623
5624         isdir: clean up, since at least grep still uses it
5625         * lib/isdir.c: Include "isdir.h".
5626         (S_ISDIR): Remove now-unneeded definition.
5627         * modules/isdir (Files): Add lib/isdir.h.
5628         * lib/isdir.h: New file, with declaration.
5629         * m4/isdir.m4: Remove file -- unneeded.
5630
5631 2009-12-25  Bruno Haible  <bruno@clisp.org>
5632
5633         selinux-h: Make generated .h files standalone.
5634         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5635         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5636         * lib/se-selinux.in.h: Likewise.
5637         * modules/selinux-h (Depends-on): Add unused-parameter.
5638         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5639         selinux/selinux.h and selinux/context.h.
5640         Suggested by Eric Blake.
5641
5642 2009-12-25  Bruno Haible  <bruno@clisp.org>
5643
5644         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5645         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5646         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5647         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5648         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5649
5650 2009-12-24  Bruno Haible  <bruno@clisp.org>
5651
5652         openat: Fix warning.
5653         * lib/openat-proc.c: Include <unistd.h>.
5654
5655 2009-12-24  Bruno Haible  <bruno@clisp.org>
5656
5657         New module 'unused-parameter'.
5658         * build-aux/unused-parameter.h: New file, extracted from earlier
5659         gnulib-common.m4.
5660         * modules/unused-parameter: New file.
5661         * lib/unistr.h: Include unused-parameter.h.
5662         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5663         _GL_UNUSED.
5664         * modules/unistr/base (Depends-on): Add unused-parameter.
5665
5666 2009-12-24  Bruno Haible  <bruno@clisp.org>
5667
5668         Add missing dependencies to 'extensions' module.
5669         * m4/extensions.m4: Add comment.
5670         * modules/accept4 (Depends-on): Add extensions.
5671         * modules/dup3 (Depends-on): Likewise.
5672         * modules/fcntl (Depends-on): Likewise.
5673         * modules/futimens (Depends-on): Likewise.
5674         * modules/mknod (Depends-on): Likewise.
5675         * modules/pipe2 (Depends-on): Likewise.
5676         * modules/stat-time (Depends-on): Likewise.
5677         * modules/strcasestr-simple (Depends-on): Likewise.
5678         * modules/strsignal (Depends-on): Likewise.
5679         * modules/utimensat (Depends-on): Likewise.
5680         * modules/localcharset (Depends-on): Likewise. Needed because of
5681         gl_FCNTL_O_FLAGS.
5682         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5683         AC_TYPE_MBSTATE_T.
5684         * modules/wcsnrtombs (Depends-on): Likewise.
5685         * modules/wcsrtombs (Depends-on): Likewise.
5686
5687 2009-12-24  Bruno Haible  <bruno@clisp.org>
5688
5689         binary-io: Avoid gcc warning due to SET_BINARY.
5690         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5691         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5692
5693 2009-12-24  Bruno Haible  <bruno@clisp.org>
5694
5695         Avoid future namespace pollution on glibc systems.
5696         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5697         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5698         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5699         glibc systems.
5700
5701 2009-12-24  Bruno Haible  <bruno@clisp.org>
5702
5703         Refactor common macros used in tests.
5704         * tests/macros.h: New file.
5705         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5706         and/or <stdlib.h>, if appropriate.
5707         (ASSERT, SIZEOF): Remove macros.
5708         * tests/test-areadlink-with-size.c: Likewise.
5709         * tests/test-areadlinkat.c: Likewise.
5710         * tests/test-areadlinkat-with-size.c: Likewise.
5711         * tests/test-argmatch.c: Likewise.
5712         * tests/test-argv-iter.c: Likewise.
5713         * tests/test-array-mergesort.c: Likewise.
5714         * tests/test-array_list.c: Likewise.
5715         * tests/test-array_oset.c: Likewise.
5716         * tests/test-avltree_list.c: Likewise.
5717         * tests/test-avltree_oset.c: Likewise.
5718         * tests/test-avltreehash_list.c: Likewise.
5719         * tests/test-base64.c: Likewise.
5720         * tests/test-binary-io.c: Likewise.
5721         * tests/test-bitrotate.c: Likewise.
5722         * tests/test-btowc.c: Likewise.
5723         * tests/test-byteswap.c: Likewise.
5724         * tests/test-c-ctype.c: Likewise.
5725         * tests/test-c-stack.c: Likewise.
5726         * tests/test-c-strcasecmp.c: Likewise.
5727         * tests/test-c-strcasestr.c: Likewise.
5728         * tests/test-c-strncasecmp.c: Likewise.
5729         * tests/test-c-strstr.c: Likewise.
5730         * tests/test-canonicalize-lgpl.c: Likewise.
5731         * tests/test-canonicalize.c: Likewise.
5732         * tests/test-carray_list.c: Likewise.
5733         * tests/test-ceilf1.c: Likewise.
5734         * tests/test-ceilf2.c: Likewise.
5735         * tests/test-ceill.c: Likewise.
5736         * tests/test-chown.c: Likewise.
5737         * tests/test-cloexec.c: Likewise.
5738         * tests/test-copy-acl.c: Likewise.
5739         * tests/test-copy-file.c: Likewise.
5740         * tests/test-count-one-bits.c: Likewise.
5741         * tests/test-dprintf-posix.c: Likewise.
5742         * tests/test-dup2.c: Likewise.
5743         * tests/test-dup3.c: Likewise.
5744         * tests/test-duplocale.c: Likewise.
5745         * tests/test-fbufmode.c: Likewise.
5746         * tests/test-fchdir.c: Likewise.
5747         * tests/test-fchownat.c: Likewise.
5748         * tests/test-fcntl-safer.c: Likewise.
5749         * tests/test-fcntl.c: Likewise.
5750         * tests/test-fdopendir.c: Likewise.
5751         * tests/test-fdutimensat.c: Likewise.
5752         * tests/test-fflush2.c: Likewise.
5753         * tests/test-file-has-acl.c: Likewise.
5754         * tests/test-filevercmp.c: Likewise.
5755         * tests/test-flock.c: Likewise.
5756         * tests/test-floorf1.c: Likewise.
5757         * tests/test-floorf2.c: Likewise.
5758         * tests/test-floorl.c: Likewise.
5759         * tests/test-fnmatch.c: Likewise.
5760         * tests/test-fopen.h: Likewise.
5761         * tests/test-fpending.c: Likewise.
5762         * tests/test-fprintf-posix.c: Likewise.
5763         * tests/test-fpurge.c: Likewise.
5764         * tests/test-freadable.c: Likewise.
5765         * tests/test-freadahead.c: Likewise.
5766         * tests/test-freading.c: Likewise.
5767         * tests/test-freadptr.c: Likewise.
5768         * tests/test-freadptr2.c: Likewise.
5769         * tests/test-freadseek.c: Likewise.
5770         * tests/test-freopen.c: Likewise.
5771         * tests/test-frexp.c: Likewise.
5772         * tests/test-frexpl.c: Likewise.
5773         * tests/test-fseek.c: Likewise.
5774         * tests/test-fseeko.c: Likewise.
5775         * tests/test-fstatat.c: Likewise.
5776         * tests/test-fstrcmp.c: Likewise.
5777         * tests/test-fsync.c: Likewise.
5778         * tests/test-ftell.c: Likewise.
5779         * tests/test-ftello.c: Likewise.
5780         * tests/test-func.c: Likewise.
5781         * tests/test-futimens.c: Likewise.
5782         * tests/test-fwritable.c: Likewise.
5783         * tests/test-fwriting.c: Likewise.
5784         * tests/test-getcwd.c: Likewise.
5785         * tests/test-getdate.c: Likewise.
5786         * tests/test-getdelim.c: Likewise.
5787         * tests/test-getdtablesize.c: Likewise.
5788         * tests/test-getgroups.c: Likewise.
5789         * tests/test-getline.c: Likewise.
5790         * tests/test-getndelim2.c: Likewise.
5791         * tests/test-glob.c: Likewise.
5792         * tests/test-hash.c: Likewise.
5793         * tests/test-i-ring.c: Likewise.
5794         * tests/test-iconv-utf.c: Likewise.
5795         * tests/test-iconv.c: Likewise.
5796         * tests/test-idpriv-drop.c: Likewise.
5797         * tests/test-idpriv-droptemp.c: Likewise.
5798         * tests/test-inet_ntop.c: Likewise.
5799         * tests/test-inet_pton.c: Likewise.
5800         * tests/test-isblank.c: Likewise.
5801         * tests/test-isfinite.c: Likewise.
5802         * tests/test-isinf.c: Likewise.
5803         * tests/test-isnan.c: Likewise.
5804         * tests/test-isnand.h: Likewise.
5805         * tests/test-isnanf.h: Likewise.
5806         * tests/test-isnanl.h: Likewise.
5807         * tests/test-lchown.c: Likewise.
5808         * tests/test-ldexpl.c: Likewise.
5809         * tests/test-link.c: Likewise.
5810         * tests/test-linkat.c: Likewise.
5811         * tests/test-linked_list.c: Likewise.
5812         * tests/test-linkedhash_list.c: Likewise.
5813         * tests/test-localename.c: Likewise.
5814         * tests/test-lseek.c: Likewise.
5815         * tests/test-lstat.c: Likewise.
5816         * tests/test-mbmemcasecmp.c: Likewise.
5817         * tests/test-mbmemcasecoll.c: Likewise.
5818         * tests/test-mbrtowc.c: Likewise.
5819         * tests/test-mbscasecmp.c: Likewise.
5820         * tests/test-mbscasestr1.c: Likewise.
5821         * tests/test-mbscasestr2.c: Likewise.
5822         * tests/test-mbscasestr3.c: Likewise.
5823         * tests/test-mbscasestr4.c: Likewise.
5824         * tests/test-mbschr.c: Likewise.
5825         * tests/test-mbscspn.c: Likewise.
5826         * tests/test-mbsinit.c: Likewise.
5827         * tests/test-mbsncasecmp.c: Likewise.
5828         * tests/test-mbsnrtowcs.c: Likewise.
5829         * tests/test-mbspbrk.c: Likewise.
5830         * tests/test-mbspcasecmp.c: Likewise.
5831         * tests/test-mbsrchr.c: Likewise.
5832         * tests/test-mbsrtowcs.c: Likewise.
5833         * tests/test-mbsspn.c: Likewise.
5834         * tests/test-mbsstr1.c: Likewise.
5835         * tests/test-mbsstr2.c: Likewise.
5836         * tests/test-mbsstr3.c: Likewise.
5837         * tests/test-memchr.c: Likewise.
5838         * tests/test-memchr2.c: Likewise.
5839         * tests/test-memcmp.c: Likewise.
5840         * tests/test-memmem.c: Likewise.
5841         * tests/test-memrchr.c: Likewise.
5842         * tests/test-mkdir.c: Likewise.
5843         * tests/test-mkdirat.c: Likewise.
5844         * tests/test-mkfifo.c: Likewise.
5845         * tests/test-mkfifoat.c: Likewise.
5846         * tests/test-mknod.c: Likewise.
5847         * tests/test-nanosleep.c: Likewise.
5848         * tests/test-nl_langinfo.c: Likewise.
5849         * tests/test-obstack-printf.c: Likewise.
5850         * tests/test-open.c: Likewise.
5851         * tests/test-openat.c: Likewise.
5852         * tests/test-pipe-filter-gi1.c: Likewise.
5853         * tests/test-pipe-filter-gi2-main.c: Likewise.
5854         * tests/test-pipe-filter-ii1.c: Likewise.
5855         * tests/test-pipe-filter-ii2-main.c: Likewise.
5856         * tests/test-pipe2.c: Likewise.
5857         * tests/test-popen.h: Likewise.
5858         * tests/test-posixtm.c: Likewise.
5859         * tests/test-pread.c: Likewise.
5860         * tests/test-printf-frexp.c: Likewise.
5861         * tests/test-printf-frexpl.c: Likewise.
5862         * tests/test-printf-posix.c: Likewise.
5863         * tests/test-priv-set.c: Likewise.
5864         * tests/test-quotearg.c: Likewise.
5865         * tests/test-random_r.c: Likewise.
5866         * tests/test-rawmemchr.c: Likewise.
5867         * tests/test-rbtree_list.c: Likewise.
5868         * tests/test-rbtree_oset.c: Likewise.
5869         * tests/test-rbtreehash_list.c: Likewise.
5870         * tests/test-readlink.c: Likewise.
5871         * tests/test-remove.c: Likewise.
5872         * tests/test-rename.c: Likewise.
5873         * tests/test-renameat.c: Likewise.
5874         * tests/test-rmdir.c: Likewise.
5875         * tests/test-round1.c: Likewise.
5876         * tests/test-roundf1.c: Likewise.
5877         * tests/test-roundl.c: Likewise.
5878         * tests/test-safe-alloc.c: Likewise.
5879         * tests/test-sameacls.c: Likewise.
5880         * tests/test-set-mode-acl.c: Likewise.
5881         * tests/test-setenv.c: Likewise.
5882         * tests/test-sigaction.c: Likewise.
5883         * tests/test-signbit.c: Likewise.
5884         * tests/test-sleep.c: Likewise.
5885         * tests/test-snprintf-posix.c: Likewise.
5886         * tests/test-snprintf.c: Likewise.
5887         * tests/test-sprintf-posix.c: Likewise.
5888         * tests/test-stat-time.c: Likewise.
5889         * tests/test-stat.c: Likewise.
5890         * tests/test-strcasestr.c: Likewise.
5891         * tests/test-strchrnul.c: Likewise.
5892         * tests/test-strerror.c: Likewise.
5893         * tests/test-striconv.c: Likewise.
5894         * tests/test-striconveh.c: Likewise.
5895         * tests/test-striconveha.c: Likewise.
5896         * tests/test-strsignal.c: Likewise.
5897         * tests/test-strstr.c: Likewise.
5898         * tests/test-strtod.c: Likewise.
5899         * tests/test-strverscmp.c: Likewise.
5900         * tests/test-symlink.c: Likewise.
5901         * tests/test-symlinkat.c: Likewise.
5902         * tests/test-trunc1.c: Likewise.
5903         * tests/test-trunc2.c: Likewise.
5904         * tests/test-truncf1.c: Likewise.
5905         * tests/test-truncf2.c: Likewise.
5906         * tests/test-truncl.c: Likewise.
5907         * tests/test-uname.c: Likewise.
5908         * tests/test-unlink.c: Likewise.
5909         * tests/test-unlinkat.c: Likewise.
5910         * tests/test-unsetenv.c: Likewise.
5911         * tests/test-usleep.c: Likewise.
5912         * tests/test-utimens.c: Likewise.
5913         * tests/test-utimensat.c: Likewise.
5914         * tests/test-vasnprintf-posix.c: Likewise.
5915         * tests/test-vasnprintf-posix2.c: Likewise.
5916         * tests/test-vasnprintf.c: Likewise.
5917         * tests/test-vasprintf-posix.c: Likewise.
5918         * tests/test-vasprintf.c: Likewise.
5919         * tests/test-vdprintf-posix.c: Likewise.
5920         * tests/test-vfprintf-posix.c: Likewise.
5921         * tests/test-vprintf-posix.c: Likewise.
5922         * tests/test-vsnprintf-posix.c: Likewise.
5923         * tests/test-vsnprintf.c: Likewise.
5924         * tests/test-vsprintf-posix.c: Likewise.
5925         * tests/test-wcrtomb.c: Likewise.
5926         * tests/test-wcsnrtombs.c: Likewise.
5927         * tests/test-wcsrtombs.c: Likewise.
5928         * tests/test-wctype.c: Likewise.
5929         * tests/test-wcwidth.c: Likewise.
5930         * tests/test-xfprintf-posix.c: Likewise.
5931         * tests/test-xmemdup0.c: Likewise.
5932         * tests/test-xprintf-posix.c: Likewise.
5933         * tests/test-xvasprintf.c: Likewise.
5934         * tests/unicase/test-locale-language.c: Likewise.
5935         * tests/unicase/test-mapping-part1.h: Likewise.
5936         * tests/unicase/test-predicate-part1.h: Likewise.
5937         * tests/unicase/test-u8-casecmp.c: Likewise.
5938         * tests/unicase/test-u8-casecoll.c: Likewise.
5939         * tests/unicase/test-u8-casefold.c: Likewise.
5940         * tests/unicase/test-u8-is-cased.c: Likewise.
5941         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5942         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5943         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5944         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5945         * tests/unicase/test-u8-tolower.c: Likewise.
5946         * tests/unicase/test-u8-totitle.c: Likewise.
5947         * tests/unicase/test-u8-toupper.c: Likewise.
5948         * tests/unicase/test-u16-casecmp.c: Likewise.
5949         * tests/unicase/test-u16-casecoll.c: Likewise.
5950         * tests/unicase/test-u16-casefold.c: Likewise.
5951         * tests/unicase/test-u16-is-cased.c: Likewise.
5952         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5953         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5954         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5955         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5956         * tests/unicase/test-u16-tolower.c: Likewise.
5957         * tests/unicase/test-u16-totitle.c: Likewise.
5958         * tests/unicase/test-u16-toupper.c: Likewise.
5959         * tests/unicase/test-u32-casecmp.c: Likewise.
5960         * tests/unicase/test-u32-casecoll.c: Likewise.
5961         * tests/unicase/test-u32-casefold.c: Likewise.
5962         * tests/unicase/test-u32-is-cased.c: Likewise.
5963         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5964         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5965         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5966         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5967         * tests/unicase/test-u32-tolower.c: Likewise.
5968         * tests/unicase/test-u32-totitle.c: Likewise.
5969         * tests/unicase/test-u32-toupper.c: Likewise.
5970         * tests/unicase/test-ulc-casecmp.c: Likewise.
5971         * tests/unicase/test-ulc-casecoll.c: Likewise.
5972         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5973         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5974         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5975         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5976         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5977         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5978         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5979         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5980         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5981         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5982         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5983         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5984         * tests/unictype/test-bidi_byname.c: Likewise.
5985         * tests/unictype/test-bidi_name.c: Likewise.
5986         * tests/unictype/test-bidi_of.c: Likewise.
5987         * tests/unictype/test-bidi_test.c: Likewise.
5988         * tests/unictype/test-block_list.c: Likewise.
5989         * tests/unictype/test-block_of.c: Likewise.
5990         * tests/unictype/test-block_test.c: Likewise.
5991         * tests/unictype/test-categ_and.c: Likewise.
5992         * tests/unictype/test-categ_and_not.c: Likewise.
5993         * tests/unictype/test-categ_byname.c: Likewise.
5994         * tests/unictype/test-categ_name.c: Likewise.
5995         * tests/unictype/test-categ_none.c: Likewise.
5996         * tests/unictype/test-categ_of.c: Likewise.
5997         * tests/unictype/test-categ_or.c: Likewise.
5998         * tests/unictype/test-categ_test_withtable.c: Likewise.
5999         * tests/unictype/test-combining.c: Likewise.
6000         * tests/unictype/test-decdigit.c: Likewise.
6001         * tests/unictype/test-digit.c: Likewise.
6002         * tests/unictype/test-mirror.c: Likewise.
6003         * tests/unictype/test-numeric.c: Likewise.
6004         * tests/unictype/test-pr_byname.c: Likewise.
6005         * tests/unictype/test-pr_test.c: Likewise.
6006         * tests/unictype/test-predicate-part1.h: Likewise.
6007         * tests/unictype/test-scripts.c: Likewise.
6008         * tests/unictype/test-sy_c_ident.c: Likewise.
6009         * tests/unictype/test-sy_java_ident.c: Likewise.
6010         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
6011         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
6012         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
6013         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
6014         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
6015         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
6016         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
6017         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
6018         * tests/uninorm/test-canonical-decomposition.c: Likewise.
6019         * tests/uninorm/test-compat-decomposition.c: Likewise.
6020         * tests/uninorm/test-composition.c: Likewise.
6021         * tests/uninorm/test-decomposing-form.c: Likewise.
6022         * tests/uninorm/test-decomposition.c: Likewise.
6023         * tests/uninorm/test-u8-nfc.c: Likewise.
6024         * tests/uninorm/test-u8-nfd.c: Likewise.
6025         * tests/uninorm/test-u8-nfkc.c: Likewise.
6026         * tests/uninorm/test-u8-nfkd.c: Likewise.
6027         * tests/uninorm/test-u8-normcmp.c: Likewise.
6028         * tests/uninorm/test-u8-normcoll.c: Likewise.
6029         * tests/uninorm/test-u16-nfc.c: Likewise.
6030         * tests/uninorm/test-u16-nfd.c: Likewise.
6031         * tests/uninorm/test-u16-nfkc.c: Likewise.
6032         * tests/uninorm/test-u16-nfkd.c: Likewise.
6033         * tests/uninorm/test-u16-normcmp.c: Likewise.
6034         * tests/uninorm/test-u16-normcoll.c: Likewise.
6035         * tests/uninorm/test-u32-nfc.c: Likewise.
6036         * tests/uninorm/test-u32-nfd.c: Likewise.
6037         * tests/uninorm/test-u32-nfkc.c: Likewise.
6038         * tests/uninorm/test-u32-nfkd.c: Likewise.
6039         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6040         * tests/uninorm/test-u32-normcmp.c: Likewise.
6041         * tests/uninorm/test-u32-normcoll.c: Likewise.
6042         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
6043         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
6044         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
6045         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
6046         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
6047         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
6048         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
6049         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
6050         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
6051         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
6052         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
6053         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
6054         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
6055         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
6056         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
6057         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
6058         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
6059         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
6060         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
6061         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
6062         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
6063         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
6064         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
6065         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
6066         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
6067         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
6068         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
6069         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
6070         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
6071         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
6072         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
6073         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
6074         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
6075         * tests/uniwidth/test-u8-strwidth.c: Likewise.
6076         * tests/uniwidth/test-u8-width.c: Likewise.
6077         * tests/uniwidth/test-u16-strwidth.c: Likewise.
6078         * tests/uniwidth/test-u16-width.c: Likewise.
6079         * tests/uniwidth/test-u32-strwidth.c: Likewise.
6080         * tests/uniwidth/test-u32-width.c: Likewise.
6081         * tests/uniwidth/test-uc_width.c: Likewise.
6082         * tests/uniwidth/test-uc_width2.c: Likewise.
6083         * modules/acl-tests (Files): Add tests/macros.h.
6084         * modules/areadlink-tests (Files): Likewise.
6085         * modules/areadlink-with-size-tests (Files): Likewise.
6086         * modules/areadlinkat-tests (Files): Likewise.
6087         * modules/areadlinkat-with-size-tests (Files): Likewise.
6088         * modules/argmatch-tests (Files): Likewise.
6089         * modules/argv-iter-tests (Files): Likewise.
6090         * modules/array-list-tests (Files): Likewise.
6091         * modules/array-mergesort-tests (Files): Likewise.
6092         * modules/array-oset-tests (Files): Likewise.
6093         * modules/avltree-list-tests (Files): Likewise.
6094         * modules/avltree-oset-tests (Files): Likewise.
6095         * modules/avltreehash-list-tests (Files): Likewise.
6096         * modules/base64-tests (Files): Likewise.
6097         * modules/binary-io-tests (Files): Likewise.
6098         * modules/bitrotate-tests (Files): Likewise.
6099         * modules/btowc-tests (Files): Likewise.
6100         * modules/byteswap-tests (Files): Likewise.
6101         * modules/c-ctype-tests (Files): Likewise.
6102         * modules/c-stack-tests (Files): Likewise.
6103         * modules/c-strcase-tests (Files): Likewise.
6104         * modules/c-strcasestr-tests (Files): Likewise.
6105         * modules/c-strstr-tests (Files): Likewise.
6106         * modules/canonicalize-lgpl-tests (Files): Likewise.
6107         * modules/canonicalize-tests (Files): Likewise.
6108         * modules/carray-list-tests (Files): Likewise.
6109         * modules/ceilf-tests (Files): Likewise.
6110         * modules/ceill-tests (Files): Likewise.
6111         * modules/chown-tests (Files): Likewise.
6112         * modules/cloexec-tests (Files): Likewise.
6113         * modules/copy-file-tests (Files): Likewise.
6114         * modules/count-one-bits-tests (Files): Likewise.
6115         * modules/dprintf-posix-tests (Files): Likewise.
6116         * modules/dup2-tests (Files): Likewise.
6117         * modules/dup3-tests (Files): Likewise.
6118         * modules/duplocale-tests (Files): Likewise.
6119         * modules/fbufmode-tests (Files): Likewise.
6120         * modules/fchdir-tests (Files): Likewise.
6121         * modules/fcntl-safer-tests (Files): Likewise.
6122         * modules/fcntl-tests (Files): Likewise.
6123         * modules/fdopendir-tests (Files): Likewise.
6124         * modules/fdutimensat-tests (Files): Likewise.
6125         * modules/fflush-tests (Files): Likewise.
6126         * modules/filevercmp-tests (Files): Likewise.
6127         * modules/flock-tests (Files): Likewise.
6128         * modules/floorf-tests (Files): Likewise.
6129         * modules/floorl-tests (Files): Likewise.
6130         * modules/fnmatch-tests (Files): Likewise.
6131         * modules/fopen-safer-tests (Files): Likewise.
6132         * modules/fopen-tests (Files): Likewise.
6133         * modules/fpending-tests (Files): Likewise.
6134         * modules/fprintf-posix-tests (Files): Likewise.
6135         * modules/fpurge-tests (Files): Likewise.
6136         * modules/freadable-tests (Files): Likewise.
6137         * modules/freadahead-tests (Files): Likewise.
6138         * modules/freading-tests (Files): Likewise.
6139         * modules/freadptr-tests (Files): Likewise.
6140         * modules/freadseek-tests (Files): Likewise.
6141         * modules/freopen-tests (Files): Likewise.
6142         * modules/frexp-nolibm-tests (Files): Likewise.
6143         * modules/frexp-tests (Files): Likewise.
6144         * modules/frexpl-nolibm-tests (Files): Likewise.
6145         * modules/frexpl-tests (Files): Likewise.
6146         * modules/fseek-tests (Files): Likewise.
6147         * modules/fseeko-tests (Files): Likewise.
6148         * modules/fstrcmp-tests (Files): Likewise.
6149         * modules/fsync-tests (Files): Likewise.
6150         * modules/ftell-tests (Files): Likewise.
6151         * modules/ftello-tests (Files): Likewise.
6152         * modules/func-tests (Files): Likewise.
6153         * modules/futimens-tests (Files): Likewise.
6154         * modules/fwritable-tests (Files): Likewise.
6155         * modules/fwriting-tests (Files): Likewise.
6156         * modules/getcwd-tests (Files): Likewise.
6157         * modules/getdate-tests (Files): Likewise.
6158         * modules/getdelim-tests (Files): Likewise.
6159         * modules/getdtablesize-tests (Files): Likewise.
6160         * modules/getgroups-tests (Files): Likewise.
6161         * modules/getline-tests (Files): Likewise.
6162         * modules/getndelim2-tests (Files): Likewise.
6163         * modules/glob-tests (Files): Likewise.
6164         * modules/hash-tests (Files): Likewise.
6165         * modules/i-ring-tests (Files): Likewise.
6166         * modules/iconv-tests (Files): Likewise.
6167         * modules/iconv_open-utf-tests (Files): Likewise.
6168         * modules/idpriv-drop-tests (Files): Likewise.
6169         * modules/idpriv-droptemp-tests (Files): Likewise.
6170         * modules/inet_ntop-tests (Files): Likewise.
6171         * modules/inet_pton-tests (Files): Likewise.
6172         * modules/isblank-tests (Files): Likewise.
6173         * modules/isfinite-tests (Files): Likewise.
6174         * modules/isinf-tests (Files): Likewise.
6175         * modules/isnan-tests (Files): Likewise.
6176         * modules/isnand-nolibm-tests (Files): Likewise.
6177         * modules/isnand-tests (Files): Likewise.
6178         * modules/isnanf-nolibm-tests (Files): Likewise.
6179         * modules/isnanf-tests (Files): Likewise.
6180         * modules/isnanl-nolibm-tests (Files): Likewise.
6181         * modules/isnanl-tests (Files): Likewise.
6182         * modules/lchown-tests (Files): Likewise.
6183         * modules/ldexpl-tests (Files): Likewise.
6184         * modules/link-tests (Files): Likewise.
6185         * modules/linkat-tests (Files): Likewise.
6186         * modules/linked-list-tests (Files): Likewise.
6187         * modules/linkedhash-list-tests (Files): Likewise.
6188         * modules/localename-tests (Files): Likewise.
6189         * modules/lseek-tests (Files): Likewise.
6190         * modules/lstat-tests (Files): Likewise.
6191         * modules/mbmemcasecmp-tests (Files): Likewise.
6192         * modules/mbmemcasecoll-tests (Files): Likewise.
6193         * modules/mbrtowc-tests (Files): Likewise.
6194         * modules/mbscasecmp-tests (Files): Likewise.
6195         * modules/mbscasestr-tests (Files): Likewise.
6196         * modules/mbschr-tests (Files): Likewise.
6197         * modules/mbscspn-tests (Files): Likewise.
6198         * modules/mbsinit-tests (Files): Likewise.
6199         * modules/mbsncasecmp-tests (Files): Likewise.
6200         * modules/mbsnrtowcs-tests (Files): Likewise.
6201         * modules/mbspbrk-tests (Files): Likewise.
6202         * modules/mbspcasecmp-tests (Files): Likewise.
6203         * modules/mbsrchr-tests (Files): Likewise.
6204         * modules/mbsrtowcs-tests (Files): Likewise.
6205         * modules/mbsspn-tests (Files): Likewise.
6206         * modules/mbsstr-tests (Files): Likewise.
6207         * modules/memchr-tests (Files): Likewise.
6208         * modules/memchr2-tests (Files): Likewise.
6209         * modules/memcmp-tests (Files): Likewise.
6210         * modules/memmem-tests (Files): Likewise.
6211         * modules/memrchr-tests (Files): Likewise.
6212         * modules/mkdir-tests (Files): Likewise.
6213         * modules/mkfifo-tests (Files): Likewise.
6214         * modules/mkfifoat-tests (Files): Likewise.
6215         * modules/mknod-tests (Files): Likewise.
6216         * modules/nanosleep-tests (Files): Likewise.
6217         * modules/nl_langinfo-tests (Files): Likewise.
6218         * modules/obstack-printf-tests (Files): Likewise.
6219         * modules/open-tests (Files): Likewise.
6220         * modules/openat-tests (Files): Likewise.
6221         * modules/pipe-filter-gi-tests (Files): Likewise.
6222         * modules/pipe-filter-ii-tests (Files): Likewise.
6223         * modules/pipe2-tests (Files): Likewise.
6224         * modules/popen-safer-tests (Files): Likewise.
6225         * modules/popen-tests (Files): Likewise.
6226         * modules/posixtm-tests (Files): Likewise.
6227         * modules/pread-tests (Files): Likewise.
6228         * modules/printf-frexp-tests (Files): Likewise.
6229         * modules/printf-frexpl-tests (Files): Likewise.
6230         * modules/printf-posix-tests (Files): Likewise.
6231         * modules/priv-set-tests (Files): Likewise.
6232         * modules/quotearg-tests (Files): Likewise.
6233         * modules/random_r-tests (Files): Likewise.
6234         * modules/rawmemchr-tests (Files): Likewise.
6235         * modules/rbtree-list-tests (Files): Likewise.
6236         * modules/rbtree-oset-tests (Files): Likewise.
6237         * modules/rbtreehash-list-tests (Files): Likewise.
6238         * modules/readlink-tests (Files): Likewise.
6239         * modules/remove-tests (Files): Likewise.
6240         * modules/rename-tests (Files): Likewise.
6241         * modules/renameat-tests (Files): Likewise.
6242         * modules/rmdir-tests (Files): Likewise.
6243         * modules/round-tests (Files): Likewise.
6244         * modules/roundf-tests (Files): Likewise.
6245         * modules/roundl-tests (Files): Likewise.
6246         * modules/safe-alloc-tests (Files): Likewise.
6247         * modules/setenv-tests (Files): Likewise.
6248         * modules/sigaction-tests (Files): Likewise.
6249         * modules/signbit-tests (Files): Likewise.
6250         * modules/sleep-tests (Files): Likewise.
6251         * modules/snprintf-posix-tests (Files): Likewise.
6252         * modules/snprintf-tests (Files): Likewise.
6253         * modules/sprintf-posix-tests (Files): Likewise.
6254         * modules/stat-tests (Files): Likewise.
6255         * modules/stat-time-tests (Files): Likewise.
6256         * modules/strcasestr-tests (Files): Likewise.
6257         * modules/strchrnul-tests (Files): Likewise.
6258         * modules/strerror-tests (Files): Likewise.
6259         * modules/striconv-tests (Files): Likewise.
6260         * modules/striconveh-tests (Files): Likewise.
6261         * modules/striconveha-tests (Files): Likewise.
6262         * modules/strsignal-tests (Files): Likewise.
6263         * modules/strstr-tests (Files): Likewise.
6264         * modules/strtod-tests (Files): Likewise.
6265         * modules/strverscmp-tests (Files): Likewise.
6266         * modules/symlink-tests (Files): Likewise.
6267         * modules/symlinkat-tests (Files): Likewise.
6268         * modules/trunc-tests (Files): Likewise.
6269         * modules/truncf-tests (Files): Likewise.
6270         * modules/truncl-tests (Files): Likewise.
6271         * modules/uname-tests (Files): Likewise.
6272         * modules/unicase/cased-tests (Files): Likewise.
6273         * modules/unicase/ignorable-tests (Files): Likewise.
6274         * modules/unicase/locale-language-tests (Files): Likewise.
6275         * modules/unicase/tolower-tests (Files): Likewise.
6276         * modules/unicase/totitle-tests (Files): Likewise.
6277         * modules/unicase/toupper-tests (Files): Likewise.
6278         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6279         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6280         * modules/unicase/u8-casefold-tests (Files): Likewise.
6281         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6282         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6283         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6284         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6285         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6286         * modules/unicase/u8-tolower-tests (Files): Likewise.
6287         * modules/unicase/u8-totitle-tests (Files): Likewise.
6288         * modules/unicase/u8-toupper-tests (Files): Likewise.
6289         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6290         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6291         * modules/unicase/u16-casefold-tests (Files): Likewise.
6292         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6293         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6294         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6295         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6296         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6297         * modules/unicase/u16-tolower-tests (Files): Likewise.
6298         * modules/unicase/u16-totitle-tests (Files): Likewise.
6299         * modules/unicase/u16-toupper-tests (Files): Likewise.
6300         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6301         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6302         * modules/unicase/u32-casefold-tests (Files): Likewise.
6303         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6304         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6305         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6306         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6307         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6308         * modules/unicase/u32-tolower-tests (Files): Likewise.
6309         * modules/unicase/u32-totitle-tests (Files): Likewise.
6310         * modules/unicase/u32-toupper-tests (Files): Likewise.
6311         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6312         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6313         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6314         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6315         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6316         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6317         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6318         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6319         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6320         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6321         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6322         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6323         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6324         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6325         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6326         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6327         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6328         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6329         * modules/unictype/block-list-tests (Files): Likewise.
6330         * modules/unictype/block-of-tests (Files): Likewise.
6331         * modules/unictype/block-test-tests (Files): Likewise.
6332         * modules/unictype/category-C-tests (Files): Likewise.
6333         * modules/unictype/category-Cc-tests (Files): Likewise.
6334         * modules/unictype/category-Cf-tests (Files): Likewise.
6335         * modules/unictype/category-Cn-tests (Files): Likewise.
6336         * modules/unictype/category-Co-tests (Files): Likewise.
6337         * modules/unictype/category-Cs-tests (Files): Likewise.
6338         * modules/unictype/category-L-tests (Files): Likewise.
6339         * modules/unictype/category-Ll-tests (Files): Likewise.
6340         * modules/unictype/category-Lm-tests (Files): Likewise.
6341         * modules/unictype/category-Lo-tests (Files): Likewise.
6342         * modules/unictype/category-Lt-tests (Files): Likewise.
6343         * modules/unictype/category-Lu-tests (Files): Likewise.
6344         * modules/unictype/category-M-tests (Files): Likewise.
6345         * modules/unictype/category-Mc-tests (Files): Likewise.
6346         * modules/unictype/category-Me-tests (Files): Likewise.
6347         * modules/unictype/category-Mn-tests (Files): Likewise.
6348         * modules/unictype/category-N-tests (Files): Likewise.
6349         * modules/unictype/category-Nd-tests (Files): Likewise.
6350         * modules/unictype/category-Nl-tests (Files): Likewise.
6351         * modules/unictype/category-No-tests (Files): Likewise.
6352         * modules/unictype/category-P-tests (Files): Likewise.
6353         * modules/unictype/category-Pc-tests (Files): Likewise.
6354         * modules/unictype/category-Pd-tests (Files): Likewise.
6355         * modules/unictype/category-Pe-tests (Files): Likewise.
6356         * modules/unictype/category-Pf-tests (Files): Likewise.
6357         * modules/unictype/category-Pi-tests (Files): Likewise.
6358         * modules/unictype/category-Po-tests (Files): Likewise.
6359         * modules/unictype/category-Ps-tests (Files): Likewise.
6360         * modules/unictype/category-S-tests (Files): Likewise.
6361         * modules/unictype/category-Sc-tests (Files): Likewise.
6362         * modules/unictype/category-Sk-tests (Files): Likewise.
6363         * modules/unictype/category-Sm-tests (Files): Likewise.
6364         * modules/unictype/category-So-tests (Files): Likewise.
6365         * modules/unictype/category-Z-tests (Files): Likewise.
6366         * modules/unictype/category-Zl-tests (Files): Likewise.
6367         * modules/unictype/category-Zp-tests (Files): Likewise.
6368         * modules/unictype/category-Zs-tests (Files): Likewise.
6369         * modules/unictype/category-and-not-tests (Files): Likewise.
6370         * modules/unictype/category-and-tests (Files): Likewise.
6371         * modules/unictype/category-byname-tests (Files): Likewise.
6372         * modules/unictype/category-name-tests (Files): Likewise.
6373         * modules/unictype/category-none-tests (Files): Likewise.
6374         * modules/unictype/category-of-tests (Files): Likewise.
6375         * modules/unictype/category-or-tests (Files): Likewise.
6376         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6377         * modules/unictype/combining-class-tests (Files): Likewise.
6378         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6379         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6380         * modules/unictype/ctype-blank-tests (Files): Likewise.
6381         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6382         * modules/unictype/ctype-digit-tests (Files): Likewise.
6383         * modules/unictype/ctype-graph-tests (Files): Likewise.
6384         * modules/unictype/ctype-lower-tests (Files): Likewise.
6385         * modules/unictype/ctype-print-tests (Files): Likewise.
6386         * modules/unictype/ctype-punct-tests (Files): Likewise.
6387         * modules/unictype/ctype-space-tests (Files): Likewise.
6388         * modules/unictype/ctype-upper-tests (Files): Likewise.
6389         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6390         * modules/unictype/decimal-digit-tests (Files): Likewise.
6391         * modules/unictype/digit-tests (Files): Likewise.
6392         * modules/unictype/mirror-tests (Files): Likewise.
6393         * modules/unictype/numeric-tests (Files): Likewise.
6394         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6395         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6396         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6397         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6398         Likewise.
6399         * modules/unictype/property-bidi-block-separator-tests (Files):
6400         Likewise.
6401         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6402         Likewise.
6403         * modules/unictype/property-bidi-common-separator-tests (Files):
6404         Likewise.
6405         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6406         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6407         Likewise.
6408         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6409         Likewise.
6410         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6411         Likewise.
6412         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6413         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6414         Likewise.
6415         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6416         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6417         Likewise.
6418         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6419         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6420         * modules/unictype/property-bidi-segment-separator-tests (Files):
6421         Likewise.
6422         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6423         * modules/unictype/property-byname-tests (Files): Likewise.
6424         * modules/unictype/property-combining-tests (Files): Likewise.
6425         * modules/unictype/property-composite-tests (Files): Likewise.
6426         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6427         * modules/unictype/property-dash-tests (Files): Likewise.
6428         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6429         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6430         Likewise.
6431         * modules/unictype/property-deprecated-tests (Files): Likewise.
6432         * modules/unictype/property-diacritic-tests (Files): Likewise.
6433         * modules/unictype/property-extender-tests (Files): Likewise.
6434         * modules/unictype/property-format-control-tests (Files): Likewise.
6435         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6436         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6437         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6438         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6439         * modules/unictype/property-hyphen-tests (Files): Likewise.
6440         * modules/unictype/property-id-continue-tests (Files): Likewise.
6441         * modules/unictype/property-id-start-tests (Files): Likewise.
6442         * modules/unictype/property-ideographic-tests (Files): Likewise.
6443         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6444         * modules/unictype/property-ids-trinary-operator-tests (Files):
6445         Likewise.
6446         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6447         * modules/unictype/property-iso-control-tests (Files): Likewise.
6448         * modules/unictype/property-join-control-tests (Files): Likewise.
6449         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6450         * modules/unictype/property-line-separator-tests (Files): Likewise.
6451         * modules/unictype/property-logical-order-exception-tests (Files):
6452         Likewise.
6453         * modules/unictype/property-lowercase-tests (Files): Likewise.
6454         * modules/unictype/property-math-tests (Files): Likewise.
6455         * modules/unictype/property-non-break-tests (Files): Likewise.
6456         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6457         * modules/unictype/property-numeric-tests (Files): Likewise.
6458         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6459         * modules/unictype/property-other-default-ignorable-code-point-tests
6460         (Files): Likewise.
6461         * modules/unictype/property-other-grapheme-extend-tests (Files):
6462         Likewise.
6463         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6464         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6465         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6466         * modules/unictype/property-other-math-tests (Files): Likewise.
6467         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6468         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6469         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6470         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6471         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6472         * modules/unictype/property-private-use-tests (Files): Likewise.
6473         * modules/unictype/property-punctuation-tests (Files): Likewise.
6474         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6475         * modules/unictype/property-radical-tests (Files): Likewise.
6476         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6477         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6478         * modules/unictype/property-space-tests (Files): Likewise.
6479         * modules/unictype/property-terminal-punctuation-tests (Files):
6480         Likewise.
6481         * modules/unictype/property-test-tests (Files): Likewise.
6482         * modules/unictype/property-titlecase-tests (Files): Likewise.
6483         * modules/unictype/property-unassigned-code-value-tests (Files):
6484         Likewise.
6485         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6486         * modules/unictype/property-uppercase-tests (Files): Likewise.
6487         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6488         * modules/unictype/property-white-space-tests (Files): Likewise.
6489         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6490         * modules/unictype/property-xid-start-tests (Files): Likewise.
6491         * modules/unictype/property-zero-width-tests (Files): Likewise.
6492         * modules/unictype/scripts-tests (Files): Likewise.
6493         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6494         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6495         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6496         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6497         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6498         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6499         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6500         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6501         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6502         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6503         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6504         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6505         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6506         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6507         * modules/uninorm/composition-tests (Files): Likewise.
6508         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6509         * modules/uninorm/decomposition-tests (Files): Likewise.
6510         * modules/uninorm/filter-tests (Files): Likewise.
6511         * modules/uninorm/nfc-tests (Files): Likewise.
6512         * modules/uninorm/nfd-tests (Files): Likewise.
6513         * modules/uninorm/nfkc-tests (Files): Likewise.
6514         * modules/uninorm/nfkd-tests (Files): Likewise.
6515         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6516         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6517         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6518         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6519         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6520         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6521         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6522         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6523         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6524         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6525         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6526         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6527         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6528         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6529         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6530         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6531         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6532         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6533         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6534         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6535         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6536         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6537         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6538         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6539         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6540         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6541         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6542         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6543         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6544         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6545         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6546         * modules/uniwidth/u8-width-tests (Files): Likewise.
6547         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6548         * modules/uniwidth/u16-width-tests (Files): Likewise.
6549         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6550         * modules/uniwidth/u32-width-tests (Files): Likewise.
6551         * modules/uniwidth/width-tests (Files): Likewise.
6552         * modules/unlink-tests (Files): Likewise.
6553         * modules/unsetenv-tests (Files): Likewise.
6554         * modules/usleep-tests (Files): Likewise.
6555         * modules/utimens-tests (Files): Likewise.
6556         * modules/utimensat-tests (Files): Likewise.
6557         * modules/vasnprintf-posix-tests (Files): Likewise.
6558         * modules/vasnprintf-tests (Files): Likewise.
6559         * modules/vasprintf-posix-tests (Files): Likewise.
6560         * modules/vasprintf-tests (Files): Likewise.
6561         * modules/vdprintf-posix-tests (Files): Likewise.
6562         * modules/vfprintf-posix-tests (Files): Likewise.
6563         * modules/vprintf-posix-tests (Files): Likewise.
6564         * modules/vsnprintf-posix-tests (Files): Likewise.
6565         * modules/vsnprintf-tests (Files): Likewise.
6566         * modules/vsprintf-posix-tests (Files): Likewise.
6567         * modules/wcrtomb-tests (Files): Likewise.
6568         * modules/wcsnrtombs-tests (Files): Likewise.
6569         * modules/wcsrtombs-tests (Files): Likewise.
6570         * modules/wctype-tests (Files): Likewise.
6571         * modules/wcwidth-tests (Files): Likewise.
6572         * modules/xmemdup0-tests (Files): Likewise.
6573         * modules/xprintf-posix-tests (Files): Likewise.
6574         * modules/xvasprintf-tests (Files): Likewise.
6575
6576 2009-12-24  Eric Blake  <ebb9@byu.net>
6577
6578         test-nanosleep: fix typo
6579         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6580         patch.
6581         Reported by Bruno Haible.
6582
6583 2009-12-24  Bruno Haible  <bruno@clisp.org>
6584
6585         Reduce namespace pollution on glibc systems.
6586         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6587         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6588         systems.
6589         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6590         <getopt.h> on glibc systems.
6591         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6592         systems.
6593         * lib/fcntl.c: Include <unistd.h> here instead.
6594
6595 2009-12-24  Bruno Haible  <bruno@clisp.org>
6596
6597         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6598
6599 2009-12-24  Eric Blake  <ebb9@byu.net>
6600
6601         tests: add signature checks
6602         * tests/signature.h (SIGNATURE_CHECK): New file.
6603         * modules/atexit-tests (Files): Use it.
6604         * modules/btowc-tests (Files): Likewise.
6605         * modules/canonicalize-lgpl-tests (Files): Likewise.
6606         * modules/ceilf-tests (Files): Likewise.
6607         * modules/ceill-tests (Files): Likewise.
6608         * modules/chown-tests (Files): Likewise.
6609         * modules/dprintf-posix-tests (Files): Likewise.
6610         * modules/dup2-tests (Files): Likewise.
6611         * modules/dup3-tests (Files): Likewise.
6612         * modules/duplocale-tests (Files): Likewise.
6613         * modules/fchdir-tests (Files): Likewise.
6614         * modules/fcntl-tests (Files): Likewise.
6615         * modules/fdopendir-tests (Files): Likewise.
6616         * modules/fflush-tests (Files): Likewise.
6617         * modules/flock-tests (Files): Likewise.
6618         * modules/floorf-tests (Files): Likewise.
6619         * modules/floorl-tests (Files): Likewise.
6620         * modules/fnmatch-tests (Files): Likewise.
6621         * modules/fopen-tests (Files): Likewise.
6622         * modules/fprintf-posix-tests (Files): Likewise.
6623         * modules/freopen-tests (Files): Likewise.
6624         * modules/frexp-nolibm-tests (Files): Likewise.
6625         * modules/frexp-tests (Files): Likewise.
6626         * modules/frexpl-nolibm-tests (Files): Likewise.
6627         * modules/frexpl-tests (Files): Likewise.
6628         * modules/fseek-tests (Files): Likewise.
6629         * modules/fseeko-tests (Files): Likewise.
6630         * modules/fsync-tests (Files): Likewise.
6631         * modules/ftell-tests (Files): Likewise.
6632         * modules/ftello-tests (Files): Likewise.
6633         * modules/futimens-tests (Files): Likewise.
6634         * modules/getaddrinfo-tests (Files): Likewise.
6635         * modules/getcwd-tests (Files): Likewise.
6636         * modules/getdelim-tests (Files): Likewise.
6637         * modules/getdtablesize-tests (Files): Likewise.
6638         * modules/getgroups-tests (Files): Likewise.
6639         * modules/gethostname-tests (Files): Likewise.
6640         * modules/getline-tests (Files): Likewise.
6641         * modules/getopt-posix-tests (Files): Likewise.
6642         * modules/gettimeofday-tests (Files): Likewise.
6643         * modules/glob-tests (Files): Likewise.
6644         * modules/iconv-tests (Files): Likewise.
6645         * modules/inet_ntop-tests (Files): Likewise.
6646         * modules/inet_pton-tests (Files): Likewise.
6647         * modules/isblank-tests (Files): Likewise.
6648         * modules/lchown-tests (Files): Likewise.
6649         * modules/ldexpl-tests (Files): Likewise.
6650         * modules/link-tests (Files): Likewise.
6651         * modules/linkat-tests (Files): Likewise.
6652         * modules/lseek-tests (Files): Likewise.
6653         * modules/lstat-tests (Files): Likewise.
6654         * modules/mbrtowc-tests (Files): Likewise.
6655         * modules/mbsinit-tests (Files): Likewise.
6656         * modules/mbsnrtowcs-tests (Files): Likewise.
6657         * modules/mbsrtowcs-tests (Files): Likewise.
6658         * modules/memchr-tests (Files): Likewise.
6659         * modules/memcmp-tests (Files): Likewise.
6660         * modules/memmem-tests (Files): Likewise.
6661         * modules/memrchr-tests (Files): Likewise.
6662         * modules/mkdir-tests (Files): Likewise.
6663         * modules/mkfifo-tests (Files): Likewise.
6664         * modules/mkfifoat-tests (Files): Likewise.
6665         * modules/mknod-tests (Files): Likewise.
6666         * modules/nanosleep-tests (Files): Likewise.
6667         * modules/nl_langinfo-tests (Files): Likewise.
6668         * modules/obstack-printf-tests (Files): Likewise.
6669         * modules/open-tests (Files): Likewise.
6670         * modules/openat-tests (Files): Likewise.
6671         * modules/perror-tests (Files): Likewise.
6672         * modules/pipe2-tests (Files): Likewise.
6673         * modules/poll-tests (Files): Likewise.
6674         * modules/popen-tests (Files): Likewise.
6675         * modules/posix_spawn-tests (Files): Likewise.
6676         * modules/posix_spawnp-tests (Files): Likewise.
6677         * modules/pread-tests (Files): Likewise.
6678         * modules/printf-posix-tests (Files): Likewise.
6679         * modules/pty-tests (Files): Likewise.
6680         * modules/random_r-tests (Files): Likewise.
6681         * modules/rawmemchr-tests (Files): Likewise.
6682         * modules/readlink-tests (Files): Likewise.
6683         * modules/remove-tests (Files): Likewise.
6684         * modules/rename-tests (Files): Likewise.
6685         * modules/renameat-tests (Files): Likewise.
6686         * modules/rmdir-tests (Files): Likewise.
6687         * modules/round-tests (Files): Likewise.
6688         * modules/roundf-tests (Files): Likewise.
6689         * modules/roundl-tests (Files): Likewise.
6690         * modules/select-tests (Files): Likewise.
6691         * modules/setenv-tests (Files): Likewise.
6692         * modules/sigaction-tests (Files): Likewise.
6693         * modules/sleep-tests (Files): Likewise.
6694         * modules/snprintf-posix-tests (Files): Likewise.
6695         * modules/snprintf-tests (Files): Likewise.
6696         * modules/sprintf-posix-tests (Files): Likewise.
6697         * modules/stat-tests (Files): Likewise.
6698         * modules/strcasestr-tests (Files): Likewise.
6699         * modules/strchrnul-tests (Files): Likewise.
6700         * modules/strerror-tests (Files): Likewise.
6701         * modules/strsignal-tests (Files): Likewise.
6702         * modules/strstr-tests (Files): Likewise.
6703         * modules/strtod-tests (Files): Likewise.
6704         * modules/strverscmp-tests (Files): Likewise.
6705         * modules/symlink-tests (Files): Likewise.
6706         * modules/symlinkat-tests (Files): Likewise.
6707         * modules/times-tests (Files): Likewise.
6708         * modules/trunc-tests (Files): Likewise.
6709         * modules/truncf-tests (Files): Likewise.
6710         * modules/truncl-tests (Files): Likewise.
6711         * modules/tsearch-tests (Files): Likewise.
6712         * modules/uname-tests (Files): Likewise.
6713         * modules/unlink-tests (Files): Likewise.
6714         * modules/unsetenv-tests (Files): Likewise.
6715         * modules/usleep-tests (Files): Likewise.
6716         * modules/utimensat-tests (Files): Likewise.
6717         * modules/vasprintf-tests (Files): Likewise.
6718         * modules/vdprintf-posix-tests (Files): Likewise.
6719         * modules/vfprintf-posix-tests (Files): Likewise.
6720         * modules/vprintf-posix-tests (Files): Likewise.
6721         * modules/vsnprintf-posix-tests (Files): Likewise.
6722         * modules/vsnprintf-tests (Files): Likewise.
6723         * modules/vsprintf-posix-tests (Files): Likewise.
6724         * modules/wcrtomb-tests (Files): Likewise.
6725         * modules/wcsnrtombs-tests (Files): Likewise.
6726         * modules/wcsrtombs-tests (Files): Likewise.
6727         * modules/wcwidth-tests (Files): Likewise.
6728         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6729         * tests/test-isinf.c (isinf): Likewise.
6730         * tests/test-isnan.c (isnan): Likewise.
6731         * tests/test-signbit.c (signbit): Likewise.
6732         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6733         declaration, either as macro or with correct signature.
6734         (select): Ensure function under test is declared with correct
6735         signature in correct header.
6736         * tests/test-atexit.c (atexit): Likewise.
6737         * tests/test-btowc.c (btowc): Likewise.
6738         * tests/test-canonicalize-lgpl.c (realpath)
6739         (canonicalize_file_name): Likewise.
6740         * tests/test-ceilf1.c (ceilf): Likewise.
6741         * tests/test-ceill.c (ceill): Likewise.
6742         * tests/test-chown.c (chown): Likewise.
6743         * tests/test-dprintf-posix.c (dprintf): Likewise.
6744         * tests/test-dup2.c (dup2): Likewise.
6745         * tests/test-dup3.c (dup3): Likewise.
6746         * tests/test-duplocale.c (duplocale): Likewise.
6747         * tests/test-fchdir.c (fchdir): Likewise.
6748         * tests/test-fchownat.c (fchownat): Likewise.
6749         * tests/test-fcntl.c (fcntl): Likewise.
6750         * tests/test-fdopendir.c (fdopendir): Likewise.
6751         * tests/test-fflush.c (fflush): Likewise.
6752         * tests/test-flock.c (flock): Likewise.
6753         * tests/test-floorf1.c (floorf): Likewise.
6754         * tests/test-floorl.c (floorl): Likewise.
6755         * tests/test-fnmatch.c (fnmatch): Likewise.
6756         * tests/test-fopen.c (fopen): Likewise.
6757         * tests/test-fprintf-posix.c (fprintf): Likewise.
6758         * tests/test-freopen.c (freopen): Likewise.
6759         * tests/test-frexp.c (frexp): Likewise.
6760         * tests/test-frexpl.c (frexpl): Likewise.
6761         * tests/test-fseek.c (fseek): Likewise.
6762         * tests/test-fseeko.c (fseeko): Likewise.
6763         * tests/test-fstatat.c (fstatat): Likewise.
6764         * tests/test-fsync.c (fsync): Likewise.
6765         * tests/test-ftell.c (ftell): Likewise.
6766         * tests/test-ftello.c (ftello): Likewise.
6767         * tests/test-futimens.c (futimens): Likewise.
6768         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6769         (gai_strerror): Likewise.
6770         * tests/test-getcwd.c (getcwd): Likewise.
6771         * tests/test-getdelim.c (getdelim): Likewise.
6772         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6773         * tests/test-getgroups.c (getgroups): Likewise.
6774         * tests/test-gethostname.c (gethostname): Likewise.
6775         * tests/test-getline.c (getline): Likewise.
6776         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6777         Likewise.
6778         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6779         * tests/test-glob.c (glob, globfree): Likewise.
6780         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6781         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6782         * tests/test-inet_pton.c (inet_pton): Likewise.
6783         * tests/test-isblank.c (isblank): Likewise.
6784         * tests/test-lchown.c (lchown): Likewise.
6785         * tests/test-ldexpl.c (ldexpl): Likewise.
6786         * tests/test-link.c (link): Likewise.
6787         * tests/test-linkat.c (linkat): Likewise.
6788         * tests/test-lseek.c (lseek): Likewise.
6789         * tests/test-lstat.c (lstat): Likewise.
6790         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6791         * tests/test-mbsinit.c (mbsinit): Likewise.
6792         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6793         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6794         * tests/test-memchr.c (memchr): Likewise.
6795         * tests/test-memcmp.c (memcmp): Likewise.
6796         * tests/test-memmem.c (memmem): Likewise.
6797         * tests/test-memrchr.c (memrchr): Likewise.
6798         * tests/test-mkdir.c (mkdir): Likewise.
6799         * tests/test-mkdirat.c (mkdirat): Likewise.
6800         * tests/test-mkfifo.c (mkfifo): Likewise.
6801         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6802         * tests/test-mknod.c (mknod): Likewise.
6803         * tests/test-nanosleep.c (nanosleep): Likewise.
6804         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6805         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6806         Likewise.
6807         * tests/test-open.c (open): Likewise.
6808         * tests/test-openat.c (openat): Likewise.
6809         * tests/test-perror.c (perror): Likewise.
6810         * tests/test-pipe2.c (pipe2): Likewise.
6811         * tests/test-poll.c (poll): Likewise.
6812         * tests/test-popen.c (popen, pclose): Likewise.
6813         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6814         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6815         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6816         (posix_spawn_file_actions_destroy)
6817         (posix_spawn_file_actions_addclose)
6818         (posix_spawn_file_actions_addopen)
6819         (posix_spawn_file_actions_adddup2): Likewise.
6820         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6821         * tests/test-pread.c (pread): Likewise.
6822         * tests/test-printf-posix.c (printf): Likewise.
6823         * tests/test-pty.c (openpty, forkpty): Likewise.
6824         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6825         (random_r): Likewise.
6826         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6827         * tests/test-readlink.c (readlink): Likewise.
6828         * tests/test-remove.c (remove): Likewise.
6829         * tests/test-rename.c (rename): Likewise.
6830         * tests/test-renameat.c (renameat): Likewise.
6831         * tests/test-rmdir.c (rmdir): Likewise.
6832         * tests/test-round1.c (round): Likewise.
6833         * tests/test-roundf1.c (roundf): Likewise.
6834         * tests/test-roundl.c (roundl): Likewise.
6835         * tests/test-setenv.c (setenv): Likewise.
6836         * tests/test-sigaction.c (sigaction): Likewise.
6837         * tests/test-sleep.c (sleep): Likewise.
6838         * tests/test-snprintf.c (snprintf): Likewise.
6839         * tests/test-sprintf-posix.c (sprintf): Likewise.
6840         * tests/test-stat.c (stat): Likewise.
6841         * tests/test-stpncpy.c (stpncpy): Likewise.
6842         * tests/test-strcasestr.c (strcasestr): Likewise.
6843         * tests/test-strchrnul.c (strchrnul): Likewise.
6844         * tests/test-strerror.c (strerror): Likewise.
6845         * tests/test-strsignal.c (strsignal): Likewise.
6846         * tests/test-strstr.c (strstr): Likewise.
6847         * tests/test-strtod.c (strtod): Likewise.
6848         * tests/test-strverscmp.c (strverscmp): Likewise.
6849         * tests/test-symlink.c (symlink): Likewise.
6850         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6851         * tests/test-times.c (times): Likewise.
6852         * tests/test-trunc1.c (trunc): Likewise.
6853         * tests/test-truncf1.c (truncf): Likewise.
6854         * tests/test-truncl.c (truncl): Likewise.
6855         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6856         Likewise.
6857         * tests/test-uname.c (uname): Likewise.
6858         * tests/test-unlink.c (unlink): Likewise.
6859         * tests/test-unlinkat.c (unlinkat): Likewise.
6860         * tests/test-unsetenv.c (unsetenv): Likewise.
6861         * tests/test-usleep.c (usleep): Likewise.
6862         * tests/test-utimensat.c (utimensat): Likewise.
6863         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6864         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6865         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6866         * tests/test-vprintf-posix.c (vprintf): Likewise.
6867         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6868         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6869         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6870         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6871         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6872         * tests/test-wcwidth.c (wcwidth): Likewise.
6873
6874         build: pull in conditional headers during GNULIB_POSIXCHECK
6875         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6876         definitions from any conditionally-included headers.
6877         * lib/stdlib.in.h (includes): Likewise.
6878         * lib/unistd.in.h (includes): Likewise.
6879
6880 2009-12-24  Bruno Haible  <bruno@clisp.org>
6881
6882         * tests/test-argv-iter.c: Include header file being tested immediately
6883         after config.h.
6884         * tests/test-base64.c: Likewise.
6885         * tests/test-flock.c: Likewise.
6886         * tests/test-fsync.c: Likewise.
6887         * tests/test-getdate.c: Likewise.
6888         * tests/test-getndelim2.c: Likewise.
6889         * tests/test-isfinite.c: Likewise.
6890         * tests/test-isinf.c: Likewise.
6891         * tests/test-strerror.c: Likewise.
6892         * tests/test-strsignal.c: Likewise.
6893
6894 2009-12-23  Eric Blake  <ebb9@byu.net>
6895
6896         unistd: work around cygwin bug
6897         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6898         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6899         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6900
6901 2009-12-23  Bruno Haible  <bruno@clisp.org>
6902
6903         localename: More tests.
6904         * tests/test-localename.c (SIZEOF): New macro.
6905         (categories): New variable.
6906         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6907         test_locale_name_default): Add test w.r.t. thread locale.
6908         (test_locale_name_thread): New function.
6909         (main): Invoke it.
6910
6911         localename: Make aware of thread locale.
6912         * lib/localename.h (gl_locale_name_thread): New declaration.
6913         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6914         behaviour with respect to thread locale.
6915         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6916         <langinfo.h>, glthread/lock.h.
6917         (SIZE_BITS): New macro.
6918         (string_hash): New function.
6919         (struct hash_node): New type.
6920         (HASH_TABLE_SIZE): New macro.
6921         (struniq_hash_table, struniq_lock): New variables.
6922         (struniq): New function.
6923         (gl_locale_name_thread): New function.
6924         (gl_locale_name): Invoke it.
6925         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6926         * modules/localename (Depends-on): Add lock.
6927         Reported by Mike Gran <spk121@yahoo.com>.
6928
6929 2009-12-23  Eric Blake  <ebb9@byu.net>
6930
6931         va-args: new module
6932         * modules/va-args: New file.
6933         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6934         * MODULES.html.sh (Core language properties): Mention it.
6935
6936         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6937         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6938         named alias for __attribute__((__unused__)).
6939         * lib/chown.c: Update client.
6940         * lib/fchmodat.c: Likewise.
6941         * lib/fts.c: Likewise.
6942         * lib/getdate.y: Likewise.
6943         * lib/getgroups.c: Likewise.
6944         * lib/getopt.c: Likewise.
6945         * lib/getugroups.c: Likewise.
6946         * lib/mkdir.c: Likewise.
6947         * lib/mkfifo.c: Likewise.
6948         * lib/mkfifoat.c: Likewise.
6949         * lib/mknod.c: Likewise.
6950         * lib/mknodat.c: Likewise.
6951         * lib/readlink.c: Likewise.
6952         * lib/se-context.in.h: Likewise.
6953         * lib/se-selinux.in.h: Likewise.
6954         * lib/sockets.c: Likewise.
6955         * lib/symlink.c: Likewise.
6956         * lib/symlinkat.c: Likewise.
6957         * lib/unicodeio.c: Likewise.
6958         * lib/unistr.h: Likewise.
6959         * tests/test-areadlink.c: Likewise.
6960         * tests/test-areadlinkat.c: Likewise.
6961         * tests/test-filenamecat.c: Likewise.
6962         * tests/test-fseeko.c: Likewise.
6963         * tests/test-ftello.c: Likewise.
6964         * tests/test-getdate.c: Likewise.
6965         * tests/test-getgroups.c: Likewise.
6966         * tests/test-gethostname.c: Likewise.
6967         * tests/test-quotearg.c: Likewise.
6968         * tests/test-version-etc.c: Likewise.
6969         * tests/test-xalloc-die.c: Likewise.
6970         * tests/test-xfprintf-posix.c: Likewise.
6971         * tests/test-xprintf-posix.c: Likewise.
6972         * tests/test-xvasprintf.c: Likewise.
6973
6974         tests: avoid compiler warnings
6975         * tests/test-fcntl.c (main): Delete unused parameters.
6976         * tests/test-freopen-safer.c (main): Likewise.
6977         * tests/test-xalloc-die.c (main): Mark unused parameters.
6978         * tests/test-fseeko.c (main): Likewise.
6979         * tests/test-ftello.c (main): Likewise.
6980         * tests/test-nanosleep.c (main): Avoid declaration warning.
6981         * tests/test-sleep.c (main): Likewise.
6982         * tests/test-unsetenv.c (main): Silence warning about string
6983         literal.
6984         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6985
6986 2009-12-23  Bruno Haible  <bruno@clisp.org>
6987
6988         * tests/test-localename.c (test_locale_name): New function, extracted
6989         from main. Also test mixed situations.
6990         (test_locale_name_posix, test_locale_name_environ,
6991         test_locale_name_default): New functions.
6992         (main): Invoke them all.
6993         * modules/localename-tests (configure.ac): Test for newlocale.
6994
6995 2009-12-23  Bruno Haible  <bruno@clisp.org>
6996
6997         unistd: Ensure getcwd gets declared before being overridden.
6998         * lib/unistd.in.h: Conditionally include <io.h>.
6999
7000 2009-12-22  Bruno Haible  <bruno@clisp.org>
7001
7002         wchar: Diagnose broken combination of glibc and gcc versions and flags.
7003         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
7004         (gl_WCHAR_H): Invoke it.
7005         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
7006         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
7007         Reported by Karl Berry <karl@freefriends.org>.
7008
7009 2009-12-22  Eric Blake  <ebb9@byu.net>
7010
7011         math, unistd: avoid redundant includes
7012         * lib/math.in.h (isnan): No need to re-include <math.h>.
7013         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
7014
7015         getsubopt: work around cygwin bug
7016         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
7017         avoid conflicting with system getsubopt.
7018         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
7019         bug.
7020
7021         getopt: synchronize from glibc
7022         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
7023         parameter order.  Adjust all callers.
7024         (_getopt_internal_r, main): Adjust quoting in error messages.
7025         Drop considerations for outdated POSIX 1003.2 error message.
7026         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
7027         callers.
7028         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
7029
7030         test-getopt: test stderr behavior
7031         * modules/getopt-posix-tests (Depends-on): Add dup2.
7032         * tests/test-getopt.c (ASSERT): Avoid stderr.
7033         (main): Move stderr to a temporary file.
7034         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
7035         Instead, add parameter to inform caller if output occurred.
7036         (test_getopt): Adjust all existing tests to expect silence, and
7037         add new tests of leading ":".
7038         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7039         glibc shortcomings with leading "-:" or "+:" in optstring.
7040         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7041         Likewise.
7042         * doc/posix-functions/getopt.texi (getopt): Likewise.
7043
7044         test-getopt: enhance test
7045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
7046         supports optind=0.
7047         * tests/test-getopt.c (OPTIND_MIN): Move...
7048         * tests/test-getopt.h (OPTIND_MIN): ...here.
7049         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
7050         Require that optind=0 works, since modern BSD supports it in
7051         addition to optreset, and since coreutils expects it.
7052         (test_getopt_long_only): New test.
7053         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7054         glibc shortcomings with 'W;', and enforcement of optind=0.
7055         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7056         Likewise.
7057
7058 2009-12-21  Bruno Haible  <bruno@clisp.org>
7059
7060         localename: Improvements for MacOS X and Cygwin.
7061         * lib/localename.h (gl_locale_name_environ): New declaration.
7062         * lib/localename.c (gl_locale_name_environ): New function, extracted from
7063         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
7064         (gl_locale_name_posix): Invoke it.
7065         (gl_locale_name_default): Add comments. Use Windows native API also on
7066         Cygwin.
7067
7068 2009-12-21  Bruno Haible  <bruno@clisp.org>
7069
7070         Update list of Win32 locale ids.
7071         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
7072         (LANG_SAMI): Renamed from LANG_SAAMI.
7073         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
7074         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
7075         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
7076         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
7077         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
7078         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
7079         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
7080         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
7081         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
7082         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
7083         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
7084         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
7085         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
7086         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
7087         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
7088         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
7089         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
7090         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
7091         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
7092         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
7093         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
7094         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
7095         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
7096         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
7097         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
7098         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
7099         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
7100         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
7101         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
7102         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
7103         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
7104         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
7105         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
7106         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
7107         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
7108         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
7109         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
7110         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
7111         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
7112         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
7113         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
7114         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
7115         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
7116         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
7117         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
7118         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
7119         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
7120         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
7121         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
7122         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
7123         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
7124         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
7125         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
7126         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
7127         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
7128         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
7129         Add more languages and countries for Sami, Sorbian. Add more countries
7130         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
7131         for Pashto. Change country for Syriac, Tswana.
7132
7133 2009-12-21  Eric Blake  <ebb9@byu.net>
7134
7135         test-utimens: avoid spurious failure
7136         * tests/test-chown.h (nap): Factor...
7137         * tests/nap.h: ...into new file.
7138         * tests/test-lchown.h (nap): Avoid duplication.
7139         * tests/test-utimens-common.h (nap): Use shared implementation,
7140         necessary on file systems with 1-second resolution.
7141         * modules/chown-tests (Files): Include new file.
7142         * modules/fdutimensat-tests (Files): Likewise.
7143         * modules/futimens-tests (Files): Likewise.
7144         * modules/lchown-tests (Files): Likewise.
7145         * modules/openat-tests (Files): Likewise.
7146         * modules/utimens-tests (Files): Likewise.
7147         * modules/utimensat-tests (Files): Likewise.
7148
7149 2009-12-19  Eric Blake  <ebb9@byu.net>
7150
7151         futimens, utimensat: work around Linux bug
7152         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
7153         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7154         * lib/utimensat.c (rpl_utimensat): Work around it.
7155         * lib/futimens.c (rpl_futimens): Adjust comment.
7156
7157         utimens: work around Linux ctime bug
7158         * lib/utimens.c (detect_ctime_bug): New helper function.
7159         (update_timespec): Differentiate between workaround needed for
7160         this bug vs. what is needed for systems that lack utimensat.
7161         (fdutimens, lutimens): Work around bug.
7162
7163         utimens: check for ctime update
7164         * tests/test-utimens-common.h (check_ctime): Define.
7165         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
7166         * tests/test-futimens.h (test_futimens): Likewise.
7167         * tests/test-lutimens.h (test_lutimens): Likewise.
7168         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7169         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7170
7171 2009-12-19  Bruno Haible  <bruno@clisp.org>
7172
7173         dprintf-posix: Check against memory leak fixed on 2009-12-15.
7174         * tests/test-dprintf-posix2.sh: New file.
7175         * tests/test-dprintf-posix2.c: New file.
7176         * modules/dprintf-posix-tests (Files): Add them.
7177         (configure.ac): Check for getrlimit and setrlimit.
7178         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7179
7180 2009-12-19  Bruno Haible  <bruno@clisp.org>
7181
7182         fprintf-posix: Check against memory leak fixed on 2009-12-15.
7183         * tests/test-fprintf-posix3.sh: New file.
7184         * tests/test-fprintf-posix3.c: New file.
7185         * modules/fprintf-posix-tests (Files): Add them.
7186         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7187
7188 2009-12-19  Eric Blake  <ebb9@byu.net>
7189
7190         dirfd: fix prototype
7191         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
7192         * lib/dirfd.c (dirfd): Likewise.
7193
7194         canonicalize: reduce memory usage
7195         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
7196         allocation to size.
7197         Reported by Solar Designer <solar@openwall.com>.
7198
7199 2009-12-19  Bruno Haible  <bruno@clisp.org>
7200
7201         New module attribute 'Applicability'.
7202         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
7203         * gnulib-tool: New option --extract-applicability.
7204         (func_usage): Document it.
7205         (sed_extract_prog): Recognize it.
7206         (func_get_applicability): New function.
7207         (func_import): Generalize handling of 'link-warning' module.
7208         * modules/link-warning (Applicability): New section.
7209         * modules/arg-nonnull (Applicability): New section.
7210         Repoted by Simon Josefsson <simon@josefsson.org>.
7211
7212 2009-12-19  Bruno Haible  <bruno@clisp.org>
7213
7214         fflush: tweak
7215         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
7216         * lib/fseeko.c (rpl_fseeko): Likewise.
7217
7218 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
7219
7220         * lib/gl_list.h: Fix typo in comment.
7221
7222 2009-12-16  Eric Blake  <ebb9@byu.net>
7223
7224         fcntl: use to simplify other modules
7225         * modules/cloexec (Depends-on): Add fcntl.
7226         * modules/fchdir (Depends-on): Likewise.
7227         * modules/fd-safer-flag (Depends-on): Likewise.
7228         * modules/unistd-safer (Depends-on): Likewise.
7229         * modules/dup3 (configure.ac): Set module indicator.
7230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7231         missing.
7232         * lib/fchdir.c (_gl_register_dup): Fix comment.
7233         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7234         * lib/dup-safer.c (dup_safer): Likewise.
7235         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7236         * lib/dup3.c (dup3): Likewise.
7237         * tests/test-fchdir.c (main): Enhance test.
7238         Fixes a dup_cloexec bug reported by Ondřej Vašík.
7239
7240         fcntl: port portions of fcntl to mingw
7241         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7242         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7243         replacement for mingw.
7244         * modules/fcntl (Description): Update.
7245         (Depends-on): Add dup2.
7246         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7247         * modules/fcntl-h (Makefile.am): Substitute it.
7248         * lib/fcntl.in.h (fcntl): Update declaration.
7249         (F_DUPFD, F_GETFD): New macros, when needed.
7250         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7251         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7252         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7253         we now guarantee.
7254
7255         fcntl: work around cygwin bug in F_DUPFD
7256         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7257         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7258         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7259         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7260         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7261
7262         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7263         * modules/fcntl (Files): List new files.
7264         (configure.ac): Run a test.
7265         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7266         * lib/fcntl.c (rpl_fcntl): Likewise.
7267         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7268         (gl_FCNTL_H): Always replace fcntl.h.
7269         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7270         * lib/fcntl.in.h (fcntl): Declare replacement.
7271         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7272         needed, plus a witness.
7273         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7274         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7275         * tests/test-fcntl.c: New file.
7276         * modules/fcntl-tests: Likewise.
7277
7278         binary-io: avoid potential compilation warning
7279         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7280         directives.
7281
7282         fflush: avoid compilation error on NetBSD
7283         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7284         between off_t and fpos_t, since the latter is sometimes a struct.
7285         * lib/fseeko.c (rpl_fseeko): Likewise.
7286         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7287
7288 2009-12-15  Eric Blake  <ebb9@byu.net>
7289
7290         fcntl-h, stdio, sys_ioctl: fix declarations
7291         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7292         function must not take arguments.
7293         * lib/sys_ioctl.in.h (ioctl): Likewise.
7294         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7295         (open): Add a link warning.
7296
7297 2009-12-15  Jim Meyering  <meyering@redhat.com>
7298
7299         areadlink, areadlink-with-size: relax license to LGPLv2+
7300         * modules/areadlink (License): Relax to LGPLv2+.
7301         * modules/areadlink-with-size (License): Likewise.
7302
7303 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7304             Bruno Haible  <bruno@clisp.org>
7305
7306         *printf: Fix memory leak.
7307         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7308         * lib/vfprintf.c (vfprintf): Likewise.
7309         * lib/dprintf.c (dprintf): Likewise.
7310         * lib/vdprintf.c (vdprintf): Likewise.
7311
7312 2009-12-14  Eric Blake  <ebb9@byu.net>
7313
7314         accept4: adjust module dependencies
7315         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7316
7317         utimens: one more try at avoiding compiler warning
7318         * lib/utimens.c (lutimens): Lower scope of result.
7319
7320 2009-12-13  Bruno Haible  <bruno@clisp.org>
7321
7322         Move the malloc checking from module 'list' to new module 'xlist'.
7323         * modules/xlist: New file.
7324         * lib/gl_xlist.h: New file.
7325         * lib/gl_xlist.c: New file.
7326         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7327         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7328         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7329         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7330         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7331         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7332         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7333         gl_sortedlist_nx_add): New declarations.
7334         (struct gl_list_implementation): Rename and change methods accordingly.
7335         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7336         (gl_list_nx_create): Renamed from gl_list_create.
7337         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7338         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7339         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7340         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7341         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7342         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7343         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7344         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7345         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7346         gl_list_create_empty.
7347         (gl_list_nx_create): Renamed from gl_list_create.
7348         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7349         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7350         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7351         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7352         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7353         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7354         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7355         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7356         * lib/gl_array_list.c: Don't include xalloc.h.
7357         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7358         NULL upon out-of-memory.
7359         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7360         out-of-memory.
7361         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7362         Change return type to 'int'.
7363         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7364         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7365         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7366         upon out-of-memory.
7367         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7368         upon out-of-memory.
7369         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7370         upon out-of-memory.
7371         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7372         upon out-of-memory.
7373         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7374         out-of-memory.
7375         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7376         Update.
7377         (gl_array_list_implementation): Update.
7378         * lib/gl_carray_list.c: Don't include xalloc.h.
7379         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7380         Return NULL upon out-of-memory.
7381         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7382         out-of-memory.
7383         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7384         Change return type to 'int'.
7385         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7386         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7387         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7388         upon out-of-memory.
7389         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7390         upon out-of-memory.
7391         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7392         out-of-memory.
7393         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7394         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7395         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7396         Update.
7397         (gl_carray_list_implementation): Update.
7398         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7399         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7400         gl_linked_create_empty. Return NULL upon out-of-memory.
7401         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7402         out-of-memory.
7403         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7404         Change return type to 'int'. Return -1 upon out-of-memory.
7405         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7406         out-of-memory.
7407         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7408         upon out-of-memory.
7409         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7410         upon out-of-memory.
7411         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7412         NULL upon out-of-memory.
7413         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7414         upon out-of-memory.
7415         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7416         out-of-memory.
7417         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7418         Update.
7419         * lib/gl_linked_list.c: Don't include xalloc.h.
7420         (gl_linked_list_implementation): Update.
7421         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7422         (add_to_bucket): Change return type to 'int'.
7423         (gl_linkedhash_list_implementation): Update.
7424         * lib/gl_anytree_list1.h (free_subtree): New function.
7425         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7426         gl_tree_create_empty. Return NULL upon out-of-memory.
7427         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7428         Change return type to 'int'. Return -1 upon out-of-memory.
7429         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7430         out-of-memory.
7431         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7432         (gl_tree_remove_node): New function, moved here from
7433         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7434         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7435         Update.
7436         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7437         malloc, not xmalloc. Return NULL upon out-of-memory.
7438         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7439         out-of-memory.
7440         (gl_tree_remove_node_from_tree): New function, extracted from
7441         gl_tree_remove_node.
7442         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7443         upon out-of-memory.
7444         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7445         out-of-memory.
7446         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7447         upon out-of-memory.
7448         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7449         upon out-of-memory.
7450         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7451         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7452         not xmalloc. Return NULL upon out-of-memory.
7453         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7454         out-of-memory.
7455         (gl_tree_remove_node_from_tree): New function, extracted from
7456         gl_tree_remove_node.
7457         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7458         upon out-of-memory.
7459         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7460         out-of-memory.
7461         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7462         upon out-of-memory.
7463         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7464         upon out-of-memory.
7465         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7466         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7467         gl_anytree_list1.h before gl_anyavltree_list2.h.
7468         (gl_avltree_list_implementation): Update.
7469         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7470         gl_anytree_list1.h before gl_anyavltree_list2.h.
7471         (gl_rbtree_list_implementation): Update.
7472         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7473         Change return type to 'int'. Return -1 upon out-of-memory. Use
7474         __builtin_expect.
7475         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7476         (gl_avltreehash_list_implementation): Update.
7477         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7478         (gl_rbtreehash_list_implementation): Update.
7479         * modules/array-list (Depends-on): Remove xalloc.
7480         * modules/carray-list (Depends-on): Likewise.
7481         * modules/linked-list (Depends-on): Likewise.
7482         * modules/linkedhash-list (Depends-on): Likewise.
7483         * modules/avltree-list (Depends-on): Likewise.
7484         * modules/rbtree-list (Depends-on): Likewise.
7485         * modules/avltreehash-list (Depends-on): Likewise.
7486         * modules/rbtreehash-list (Depends-on): Likewise.
7487
7488         * modules/xsublist: New file.
7489         * lib/gl_xsublist.h: New file.
7490         * lib/gl_xsublist.c: New file.
7491         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7492         (gl_sublist_nx_create): New declaration.
7493         * lib/gl_sublist.c: Don't include xalloc.h.
7494         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7495         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7496         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7497         Change return type to 'int'. Return -1 upon out-of-memory.
7498         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7499         upon out-of-memory.
7500         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7501         NULL upon out-of-memory.
7502         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7503         upon out-of-memory.
7504         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7505         NULL upon out-of-memory.
7506         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7507         NULL upon out-of-memory.
7508         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7509         upon out-of-memory.
7510         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7511         (gl_sublist_list_implementation): Update.
7512         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7513         upon out-of-memory.
7514         * modules/sublist (Depends-on): Remove xalloc.
7515
7516         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7517         * tests/test-carray_list.c: Likewise.
7518         * tests/test-linked_list.c: Likewise.
7519         * tests/test-linkedhash_list.c: Likewise.
7520         * tests/test-avltree_list.c: Likewise.
7521         * tests/test-rbtree_list.c: Likewise.
7522         * tests/test-avltreehash_list.c: Likewise.
7523         * tests/test-rbtreehash_list.c: Likewise.
7524         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7525         * modules/carray-list-tests (Makefile.am): Likewise.
7526         * modules/linked-list-tests (Makefile.am): Likewise.
7527         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7528         * modules/avltree-list-tests (Makefile.am): Likewise.
7529         * modules/rbtree-list-tests (Makefile.am): Likewise.
7530         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7531         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7532
7533         * NEWS: Mention the changes.
7534
7535         * lib/clean-temp.c: Include gl_xlist.h.
7536         * modules/clean-temp (Depends-on): Add xlist.
7537
7538         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7539         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7540
7541         * tests/test-array_oset.c: Include gl_xlist.h.
7542         * modules/array-oset-tests (Depends-on): Add xlist.
7543
7544         Reported by José E. Marchesi <jemarch@gnu.org>.
7545
7546 2009-12-13  Bruno Haible  <bruno@clisp.org>
7547
7548         Move the malloc checking from module 'oset' to new module 'xoset'.
7549         * modules/xoset: New file.
7550         * lib/gl_xoset.h: New file.
7551         * lib/gl_xoset.c: New file.
7552         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7553         declarations.
7554         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7555         (struct gl_oset_implementation): Rename and change methods accordingly.
7556         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7557         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7558         'int'. Mark as __warn_unused_result__.
7559         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7560         gl_oset_create_empty.
7561         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7562         'int'.
7563         * lib/gl_array_oset.c: Don't include xalloc.h.
7564         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7565         malloc, not xmalloc.
7566         (grow): Change return type to 'int'. Don't call xalloc_die.
7567         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7568         to 'int'.
7569         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7570         'int'.
7571         (gl_array_oset_implementation): Update.
7572         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7573         gl_tree_create_empty.
7574         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7575         'int'.
7576         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7577         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7578         xmalloc.
7579         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7580         not xmalloc.
7581         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7582         xmalloc.
7583         (gl_avltree_oset_implementation): Update.
7584         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7585         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7586         xmalloc.
7587         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7588         not xmalloc.
7589         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7590         xmalloc.
7591         (gl_rbtree_oset_implementation): Update.
7592         * modules/array-oset (Depends-on): Remove xalloc.
7593         * modules/avltree-oset (Depends-on): Likewise.
7594         * modules/rbtree-oset (Depends-on): Likewise.
7595         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7596         * tests/test-avltree_oset.c: Likewise.
7597         * tests/test-rbtree_oset.c: Likewise.
7598         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7599         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7600         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7601         * NEWS: Mention the change.
7602
7603 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7604
7605         maint.mk: allow a project to override release-prep commands
7606         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7607         commands into a new rule.
7608         (release-prep): New rule.
7609         (release-prep-hook): New overridable variable.
7610
7611 2009-12-13  Bruno Haible  <bruno@clisp.org>
7612
7613         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7614
7615 2009-12-13  Jim Meyering  <meyering@redhat.com>
7616
7617         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7618         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7619
7620 2009-12-12  Bruno Haible  <bruno@clisp.org>
7621
7622         duplocale: Tweak.
7623         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7624
7625 2009-12-12  Karl Berry  <karl@gnu.org>
7626
7627         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7628
7629 2009-12-12  Bruno Haible  <bruno@clisp.org>
7630
7631         * m4/po.m4: Undo incorrect untabification.
7632
7633 2009-12-12  Bruno Haible  <bruno@clisp.org>
7634
7635         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7636         * modules/c-strtod (Depends-on): Add locale.
7637         * modules/c-strtold (Depends-on): Likewise.
7638
7639 2009-12-12  Bruno Haible  <bruno@clisp.org>
7640
7641         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7642
7643 2009-12-11  Eric Blake  <ebb9@byu.net>
7644
7645         setenv: relax requirement in light of POSIX ruling
7646         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7647         not NULL.
7648         * tests/test-setenv.c (main): Relax test.
7649         * tests/test-unsetenv.c (main): Likewise.
7650         * doc/posix-functions/setenv.texi (setenv): Document this.
7651         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7652
7653 2009-12-11  Bruno Haible  <bruno@clisp.org>
7654
7655         New module 'fd-safer-flag'.
7656         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7657         * lib/dup-safer.c (dup_safer_flag): Remove function.
7658         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7659         * lib/fd-safer.c (fd_safer_flag): Remove function.
7660         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7661         * modules/cloexec (configure.ac): Drop indicator macro.
7662         * modules/fd-safer-flag: New file.
7663         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7664         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7665         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7666
7667 2009-12-11  Bruno Haible  <bruno@clisp.org>
7668
7669         Tests for module 'nl_langinfo'.
7670         * modules/nl_langinfo-tests: New file.
7671         * tests/test-nl_langinfo.sh: New file.
7672         * tests/test-nl_langinfo.c: New file.
7673
7674         New module 'nl_langinfo'.
7675         * lib/nl_langinfo.c: New file.
7676         * m4/nl_langinfo.m4: New file.
7677         * modules/nl_langinfo: New file.
7678         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7679
7680 2009-12-11  Bruno Haible  <bruno@clisp.org>
7681
7682         Tests for module 'langinfo'.
7683         * modules/langinfo-tests: New file.
7684         * tests/test-langinfo.c: New file.
7685
7686         New module 'langinfo'.
7687         * lib/langinfo.in.h: New file.
7688         * m4/langinfo_h.m4: New file.
7689         * modules/langinfo: New file.
7690         * doc/posix-headers/langinfo.texi: Mention the new module.
7691
7692 2009-12-11  Bruno Haible  <bruno@clisp.org>
7693
7694         * lib/config.charset: Untabify.
7695
7696 2009-12-11  Bruno Haible  <bruno@clisp.org>
7697
7698         * modules/unistd-safer (configure.ac): Drop indicator macro.
7699
7700 2009-12-11  Bruno Haible  <bruno@clisp.org>
7701
7702         Move pipe2-safer code to its own file.
7703         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7704         * lib/pipe-safer.c (pipe2_safer): Remove function.
7705         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7706         (Makefile.am): Add it to lib_SOURCES.
7707
7708 2009-12-10  Bruno Haible  <bruno@clisp.org>
7709
7710         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7711
7712 2009-12-10  Bruno Haible  <bruno@clisp.org>
7713
7714         Declare which arguments expect non-NULL values, for GCC and clang.
7715         * build-aux/arg-nonnull.h: New file.
7716         * modules/arg-nonnull: New file.
7717         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7718         (inet_ntop, inet_pton): Use it.
7719         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7720         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7721         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7722         (open, openat): Use it.
7723         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7724         (fnmatch): Use it.
7725         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7726         (getopt, getopt_long, getopt_long_only): Use it.
7727         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7728         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7729         Use it.
7730         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7731         (iconv_open): Use it.
7732         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7733         (strtoimax, strtoumax): Use it.
7734         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7735         (duplocale): Use it.
7736         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7737         (frexp, frexpl): Use it.
7738         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7739         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7740         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7741         (tsearch, tfind, tdelete, twalk): Use it.
7742         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7743         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7744         sigpending): Use it.
7745         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7746         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7747         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7748         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7749         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7750         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7751         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7752         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7753         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7754         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7755         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7756         Use it.
7757         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7758         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7759         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7760         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7761         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7762         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7763         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7764         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7765         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7766         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7767         strtoull, unsetenv): Use it.
7768         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7769         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7770         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7771         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7772         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7773         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7774         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7775         (strcasecmp, strncasecmp): Use it.
7776         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7777         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7778         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7779         rpl_setsockopt): Use it.
7780         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7781         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7782         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7783         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7784         (gettimeofday): Use it.
7785         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7786         (times): Use it.
7787         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7788         (uname): Use it.
7789         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7790         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7791         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7792         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7793         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7794         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7795         unlinkat, write): Use it.
7796         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7797         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7798         * lib/argv-iter.h: Include arg-nonnull.h.
7799         (_ATTRIBUTE_NONNULL_): Remove macro.
7800         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7801         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7802         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7803         optimization.
7804         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7805         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7806         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7807         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7808         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7809         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7810         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7811         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7812         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7813         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7814         * modules/dirent (Depends-on): Add arg-nonnull.
7815         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7816         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7817         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7818         * modules/fnmatch (Depends-on): Add arg-nonnull.
7819         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7820         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7821         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7822         * modules/glob (Depends-on): Add arg-nonnull.
7823         (Makefile.am): Insert arg-nonnull.h into glob.h.
7824         * modules/iconv_open (Depends-on): Add arg-nonnull.
7825         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7826         * modules/inttypes (Depends-on): Add arg-nonnull.
7827         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7828         * modules/locale (Depends-on): Add arg-nonnull.
7829         (Makefile.am): Insert arg-nonnull.h into locale.h.
7830         * modules/math (Depends-on): Add arg-nonnull.
7831         (Makefile.am): Insert arg-nonnull.h into math.h.
7832         * modules/netdb (Depends-on): Add arg-nonnull.
7833         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7834         * modules/search (Depends-on): Add arg-nonnull.
7835         (Makefile.am): Insert arg-nonnull.h into search.h.
7836         * modules/signal (Depends-on): Add arg-nonnull.
7837         (Makefile.am): Insert arg-nonnull.h into signal.h.
7838         * modules/spawn (Depends-on): Add arg-nonnull.
7839         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7840         * modules/stdio (Depends-on): Add arg-nonnull.
7841         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7842         * modules/stdlib (Depends-on): Add arg-nonnull.
7843         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7844         * modules/string (Depends-on): Add arg-nonnull.
7845         (Makefile.am): Insert arg-nonnull.h into string.h.
7846         * modules/strings (Depends-on): Add arg-nonnull.
7847         (Makefile.am): Insert arg-nonnull.h into strings.h.
7848         * modules/sys_socket (Depends-on): Add arg-nonnull.
7849         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7850         * modules/sys_stat (Depends-on): Add arg-nonnull.
7851         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7852         * modules/sys_time (Depends-on): Add arg-nonnull.
7853         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7854         * modules/sys_times (Depends-on): Add arg-nonnull.
7855         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7856         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7857         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7858         * modules/time (Depends-on): Add arg-nonnull.
7859         (Makefile.am): Insert arg-nonnull.h into time.h.
7860         * modules/unistd (Depends-on): Add arg-nonnull.
7861         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7862         * modules/wchar (Depends-on): Add arg-nonnull.
7863         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7864         * modules/argv-iter (Depends-on): Add arg-nonnull.
7865         * tests/test-canonicalize.c (null_ptr): New function.
7866         (main): Use it.
7867         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7868         (main): Use it.
7869         * tests/test-memmem.c (null_ptr): New function.
7870         (main): Use it.
7871         Reported by Jim Meyering.
7872
7873 2009-12-10  Bruno Haible  <bruno@clisp.org>
7874
7875         Use spaces for indentation, not tabs.
7876         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7877         * m4/*.m4: Untabify.
7878         * build-aux/*.h: Untabify.
7879         * tests/**/*.[hc]: Untabify.
7880         * README: New section "Indent with spaces, not TABs", based on
7881         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7882         * NEWS: Mention the change.
7883
7884 2009-12-10  Bruno Haible  <bruno@clisp.org>
7885
7886         pty test: Fix link error.
7887         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7888         test_pty_LDADD.
7889
7890 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7891
7892         * modules/pty: New file.
7893         * modules/pty-tests: New file.
7894         * m4/pty.m4: New file.
7895         * tests/test-pty.c: New file.
7896         * doc/glibc-headers/pty.texi: Modified.
7897         * doc/glibc-functions/forkpty.texi: Modified.
7898         * doc/glibc-functions/openpty.texi: Modified.
7899
7900 2009-12-10  Bruno Haible  <bruno@clisp.org>
7901
7902         Avoid syntax error in C++ mode.
7903         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7904
7905 2009-12-10  Bruno Haible  <bruno@clisp.org>
7906
7907         Use sed with option -e.
7908         * gnulib-tool (func_version, func_emit_copyright_notice,
7909         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7910         option -e to sed.
7911         * modules/link-warning (Makefile.am): Likewise.
7912
7913 2009-12-10  Jim Meyering  <meyering@redhat.com>
7914
7915         mgetgroups: do not write bytes beyond end of malloc'd buffer
7916         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7917         username, we call getgroups with a one-element-shorter buffer,
7918         but still told it the length was original, max_n_groups.
7919
7920 2009-12-09  Eric Blake  <ebb9@byu.net>
7921
7922         cloexec: relax license
7923         * modules/cloexec (Maintainer): Add myself.
7924         (License): Use LGPL, not GPL.
7925
7926         link-warning: optimize generation
7927         * modules/link-warning (Makefile.am): Reduce process usage.
7928
7929 2009-12-09  Bruno Haible  <bruno@clisp.org>
7930
7931         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7932         workaround was added on 2009-11-17.
7933
7934 2009-12-09  Jim Meyering  <meyering@redhat.com>
7935             Bruno Haible  <bruno@clisp.org>
7936
7937         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7938         * modules/link-warning (Makefile.am): Make the comment-removing sed
7939         command more robust in the face of bootstrap-prepended comment lines.
7940
7941 2009-12-09  Bruno Haible  <bruno@clisp.org>
7942
7943         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7944         most one group.
7945
7946 2009-12-09  Simon Josefsson <simon@josefsson.org>
7947             Bruno Haible  <bruno@clisp.org>
7948
7949         * build-aux/link-warning.h: Add copyright notice.
7950         * modules/link-warning (Makefile.am): Generate link-warning.h from
7951         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7952         * NEWS: Mention change in link-warning module.
7953         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7954         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7955         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7956         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7957         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7958         * modules/math (Makefile.am): Add dependency to math.h.
7959         * modules/search (Makefile.am): Add dependency to search.h.
7960         * modules/signal (Makefile.am): Add dependency to signal.h.
7961         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7962         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7963         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7964         * modules/string (Makefile.am): Add dependency to string.h.
7965         * modules/strings (Makefile.am): Add dependency to strings.h.
7966         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7967         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7968         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7969         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7970         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7971         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7972         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7973         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7974         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7975
7976 2009-12-09  Bruno Haible  <bruno@clisp.org>
7977
7978         fchdir: Optimize away rpl_fstat when possible.
7979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7980         REPLACE_OPEN_DIRECTORY.
7981         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7982
7983 2009-12-09  Bruno Haible  <bruno@clisp.org>
7984
7985         * lib/fchdir.c: Update comment.
7986
7987 2009-12-09  Bruno Haible  <bruno@clisp.org>
7988
7989         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7990
7991 2009-12-08  Eric Blake  <ebb9@byu.net>
7992
7993         fchdir: avoid memory leak on re-registration.
7994         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7995
7996 2009-12-08  Jim Meyering  <meyering@redhat.com>
7997
7998         init.sh: avoid Solaris 10 /bin/sh portability problem
7999         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
8000         sourced script:
8001           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
8002           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
8003           bar
8004         tests/init.sh relied on that, accepting a --set-path=DIR argument,
8005         and two tests used that idiom.
8006         * tests/init.sh: Update suggested usage comments.
8007         (path_prepend_): New function, to be used in place
8008         of the --src-path=DIR option.
8009         (setup_): Move PATH-prepending code into path_prepend_.
8010         * tests/test-pread.sh: Adapt to new usage.
8011         * tests/test-xalloc-die.sh: Likewise.
8012
8013 2009-12-08  Simon Josefsson  <simon@josefsson.org>
8014
8015         * doc/gnulib.texi (Glibc pty.h): Add.
8016         * doc/glibc-functions/forkpty.texi: Add.
8017         * doc/glibc-functions/openpty.texi: Add.
8018         Suggested by Bruno Haible.
8019
8020 2009-12-08  Eric Blake  <ebb9@byu.net>
8021
8022         fchdir: fix logic bugs
8023         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
8024         * tests/test-fchdir.c (main): Enhance test.
8025         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
8026         is in use.
8027
8028         dup2: fix logic bugs
8029         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
8030         REPLACE_DUP2 to decide when rpl_dup2 is needed.
8031         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
8032         exists.
8033         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
8034
8035 2009-12-07  Eric Blake  <ebb9@byu.net>
8036
8037         unlink: fix m4 detection
8038         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
8039
8040         unistd-safer: add unit test
8041         * modules/unistd-safer-tests: New file.
8042         * tests/test-dup-safer.c: Likewise.
8043         * tests/test-cloexec.c (setmode): Avoid compiler warning.
8044         * tests/test-dup2.c (setmode): Likewise.
8045         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
8046
8047         cloexec: preserve text vs. binary across dup_cloexec
8048         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
8049         mode.
8050         * modules/dup2-tests (Depends-on): Add binary-io.
8051         * modules/cloexec-tests (Depends-on): Likewise.
8052         * tests/test-dup2.c (setmode, is_mode): New helpers.
8053         (main): Add tests that translation mode is preserved.
8054         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
8055         Reported by Bruno Haible.
8056
8057         mgetgroups: reduce duplicate listings
8058         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
8059         resulting array.
8060         * tests/test-chown.h (test_chown): Simplify client.
8061         * tests/test-lchown.h (test_lchown): Likewise.
8062
8063 2009-12-06  Bruno Haible  <bruno@clisp.org>
8064
8065         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
8066         value.
8067
8068 2009-12-06  Bruno Haible  <bruno@clisp.org>
8069
8070         * lib/progname.c: Include stdio.h, stdlib.h.
8071         (set_program_name): Reject a NULL argument.
8072
8073 2009-12-05  Eric Blake  <ebb9@byu.net>
8074
8075         pipe2-safer: new module
8076         * modules/pipe2-safer: New file.
8077         * lib/unistd-safer.h (pipe2_safer): New prototype.
8078         * lib/unistd--.h (pipe2): New wrapper.
8079         * lib/pipe-safer.c (pipe2_safer): New function.
8080         * modules/pipe (Depends-on): Add pipe2-safer.
8081         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
8082
8083         stdlib-safer: preserve cloexec flag for mkostemp[s]
8084         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
8085         fd_safer_flag.
8086
8087         unistd-safer: allow preservation of cloexec status via flag
8088         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
8089         prototypes.
8090         * lib/dup-safer.c (dup_safer_flag): New function.
8091         * lib/fd-safer.c (fd_safer_flag): Likewise.
8092         * modules/cloexec (configure.ac): Set witness.
8093
8094         test-dup2: enhance test
8095         * modules/dup2-tests (Depends-on): Add cloexec.
8096         * tests/test-dup2.c (main): Enhance test.
8097
8098         cloexec: add dup_cloexec
8099         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
8100         header and comments.
8101         * lib/cloexec.c (set_cloexec_flag): Add comments.
8102         (dup_cloexec): New function, with mingw implementation borrowed
8103         from...
8104         * lib/w32spawn.h (dup_noinherit): ...here.
8105         * modules/execute (Depends-on): Add cloexec.
8106         * modules/pipe (Depends-on): Likewise.
8107         * modules/cloexec (Depends-on): Add dup2.
8108         * modules/cloexec-tests (Files): New file.
8109         * tests/test-cloexec.c: Likewise.
8110
8111         test-xalloc-die: fix test for mingw
8112         * modules/xalloc-die-tests (Files): Add tests/init.sh.
8113         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
8114         directory and .exe suffix off argv[0] output.
8115
8116         test-fseeko: fix test for mingw
8117         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
8118         than undefining fseek, so test will pass on mingw.
8119
8120 2009-12-05  Bruno Haible  <bruno@clisp.org>
8121
8122         * lib/progname.h (set_program_name): Clarify specification.
8123         * lib/progname.c (set_program_name): Likewise.
8124         Reported by Jim Meyering.
8125
8126 2009-12-05  Jim Meyering  <meyering@redhat.com>
8127
8128         maint.mk: backslash-escape parens in default regexp
8129         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
8130         backslash-escape the literal parentheses.
8131
8132         maint.mk: news-date-check: use grep -E
8133         * top/maint.mk (today): Define a Make variable, not a...
8134         (news-date-check): ...shell variable.
8135         (news-date-regexp): Use the Make variable.
8136         Use grep's -E option.  Change the failing diagnostic to mention
8137         the variable, $(news-date-regexp).
8138
8139 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
8140
8141         maintainer-makefile: allow customization of NEWS entry format
8142         * top/maint.mk (news-date-regexp): New overridable variable.
8143         (news-date-check): Use it.
8144
8145 2009-12-04  Eric Blake  <ebb9@byu.net>
8146
8147         mgetgroups: add xgetgroups, and avoid ENOSYS failures
8148         * lib/mgetgroups.h (xgetgroups): New prototype.
8149         * lib/mgetgroups.c (xgetgroups): New wrapper.
8150         (mgetgroups): Handle ENOSYS.
8151         * modules/mgetgroups (Depends-on): Add realloc.
8152         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
8153
8154         mgetgroups: avoid argument promotion issues with -1
8155         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
8156         for invalid gid_t.
8157         * tests/test-chown.h (getegid, test_chown): Likewise.
8158         * tests/test-lchown.h (getegid, test_lchown): Likewise.
8159
8160 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
8161
8162         exclude: Fix header file problems.
8163         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
8164
8165 2009-12-01  Jim Meyering  <meyering@redhat.com>
8166
8167         fts: fts_open: do not let an empty string cause immediate failure
8168         This is required in support of GNU rm, for which the command
8169         "rm A '' B" must process and remove both A and B, in spite of
8170         the empty string argument.
8171         * lib/fts.c (fts_open): Do not let the presence of an empty string
8172         cause fts_open to fail immediately.  Most fts-using tools must be
8173         able to process all arguments, in order, and can be expected to
8174         diagnose such arguments themselves.
8175
8176 2009-11-30  Eric Blake  <ebb9@byu.net>
8177
8178         utimens: fix compilation error
8179         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
8180         Declare variable at right scope.
8181
8182 2009-11-29  Jim Meyering  <meyering@redhat.com>
8183
8184         bootstrap: handle perl-5.11's changed --version output
8185         * build-aux/bootstrap (get_version): Handle perl separately,
8186         since perl-5.11's --version output is different.
8187
8188 2009-11-28  Jim Meyering  <meyering@redhat.com>
8189
8190         userspec: depend on the inttostr module, too
8191         * modules/userspec (Depends-on): Add inttostr.
8192
8193         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
8194         * lib/userspec.c (parse_with_separator): Do not accept a user ID
8195         number of MAXUID when it evaluates to (uid_t) -1.
8196         Likewise for group ID.  Reported by Matt McCutchen in
8197         <http://savannah.gnu.org/bugs/?28113>
8198
8199         userspec: reformat to use spaces, not TABs
8200         * lib/userspec.c: Expand TABs to spaces.
8201         Add Emacs' "indent-tabs-mode: nil" hint.
8202
8203 2009-11-27  Eric Blake  <ebb9@byu.net>
8204
8205         getopt-gnu: flush out another BSD bug
8206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
8207         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
8208         flush out BSD bug.
8209         * tests/test-getopt.h (test_getopt): End lists with NULL.
8210         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8211         (test_getopt_long_posix): Enhance test.
8212         * modules/getopt-posix-tests (Depends-on): Add stdbool.
8213         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
8214         getopt-gnu.
8215         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8216         Likewise.
8217
8218 2009-11-27  Simon Josefsson  <simon@josefsson.org>
8219
8220         * modules/idpriv-droptemp-tests (Notice): Fix text.
8221
8222 2009-11-27  Jim Meyering  <meyering@redhat.com>
8223
8224         test-xalloc-die: avoid spurious failure due to libtool argv difference
8225         In a libtool-enabled project, this test would fail due to a difference
8226         in the emitted program name, e.g.,
8227         -test-xalloc-die: memory exhausted
8228         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8229         Use program to avoid that.
8230         * modules/xalloc-die-tests (Depends-on): Add progname.
8231         * tests/test-xalloc-die.c: Include progname.h".
8232         (program_name): Remove decl.
8233         (main): Call set_program_name.
8234         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8235
8236 2009-11-26  Richard Jones  <rjones@redhat.com>
8237
8238         w32sock: leave win32 error in place.
8239         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8240
8241 2009-11-26  Eric Blake  <ebb9@byu.net>
8242
8243         init.sh: suggest to use skip_ and fail_ functions in comments
8244         * tests/init.sh: Add a sentence.
8245
8246 2009-11-25  Bruno Haible  <bruno@clisp.org>
8247
8248         init.sh: add documentation in comments
8249         * tests/init.sh: Add some developer and user documentation.
8250
8251 2009-11-26  Jim Meyering  <meyering@redhat.com>
8252
8253         init.sh: accommodate even those who specify bogus srcdir manually
8254         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8255         configure-time tests to be sanitized, so that there is no need to
8256         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8257         (with no double quotes) suffices.  However, since tests may be
8258         invoked manually, and since you may explicitly set srcdir to the
8259         name of a directory containing spaces, do quote its uses here.
8260         * tests/test-pread.sh: Likewise.
8261         Suggested by Bruno Haible.
8262
8263         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8264         * tests/test-pread.sh: Write no data into the pipe, because
8265         test-pread actually reads none.  This avoids a diagnostic,
8266         "bash: echo: write error: Broken pipe", that arises in the unusual
8267         event something is ignoring SIGPIPE, and might be interpreted
8268         as some sort of failure.  Reported by Bruno Haible.
8269
8270 2009-11-25  Jim Meyering  <meyering@redhat.com>
8271
8272         test-pread: cover failure with ESPIPE and EINVAL
8273         * tests/test-pread.c (main): Test for failure, too.
8274         * tests/test-pread.sh: Invoke with stdin on a pipe.
8275         Suggested by Eric Blake.
8276
8277         pread: improvement and fix
8278         * modules/pread (Depends-on): Depend on lseek, for portability to
8279         e.g., mingw.  Suggested by Eric Blake.
8280         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8281
8282         unistd.in.h: correct declaration of pread
8283         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8284         Reported by Richard W.M. Jones.
8285
8286         test-pread.sh: distribute the test script
8287         * modules/pread-tests (Files): Include test-pread.sh.
8288
8289         test-pread.sh: clean up
8290         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8291         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8292         That is unnecessary, since it's always ".".
8293         Suggestion from Eric Blake.
8294
8295         test-pread.sh: make executable
8296         * tests/test-pread.sh: Set executable bit.
8297         Reported by Eric Blake.
8298
8299         correct typo in test-pread.sh
8300         * tests/test-pread.sh: Add #! line.
8301
8302         test pread
8303         * tests/test-pread.c: New file.
8304         * tests/test-pread.sh: Likewise.
8305         * modules/pread-tests: Likewise.
8306
8307         pread: new module
8308         * modules/pread: New file.
8309         * lib/unistd.in.h (pread): Define/declare.
8310         * lib/pread.c (pread): New file.
8311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8312         * modules/unistd (Makefile.am): Substitute witnesses.
8313         * doc/posix-functions/pread.texi (pread): Update.
8314         * MODULES.html.sh: Add pread.
8315
8316 2009-11-25  Jim Meyering  <meyering@redhat.com>
8317
8318         tests/init.sh: new file to be used via most *.sh tests
8319         * tests/init.sh: New file.
8320
8321 2009-11-25  Eric Blake  <ebb9@byu.net>
8322
8323         utimens: work around older Linux failure with symlinks
8324         * lib/utimens.c (lutimensat_works_really): New variable.
8325         (fdutimens, lutimens): Use it to manage kernels that support
8326         nanosecond times on files, but not on symlinks.
8327         Reported by Ondřej Vašík.
8328
8329         utimes: fix configure grammar
8330         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8331
8332 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8333
8334         regex: Fix fastmap for multibyte character ranges.
8335         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8336         characters when a multibyte character range is included.
8337
8338 2009-11-22  Andy Wingo  <wingo@pobox.com>
8339
8340         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8341         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8342
8343 2009-11-24  Bruno Haible  <bruno@clisp.org>
8344
8345         doc: Most *_l functions exist in MacOS X 10.5.
8346         * doc/posix-functions/duplocale.texi: Update platforms list.
8347         * doc/posix-functions/freelocale.texi: Likewise.
8348         * doc/posix-functions/newlocale.texi: Likewise.
8349         * doc/posix-functions/uselocale.texi: Likewise.
8350         * doc/posix-functions/isalnum_l.texi: Likewise.
8351         * doc/posix-functions/isalpha_l.texi: Likewise.
8352         * doc/posix-functions/isblank_l.texi: Likewise.
8353         * doc/posix-functions/iscntrl_l.texi: Likewise.
8354         * doc/posix-functions/isdigit_l.texi: Likewise.
8355         * doc/posix-functions/isgraph_l.texi: Likewise.
8356         * doc/posix-functions/islower_l.texi: Likewise.
8357         * doc/posix-functions/isprint_l.texi: Likewise.
8358         * doc/posix-functions/ispunct_l.texi: Likewise.
8359         * doc/posix-functions/isspace_l.texi: Likewise.
8360         * doc/posix-functions/isupper_l.texi: Likewise.
8361         * doc/posix-functions/iswalnum_l.texi: Likewise.
8362         * doc/posix-functions/iswalpha_l.texi: Likewise.
8363         * doc/posix-functions/iswblank_l.texi: Likewise.
8364         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8365         * doc/posix-functions/iswctype_l.texi: Likewise.
8366         * doc/posix-functions/iswdigit_l.texi: Likewise.
8367         * doc/posix-functions/iswgraph_l.texi: Likewise.
8368         * doc/posix-functions/iswlower_l.texi: Likewise.
8369         * doc/posix-functions/iswprint_l.texi: Likewise.
8370         * doc/posix-functions/iswpunct_l.texi: Likewise.
8371         * doc/posix-functions/iswspace_l.texi: Likewise.
8372         * doc/posix-functions/iswupper_l.texi: Likewise.
8373         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8374         * doc/posix-functions/isxdigit_l.texi: Likewise.
8375         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8376         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8377         * doc/posix-functions/strcoll_l.texi: Likewise.
8378         * doc/posix-functions/strfmon_l.texi: Likewise.
8379         * doc/posix-functions/strftime_l.texi: Likewise.
8380         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8381         * doc/posix-functions/strxfrm_l.texi: Likewise.
8382         * doc/posix-functions/tolower_l.texi: Likewise.
8383         * doc/posix-functions/toupper_l.texi: Likewise.
8384         * doc/posix-functions/towctrans_l.texi: Likewise.
8385         * doc/posix-functions/towlower_l.texi: Likewise.
8386         * doc/posix-functions/towupper_l.texi: Likewise.
8387         * doc/posix-functions/wcscoll_l.texi: Likewise.
8388         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8389         * doc/posix-functions/wctrans_l.texi: Likewise.
8390         * doc/posix-functions/wctype_l.texi: Likewise.
8391         * doc/glibc-functions/strptime_l.texi: Likewise.
8392         * doc/glibc-functions/strtod_l.texi: Likewise.
8393         * doc/glibc-functions/strtof_l.texi: Likewise.
8394         * doc/glibc-functions/strtol_l.texi: Likewise.
8395         * doc/glibc-functions/strtold_l.texi: Likewise.
8396         * doc/glibc-functions/strtoll_l.texi: Likewise.
8397         * doc/glibc-functions/strtoul_l.texi: Likewise.
8398         * doc/glibc-functions/strtoull_l.texi: Likewise.
8399         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8400         * doc/glibc-functions/wcstod_l.texi: Likewise.
8401         * doc/glibc-functions/wcstof_l.texi: Likewise.
8402         * doc/glibc-functions/wcstol_l.texi: Likewise.
8403         * doc/glibc-functions/wcstold_l.texi: Likewise.
8404         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8405         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8406         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8407
8408 2009-11-24  Bruno Haible  <bruno@clisp.org>
8409
8410         duplocale: Fix logic bug.
8411         * lib/duplocale.c: Don't include <langinfo.h>.
8412         (_NL_LOCALE_NAME): Remove macro.
8413         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8414         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8415
8416 2009-11-23  Jim Meyering  <meyering@redhat.com>
8417
8418         test-update-copyright: don't hard-code /usr/bin/perl
8419         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8420         perl to print the current year.  Gilles Espinasse reported that
8421         the replaced use of perl was hard-coded as /usr/bin/perl.
8422
8423 2009-11-23  Bruno Haible  <bruno@clisp.org>
8424
8425         duplocale: Add support for glibc 2.3.x.
8426         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8427
8428 2009-11-22  Bruno Haible  <bruno@clisp.org>
8429
8430         vasnprintf: Tiny optimization.
8431         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8432         MacOS X.
8433
8434 2009-11-22  Bruno Haible  <bruno@clisp.org>
8435
8436         Tests for module 'duplocale'.
8437         * modules/duplocale-tests: New file.
8438         * tests/test-duplocale.c: New file.
8439
8440         New module 'duplocale'.
8441         * m4/duplocale.m4: New file.
8442         * lib/locale.in.h (duplocale): New declaration.
8443         * lib/duplocale.c: New file.
8444         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8445         gl_LOCALE_H_DEFAULTS): New macros.
8446         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8447         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8448         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8449         REPLACE_DUPLOCALE.
8450         * modules/duplocale: New file.
8451         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8452
8453 2009-11-22  Bruno Haible  <bruno@clisp.org>
8454
8455         * modules/locale-tests (configure.ac): Test for newlocale function.
8456         * tests/test-locale.c: When the system has extended locale functions,
8457         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8458
8459         locale: Make locale_t available when possible.
8460         * lib/locale.in.h: Include <xlocale.h> when it exists.
8461         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8462         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8463         * modules/locale (Depends-on): Add extensions.
8464         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8465         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8466
8467 2009-11-22  Bruno Haible  <bruno@clisp.org>
8468
8469         Add comments.
8470         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8471         invocation.
8472         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8473         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8474         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8475
8476 2009-11-22  Bruno Haible  <bruno@clisp.org>
8477
8478         error: account for the possibility of freopen (stdout).
8479         * lib/error.c: Include <unistd.h>.
8480         (flush_stdout): New function, extracted from error and error_at_line.
8481         Determine stdout's fd dynamically.
8482         (error, error_at_line): Invoke flush_stdout.
8483         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8484         * modules/error (Depends-on): Add unistd.
8485
8486 2009-11-22  Bruno Haible  <bruno@clisp.org>
8487
8488         diffseq: Add comment.
8489         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8490
8491 2009-11-22  Jim Meyering  <meyering@redhat.com>
8492
8493         c-stack: avoid defining an unused static function
8494         * lib/c-stack.c (find_stack_direction): Do not define this function
8495         when it will not be used.
8496
8497         diffseq: avoid spurious gcc warnings
8498         * lib/diffseq.h (IF_LINT2): Define.
8499         (compareseq): Use it to initialize two members of "part".
8500         This avoids two used-uninitialized warnings.
8501
8502 2009-11-21  Jim Meyering  <meyering@redhat.com>
8503
8504         c-stack: avoid "ignoring return value of `write'" warning
8505         * lib/c-stack.c: Include "ignore-value.h".
8506         (die): Explicitly ignore each write return value.
8507         * modules/c-stack (Depends-on): Add ignore-value.
8508
8509 2009-11-21  Bruno Haible  <bruno@clisp.org>
8510
8511         diffseq: reduce scope of variable 'best'.
8512         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8513         variable, earlier used for two different purposes.
8514
8515 2009-11-21  Jim Meyering  <meyering@redhat.com>
8516
8517         diffseq: remove useless assignment to "best"
8518         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8519         assignment.  At that point "best" is already guaranteed to be zero.
8520
8521 2009-11-20  Eric Blake  <ebb9@byu.net>
8522
8523         build: mention ftp redirector in release announcements
8524         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8525         values that used to come from cfg.mk; mention FTP redirect URL.
8526         * build-aux/announce-gen: Mention the mirror list.
8527         Suggested by Karl Berry.
8528
8529         nanosleep: improve port to mingw
8530         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8532         LIB_NANOSLEEP, but only when needed.
8533         * modules/select (Link): Document LIBSOCKET.
8534         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8535         enough.
8536
8537         nanosleep: work around cygwin bug
8538         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8539         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8540         bug.
8541         (getnow): Delete, not needed.
8542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8543         LIB_CLOCK_GETTIME.
8544         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8545         clock-time, gettime.
8546         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8547         bug.
8548         * modules/nanosleep-tests: New test.
8549         * tests/test-nanosleep.c: New file.
8550
8551         sleep: work around cygwin bug
8552         * lib/sleep.c (rpl_sleep): Work around the bug.
8553         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8554         (gl_PREREQ_SLEEP): Delete unused macro.
8555         * modules/sleep (Depends-on): Add verify.
8556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8557         * modules/unistd (Makefile.am): Substitute witness.
8558         * lib/unistd.in.h (sleep): Update prototype.
8559         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8560         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8561         * modules/sleep-tests (Depends-on): Check for alarm.
8562
8563 2009-11-20  Jim Meyering  <meyering@redhat.com>
8564
8565         maint.mk: improve sc_prohibit_magic_number_exit
8566         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8567         so it does not match uses like System.exit(1).
8568         Add comments showing how to correct all offenders.
8569
8570 2009-11-19  Eric Blake  <ebb9@byu.net>
8571
8572         xalloc-die-tests: add missing library
8573         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8574
8575         test-xvasprintf: silence compiler warnings
8576         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8577         empty string from gcc.
8578
8579 2009-11-19  Jim Meyering  <meyering@redhat.com>
8580
8581         xfreopen: new module, from coreutils
8582         * modules/xfreopen: New module.
8583         * lib/xfreopen.c: New file.
8584         * lib/xfreopen.h: New file.
8585         * MODULES.html.sh (File stream based Input/Output"): Add it.
8586
8587 2009-11-19  Eric Blake  <ebb9@byu.net>
8588
8589         manywarnings: depend on warnings
8590         * modules/manywarnings (Depends-on): Add warnings.
8591
8592         build: avoid compiler warnings
8593         * lib/select.c (rpl_select): Delete unused variable.
8594         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8595
8596 2009-11-18  Eric Blake  <ebb9@byu.net>
8597
8598         tests: avoid false negative with --with-packager
8599         * tests/test-version-etc.sh: Discard packager information.
8600         * tests/test-argp-version-etc-1.sh: Likewise.
8601         Reported by Mike Frysinger.
8602
8603         utimens: fix regression on Solaris
8604         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8605         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8606         can only change fd timestamps via futimesat.  Instead, use an
8607         additional witness macro to avoid BSD bug.
8608         Reported by Jim Meyering.
8609
8610 2009-11-17  Eric Blake  <ebb9@byu.net>
8611
8612         usleep: use it to simplify tests
8613         * modules/stat-time-tests (Depends-on): Add usleep.
8614         (configure.ac): Drop usleep check.
8615         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8616         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8617         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8618         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8619         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8620         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8621         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8622         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8623         Likewise.
8624         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8625         * tests/test-lchown.h (nap): Likewise.
8626         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8627         * tests/test-stat-time.c (nap): Likewise.
8628         * tests/test-utimens-common.h (nap): Update comments.
8629
8630         usleep: new module
8631         * modules/usleep: New file.
8632         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8633         * lib/usleep.c (usleep): Likewise.
8634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8635         * modules/unistd (Makefile.am): Substitute witnesses.
8636         * lib/unistd.in.h (usleep): Add declaration.
8637         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8638         * MODULES.html.sh (Date and time): Likewise.
8639         * modules/usleep-tests (Depends-on): New test.
8640         * tests/test-usleep.c: New file.
8641
8642         chown: work around OpenBSD bug
8643         * lib/chown.c (rpl_chown): Work around the bug.
8644         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8645         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8646         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8647         * modules/chown (Depends-on): Add stdbool.
8648         * modules/lchown (Depends-on): Likewise.
8649         * doc/posix-functions/chown.texi (chown): Document the bug.
8650         * doc/posix-functions/lchown.texi (lchown): Likewise.
8651         * tests/test-lchown.h (test_chown): Relax test.
8652
8653         mkstemp: avoid conflict with C++ keyword template
8654         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8655         * lib/mkostemp.c (mkostemp): Likewise.
8656         * lib/mkostemps.c (mkostemps): Likewise.
8657         * lib/mkstemp.c (mkstemp): Likewise.
8658         * lib/mkstemps.c (mkstemps): Likewise.
8659
8660         xalloc-die-tests: optimize
8661         * tests/test-xalloc-die.sh: Reduce number of processes.
8662
8663 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8664
8665         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8666         patch from ludo@gnu.org (Ludovic Courtès).
8667
8668 2009-11-17  Jim Meyering  <meyering@redhat.com>
8669
8670         version-etc: use proper license string
8671         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8672         * modules/version-etc-fsf: Likewise.
8673
8674 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8675
8676         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8677         printed to stdout.  Deal with EOL differences.
8678
8679 2009-11-17  Eric Blake  <ebb9@byu.net>
8680
8681         unsetenv: work around Solaris bug
8682         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8683         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8684         Reported by Jim Meyering.
8685
8686         vasnprintf: avoid compiler warnings
8687         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8688         variables.
8689         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8690
8691 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8692
8693         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8694         settings since xalloc-die is no longer the self test,
8695         xalloc-die.sh is.
8696
8697 2009-11-17  Jim Meyering  <meyering@redhat.com>
8698
8699         test-xalloc-die.sh: make the code agree with the commit log
8700         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8701         at the end, just in case you happen to have a test-xalloc-die
8702         program in some other PATH directory.
8703
8704         test-xalloc-die.sh: fix a portability bug
8705         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8706         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8707         Otherwise, argv[0] (as often seen in diagnostics) would be too
8708         system-dependent, sometimes with, and sometimes without the leading "./".
8709
8710         version-etc-fsf: relax license to LGPLv3+
8711         * modules/version-etc-fsf (License): Relax license.
8712
8713 2009-11-16  Eric Blake  <ebb9@byu.net>
8714
8715         xalloc-die-tests: avoid printing null pointer
8716         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8717         shell script.
8718         * tests/test-xalloc-die.c (program_name): Declare.
8719         * tests/test-xalloc-die.sh (tmpfiles): New file.
8720
8721         setenv, unsetenv: work around various bugs
8722         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8723         (setenv) [HAVE_SETENV]: Work around bugs.
8724         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8725         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8726         for bugs.
8727         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8728         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8730         * modules/stdlib (Makefile.am): Update substitutions.
8731         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8732         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8733         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8734         * modules/setenv-tests: New test.
8735         * modules/unsetenv-tests: Likewise.
8736         * tests/test-setenv.c: New file.
8737         * tests/test-unsetenv.c: Likewise.
8738
8739 2009-11-16  Jim Meyering  <meyering@redhat.com>
8740
8741         version-etc: relax license to LGPLv3+
8742         * modules/version-etc (License): Relax license.
8743
8744         better AC_REQUIRE expanded-before-required-warning avoidance
8745         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8746         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8747         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8748         which is no longer needed.
8749
8750 2009-11-16  Eric Blake  <ebb9@byu.net>
8751
8752         test-freading: clean up temporary file
8753         * tests/test-freading.c (main): Remove file on success, and use
8754         ASSERT more liberally.
8755         Reported by Jim Meyering.
8756
8757 2009-11-16  Jim Meyering  <meyering@redhat.com>
8758
8759         avoid new AC_REQUIRE expanded-before-required warnings
8760         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8761         merely using it.
8762         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8763         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8764
8765 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8766
8767         * tests/test-xalloc-die.c: New file.
8768         * modules/xalloc-die-tests: New file.
8769         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8770         XFAIL_TESTS so it can be appended by modules.
8771
8772 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8773
8774         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8775         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8776
8777 2009-11-14  Eric Blake  <ebb9@byu.net>
8778
8779         fnmatch: avoid compiler warning
8780         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8781         to silence compiler warning about mismatch signedness in ?:.
8782         Reported by Robert Millan.
8783
8784         intprops: add double-inclusion guard
8785         * lib/intprops.h: Allow idempotent includes.
8786         Suggested by Bruce Korb.
8787
8788         openat: detect Solaris fchownat bug
8789         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8790         penalizing glibc chownat when only lchownat is broken.
8791         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8792         trailing slash bugs.
8793         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8794         * modules/openat-tests (Files): Include more files.
8795         (Depends-on): Add mgetgroups, sleep, stat-time.
8796         (configure.ac): Add additional checks.
8797         (Makefile.am): Build new test.
8798         * tests/test-fchownat.c: New file.
8799
8800         lchown: detect Solaris and FreeBSD bug
8801         * lib/lchown.c (rpl_lchown): Work around bug.
8802         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8804         * modules/unistd (Makefile.am): Populate it.
8805         * lib/unistd.in.h (lchown): Update declaration.
8806         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8807         * modules/lchown-tests: New file.
8808         * tests/test-lchown.h (test_lchown): Likewise.
8809         * tests/test-lchown.c (main): Likewise.
8810
8811         chown: detect Solaris and FreeBSD bug
8812         * lib/chown.c (rpl_chown): Work around bug.
8813         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8814         (gl_PREREQ_CHOWN): Delete.
8815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8816         * modules/unistd (Makefile.am): Populate it.
8817         * lib/unistd.in.h (chown): Update declaration.
8818         * lib/lchown.c (chown): Update client.
8819         * modules/lchown (Depends-on): Add lstat.
8820         * doc/posix-functions/chown.texi (chown): Document the bug.
8821         * doc/posix-functions/getgroups.texi (getgroups): Document
8822         getgroups pitfall.
8823         * modules/chown-tests: New file.
8824         * tests/test-chown.h (test_chown): Likewise.
8825         * tests/test-chown.c (main): Likewise.
8826
8827 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8828
8829         gnulib-tool: correctly detect absence of m4 directories
8830         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8831
8832 2009-11-14  Jim Meyering  <meyering@redhat.com>
8833
8834         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8835         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8836
8837 2009-11-14  John W. Eaton  <jwe@gnu.org>
8838
8839         strftime.h: wrap funtion declaration in extern "C" block
8840         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8841
8842 2009-11-13  Eric Blake  <ebb9@byu.net>
8843
8844         getgroups: avoid compiler warning
8845         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8846
8847         getgroups: work around FreeBSD bug
8848         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8849         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8850         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8851         * tests/test-getgroups.c (main): Fix buffer overrun.
8852
8853         getgroups: avoid compilation failure
8854         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8855         * modules/getgroups (Depends-on): Add stdint.
8856
8857 2009-11-13  Jim Meyering  <meyering@redhat.com>
8858
8859         test-getgroups: avoid compilation failure
8860         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8861
8862 2009-11-13  Eric Blake  <ebb9@byu.net>
8863
8864         mgetgroups: new module, taken from coreutils
8865         * modules/mgetgroups: New file.
8866         * lib/mgetgroups.h: Likewise.
8867         * lib/mgetgroups.c (mgetgroups): Likewise.
8868         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8869         * MODULES.html.sh (Users and groups): Mention it.
8870
8871         getgroups: don't expose GETGROUPS_T to user
8872         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8873         an element at a time if GETGROUPS_T is wrong size.
8874         * lib/getugroups.h (getugroups): Change signature.
8875         * lib/unistd.in.h (getgroups): Likewise.
8876         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8877         signature needs fixing.
8878         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8879         AC_TYPE_GETGROUPS.
8880         * modules/group-member (Depends-on): Add getgroups.
8881         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8882         (group_member): Rely on getgroups replacement.
8883         * lib/getugroups.c (getugroups): Use gid_t.
8884         * tests/test-getgroups.c (main): Likewise.
8885         * NEWS: Mention the signature change.
8886         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8887         problem with signature.
8888         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8889         GETGROUPS_T is still useful for setgroups.
8890
8891         getgroups, getugroups: provide stubs for mingw
8892         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8893         * lib/getugroups.c (getugroups): Likewise.
8894         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8895         function.  Modernize replacement scheme.
8896         (gl_PREREQ_GETGROUPS): Delete.
8897         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8898         * modules/getgroups (configure.ac): Declare witness.
8899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8900         * modules/unistd (Depends-on): Substitute witness.
8901         * lib/unistd.in.h (getgroups): Declare replacement.
8902
8903         getgroups: avoid calling exit
8904         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8905         drop xalloc.
8906         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8907         dependencies.
8908         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8909         exiting, in the rare case of malloc failure.
8910
8911         getgroups: fix logic error
8912         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8913         has more than 20 groups.
8914         * modules/getgroups-tests: New test.
8915         * tests/test-getgroups.c: New file.
8916
8917 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8918
8919         * tests/test-base64.c: Improve.
8920
8921 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8922
8923         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8924         Blake <ebb9@byu.net>.
8925
8926 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8927
8928         * tests/test-xvasprintf.c: Add %s%s related checks.
8929
8930 2009-11-12  Eric Blake  <ebb9@byu.net>
8931
8932         version-etc: match standards.texi style
8933         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8934         and use <> only for URLs.
8935
8936 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8937
8938         fts: do not fail on a submount during traversal
8939         * lib/fts.c (fts_build): Read the stat info again after opening
8940         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8941         Original report at http://bugzilla.redhat.com/501848.
8942
8943 2009-11-12  Jim Meyering  <meyering@redhat.com>
8944
8945         bootstrap: sync from coreutils
8946         * build-aux/bootstrap (bootstrap_epilogue): New function.
8947         Use git_modules_config in one more place.  This make bootstrap's
8948         --gnulib-srcdir option more useful for testing.
8949
8950         bootstrap: generalize autoheader check
8951         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8952         AC_CONFIG_HEADERS.
8953
8954 2009-11-11  Eric Blake  <ebb9@byu.net>
8955
8956         mkfifoat: use new modules for Solaris and BSD bugs
8957         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8958         * lib/mkfifoat.c (mknodat): Split...
8959         * lib/mknodat.c (mknodat): ...into new file.
8960         * modules/mkfifoat (Files): Ship new file.
8961         (Depends-on): Add mkfifo, mknod.
8962         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8963         (Depends-on): Add symlink.
8964         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8965         redundant with test_mkfifo.h.
8966         (do_mkfifoat, do_mknodat): New helpers.
8967
8968         mknod: new module
8969         * modules/mknod: New file.
8970         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8971         * lib/mknod.c (mknod): Likewise.
8972         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8973         defaults.
8974         * modules/sys_stat (Makefile.am): Substitute them.
8975         * lib/sys_stat.in.h (mknod): Declare replacement.
8976         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8977         Document it.
8978         * doc/posix-functions/mknod.texi (mknod): Likewise.
8979         * modules/mknod-tests: New test.
8980         * tests/test-mknod.c: Likewise.
8981
8982         mkfifo: new module
8983         * modules/mkfifo: New file.
8984         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8985         * lib/mkfifo.c (mkfifo): Likewise.
8986         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8987         defaults.
8988         * modules/sys_stat (Makefile.am): Substitute them.
8989         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8990         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8991         Document it.
8992         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8993         * modules/mkfifo-tests: New test.
8994         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8995         from test-mkfifoat.c.
8996         * tests/test-mkfifo.c: New file.
8997
8998         readlink: detect FreeBSD bug
8999         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
9000         slash on symlink.
9001         * doc/posix-functions/readlink.texi (readlink): Document the bug.
9002         * tests/test-readlink.h (test_readlink): Enhance test.
9003
9004         symlink: detect FreeBSD bug
9005         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
9006         slash on symlink.
9007         * doc/posix-functions/symlink.texi (symlink): Document the bug.
9008         * tests/test-symlink.h (test_symlink): Enhance test.
9009
9010 2009-11-10  Eric Blake  <ebb9@byu.net>
9011
9012         link: detect FreeBSD bug
9013         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
9014         symlink.
9015         * doc/posix-functions/link.texi (link): Document the bug.
9016         * tests/test-link.h (test_link): Enhance test.
9017         * tests/test-linkat.c (main): Update caller.
9018
9019         unlink, remove: detect FreeBSD bug
9020         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
9021         slash on symlink.
9022         * doc/posix-functions/unlink.texi (unlink): Document the bug.
9023         * doc/posix-functions/remove.texi (remove): Likewise.
9024         * tests/test-unlink.h (test_unlink): Enhance test.
9025         * tests/test-remove.c (main): Likewise.
9026
9027 2009-11-09  Eric Blake  <ebb9@byu.net>
9028
9029         rename: detect FreeBSD bug
9030         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
9031         slash on symlink.
9032         * modules/renameat-tests (Depends-on): Add filenamecat.
9033         * tests/test-rename.h (test_rename): Allow one more errno.
9034         * tests/test-renameat.c (main): Likewise.
9035         * doc/posix-functions/rename.texi (rename): Document the bug.
9036
9037         open: detect FreeBSD bug
9038         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
9039         symlink.
9040         * doc/posix-functions/open.texi (open): Document the bug.
9041         * doc/posix-functions/utimes.texi (utimes): Likewise.
9042         * tests/test-open.h (test_open): Add parameters, and test symlink
9043         handling.
9044         * tests/test-open.c (main): Adjust caller.
9045         * tests/test-fcntl-safer.c (main): Likewise.
9046         * modules/open-tests (Depends-on): Add stdbool, symlink.
9047         * modules/fcntl-safer-tests (Depends-on): Likewise.
9048         * tests/test-openat.c (main): Add test-open tests.
9049
9050         stat: detect FreeBSD bug
9051         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
9052         symlink.
9053         * doc/posix-functions/stat.texi (stat): Document the bug.
9054         * tests/test-stat.h (test_stat_func): Add argument.
9055         * tests/test-stat.c (main): Adjust caller.
9056         * tests/test-fstatat.c (main): Likewise.
9057         * modules/stat-tests (Depends-on): Add stdbool, symlink.
9058         Reported by Jim Meyering.
9059
9060 2009-11-09  James Youngman  <jay@gnu.org>
9061
9062         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
9063         * lib/strftime.c: Correct placement of #include "ignore-value.h".
9064
9065 2009-11-08  Jim Meyering  <meyering@redhat.com>
9066
9067         utimens: remove invalid futimesat call
9068         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
9069         It used the file descriptor of the target file as the DIR_FD
9070         parameter and NULL as the file name.  That caused failure with
9071         errno == EFAULT on FreeBSD-8.0-rc2
9072
9073 2009-11-07  Eric Blake  <ebb9@byu.net>
9074
9075         fflush, freadseek: use fseeko, not fseek
9076         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9077         (clear_ungetc_buffer): Avoid potential problems on large files.
9078         * lib/freadseek.c (freadseek): Likewise.
9079         * modules/freadseek (Depends-on): Add fseeko.
9080         * modules/fseek (configure.ac): Set a witness.
9081         * tests/test-fflush.c (main): Use fseeko.
9082         * tests/test-fpurge.c (fseek): Disable link warning.
9083         * tests/test-freadable.c (fseek): Likewise.
9084         * tests/test-freading.c (fseek): Likewise.
9085         * tests/test-fseeko.c (fseek): Likewise.
9086         * tests/test-ftell.c (fseek): Likewise.
9087         * tests/test-ftello.c (fseek): Likewise.
9088         * tests/test-fwritable.c (fseek): Likewise.
9089         * tests/test-fwriting.c (fseek): Likewise.
9090
9091 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9092
9093         * modules/memchr (Depends-on): Drop getpagesize dependency.
9094
9095 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9096
9097         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
9098         Reported by Ludovic Courtès.
9099         * build-aux/pmccabe2html: Improve example usage.
9100         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
9101
9102 2009-11-06  Jim Meyering  <meyering@redhat.com>
9103
9104         do-release-commit-and-tag: New module.
9105         Automate the release-commit and tag process.
9106         * build-aux/do-release-commit-and-tag: New script, from coreutils.
9107         * modules/do-release-commit-and-tag: New file.
9108         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9109
9110 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9111
9112         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
9113         because test-select.c uses inet_pton.
9114
9115 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9116
9117         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
9118         GETADDRINFO_LIB.  Bump serial number.
9119         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
9120         Suggested by Eric Blake <ebb9@byu.net>.
9121
9122 2009-11-05  Eric Blake  <ebb9@byu.net>
9123
9124         strtod: detect darwin bug
9125         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
9126         Reported by Leo Davis.
9127
9128         freopen-safer: new module
9129         * modules/freopen-safer: New module.
9130         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
9131         * lib/freopen-safer.c (freopen_safer): New file.
9132         * lib/stdio-safer.h (freopen_safer): New declaration.
9133         * lib/stdio--.h (freopen): New override.
9134         * MODULES.html.sh (File stream based Input/Output): Mention it.
9135         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
9136         freopen-safer module.
9137         * doc/posix-functions/stderr.texi (stderr): Likewise.
9138         * doc/posix-functions/stdin.texi (stdin): Likewise.
9139         * doc/posix-functions/stdout.texi (stdout): Likewise.
9140         * modules/freopen-safer-tests: New test.
9141         * tests/test-reopen-safer.c: New file.
9142
9143 2009-11-05  Jim Meyering  <meyering@redhat.com>
9144
9145         maint.mk: Prohibit inclusion of "close-stream.h" without use.
9146         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9147
9148 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9149
9150         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
9151
9152 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9153
9154         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
9155
9156 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9157
9158         Fix link error.
9159         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9160         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9161
9162 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9163
9164         * tests/test-func.c: Also test value of __func__.
9165
9166 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9167
9168         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
9169         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
9170
9171 2009-11-05  Bruno Haible  <bruno@clisp.org>
9172
9173         Fix link error.
9174         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9175         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9176         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
9177
9178 2009-11-05  Bruno Haible  <bruno@clisp.org>
9179
9180         Tests for module 'inet_pton'.
9181         * modules/inet_pton-tests: New file.
9182         * tests/test-inet_pton.c: New file.
9183
9184 2009-11-05  Bruno Haible  <bruno@clisp.org>
9185
9186         Tests for module 'inet_ntop'.
9187         * modules/inet_ntop-tests: New file.
9188         * tests/test-inet_ntop.c: New file.
9189
9190 2009-11-04  Eric Blake  <ebb9@byu.net>
9191
9192         stdlib-safer: wrap all mkstemp variants
9193         * modules/mkostemp (configure.ac): Set witness.
9194         * modules/mkostemps (configure.ac): Likewise.
9195         * modules/mkstemps (configure.ac): Likewise.
9196         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
9197         (mkstemps_safer): Wrap more functions.
9198         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
9199         wrapping.
9200         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
9201         (mkstemps_safer): Implement the wrappers.
9202
9203         mkstemps, mkostemps: new modules
9204         * modules/mkostemps: New module.
9205         * modules/mkstemps: Likewise.
9206         * lib/mkostemps.c (mkostemps): New file.
9207         * lib/mkstemps.c (mkstemps): Likewise.
9208         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
9209         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
9210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
9211         * modules/stdlib (Makefile.am): Substitute them.
9212         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
9213         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
9214         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9215         * doc/gnulib.texi (Glibc stdlib.h): Include them.
9216         * MODULES.html.sh (File system functions): Mention them.
9217
9218         tempname: resync from glibc
9219         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
9220         same values for __GT_FILE as glibc.  Abort even when assertions
9221         are disabled.
9222         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9223         match its value otherwise.  Allow idempotent inclusion.
9224         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9225         * lib/mkostemp.c (mkostemp): Likewise.
9226         * lib/mkstemp.c (mkstemp): Likewise.
9227         * lib/tmpfile.c (tmpfile): Likewise.
9228         * NEWS: Document this.
9229
9230         utimens: fix use of futimens on older Linux
9231         * lib/utimens.c (fdutimens): Use updated, rather than original,
9232         timespec to avoid bug in older Linux kernel.
9233         Reported by Simon Josefsson.
9234
9235 2009-11-04  Bruno Haible  <bruno@clisp.org>
9236
9237         Make num_processors more flexible and consistent.
9238         * lib/nproc.h (enum nproc_query): New type.
9239         (num_processors): Add a 'query' argument.
9240         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9241         (num_processors): Add a 'query' argument. Test the value of the
9242         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9243         mingw, count the number of CPUs available for the current process.
9244         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9245         Check for sched_getaffinity and sched_getaffinity_np.
9246         * modules/nproc (Depends-on): Add c-ctype, extensions.
9247         * NEWS: Mention the change.
9248
9249 2009-11-03  Bruno Haible  <bruno@clisp.org>
9250
9251         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9252
9253 2009-11-03  Jim Meyering  <meyering@redhat.com>
9254
9255         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9256         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9257         if it is defined.
9258
9259 2009-11-02  Eric Blake  <ebb9@byu.net>
9260
9261         mktime, timegm: share common declaration
9262         * lib/mktime-internal.h: New file.
9263         * lib/mktime.c: Use it rather than open-coding a declaration.
9264         * lib/timegm.c: Likewise.
9265         * modules/mktime (Files): Ship it.
9266         * modules/timegm (Files): Likewise.
9267         Suggested by Bruno Haible.
9268
9269         test-update-copyright: update test to match script changes
9270         * tests/test-update-copyright.sh: Avoid hard-coding perl
9271         location.  Don't update *.bak created by earlier runs.
9272
9273 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9274             Simon Josefsson  <simon@josefsson.org>
9275             Bruno Haible  <bruno@clisp.org>
9276
9277         Fix link error on Solaris 8.
9278         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9279         also in libnsl. Define also INET_PTON_LIB.
9280         * modules/inet_pton (Link): New section.
9281
9282 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9283             Bruno Haible  <bruno@clisp.org>
9284
9285         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9286         * modules/inet_ntop (Link): New section.
9287         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9288
9289 2009-11-02  Eric Blake  <ebb9@byu.net>
9290
9291         maint: avoid compiler warnings in m4 macros
9292         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9293         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9294
9295 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9296
9297         * m4/pmccabe2html.m4: Remove file.
9298         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9299         function.  Change maintainer.
9300         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9301         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9302         Courtès).
9303
9304 2009-10-31  Eric Blake  <ebb9@byu.net>
9305
9306         fseeko: fix m4 regression
9307         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9308         regression from 2009-10-27.
9309         Reported by Ralf Wildenhues.
9310
9311 2009-10-31  Jim Meyering  <meyering@redhat.com>
9312
9313         inttostr: aesthetics and improved (compile-time) safety
9314         Define inttype_is_signed rather than inttype_is_unsigned,
9315         since the sole use is via "#if inttype_is_signed".
9316         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9317         inttype_is_unsigned.
9318         * lib/offtostr.c (inttype_is_signed): Likewise.
9319         * lib/uinttostr.c (inttype_is_signed): Likewise.
9320         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9321         * lib/inttostr.c (inttostr): Use verify to cross-check the
9322         inttype_is_signed value and the signedness of the actual type.
9323         * modules/inttostr (Depends-on): Add verify.
9324
9325 2009-10-30  Eric Blake  <ebb9@byu.net>
9326
9327         build: avoid compiler warnings
9328         * lib/fchmodat.c (lchmod): Mark unused variables.
9329         * lib/getopt.c (_getopt_initialize): Likewise.
9330         * lib/mktime.c (__mktime_internal): Provide prototype.
9331         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9332         older gcc that do not understand #pragma GCC diagnostic.
9333         * lib/uinttostr.c (inttype_is_unsigned): Define.
9334         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9335
9336 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9337
9338         stat: fix compilation on AIX
9339         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9340         only see struct stat64.
9341
9342 2009-10-30  Eric Blake  <ebb9@byu.net>
9343
9344         exclude: make more robust
9345         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9346         rather than masking a coding bug.
9347         Suggested by Bruno Haible.
9348
9349 2009-10-30  Jim Meyering  <meyering@redhat.com>
9350
9351         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9352         Rather than putting #!/usr/bin/perl on the first line,
9353         start with a variant of what's recommended by "man perlrun" that
9354         invokes the first "perl" program from your shell's search path.
9355         * build-aux/gitlog-to-changelog: Replace #!... as above.
9356         Add a "Local Variables" perl mode setting.
9357         Prompted by a patch from Ludovic Courtès.
9358         Improved by Eric Blake.
9359         * build-aux/useless-if-before-free: Likewise.
9360         * build-aux/announce-gen: Likewise.
9361         * build-aux/update-copyright: Likewise.
9362
9363 2009-10-29  Eric Blake  <ebb9@byu.net>
9364
9365         filenamecat-lgpl: adjust clients
9366         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9367         filenamecat.
9368         * modules/renameat (Depends-on): Likewise.
9369
9370         filenamecat: split into filenamecat-lgpl
9371         * modules/filenamecat-lgpl: New module.
9372         * modules/filenamecat (Files): Move library-safe files into
9373         filenamecat-lgpl.
9374         (Depends-on): Add filenamecat-lgpl.
9375         (configure.ac): Declare witness.
9376         * lib/filenamecat.h (file_name_concat): Only declare when using
9377         GPL module.
9378         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9379         Move...
9380         * lib/filenamecat-lgpl.c: ...into new file.
9381         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9382         (gl_FILE_NAME_CONCAT): Use it.
9383         * MODULES.html.sh (File system functions): Mention new module.
9384
9385         argp: avoid memory leak
9386         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9387         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9388         base_name, since the latter malloc()s and can call exit().
9389         Leak introduced 2006-07-03.
9390
9391         dirname-lgpl: adjust clients that don't need full dirname
9392         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9393         * modules/filenamecat (Depends-on): Likewise.
9394         * modules/linkat (Depends-on): Likewise.
9395         * modules/mkancesdirs (Depends-on): Likewise.
9396         * modules/mkdir (Depends-on): Likewise.
9397         * modules/openat (Depends-on): Likewise.
9398         * modules/savewd (Depends-on): Likewise.
9399         * modules/rename (Depends-on): Likewise.
9400         (License): Relax license.
9401         * modules/mkdir-tests (Depends-on): Drop progname.
9402         (Makefile.am): Delete unneeded LDADD.
9403         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9404
9405         dirname: split into dirname-lgpl
9406         * modules/dirname-lgpl: New module.
9407         * modules/dirname (Files): Move library-safe files into
9408         dirname-lgpl.
9409         (Depends-on): Add dirname-lgpl.
9410         (configure.ac): Declare witness.
9411         * modules/double-slash-root (License): Relax license.
9412         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9413         module.
9414         * lib/dirname.c (dir_len, mdir_name): Move...
9415         * lib/dirname-lgpl.c: ...into new file.
9416         * lib/basename.c (last_component, base_len): Move...
9417         * lib/basename-lgpl.c: ...into new file.
9418         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9419         (gl_DIRNAME): Use it.
9420         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9421         Mention new module.
9422         * modules/dirname-tests (Depends-on): Add progname.
9423         * tests/test-dirname.c (program_name): Delete.
9424
9425         mkdir: make safe for libraries
9426         * modules/mkdir (Depends-on): Drop xalloc.
9427         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9428         exit.
9429
9430         tests: avoid some compiler warnings
9431         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9432         literals.
9433         * tests/test-memchr.c (main): Avoid type mismatch.
9434         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9435         * tests/test-base64.c (main): Likewise.
9436         * tests/test-getdelim.c (main): Likewise.
9437         * tests/test-gethostname.c (main): Likewise.
9438         * tests/test-getline.c (main): Likewise.
9439         * tests/test-netinet_in.c (main): Likewise.
9440         * tests/test-select.c (open_server_socket, main): Likewise.
9441         * tests/test-select-stdin.c (main): Likewise.
9442         * tests/test-sockets.c (main): Likewise.
9443         * tests/test-strsignal.c (main): Likewise.
9444         * tests/test-sys_select.c (main): Likewise.
9445         * tests/test-sys_socket.c (main): Likewise.
9446         * tests/test-u64.c (main): Likewise.
9447         * tests/test-xfprintf-posix.c (main): Likewise.
9448         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9449
9450         sockets: avoid compiler warning
9451         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9452
9453         maint: detect usage(1) and other suspicious exits
9454         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9455
9456 2009-10-29  Jim Meyering  <meyering@redhat.com>
9457
9458         timespec: long-to-int truncation could make timespec_cmp malfunction
9459         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9460         a multiple of 2^32 nanoseconds as no difference.
9461
9462 2009-10-28  Jim Meyering  <meyering@redhat.com>
9463
9464         fprintftime: wrap macro code argument in "do {...} while(0)"
9465         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9466         cpy macro must be a statement that can be followed by a semicolon.
9467         Now that the else clause contains a comment and is hence longer
9468         than one line, I require curly braces.  That in turn requires
9469         that we wrap this code block in the standard do...while(0).
9470
9471         fprintftime: remove stray semicolon from previous change
9472         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9473
9474         fprintftime: avoid a warning about ignored fwrite return value
9475         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9476         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9477         that is unsafe.
9478         * modules/fprintftime (Depends-on): Add ignore-value.
9479
9480         exclude: avoid an unwarranted warning
9481         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9482
9483 2009-10-27  Eric Blake  <ebb9@byu.net>
9484
9485         fseek: avoid compilation failure when fflush is replaced
9486         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9487         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9488         module is in use.
9489         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9490         module is not in use; since REPLACE_FSEEK worked otherwise.
9491         (GNULIB_FTELLO): Likewise for ftell.
9492         Reported by Ian Beckwith and others.
9493
9494 2009-10-27  Bruno Haible  <bruno@clisp.org>
9495
9496         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9497         Reported by Jim Meyering.
9498
9499 2009-10-27  Jim Meyering  <jim@meyering.net>
9500             Bruno Haible  <bruno@clisp.org>
9501
9502         Avoid warning despite dropping the return value of fwrite.
9503         * lib/unicodeio.c: Include ignore-value.h.
9504         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9505         * modules/unicodeio (Depends-on): Add ignore-value.
9506
9507 2009-10-26  Eric Blake  <ebb9@byu.net>
9508
9509         areadlinkat: fix fallback path
9510         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9511         pointer and zero.
9512
9513 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9514
9515         Use a better IO block size for modern systems
9516         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9517         * lib/md2.c: Likewise.
9518         * lib/md4.c: Likewise.
9519         * lib/md5.c: Likewise.
9520         * lib/sha1.c: Likewise.
9521         * lib/sha256.c: Likewise.
9522         * lib/sha512.c: Likewise.
9523
9524 2009-10-22  Eric Blake  <ebb9@byu.net>
9525
9526         tests: avoid several compiler warnings
9527         * tests/test-getcwd.c (main): Avoid buffer underflow.
9528         * tests/test-getdate.c (main): String literals are not safe with
9529         putenv, so use setenv.  Declare unused argument.
9530         * modules/getdate-tests (Depends-on): Add setenv.
9531         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9532         problems with string literals in char *.
9533         * tests/test-hash.c (main): Avoid shadowing declaration.
9534         (insert_new): Treat string literals as char const *.
9535         * tests/test-getopt.h (test_getopt): Likewise.
9536         (getopt_loop): Alter types to minimize casting elsewhere.
9537         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9538         (test_getopt_long_posix): Likewise.
9539         (do_getopt_long): Add wrapper to minimize casting.
9540         * tests/test-atexit.c (clear_temp_file): Use void.
9541         * tests/test-areadlink-with-size.c (main): Declare unused
9542         arguments.
9543         * tests/test-areadlink.c (main): Likewise.
9544         * tests/test-areadlinkat-with-size.c (main): Likewise.
9545         * tests/test-areadlinkat.c (main): Likewise.
9546         * tests/test-canonicalize-lgpl.c (main): Likewise.
9547         * tests/test-canonicalize.c (main): Likewise.
9548         * tests/test-dirent-safer.c (main): Likewise.
9549         * tests/test-dirname.c (main): Likewise.
9550         * tests/test-dup2.c (main): Likewise.
9551         * tests/test-fchdir.c (main): Likewise.
9552         * tests/test-fcntl-h.c (main): Likewise.
9553         * tests/test-fcntl-safer.c (main): Likewise.
9554         * tests/test-fdopendir.c (main): Likewise.
9555         * tests/test-fdutimensat.c (main): Likewise.
9556         * tests/test-fflush.c (main): Likewise.
9557         * tests/test-filenamecat.c (main): Likewise.
9558         * tests/test-filevercmp.c (main): Likewise.
9559         * tests/test-fopen-safer.c (main): Likewise.
9560         * tests/test-fopen.c (main): Likewise.
9561         * tests/test-fpending.c (main): Likewise.
9562         * tests/test-fpurge.c (main): Likewise.
9563         * tests/test-freading.c (main): Likewise.
9564         * tests/test-fstatat.c (main): Likewise.
9565         * tests/test-fsync.c (main): Likewise.
9566         * tests/test-futimens.c (main): Likewise.
9567         * tests/test-getndelim2.c (main): Likewise.
9568         * tests/test-gettimeofday.c (main): Likewise.
9569         * tests/test-getopt.c (main): Likewise.
9570         * tests/test-i-ring.c (main): Likewise.
9571         * tests/test-inttypes.c (main): Likewise.
9572         * tests/test-link.c (main): Likewise.
9573         * tests/test-lstat.c (main): Likewise.
9574         * tests/test-math.c (main): Likewise.
9575         * tests/test-md5.c (main): Likewise.
9576         * tests/test-memchr2.c (main): Likewise.
9577         * tests/test-memrchr.c (main): Likewise.
9578         * tests/test-mkdir.c (main): Likewise.
9579         * tests/test-mkdirat.c (main): Likewise.
9580         * tests/test-mkfifoat.c (main): Likewise.
9581         * tests/test-open.c (main): Likewise.
9582         * tests/test-openat-safer.c (main): Likewise.
9583         * tests/test-openat.c (main): Likewise.
9584         * tests/test-quotearg.c (main): Likewise.
9585         * tests/test-rawmemchr.c (main): Likewise.
9586         * tests/test-readlink.c (main): Likewise.
9587         * tests/test-remove.c (main): Likewise.
9588         * tests/test-rename.c (main): Likewise.
9589         * tests/test-renameat.c (main): Likewise.
9590         * tests/test-rmdir.c (main): Likewise.
9591         * tests/test-sha1.c (main): Likewise.
9592         * tests/test-signal.c (main): Likewise.
9593         * tests/test-sigaction.c (main): Likewise.
9594         * tests/test-stat.c (main): Likewise.
9595         * tests/test-stat-time.c (main): Likewise.
9596         * tests/test-stddef.c (main): Likewise.
9597         * tests/test-stdint.c (main): Likewise.
9598         * tests/test-stdio.c (main): Likewise.
9599         * tests/test-stdlib.c (main): Likewise.
9600         * tests/test-strchrnul.c (main): Likewise.
9601         * tests/test-strerror.c (main): Likewise.
9602         * tests/test-string.c (main): Likewise.
9603         * tests/test-strtod.c (main): Likewise.
9604         * tests/test-strverscmp.c (main): Likewise.
9605         * tests/test-symlink.c (main): Likewise.
9606         * tests/test-symlinkat.c (main): Likewise.
9607         * tests/test-sys_stat.c (main): Likewise.
9608         * tests/test-sys_time.c (main): Likewise.
9609         * tests/test-time.c (main): Likewise.
9610         * tests/test-unistd.c (main): Likewise.
9611         * tests/test-unlink.c (main): Likewise.
9612         * tests/test-unlinkat.c (main): Likewise.
9613         * tests/test-utimens.c (main): Likewise.
9614         * tests/test-utimensat.c (main): Likewise.
9615         * tests/test-version-etc.c (main): Likewise.
9616         * tests/test-wchar.c (main): Likewise.
9617         * tests/test-wctype.c (main): Likewise.
9618         * tests/test-xprintf-posix.c (main): Likewise.
9619         * tests/test-posixtm.c (main): Likewise.
9620         (STREQ): Delete unused macro.
9621         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9622         shadowed variables.
9623         * tests/test-memchr.c (main): Likewise.
9624
9625 2009-10-21  Eric Blake  <ebb9@byu.net>
9626
9627         areadlinkat: avoid failure on older glibc
9628         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9629         rather than mis-comparing 0 against FUNC_RESULT of char*.
9630
9631 2009-10-21  Bruno Haible  <bruno@clisp.org>
9632
9633         * modules/stpncpy (License): Relicense under LGPLv2+.
9634         Reported by David Lutterkort <lutter@redhat.com>.
9635
9636 2009-10-20  Eric Blake  <ebb9@byu.net>
9637
9638         utimensat: work around Solaris 9 bug
9639         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9640         has trailing slash bugs.
9641         * tests/test-lutimens.h (test_lutimens): Enhance test.
9642         * tests/test-utimens.h (test_utimens): Likewise.
9643         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9644         * doc/posix-functions/utimes.texi (utimes): Likewise.
9645         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9646         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9647         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9648         * doc/posix-functions/futimens.texi (futimens): Likewise.
9649
9650         fdutimensat: new module
9651         * modules/fdutimensat: New file.
9652         * lib/fdutimensat.c (fdutimensat): Likewise.
9653         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9654         * MODULES.html.sh (File system functions): Mention module.
9655         * modules/fdutimensat-tests: New test.
9656         * tests/test-fdutimensat.c: Likewise.
9657
9658         doc: regenerate INSTALL
9659         * doc/INSTALL: Reflect recent autoconf update.
9660         * doc/INSTALL.ISO: Likewise.
9661         * doc/INSTALL.UTF-8: Likewise.
9662
9663 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9664
9665         acl: warn if ACL support is not detected
9666         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9667
9668 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9669
9670         * lib/nproc.h: Add extern "C" block for C++.
9671
9672 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9673             Bruno Haible  <bruno@clisp.org>
9674
9675         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9676         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9677         * doc/posix-functions/isalpha.texi: Likewise.
9678         * doc/posix-functions/isblank.texi: Likewise.
9679         * doc/posix-functions/iscntrl.texi: Likewise.
9680         * doc/posix-functions/isdigit.texi: Likewise.
9681         * doc/posix-functions/isgraph.texi: Likewise.
9682         * doc/posix-functions/islower.texi: Likewise.
9683         * doc/posix-functions/isprint.texi: Likewise.
9684         * doc/posix-functions/ispunct.texi: Likewise.
9685         * doc/posix-functions/isspace.texi: Likewise.
9686         * doc/posix-functions/isupper.texi: Likewise.
9687         * doc/posix-functions/isxdigit.texi: Likewise.
9688
9689 2009-10-18  Bruno Haible  <bruno@clisp.org>
9690
9691         Tests for module 'isblank'.
9692         * modules/isblank-tests: New file.
9693         * tests/test-isblank.c: New file.
9694
9695         New module 'isblank'.
9696         * lib/isblank.c: New file.
9697         * m4/isblank.m4: New file.
9698         * modules/isblank: New file.
9699         * doc/posix-functions/isblank.texi: Mention the new module.
9700
9701 2009-10-18  Bruno Haible  <bruno@clisp.org>
9702
9703         New module 'ctype'.
9704         * lib/ctype.in.h: New file.
9705         * m4/ctype.m4: New file.
9706         * modules/ctype: New file.
9707         * doc/posix-headers/ctype.texi: Mention the new module.
9708
9709 2009-10-18  Jim Meyering  <meyering@redhat.com>
9710
9711         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9712         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9713         right after its initialization, rather than farther down.
9714         Keeping these in close proximity makes it easier to ensure
9715         that each such variable is initialized.  E.g.,
9716
9717             LIB_CLOCK_GETTIME=
9718             AC_SUBST([LIB_CLOCK_GETTIME])
9719
9720         This change also increments these serial numbers.
9721         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9722         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9724
9725 2009-10-18  Bruno Haible  <bruno@clisp.org>
9726
9727         Don't let environment variables perturb build.
9728         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9729         (gl_PREREQ_GETHRXTIME): ... not here.
9730
9731 2009-10-18  Bruno Haible  <bruno@clisp.org>
9732
9733         Avoid symlink attack in localcharset module.
9734         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9735         (O_NOFOLLOW): Define fallback.
9736         (get_charset_aliases): Don't open the file if it is a symbolic link.
9737         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9738         gl_FCNTL_H.
9739         (gl_FCNTL_H): Require it.
9740         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9741         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9742         Reported by Fergal Glynn <fglynn@veracode.com>.
9743
9744 2009-10-18  Bruno Haible  <bruno@clisp.org>
9745
9746         Implement nproc for mingw.
9747         * lib/nproc.c: Include <windows.h>
9748         (num_processors): On native Windows platforms, try GetSystemInfo.
9749
9750 2009-10-18  Bruno Haible  <bruno@clisp.org>
9751
9752         Implement nproc for IRIX.
9753         * lib/nproc.c: Include <sys/sysmp.h>.
9754         (num_processors): On IRIX systems, try sysmp.
9755         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9756
9757 2009-10-18  Bruno Haible  <bruno@clisp.org>
9758
9759         Implement nproc for HP-UX.
9760         * lib/nproc.c: Include <sys/pstat.h>
9761         (num_processors): On HP-UX systems, try pstat_getdynamic.
9762         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9763         pstat_getdynamic.
9764
9765 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9766             Bruno Haible  <bruno@clisp.org>
9767
9768         Implement nproc for NetBSD, OpenBSD.
9769         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9770         (ARRAY_SIZE): New macro.
9771         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9772         * m4/nproc.m4: New file.
9773         * modules/nproc (Files): Add m4/nproc.m4.
9774         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9775         (Makefile.am): Instead, augment lib_SOURCES.
9776
9777 2009-10-18  Bruno Haible  <bruno@clisp.org>
9778
9779         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9780         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9781         sys/param.h.
9782
9783 2009-10-16  Eric Blake  <ebb9@byu.net>
9784
9785         utimensat: new module
9786         * modules/utimensat: New file.
9787         * lib/utimensat.c (utimensat): Likewise.
9788         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9789         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9790         so we can work around Linux bugs.
9791         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9792         * modules/sys_stat (Makefile.am): Substitute them.
9793         * lib/sys_stat.in.h (utimensat): Declare it.
9794         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9795         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9796         * modules/utimensat-tests: New test.
9797         * tests/test-utimensat.c: Likewise.
9798
9799         utimens: let lutimens work on non-symlinks
9800         * lib/utimens.c (lutimens): Fall back to utimens rather than
9801         failing with ENOSYS, when file is not a symlink.
9802         (utimens): Reduce redirection.
9803         * tests/test-lutimens.h (test_lutimens): Update test to cover
9804         non-symlinks.
9805         * tests/test-utimens.h (test_utimens): Update test to cover
9806         symlinks.
9807         * tests/test-utimens.c (main): Update caller.
9808
9809         utimens: cache whether utimensat syscall works
9810         * lib/utimens.c (utimensat_works_really): New cache variable.
9811         (fdutimens, lutimens): Use it to avoid failing syscall.
9812
9813         test-stat-time, test-utimens: improve portability
9814         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9815         ext4 on alpha, and for cygwin.
9816         * tests/test-utimens-common.h: New file.
9817         (nap): Factor delays into single function.
9818         * tests/test-lutimens.h (test_lutimens): Use new header.
9819         * tests/test-futimens.h (test_futimens): Likewise.
9820         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9821         timestamps to occur from same machine, as was done previously for
9822         test_utimens.
9823         * modules/utimens-tests (Files): Ship new file.
9824         * modules/futimens-tests (Files): Likewise.
9825         Reported in part by Jim Meyering.
9826
9827         sys_stat: sort replacement declarations
9828         * lib/sys_stat.in.h: Sort declarations.
9829         * lib/futimens.c (futimens): Fix typo.
9830
9831 2009-10-15  Jim Meyering  <meyering@redhat.com>
9832
9833         don't let environment settings perturb build
9834         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9835         could cause a configure-time and/or build-time malfunction.
9836         Typically, a configure-time function-in-library test is performed
9837         via code like this:
9838
9839           LIB_VAR=
9840           AC_SUBST([LIB_VAR])
9841           prefix_saved_LIBS=$LIBS
9842             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9843                        [test "$ac_cv_search_FUNC" = "none required" ||
9844                         LIB_VAR=$ac_cv_search_FUNC])
9845           LIBS=$prefix_saved_LIBS
9846
9847         However, in each of the files affected by this change, the LIB_VAR=
9848         initialization was omitted.  Thus, when set in the environment, its
9849         value would propagate into generated Makefiles when FUNC is not found
9850         in LIB_NAME.
9851         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9852         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9854
9855 2009-10-14  Eric Blake  <ebb9@byu.net>
9856
9857         fchdir: avoid infinite recursion in mingw
9858         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9859         recursing.
9860
9861         test-stat-time: port to mingw
9862         * tests/test-stat-time.c (force_unlink): Return a value.
9863         (test_ctime) [W32]: Fix compilation error.
9864         (nap): Don't call usleep with too large an argument.  Use
9865         force_unlink.
9866         * doc/pastposix-functions/usleep.texi (usleep): Document the
9867         portability issue.
9868
9869 2009-10-13  Jim Meyering  <meyering@redhat.com>
9870
9871         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9872         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9873         * modules/pipe-filter-ii: Likewise.
9874         * modules/sys_socket-tests: Likewise.
9875         * modules/tsearch-tests: Likewise.
9876         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9877         (check): Depend on it.
9878
9879 2009-10-12  Eric Blake  <ebb9@byu.net>
9880
9881         utimens-tests: port to NFS file systems
9882         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9883         comparisons to avoid spurious failures from timestamp drift
9884         between NFS machines.
9885
9886 2009-10-12  Eric Blake  <ebb9@byu.net>
9887
9888         stat-time-tests: minor cleanups
9889         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9890         * tests/test-stat-time.c (nap): Separate assignment from call.
9891         Suggested by Paolo Bonzini and Bruno Haible.
9892
9893         sys_stat: guarantee struct timespec
9894         * lib/sys_stat.in.h (includes): Always include <time.h>
9895         * modules/sys_stat (Depends-on): Add time.
9896         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9897         mode_t permission values.
9898         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9899         get at subsecond timestamps.
9900
9901 2009-10-10  Eric Blake  <ebb9@byu.net>
9902
9903         futimens: new module
9904         * modules/futimens: New file.
9905         * lib/futimens.c (futimens): Likewise.
9906         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9907         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9908         we can work around Linux bugs.
9909         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9910         * modules/sys_stat (Makefile.am): Substitute them.
9911         * lib/sys_stat.in.h (futimens): Declare it.
9912         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9913         * doc/posix-functions/futimens.texi (futimens): Likewise.
9914         * modules/futimens-tests: New test.
9915         * tests/test-futimens.c: Likewise.
9916
9917         utimens: introduce fdutimens
9918         * lib/utimens.h (fdutimens): New prototype.
9919         * lib/utimens.c (gl_futimens): Move guts...
9920         (fdutimens): ...to new interface.
9921         * tests/test-utimens.c (do_fdutimens): Use it.
9922
9923         utimens: add UTIME_NOW and UTIME_OMIT support
9924         * lib/utimens.c (validate_timespec, update_timespec): New helper
9925         functions.
9926         (gl_futimens, lutimens): Use them.
9927         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9928         stdbool, sys_stat.
9929         (Link): Mention resulting library dependency.
9930         * modules/utimecmp (Link): Likewise.
9931         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9932         (Makefile.am): Pick up library dependency.
9933         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9934         definition.
9935         * tests/test-sys_stat.c: Test the definitions.
9936         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9937         * NEWS: Document library dependency.
9938
9939         utimecmp: support symlink timestamps
9940         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9941         hashing when possible.  Use pathconf when available.
9942         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9943         * modules/utimecmp (Depends-on): Add lstat.
9944
9945         utimens: add lutimens interface
9946         * lib/utimens.c (lutimens): New function.
9947         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9948         * lib/utimens.h (lutimens): Declare new interface.
9949         * tests/test-utimens.c (main): Enhance test.
9950         * tests/test-lutimens.h (test_lutimens): New file.
9951         * modules/utimens-tests (Files): Distribute it.
9952         (Depends-on): Add symlink.
9953         (configure.ac): Check for usleep.
9954
9955         utimens: validate futimens usage
9956         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9957         fewer syscalls on failure later on.  Avoid compiler warning on
9958         mingw.
9959         * modules/utimens (Depends-on): Add dup2.
9960
9961         utimens: add test
9962         * modules/utimens-tests: New test.
9963         * tests/test-utimens.h: New file.
9964         * tests/test-futimens.h: Likewise.
9965         * tests/test-utimens.c: Likewise.
9966
9967         doc: mention timestamp portability issues
9968         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9969         instead.
9970         * doc/posix-functions/utime.texi (utime): Likewise.
9971         * doc/posix-functions/utimes.texi (utimes): Likewise.
9972         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9973         instead.
9974         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9975         module.
9976         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9977         Mention weakness with symlink timestamps.
9978         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9979         to utimensat/futimens instead.
9980         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9981
9982         test-dup2: enhance test
9983         * tests/test-dup2.c (main): Also check AT_FDCWD.
9984
9985         test-stat-time: avoid more spurious failures
9986         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9987         xfs; and avoid race if the two timestamps cross quantization edge.
9988
9989         relocatable: prefer 'file system' over 'filesystem'
9990         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9991         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9992         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9993         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9994         * lib/relocatable.c (compute_curr_prefix): Likewise.
9995
9996 2009-10-10  Jim Meyering  <meyering@redhat.com>
9997
9998         stat-time-tests: check for the usleep function
9999         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
10000
10001 2009-10-10  Bruno Haible  <bruno@clisp.org>
10002
10003         * modules/xnanosleep: Put the Link section after the Include section.
10004
10005 2009-10-09  Eric Blake  <ebb9@byu.net>
10006
10007         dup2: work around FreeBSD 6.1 bug
10008         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
10009         * doc/posix-functions/dup2.texi (dup2): Document it.
10010         Reported by Nelson H. F. Beebe and Jim Meyering.
10011
10012         test-stat-time: port to buggy NFS clients
10013         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
10014         (test_ctime): Also skip test if mtime and ctime are skewed.
10015
10016         maint: prefer 'file system' over 'filesystem'
10017         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10018         * doc/posix-functions/lstat.texi (lstat): Likewise.
10019         * lib/file-has-acl.c (file_has_acl): Likewise.
10020         * lib/fwriteerror.c [TEST]: Likewise.
10021         * tests/test-areadlink.h (test_areadlink): Likewise.
10022         * tests/test-areadlinkat-with-size.c (main): Likewise.
10023         * tests/test-areadlinkat.c (main): Likewise.
10024         * tests/test-canonicalize-lgpl.c (main): Likewise.
10025         * tests/test-canonicalize.c (main): Likewise.
10026         * tests/test-fstatat.c (main): Likewise.
10027         * tests/test-linkat.c (main): Likewise.
10028         * tests/test-lstat.h (test_lstat_func): Likewise.
10029         * tests/test-mkdir.h (test_mkdir): Likewise.
10030         * tests/test-readlink.h (test_readlink): Likewise.
10031         * tests/test-remove.c (main): Likewise.
10032         * tests/test-rename.h (test_rename): Likewise.
10033         * tests/test-renameat.c (main): Likewise.
10034         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10035         * tests/test-symlink.h (test_symlink): Likewise.
10036         * tests/test-symlinkat.c (main): Likewise.
10037         * tests/test-unlink.h (test_unlink_func): Likewise.
10038         * tests/test-unlinkat.c (main): Likewise.
10039
10040         maint: make realtime library usage explicit
10041         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
10042         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
10043         * modules/settime (Link): Likewise.
10044         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
10045
10046         test-stat-time: speed up execution
10047         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
10048         warning on mingw.
10049         (nap): New helper function.
10050         (prepare_test): Use it to reduce sleep time.
10051         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
10052         execution.
10053         * modules/stat-time-tests (configure.ac): Check for usleep.
10054
10055 2009-10-09  Jim Meyering  <meyering@redhat.com>
10056
10057         selinux-h: always use getfilecon wrappers
10058         * lib/getfilecon.c: New file.
10059         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
10060         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
10061         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
10062         (fgetfilecon): Provide a stub.
10063         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
10064         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
10065         file unconditionally.
10066         When <selinux/selinux.h> is found, arrange to use wrappers.
10067         * modules/selinux-h (Files): Add getfilecon.c.
10068         (Makefile.am): Substitute include-next-related bits
10069         into the now-always-generated selinux/selinux.h file.
10070         * doc/glibc-functions/lgetfilecon.texi: New file.
10071         * doc/glibc-functions/fgetfilecon.texi: New file.
10072         * doc/glibc-functions/getfilecon.texi: New file.
10073         * doc/glibc-functions/getfilecon-desc.texi: New file.
10074         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
10075         which to pull in the new files.
10076         * MODULES.html.sh (Misc): Add selinux-h.
10077
10078 2009-10-08  Jim Meyering  <meyering@redhat.com>
10079
10080         unistd: fix comment typo
10081         * lib/unistd.in.h (euidaccess): Fix a comment typo.
10082
10083 2009-10-08  Eric Blake  <ebb9@byu.net>
10084
10085         areadlink: use SIZE_MAX consistently
10086         * modules/areadlink (Depends-on): Add stdint.
10087         * modules/areadlink-with-size (Depends-on): Likewise.
10088         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
10089         gives NULL; drop sys/types, since unistd gives size_t; and add
10090         stdint for SIZE_MAX.
10091         (SIZE_MAX): Rely on headers.
10092         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
10093         and add stdint.
10094         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
10095         (SIZE_MAX): Likewise.
10096         (INITIAL_BUF_SIZE): Turn into enum.
10097         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
10098
10099 2009-10-08  Jim Meyering  <meyering@redhat.com>
10100
10101         areadlinkat: avoid compilation failure
10102         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
10103         Fix typo in comment.
10104
10105 2009-10-07  Eric Blake  <ebb9@byu.net>
10106
10107         areadlinkat-with-size: new module
10108         * modules/areadlinkat-with-size: New module.
10109         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
10110         * lib/areadlink.h (areadlinkat): Declare it.
10111         * MODULES.html.sh (File system functions): Mention it.
10112         * modules/areadlinkat-with-size-tests: New test.
10113         * tests/test-areadlinkat-with-size.c: New file.
10114
10115         xreadlinkat: new module
10116         * modules/xreadlinkat: New module.
10117         * lib/xreadlinkat.c (xreadlinkat): New file.
10118         * lib/xreadlink.h (xreadlinkat): Declare it.
10119         * MODULES.html.sh (File system functions): Mention it.
10120
10121         areadlinkat: new module
10122         * lib/at-func.c (FUNC_FAIL): New define.
10123         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
10124         * modules/areadlinkat: New module.
10125         * lib/linkat.c (areadlinkat): Move...
10126         * lib/areadlinkat.c (areadlinkat): ...to new file.
10127         * lib/areadlink.h (areadlinkat): Declare it.
10128         * modules/linkat (Depends-on): Add areadlinkat.
10129         * MODULES.html.sh (File system functions): Mention it.
10130         * modules/areadlinkat-tests: New test.
10131         * tests/test-areadlinkat.c: New file.
10132
10133         areadlink, areadlink-with-size: add tests
10134         * modules/areadlink-tests: New test.
10135         * modules/areadlink-with-size-tests: Likewise.
10136         * tests/test-areadlink.h: New file.
10137         * tests/test-areadlink.c: Likewise.
10138         * tests/test-areadlink-with-size.c: Likewise.
10139
10140         maint: minor cleanups
10141         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
10142         _UNUSED_PARAMETER_ instead.
10143         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
10144         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
10145         * modules/linkat-tests (Files): Distribute test-link.h.
10146
10147         openat, utimens: whitespace cleanup
10148         * lib/openat.c: Prefer space throughout, rather than mix of 8
10149         spaces vs. tabs.
10150         * lib/at-func.c: Likewise.
10151         * lib/utimens.c: Likewise.
10152
10153         openat: avoid using wrong fd
10154         * lib/openat.c (openat_permissive): Reject user's fd if saving the
10155         working directory chooses same fd.
10156         * lib/at-func.c (AT_FUNC_NAME): Likewise.
10157
10158         mkdir, mkdirat: fix cygwin 1.5.x bug
10159         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
10160         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
10161         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
10162         bug.
10163         (gl_PREREQ_MKDIR): Delete unused macro.
10164         * modules/mkdir (Files): Track file rename.
10165         (configure.ac): Update macro name.
10166         * modules/openat (Depends-on): Add mkdir.
10167         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
10168
10169         mkdir, mkdirat: add tests
10170         * modules/mkdir-tests: New test.
10171         * tests/test-mkdir.h: New file.
10172         * tests/test-mkdir.c: Likewise.
10173         * tests/test-mkdirat.c: Likewise.
10174         * modules/openat-tests (Files): Add new files.
10175         (Makefile.am): Run new test.
10176
10177 2009-10-06  Eric Blake  <ebb9@byu.net>
10178
10179         doc: tweak *at function documentation
10180         * doc/posix-functions/faccessat.texi (faccessat): Mention
10181         known issue with replacement.
10182         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
10183         * doc/posix-functions/linkat.texi (linkat): Likewise.
10184         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10185         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10186         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10187         * doc/posix-functions/renameat.texi (renameat): Likewise.
10188         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10189
10190         openat: fix GNU/Hurd bug in unlinkat
10191         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
10192         broken.
10193         * doc/posix-functions/unlink.texi (unlink): Document this.
10194         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
10195
10196         fdopendir: fix GNU/Hurd bug
10197         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
10198         allowing non-directory fds.
10199         * lib/fdopendir.c (rpl_fdopendir): Work around it.
10200         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10201         * modules/dirent (Makefile.am): Substitute it.
10202         * lib/dirent.in.h (fdopendir): Declare replacement.
10203         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
10204         * tests/test-fdopendir.c (main): Test something other than
10205         /dev/null, since on Hurd that behaves like a directory.
10206
10207         test-symlink: port to GNU/Hurd
10208         * tests/test-symlink.h (test_symlink): Relax expected errno.
10209
10210         doc: tweak more cygwin information
10211         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
10212         now compatible with glibc.
10213         * doc/posix-functions/getopt.texi (getopt): Likewise.
10214
10215         getopt-gnu: add another test
10216         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
10217         guarantee behavior relied on by m4.
10218         * tests/test-getopt.c (main): Use it.
10219         * modules/getopt-posix-tests (Depends-on): Add setenv.
10220         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10221
10222         getopt: fix compilation on darwin
10223         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10224         include.
10225         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10226         Reported by Ludovic Courtès.
10227
10228 2009-10-06  Bruno Haible  <bruno@clisp.org>
10229
10230         * modules/size_max (Description): Discourage its use.
10231         Reported by Simon Josefsson.
10232
10233 2009-10-06  Jim Meyering  <meyering@redhat.com>
10234
10235         linkat: avoid compilation failure
10236         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10237
10238 2009-10-05  Eric Blake  <ebb9@byu.net>
10239
10240         linkat: support Linux 2.6.17
10241         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10242         linkat on Linux, but allow cache variable override.
10243         * lib/linkat.c (rpl_linkat): Define override.
10244         * modules/linkat (Depends-on): Add symlinkat.
10245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10246         * modules/unistd (Makefile.am): Substitute it.
10247         * lib/unistd.in.h (linkat): Declare replacement.
10248         Reported by Pádraig Brady.
10249
10250         quotearg: port test to systems with C.UTF-8 locale
10251         * tests/test-quotearg.c (struct result_strings): Add another
10252         member, differentiating between C.ASCII and C.UTF-8 handling.
10253         (compare_strings): Add parameter.
10254         (main): Adjust all callers.
10255
10256         getopt: avoid clash with FreeBSD _getopt_internal
10257         * lib/getopt.in.h (_getopt_internal): Override the name.
10258         * lib/getopt_int.h (includes): Pick up any overrides.
10259         Reported by Reuben Thomas.
10260
10261         hash: allow C89 compilation
10262         * lib/hash.c (check_tuning): Move declaration before statement.
10263         Reported by Reuben Thomas.
10264
10265 2009-10-05  Karl Berry  <karl@gnu.org>
10266
10267         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10268
10269 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10270             Bruno Haible  <bruno@clisp.org>
10271
10272         * lib/uname.c (uname): Use a table-driven algorithm to compute
10273         Windows NT versions.
10274
10275 2009-10-04  Bruno Haible  <bruno@clisp.org>
10276
10277         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10278         program_invocation_short_name.
10279         * modules/progname (configure.ac): Test for presence of
10280         program_invocation_short_name.
10281         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10282
10283 2009-10-04  Bruno Haible  <bruno@clisp.org>
10284
10285         * lib/progname.c (set_program_name): Fix comment.
10286         Reported by Jim Meyering.
10287
10288 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10289             Bruno Haible  <bruno@clisp.org>
10290
10291         * lib/uname.c: Include <string.h>.
10292         (uname): Do only one call to GetVersionEx in the common case.
10293
10294 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10295             Bruno Haible  <bruno@clisp.org>
10296
10297         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10298         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10299         (uname): Add support for Windows CE and various non-x86 CPU types.
10300
10301 2009-10-03  Bruno Haible  <bruno@clisp.org>
10302
10303         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10304         invocation to tests/configure.ac.
10305         Reported by Ian Beckwith <ianb@erislabs.net>.
10306
10307 2009-10-02  Eric Blake  <ebb9@byu.net>
10308
10309         fchdir: avoid compiler warning
10310         * lib/fchdir.c (canonicalize_file_name)
10311         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10312
10313         test-open: support mingw errno values
10314         * tests/test-open.h (test_open): Relax test.
10315         * tests/test-fopen.h (test_fopen): Likewise.
10316         * tests/test-openat-safer.c (main): Likewise.
10317
10318         open: fix opening directory on mingw
10319         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10320
10321         test-open: on GNU/Hurd, /dev/null is a directory
10322         * tests/test-fopen.h (main): Rename...
10323         (test_fopen): ...to this.  Use a guaranteed non-directory when
10324         confirming open behavior on trailing slash.
10325         * tests/test-openat-safer.c (main): Likewise.
10326         * tests/test-open.h (main): Likewise....
10327         (test_open): ...to this.
10328         * tests/test-fopen.c (main): Adjust caller.
10329         * tests/test-fopen-safer.c (main): Likewise.
10330         * tests/test-open.c (main): Likewise.
10331         * tests/test-fcntl-safer.c (main): Likewise.
10332         Reported by Samuel Thibault.
10333
10334         rename, fchdir: don't ignore chdir failure
10335         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10336         * lib/rename.c (rpl_rename) [W32]: Likewise.
10337         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10338         an empty destination directory if source cannot be renamed,
10339         although there is still possibility for failure.
10340         * doc/posix-functions/rename.texi (rename): Document the race.
10341         Reported by Jim Meyering.
10342
10343         maint: cleanup whitespace in recent commits
10344         * lib/rename.c (rpl_rename): Remove tabs.
10345         * tests/test-link.h (test_link): Likewise.
10346         * lib/fchdir.c (get_name): Likewise.
10347         Reported by Jim Meyering.
10348
10349 2009-10-02  Ben Pfaff  <blp@gnu.org>
10350
10351         relocatable-prog-wrapper: Add missing dependency on
10352         double-slash-root.
10353         * modules/relocatable-prog-wrapper: Add dependency.
10354         Reported by Ian Beckwith <ianb@erislabs.net>.
10355
10356 2009-10-02  Eric Blake  <ebb9@byu.net>
10357
10358         renameat: fix Solaris bugs
10359         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10360         needed fixing.
10361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10362         * modules/stdio (Makefile.am): Substitute it.
10363         * lib/stdio.in.h (renameat): Declare replacement.
10364         * lib/renameat.c (rpl_renameat): Implement fix.
10365
10366         renameat: new module
10367         * modules/renameat: New file.
10368         * lib/renameat.c (renameat): Likewise.
10369         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10371         * modules/stdio (Makefile.am): Substitute them.
10372         * lib/stdio.in.h (renameat): Declare it.
10373         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10374         * doc/posix-functions/renameat.texi (renameat): Likewise.
10375         * modules/renameat-tests: New test.
10376         * tests/test-renameat.c: Likewise.
10377
10378         rename: fix mingw bugs
10379         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10380         directory overwrite bugs.
10381
10382         rename: fix another cygwin 1.5 bug
10383         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10384         checks.
10385         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10386         unnecessary cygwin workarounds.  Also work around bug with moving
10387         full directory onto an empty one.
10388         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10389
10390         rename-dest-slash: merge into rename module
10391         * modules/rename-dest-slash (Status): Mark obsolete.
10392         (Depends-on): Add rename.
10393         (Files): Let rename do it all.
10394         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10395         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10396         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10397         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10398         * lib/rename.c (rpl_rename): Update comments.
10399
10400         rename: fix cygwin 1.5.x bugs
10401         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10402         * lib/rename.c (rpl_rename): Work around them.
10403         * modules/rename (Depends-on): Add same-inode.
10404
10405         rename: fix Solaris 10 bug
10406         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10407         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10408         was the only bug.
10409
10410         rename: fix Solaris 9 bug
10411         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10412         on non-directory.  Avoid calling exit.
10413         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10414         strdup.
10415         * modules/rename-tests (Depends-on): Drop lstat.
10416         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10417         (gl_PREREQ_RENAME): Delete unused macro.
10418
10419         rename-dest-slash: fix NetBSD bug
10420         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10421         links.
10422         * modules/rename-dest-slash (Depends-on): Add same-inode.
10423
10424         rename-tests: new test, exposes several platform bugs
10425         * modules/rename-tests: New file.
10426         * tests/test-rename.h: Likewise.
10427         * tests/test-rename.c: Likewise.
10428         * doc/posix-functions/rename.texi (rename): Improve documentation,
10429         including bugs that will eventually be fixed in gnulib.
10430
10431 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10432
10433         * lib/uname.c: Include <stdlib.h>
10434         (uname): Assume version info is available.
10435
10436 2009-10-02  Jim Meyering  <meyering@redhat.com>
10437
10438         gnu-web-doc-update: correct --help output
10439         * build-aux/gnu-web-doc-update: Make --help output relevant.
10440
10441         gnu-web-doc-update: add standard options
10442         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10443
10444         gnu-web-doc-update: New module.
10445         Use this script to automatically update the on-line web documentation
10446         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10447         * modules/gnu-web-doc-update: New file, from coreutils.
10448         * build-aux/gnu-web-doc-update: New script.
10449
10450 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10451
10452         link: LoadLibrary is not needed.
10453         * lib/link.c: Use GetModuleHandle.
10454
10455 2009-10-01  Eric Blake  <ebb9@byu.net>
10456
10457         getopt: bump serial number
10458         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10459         change.
10460
10461         tests: tighten link, rmdir, and remove tests
10462         * tests/test-link.h (includes): No need to use <config.h> here.
10463         Clean up if directory hard link was created, otherwise test for
10464         trailing '.'.
10465         * tests/test-linkat.c (main): Simplify.
10466         * tests/test-remove.c (main): Enhance test for trailing '.'.
10467         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10468
10469 2009-10-01  Jim Meyering  <meyering@redhat.com>
10470
10471         maint.mk: requiring "make major" was annoying, for a "minor" release.
10472         What is intended is "stable", to contrast with alpha and beta,
10473         so require "make stable", not "make major".
10474         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10475         (get_tool_versions): Likewise.
10476         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10477
10478 2009-09-30  Ben Pfaff  <blp@gnu.org>
10479
10480         Fix broken build of replacement for Windows tmpfile().
10481         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10482         flags argument added along with the 'mkostemp' module.
10483
10484 2009-09-28  Bruno Haible  <bruno@clisp.org>
10485
10486         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10487         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10488         to 'remove_elt'.
10489         (gl_list_remove): Update.
10490         * lib/gl_list.c (gl_list_remove): Update.
10491         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10492         to 'remove_elt'.
10493         (gl_oset_remove): Update.
10494         * lib/gl_list.c (gl_oset_remove): Update.
10495         Reported by Eric Blake.
10496
10497 2009-09-28  Eric Blake  <ebb9@byu.net>
10498
10499         doc: mention yet more cygwin 1.7 status
10500         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10501         cygwin.
10502         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10503         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10504
10505         argp: fix test failure
10506         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10507         that are not upper-case.  Pass correct range to tolower.
10508
10509 2009-09-27  Jim Meyering  <meyering@redhat.com>
10510
10511         test-yesno: work around sparc-dash here-document infelicity
10512         Without this change, the literal \177 byte in a here document
10513         would make dash 0.5.5.1-3 access uninitialized memory.
10514         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10515         Instead, use a marker, "@", and filter through tr to create the desired
10516         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10517
10518 2009-09-27  Bruno Haible  <bruno@clisp.org>
10519
10520         Disable untested support for new flavours of ACLs on AIX.
10521         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10522         progress.
10523         * lib/set-mode-acl.c (qset_acl): Likewise.
10524
10525 2008-12-07  Bruno Haible  <bruno@clisp.org>
10526
10527         Add support for new flavours of ACLs on AIX. (Untested.)
10528         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10529         (file_has_acl): Add support for newer AIX.
10530         * lib/set-mode-acl.c (qset_acl): Likewise.
10531         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10532         Rainer Tammer <tammer@tammer.net>.
10533
10534 2009-09-26  Eric Blake  <ebb9@byu.net>
10535
10536         argp: fix compilation of getopt
10537         * lib/getopt.in.h (includes): Use different guard than glibc.
10538         Reported by Sergey Poznyakoff.
10539
10540         doc: mention more cygwin 1.7 status
10541         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10542         bug.
10543         * doc/posix-functions/execl.texi (execl): Likewise.
10544         * doc/posix-functions/execle.texi (execle): Likewise.
10545         * doc/posix-functions/execlp.texi (execlp): Likewise.
10546         * doc/posix-functions/execv.texi (execv): Likewise.
10547         * doc/posix-functions/execve.texi (execve): Likewise.
10548         * doc/posix-functions/execvp.texi (execvp): Likewise.
10549         * doc/glibc-functions/canonicalize_file_name.texi
10550         (canonicalize_file_name): Cygwin 1.7 now provides this.
10551         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10552         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10553         on AT_SYMLINK_NOFOLLOW.
10554
10555 2009-09-24  Eric Blake  <ebb9@byu.net>
10556
10557         test-linkat: make test more robust
10558         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10559
10560         getopt: fix inclusion guards for cygwin
10561         * modules/getopt-posix (Depends-on): Add include-next.
10562         (Makefile.am): Substitute more items in replacement header.
10563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10564         <getopt.h>.
10565         * lib/getopt.in.h (includes): Use split inclusion guard, and
10566         prefer <getopt.h> over include <unistd.h> when one is present.
10567         (option): Also override name of 'struct option'.
10568
10569         same-inode: revert prior change; it is not yet ready
10570         * NEWS: Undo mention of this change.
10571         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10572         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10573         * lib/cycle-check.c (cycle_check): Likewise.
10574         * lib/same.c (same_name): Likewise.
10575         * lib/at-func2.c (at_func2): Likewise.
10576
10577 2009-09-23  Eric Blake  <ebb9@byu.net>
10578
10579         linkat: new module
10580         * modules/linkat: New file.
10581         * lib/at-func2.c (at_func2): Likewise.
10582         * lib/linkat.c (linkat): Likewise.
10583         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10584         * lib/openat-priv.h (at_func2): Add declaration.
10585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10586         * modules/unistd (Makefile.am): Substitute them.
10587         * lib/unistd.in.h (linkat): Declare it.
10588         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10589         * doc/posix-functions/linkat.texi (linkat): Likewise.
10590         * doc/posix-functions/link.texi (link): Tweak wording.
10591         * tests/test-link.c (main): Move guts...
10592         * tests/test-link.h (test_link): ...into new file.
10593         * modules/linkat-tests: New test.
10594         * tests/test-linkat.c: Likewise.
10595         * modules/link-tests (Files): Ship new file.
10596         (Depends-on): Add stdbool.
10597
10598         dirname: add library-safe mdir_name
10599         * lib/dirname.h (mdir_name): New prototype.
10600         * lib/dirname.c (dir_name): Move guts...
10601         (mdir_name): ...to new function that avoids xalloc_die.
10602
10603         fchdir: another mingw fix
10604         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10605         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10606         on mingw (where it has not yet been ported), and make it optional
10607         elsewhere.
10608         (_gl_register_fd): Use it.
10609
10610         same-inode: make SAME_INODE tri-state, to port to mingw
10611         * NEWS: Mention this change.
10612         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10613         st_ino always being 0.
10614         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10615         * lib/cycle-check.c (cycle_check): Likewise.
10616         * lib/same.c (same_name): Likewise.
10617
10618         lstat: avoid mingw compilation error
10619         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10620         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10621         lstat ourselves.
10622         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10623         was adequate.
10624         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10625         the checks for lstat.
10626         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10627
10628         link: fix test failure on Solaris 9
10629         * lib/link.c (rpl_link): Don't assume link will catch bogus
10630         trailing slash on source.
10631
10632         test-symlinkat: enhance test
10633         * tests/test-readlink.c (main): Move guts...
10634         * tests/test-readlink.h (test_readlink): ...into new file.
10635         * tests/test-symlink.c (main): Move guts...
10636         * tests/test-symlink.h (test_symlink): ...into new file.
10637         * tests/test-symlinkat.c (main): Use new files for further
10638         coverage.
10639         (do_symlink, do_readlink): New helper functions.
10640         * modules/symlink-tests (Files): Ship new file.
10641         (Depends-on): Add stdbool.
10642         * modules/readlink-tests (Files): Ship new file.
10643         (Depends-on): Add stdbool.
10644         * modules/symlinkat-tests (Files): Use new files.
10645
10646 2009-09-23  Eric Blake  <ebb9@byu.net>
10647
10648         readlink: document portability issue with symlink length
10649         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10650         systems have bogus st_size on symlinks, and mention the
10651         areadlink-with-size module.
10652         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10653         * doc/posix-functions/readlink.texi (readlink): Mention the
10654         areadlink module, and ERANGE failure.
10655         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10656         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10657
10658         readlink: fix Solaris 9 bug with trailing slash
10659         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10660         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10661         * doc/posix-functions/readlink.texi (readlink): Document this.
10662         * modules/readlink-tests: New test.
10663         * tests/test-readlink.c: Likewise.
10664
10665         readlink: fix cygwin 1.5.x bug with return type
10666         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10667         * lib/unistd.in.h (readlink): Use ssize_t.
10668         * lib/readlink.c (readlink): Likewise.
10669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10670         * modules/unistd (Makefile.am): Substitute it.
10671         * lib/unistd.in.h (readlink): Declare replacement.
10672         * doc/posix-functions/readlink.texi (readlink): Document this.
10673
10674         symlink: use throughout gnulib
10675         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10676         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10677         symlink is not used.
10678         * modules/symlinkat (Depends-on): Add symlink.
10679         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10680         * modules/canonicalize-tests (Depends-on): Likewise.
10681         * modules/lstat-tests (Depends-on): Likewise.
10682         * modules/openat-tests (Depends-on): Likewise.
10683         * modules/remove-tests (Depends-on): Likewise.
10684         * modules/rmdir-tests (Depends-on): Likewise.
10685         * modules/unlink-tests (Depends-on): Likewise.
10686         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10687         * tests/test-canonicalize.c (symlink): Likewise.
10688         * tests/test-fstatat.c (symlink): Likewise.
10689         * tests/test-lstat.c (symlink): Likewise.
10690         * tests/test-remove.c (symlink): Likewise.
10691         * tests/test-rmdir.c (symlink): Likewise.
10692         * tests/test-unlink.c (symlink): Likewise.
10693         * tests/test-unlinkat.c (symlink): Likewise.
10694
10695         symlink: new module, for Solaris 9 bug
10696         * modules/symlink: New file.
10697         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10698         * lib/symlink.c: Likewise.
10699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10700         * modules/unistd (Makefile.am): Substitute them.
10701         * lib/unistd.in.h (symlink): Declare replacement.
10702         * MODULES.html.sh (File system functions): Mention it.
10703         * doc/posix-functions/symlink.texi (symlink): Likewise.
10704         * modules/symlink-tests: New test.
10705         * tests/test-symlink.c: Likewise.
10706
10707 2009-09-23  Bruno Haible  <bruno@clisp.org>
10708
10709         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10710         when needed.
10711         Test case: gnulib-tool --import --with-tests atexit inttypes.
10712         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10713
10714 2009-09-23  Bruno Haible  <bruno@clisp.org>
10715
10716         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10717         subcommand, not in a subshell.
10718
10719 2009-09-22  Eric Blake  <ebb9@byu.net>
10720
10721         unistd: sort replacement declarations
10722         * lib/unistd.in.h: Sort declarations.
10723
10724         open, openat: minor optimization
10725         * lib/open.c (open): If open succeeded, len is non-zero.
10726         * lib/openat.c (rpl_openat): Likewise.
10727
10728         link-follow: ensure correct result
10729         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10730         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10731         distinguish between possible failures.
10732
10733 2009-09-21  Eric Blake  <ebb9@byu.net>
10734
10735         fts: avoid compiler warning
10736         * lib/fts.c (dirent_inode_sort_may_be_useful)
10737         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10738
10739 2009-09-19  Bruno Haible  <bruno@clisp.org>
10740
10741         * lib/progreloc.c (canonicalize_file_name): New declaration.
10742
10743 2009-09-19  Eric Blake  <ebb9@byu.net>
10744
10745         link: fix quoting
10746         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10747
10748         openat: fix openat bugs on Solaris 9
10749         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10750         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10751         * modules/openat (Depends-on): Add open.
10752         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10753         * modules/fcntl-h (Makefile.am): Substitute it.
10754         * lib/fcntl.in.h (openat): Declare replacement.
10755         * doc/posix-functions/openat.texi (openat): Document this.
10756
10757         openat: move fstatat and unlinkat into correct files
10758         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10759         compiled.
10760         * lib/openat.c (fstatat, unlinkat): Move...
10761         * lib/fstatat.c (fstatat): ...into correct files.
10762         * lib/unlinkat.c (unlinkat): Likewise.
10763
10764         openat: fix unlinkat bugs on Solaris 9
10765         * lib/unlinkat.c (unlinkat): New file.
10766         * modules/openat (Depends-on): Add unlink.
10767         (Files): Distribute it.
10768         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10769         trailing slash behavior is broken.
10770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10771         * modules/unistd (Makefile.am): Substitute it.
10772         * lib/unistd.in.h (unlinkat): Declare replacement.
10773         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10774
10775         openat: fix fstatat bugs on Solaris 9
10776         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10777         stat.
10778         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10779
10780         test-unlinkat: enhance test, to expose Solaris 9 bug
10781         * tests/test-unlink.c (main): Factor guts...
10782         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10783         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10784         * tests/test-rmdir.c (main): Adjust caller.
10785         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10786         (unlinker): New helper function.
10787         (rmdirat): Enhance check.
10788         * modules/rmdir-tests (Depends-on): Add stdbool.
10789         * modules/unlink-tests (Depends-on): Likewise.
10790         (Files): Add test-unlink.h.
10791         * modules/openat-tests (Files): Likewise.
10792         (Depends-on): Add unlinkdir.
10793
10794         test-fstatat: new test, to expose Solaris 9 bugs
10795         * tests/test-stat.c (main): Factor guts...
10796         * tests/test-stat.h (test_stat_func): ...into new file.
10797         * tests/test-lstat.c (main): Factor guts...
10798         * tests/test-lstat.h (test_lstat_func): ...into new file.
10799         * tests/test-fstatat.c: New file.
10800         * modules/stat-tests (Files): Add test-stat.h.
10801         * modules/lstat-tests (Files): Add test-lstat.h.
10802         (Depends-on): Add stdbool.
10803         * modules/openat-tests (Depends-on): Add pathmax.
10804         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10805         (Makefile.am): Run new test.
10806
10807         remove: new module, for mingw and Solaris 9 bugs
10808         * modules/remove: New file.
10809         * lib/remove.c: Likewise.
10810         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10812         * modules/stdio (Makefile.am): Use them.
10813         * lib/stdio.in.h (remove): Declare replacement.
10814         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10815         * doc/posix-functions/remove.texi (remove): Likewise.
10816         * modules/remove-tests: New test.
10817         * tests/test-remove.c: Likewise.
10818
10819         unlink: new module, for Solaris 9 bug
10820         * modules/unlink: New file.
10821         * lib/unlink.c: Likewise.
10822         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10824         * modules/unistd (Makefile.am): Use them.
10825         * lib/unistd.in.h (stat): Declare replacement.
10826         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10827         * doc/posix-functions/unlink.texi (unlink): Likewise.
10828         * modules/unlink-tests: New test.
10829         * tests/test-unlink.c: Likewise.
10830
10831         lstat: fix Solaris 9 bug
10832         * lib/lstat.c (lstat): Also check for trailing slash on
10833         non-symlink, non-directories.  Use stat module to simplify logic.
10834         * doc/posix-functions/lstat.texi (lstat): Document it.
10835         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10836         (configure.ac): Check for symlink.
10837         * tests/test-lstat.c (main): Add more tests.
10838
10839         stat: add as dependency to other modules
10840         * modules/chown (Depends-on): Add stat.
10841         * modules/euidaccess (Depends-on): Likewise.
10842         * modules/fchdir (Depends-on): Likewise.
10843         * modules/isdir (Depends-on): Likewise.
10844         * modules/link (Depends-on): Likewise.
10845         * modules/lstat (Depends-on): Likewise.
10846         * modules/mkdir-p (Depends-on): Likewise.
10847         * modules/modechange (Depends-on): Likewise.
10848         * modules/open (Depends-on): Likewise.
10849         * modules/readlink (Depends-on): Likewise.
10850         * modules/same (Depends-on): Likewise.
10851
10852         stat: fix Solaris 9 bug
10853         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10854         slash.
10855         * lib/stat.c (rpl_stat): Work around it.
10856         * doc/posix-functions/stat.texi (stat): Update documentation.
10857
10858         stat: new module, for mingw bug
10859         * modules/stat: New file.
10860         * lib/stat.c: Likewise.
10861         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10862         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10863         * modules/sys_stat (Makefile.am): Use them.
10864         * lib/sys_stat.in.h (stat): Declare replacement.
10865         * lib/openat.c (fstatat): Deal with lstat and stat being function
10866         macros.
10867         * modules/openat (Depends-on): Add inline.
10868         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10869         * doc/posix-functions/stat.texi (stat): Likewise.
10870         * modules/stat-tests: New test.
10871         * tests/test-stat.c: Likewise.
10872
10873 2009-09-19  Jim Meyering  <meyering@redhat.com>
10874
10875         syntax-check: detect unnecessary inclusion of canonicalize.h
10876         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10877
10878 2009-09-19  Eric Blake  <ebb9@byu.net>
10879
10880         canonicalize-lgpl: adjust clients to use correct header
10881         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10882         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10883         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10884         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10885         * lib/progreloc.c (includes): Likewise.
10886
10887 2009-09-19  Jim Meyering  <meyering@redhat.com>
10888
10889         test-posixtm.c: correct a comment
10890         * tests/test-posixtm.c: Correct first-line comment.
10891         Spotted by Eric Blake.
10892
10893 2009-09-16  Jim Meyering  <meyering@redhat.com>
10894
10895         posixtm-tests: make T const-correct; add a test case
10896         * tests/test-posixtm.c (T): Declare const.
10897         Add a test for -(2^31+1).
10898         Remove useless can-succeed-only-in-2002 test.
10899
10900         posixtm-tests: adjust the sole failing test
10901         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10902         expected output matches what mktime now produces.  Cross-checked via
10903         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10904
10905         posixtm: move #ifdef'd tests into a new module
10906         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10907         * tests/test-posixtm.c: ... this new file.
10908         * modules/posixtm-tests: New module.
10909
10910 2009-09-19  Eric Blake  <ebb9@byu.net>
10911
10912         openat: simplify use of at-func.c
10913         * lib/at-func.c (includes): Include prerequisites here, to
10914         simplify requirements on client files.
10915         * lib/openat-priv.h: Add double-inclusion guard.
10916         * lib/faccessat.c (includes): Simplify.
10917         * lib/fchmodat.c (includes): Likewise.
10918         * lib/fchownat.c (includes): Likewise.
10919         * lib/mkdirat.c (includes): Likewise.
10920         * lib/mkfifoat.c (includes): Likewise.
10921         * lib/symlinkat.c (includes): Likewise.
10922
10923         openat: allow return of fd 0
10924         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10925         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10926         unistd-safer.
10927         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10928         <fcntl.h>; this module does not leak fds.
10929         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10930         must be allowed to return 0, leaving openat_safer to add the
10931         safety.
10932         (openat_permissive): Avoid writing to just-opened fd 2 if
10933         restoring the current directory fails.
10934         * lib/openat-die.c (openat_restore_fail): Add comment.
10935         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10936         (save_cwd): Guarantee safe fd, but without use of open_safer.
10937         * tests/test-openat.c: New test.
10938         * modules/openat-tests (Files, Makefile.am): Distribute and build
10939         new file.
10940
10941         relocatable-prog-wrapper: fix build
10942         * modules/relocatable-prog-wrapper (Files): Update name of
10943         canonicalize m4 file, broken on 2009-09-17.
10944         Reported by emad hajjar <aleppos@hotmail.com>.
10945
10946 2009-09-19  Bruno Haible  <bruno@clisp.org>
10947
10948         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10949         * lib/safe-alloc.c: Likewise.
10950         Reported by Ian Beckwith <ianb@erislabs.net>.
10951
10952 2009-09-18  Bruno Haible  <bruno@clisp.org>
10953
10954         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10955         Reported by <erobles@sensacd.com.mx>.
10956
10957 2009-09-17  Eric Blake  <ebb9@byu.net>
10958
10959         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10960         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10961         slashes when checking if last component is missing.
10962         * tests/test-canonicalize.c (main): Test this.
10963
10964         canonicalize, canonicalize-lgpl: honor // if distinct from /
10965         * modules/canonicalize (Files): Add double-slash-root.m4.
10966         * modules/canonicalize-lgpl (Files): Likewise.
10967         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10968         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10969         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10970         fallback definition.
10971         (canonicalize_filename_mode): Use it to protect //.
10972         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10973         (__realpath): Likewise.
10974         * tests/test-canonicalize.c (main): Test this.
10975         * tests/test-canonicalize-lgpl.c (main): Likewise.
10976         * modules/canonicalize-tests (Depends-on): Add same-inode.
10977         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10978
10979         canonicalize-lgpl: fix glibc bug with trailing slash
10980         * m4/canonicalize-lgpl.m4: Move contents...
10981         * m4/canonicalize.m4: ...here.
10982         (gl_CANONICALIZE_LGPL): Factor realpath check...
10983         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10984         glibc 2.3.5 bug, fixed 2005-04-27.
10985         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10986         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10987         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10988         * modules/canonicalize-lgpl (Files): Manage file rename.
10989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10990         * modules/stdlib (Makefile.am): Substitute witness.
10991         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10992         is needed.
10993         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10994         replacement is required.
10995         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10996         * doc/glibc-functions/canonicalize_file_name.texi
10997         (canonicalize_file_name): Document this.
10998         * doc/posix-functions/realpath.texi (realpath): Likewise.
10999
11000         canonicalize-lgpl: reject non-directory with trailing slash
11001         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
11002         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
11003         catches failures in glibc 2.3.5.
11004         * tests/test-canonicalize.c (main): Likewise.
11005
11006         canonicalize-lgpl: use native realpath if it works
11007         * lib/canonicalize-lgpl.c (realpath): Guard with
11008         FUNC_REALPATH_WORKS.
11009         * lib/stdlib.in.h (realpath): Make declaration optional based on
11010         HAVE_REALPATH.
11011         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
11012         native realpath works.
11013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11014         * modules/stdlib (Makefile.am): Substitute witness.
11015
11016         canonicalize, canonicalize-lgpl: use <stdlib.h>
11017         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
11018         (Include): Mention <stdlib.h>.
11019         (configure.ac): Mention functions we provide.
11020         * modules/canonicalize (configure.ac): Likewise.
11021         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
11022         realpath if canonicalize_file_name is missing.
11023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
11024         * modules/stdlib (Makefile.am): Substitute witnesses.
11025         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
11026         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
11027         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
11028         * NEWS: Document this.
11029         * doc/glibc-functions/canonicalize_file_name.texi
11030         (canonicalize_file_name): Likewise.
11031         * doc/posix-functions/realpath.texi (realpath): Likewise.
11032         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
11033
11034         test-canonicalize: consolidate into single C program
11035         * tests/test-canonicalize.sh: Delete; move setup into...
11036         * tests/test-canonicalize.c (main): ...the program, making it
11037         easier to run in debugger.  Add some tests.
11038         * modules/canonicalize-tests (Files): Remove unused file.
11039         (Depends-on): Add progname.
11040         (configure.ac, Makefile.am): Simplify.
11041
11042         test-canonicalize-lgpl: consolidate into single C program
11043         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
11044         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
11045         easier to run in debugger.  Add some tests.
11046         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
11047         (configure.ac, Makefile.am): Simplify.
11048
11049         canonicalize: avoid resolvepath
11050         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
11051         unnecessary checks.
11052         * lib/canonicalize.c (includes): Simplify.
11053         (canonicalize_file_name): Drop resolvepath implementation.
11054         * modules/canonicalize (Depends-on): Drop filenamecat.
11055
11056         canonicalize: don't lose errno
11057         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
11058         over calls to free.
11059
11060         canonicalize: simplify errno handling
11061         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
11062         assignment.
11063
11064         canonicalize, canonicalize-lgpl: update module dependencies
11065         * modules/canonicalize (Depends-on): Add extensions, lstat,
11066         pathmax, stdlib.
11067         (Files): Drop pathmax.h.
11068         (configure.ac): Adjust macro name.
11069         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
11070         lstat, stdlib, sys_stat.
11071         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
11072         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
11073         extensions.
11074         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
11075         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
11076         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
11077         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
11078         declaration, if available.
11079         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
11080         we can rely on the readlink module.
11081         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
11082         (includes): Use <unistd.h> unconditionally.
11083
11084 2009-09-17  Eric Blake  <ebb9@byu.net>
11085
11086         maint: make Include sections of modules consistent
11087         * modules/alloca: Use only header name; no need to list #include.
11088         * modules/alloca-opt: Likewise.
11089         * modules/arpa_inet: Likewise.
11090         * modules/canon-host: Likewise.
11091         * modules/configmake: Likewise.
11092         * modules/dirent: Likewise.
11093         * modules/eealloc: Likewise.
11094         * modules/environ: Likewise.
11095         * modules/fchdir: Likewise.
11096         * modules/fcntl: Likewise.
11097         * modules/fcntl-h: Likewise.
11098         * modules/gethrxtime: Likewise.
11099         * modules/gettime: Likewise.
11100         * modules/ignore-value: Likewise.
11101         * modules/inet_ntop: Likewise.
11102         * modules/inet_pton: Likewise.
11103         * modules/inttypes: Likewise.
11104         * modules/isnand-nolibm: Likewise.
11105         * modules/isnanf-nolibm: Likewise.
11106         * modules/mbchar: Likewise.
11107         * modules/mbfile: Likewise.
11108         * modules/mbiter: Likewise.
11109         * modules/mbuiter: Likewise.
11110         * modules/netdb: Likewise.
11111         * modules/netinet_in: Likewise.
11112         * modules/nproc: Likewise.
11113         * modules/pagealign_alloc: Likewise.
11114         * modules/poll: Likewise.
11115         * modules/printf-frexp: Likewise.
11116         * modules/pthread: Likewise.
11117         * modules/putenv: Likewise.
11118         * modules/random_r: Likewise.
11119         * modules/relocatable-prog: Likewise.
11120         * modules/search: Likewise.
11121         * modules/select: Likewise.
11122         * modules/selinux-h: Likewise.
11123         * modules/settime: Likewise.
11124         * modules/signal: Likewise.
11125         * modules/size_max: Likewise.
11126         * modules/socklen: Likewise.
11127         * modules/ssize_t: Likewise.
11128         * modules/stdarg: Likewise.
11129         * modules/stdbool: Likewise.
11130         * modules/stddef: Likewise.
11131         * modules/stdint: Likewise.
11132         * modules/stdio: Likewise.
11133         * modules/stdlib: Likewise.
11134         * modules/string: Likewise.
11135         * modules/strings: Likewise.
11136         * modules/sys_file: Likewise.
11137         * modules/sys_ioctl: Likewise.
11138         * modules/sys_select: Likewise.
11139         * modules/sys_socket: Likewise.
11140         * modules/sys_stat: Likewise.
11141         * modules/sys_time: Likewise.
11142         * modules/sys_times: Likewise.
11143         * modules/sys_utsname: Likewise.
11144         * modules/sys_wait: Likewise.
11145         * modules/sysexits: Likewise.
11146         * modules/time: Likewise.
11147         * modules/times: Likewise.
11148         * modules/tmpfile: Likewise.
11149         * modules/trim: Likewise.
11150         * modules/unistd: Likewise.
11151         * modules/wchar: Likewise.
11152         * modules/wctype: Likewise.
11153
11154 2009-09-17  Bruno Haible  <bruno@clisp.org>
11155
11156         Make getdate.y compile on QNX and NetBSD 5 / i386.
11157         * m4/getdate.m4 (gl_GETDATE): Conditionally define
11158         TIME_T_FITS_IN_LONG_INT.
11159         * lib/getdate.y (long_time_t): New type.
11160         (relative_time): Change type of 'seconds' field to long_time_t.
11161         (get_date): Update types of local variables. Check against overflow
11162         during conversion from long_time_t to time_t.
11163         Reported by Matt Kraai <kraai@ftbfs.org>
11164         and Hasso Tepper <hasso@netbsd.org>.
11165
11166 2009-09-17  Bruno Haible  <bruno@clisp.org>
11167
11168         * modules/COPYING: Update copyright years.
11169         * modules/README: Likeiwse.
11170         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
11171         Reported by Ian Beckwith <ianb@erislabs.net>.
11172
11173 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11174
11175         * users.txt: Update references for gnuit package.
11176
11177 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11178
11179         * m4/getdelim.m4: Fix typo in copyright line.
11180
11181 2009-09-17  Bruno Haible  <bruno@clisp.org>
11182
11183         * lib/atoll.c: Use the standard header with GPL copyright.
11184         * lib/argz.in.h: Likewise.
11185         * lib/glob.c: Likewise.
11186         * lib/glob-libc.h: Likewise.
11187         * lib/random_r.c: Likewise.
11188         * lib/siglist.h: Likewise.
11189         * lib/strsignal.c: Likewise.
11190         Reported by Ian Beckwith <ianb@erislabs.net>.
11191
11192 2009-09-17  Eric Blake  <ebb9@byu.net>
11193
11194         rmdir: ensure correct dependency order
11195         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
11196
11197 2009-09-17  Bruno Haible  <bruno@clisp.org>
11198
11199         Disable assertion that fails on NetBSD 5 / i386.
11200         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
11201         Reported by Sam Steingold <sds@gnu.org>
11202         and Hasso Tepper <hasso@netbsd.org>.
11203
11204 2009-09-16  Eric Blake  <ebb9@byu.net>
11205
11206         unlinkdir: port to mingw
11207         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
11208         on which no one can unlink a directory.
11209
11210         stdlib: sort witness names
11211         * modules/stdlib (Makefile.am): Sort replacements.
11212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11213         * lib/stdlib.in.h: Likewise.
11214
11215         parse-duration-tests: avoid link failure
11216         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
11217         LIBINTL.
11218         Reported by Tom G. Christensen.
11219
11220         openat-tests: ensure unlinkat behaves like rmdir
11221         * tests/test-rmdir.c (main): Factor guts...
11222         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11223         * modules/rmdir-tests (Files): Ship new file.
11224         * modules/openat-tests: New test.
11225         * tests/test-unlinkat.c: Likewise.
11226
11227         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11228         * modules/rmdir-errno (Status, Notice): Now obsolete.
11229
11230         rmdir: work around cygwin 1.5.x and mingw bugs
11231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11232         * lib/rmdir.c (rmdir): Work around it.
11233         * modules/rmdir (Status, Notice): No longer obsolete.
11234         (Files): Add dos.m4.
11235         (Depends-on): Add unistd.
11236         (configure.ac): Set witnesses.
11237         (License): Relax to LGPLv2+.
11238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11239         * modules/unistd (Makefile.am): Substitute witnesses.
11240         * lib/unistd.in.h (rmdir): Declare replacement.
11241         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11242         * modules/rmdir-tests: New tests.
11243         * tests/test-rmdir.c: Likewise.
11244
11245 2009-09-15  Eric Blake  <ebb9@byu.net>
11246
11247         fchdir: improve use of replacement functions
11248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11250         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11251         REPLACE_CLOSEDIR.
11252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11253         * modules/sys_stat (Makefile.am): Substitute correct witness.
11254         * modules/dirent (Makefile.am): Likewise.
11255         * modules/unistd (Makefile.am): Likewise.
11256         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11257         * lib/unistd.in.h (dup): Likewise.
11258         * lib/sys_stat.in.h (fstat): Likewise.
11259
11260         maint: ignore gnulib-tool temp files
11261         * .gitignore: Ignore files created during gnulib-tool --test.
11262
11263 2009-09-13  Jim Meyering  <meyering@redhat.com>
11264
11265         posixtm: don't reject a time that specify "60" as the number of seconds
11266         * lib/posixtm.c (posixtime): The code to reject invalid dates
11267         would also reject a time specified with the .60 suffix.
11268         But POSIX allows that, in order to accommodate leap seconds.
11269         So don't reject it.
11270         (main): Adjust tests accordingly.
11271         * modules/posixtm (Depends-on): Add stpcpy.
11272
11273 2009-09-11  Jim Meyering  <meyering@redhat.com>
11274
11275         announce-gen: include [$release_type] in emitted Subject:
11276         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11277         e.g., [stable] in the emitted Subject: line.
11278
11279 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11280
11281         Remove obsolete macros from several modules.
11282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11283         obsolete Autoconf macros with their modern counterparts.
11284         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11285         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11286         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11287         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11288         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11289         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11291         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11292         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11293         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11294         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11295         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11296         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11297         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11298         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11299         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11300         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11301         * m4/time_r.m4 (gl_TIME_R): Likewise.
11302         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11303         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11304         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11305
11306         Fix copyright header in build-aux scripts.
11307         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11308         recommendation.
11309         * build-aux/ncftpput-ftp: Likewise.
11310         * build-aux/update-copyright: Likewise.
11311
11312 2009-09-09  Eric Blake  <ebb9@byu.net>
11313
11314         test-link: allow Linux choice of errno
11315         * tests/test-link.c (main): Relax test for alternate error.
11316
11317         strndup: fix improper m4 caching
11318         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11319         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11320         (gl_PREREQ_STRNDUP): Delete.
11321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11322         * modules/string (Makefile.am): Substitute it.
11323         * lib/string.in.h (strndup): Modernize prototype.
11324
11325         getcwd: port to mingw
11326         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11327         different from the POSIX assumptions made throughout the getcwd
11328         module; fortunately, the mingw getcwd does not need replacement.
11329         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11330         * modules/getcwd-tests: New test.
11331         * tests/test-getcwd.c: Likewise.
11332
11333         link: fix platform bugs
11334         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11335         * lib/link.c (link): Work around them.  Fix related mingw bug.
11336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11337         * modules/unistd (Makefile.am): Substitute it.
11338         * lib/unistd.in.h (link): Declare replacement.
11339         * doc/posix-functions/link.texi (link): Document this.
11340         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11341
11342         test-link: consolidate into single C program, test more cases
11343         * tests/test-link.sh: Delete.
11344         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11345         at least Cygwin and Solaris.
11346         * modules/link-tests (Files): Remove unused file.
11347         (Depends-on): Add errno, sys_stat.
11348         (Makefile.am): Simplify.
11349
11350 2009-09-08  Bruno Haible  <bruno@clisp.org>
11351
11352         Work around towlower, towupper bug on mingw.
11353         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11354         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11355         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11356         * doc/posix-functions/towupper.texi: Likewise.
11357         Reported by Eric Blake.
11358
11359 2009-09-08  Jim Meyering  <meyering@redhat.com>
11360
11361         build: don't try to run autoheader if we don't use it
11362         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11363         is not used in configure.ac.
11364
11365 2009-09-08  Eric Blake  <ebb9@byu.net>
11366
11367         euidaccess: fix compilation error
11368         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11369
11370         rawmemchr: relax license
11371         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11372         okay.
11373         Reported by Jim Meyering.
11374
11375         mkfifoat: new module
11376         * modules/mkfifoat: New file.
11377         * lib/mkfifoat.c: Likewise.
11378         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11380         * modules/sys_stat (Makefile.am): Use them.
11381         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11382         * MODULES.html.sh (File system functions): Mention module.
11383         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11384         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11385         * modules/mkfifoat-tests: New test.
11386         * tests/test-mkfifoat.c: Likewise.
11387
11388         strchrnul: relax license
11389         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11390         okay.
11391         Reported by Jim Meyering.
11392
11393 2009-09-08  Eric Blake  <ebb9@byu.net>
11394
11395         fstatat: fix compilation on Solaris
11396         * lib/fstatat.c (includes): Add fcntl.h.
11397         Reported by Pádraig Brady.
11398
11399 2009-09-07  Eric Blake  <ebb9@byu.net>
11400
11401         rename: modernize replacement
11402         * modules/rename (Depends-on): Add stdio.
11403         (configure.ac): Declare witness.
11404         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11405         stdio take care of replacement.
11406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11407         * modules/stdio (Makefile.am): Substitute them.
11408         * lib/stdio.in.h (rename): Declare replacement.
11409         * lib/rename.c (includes): Allow cross-compilation to non-windows
11410         machines.
11411         * doc/posix-functions/rename.texi (rename): Improve
11412         documentation.
11413
11414         stdio: sort witness names
11415         * modules/stdio (Makefile.am): Sort replacements.
11416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11417         * lib/stdio.in.h: Likewise.
11418
11419         getcwd: minor cleanups
11420         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11421         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11422
11423         openat: provide more convenience names
11424         * modules/faccessat (configure.ac): Add C witness.
11425         * lib/unistd.in.h (readlinkat): Fix typo.
11426         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11427         convenience wrappers.
11428         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11429         wrappers in syntax checks.
11430
11431 2009-09-06  Eric Blake  <ebb9@byu.net>
11432
11433         doc: fix comments in recent patches
11434         * lib/faccessat.c: Mention correct function.
11435         * lib/fchmodat.c: Likewise.
11436         * lib/fchownat.c: Likewise.
11437         * lib/symlinkat.c: Likewise.
11438         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11439         constants.
11440
11441         faccessat, symlinkat: continue cleanup of previous patch
11442         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11443         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11444         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11446         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11447         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11448         set.
11449
11450 2009-09-06  Bruno Haible  <bruno@clisp.org>
11451
11452         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11453         (fstatat): Declare if GNULIB_FSTATAT is set.
11454         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11455         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11456         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11457         * modules/fcntl-h (Files): Remove m4/openat.m4.
11458         * modules/sys_stat (Files): Remove m4/openat.m4.
11459         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11460         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11461         * modules/unistd (Files): Remove m4/openat.m4.
11462         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11463         GNULIB_OPENAT.
11464         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11465         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11466         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11467         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11468         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11469         gl_OPENAT_DEFAULTS.
11470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11471         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11472         Don't require gl_OPENAT_DEFAULTS.
11473         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11474         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11475         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11476         (gl_OPENAT_DEFAULTS): Remove macro.
11477
11478 2009-09-06  Bruno Haible  <bruno@clisp.org>
11479
11480         * modules/openat (configure.ac): Remove unneeded witness.
11481
11482 2009-09-06  Bruno Haible  <bruno@clisp.org>
11483
11484         Set errno to ENOSYS when a function is entirely unsupported.
11485         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11486         EOPNOTSUPP.
11487         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11488         * modules/chown (Depends-on): Remove errno.
11489
11490 2009-09-06  Bruno Haible  <bruno@clisp.org>
11491
11492         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11493
11494 2009-09-06  Bruno Haible  <bruno@clisp.org>
11495
11496         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11497
11498 2009-09-06  Ben Pfaff  <blp@gnu.org>
11499             Bruno Haible  <bruno@clisp.org>
11500
11501         Work around a glibc bug in strtok_r.
11502         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11503         Undefine if UNDEFINE_STRTOK_R is set.
11504         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11506         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11507         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11508         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11509         UNDEFINE_STRTOK_R.
11510         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11511
11512 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11513
11514         exclude: minor fix
11515         * lib/exclude.c: Include wctype.h
11516
11517 2009-09-06  Akim Demaille  <demaille@gostai.com>
11518
11519         bootstrap: improve error message
11520         * build-aux/bootstrap (find_tool): Upon failure, report the list
11521         of candidates.
11522         Honor the initial value of the envvar.
11523
11524 2009-09-05  Eric Blake  <ebb9@byu.net>
11525
11526         symlinkat: new module
11527         * modules/symlinkat: New file.
11528         * lib/symlinkat.c: Likewise.
11529         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11531         * modules/unistd (Makefile.am): Use them.
11532         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11533         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11534         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11535         * MODULES.html.sh (File system functions): Mention module.
11536         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11537         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11538         * modules/symlinkat-tests: New test.
11539         * tests/test-symlinkat.c: Likewise.
11540
11541         test-openat-safer: add more checks
11542         * tests/test-openat-safer.c (main): Check more code paths.
11543
11544 2009-09-05  Jim Meyering  <meyering@redhat.com>
11545
11546         syntax-check: detect unnecessary inclusion of openat.h
11547         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11548
11549 2009-09-05  Bruno Haible  <bruno@clisp.org>
11550
11551         Support towlower, towupper.
11552         * doc/posix-functions/towlower.texi: Mention module wctype.
11553         * doc/posix-functions/towupper.texi: Likewise.
11554         * lib/wctype.in.h (towlower, towupper): New functions.
11555         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11556         (ASSERT): New macro.
11557         (e): New variable.
11558         (main): Test also towlower, towupper. Test WEOF argument.
11559         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11560
11561 2009-09-05  Bruno Haible  <bruno@clisp.org>
11562
11563         Fix conversion behaviour when the input is invalid.
11564         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11565         mark occurring in first pass of indirect conversion.
11566         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11567         input.
11568         Found by clang's static analyzer.
11569
11570 2009-09-05  Bruno Haible  <bruno@clisp.org>
11571
11572         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11573         where direct conversion is possible.
11574
11575 2009-09-04  Eric Blake  <ebb9@byu.net>
11576
11577         openat: fail with ENOENT on empty name
11578         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11579         buffer.
11580
11581         link-follow: fix logic bug in prior patch
11582         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11583         reversed sense of yes and no in prior patch.  Avoid confusing
11584         compilation failure with desired semantics.
11585
11586         link-follow: accomodate mingw and cross-compilation
11587         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11588         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11589         cross-compilation results to -1, to make linkat easier to
11590         implement when cross-compiling.  Trivially support mingw.
11591         * modules/link-follow (configure.ac): Call new name.
11592         * NEWS: Mention this.
11593
11594 2009-09-03  Eric Blake  <ebb9@byu.net>
11595
11596         faccessat: compile replacement
11597         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11598         needed.
11599
11600         fts: fix compilation error
11601         * lib/fts.c (includes): Re-add "openat.h", for
11602         openat_needs_fchdir.
11603
11604         faccessat: new module
11605         * modules/faccessat: New file.
11606         * lib/faccessat.c: Likewise.
11607         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11609         * modules/unistd (Makefile.am): Use it.
11610         * lib/unistd.in.h (faccessat): Declare it.
11611         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11612         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11613         * MODULES.html.sh (File system functions): Mention it.
11614         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11615         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11616
11617         euidaccess: prefer POSIX over non-standard implementation
11618         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11619         * lib/euidaccess.c (euidaccess): Use it if available.
11620
11621         openat: make template easier to use
11622         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11623         AT_FUNC_F2 to be undefined.
11624         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11625         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11626         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11627         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11628         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11629         Likewise.
11630         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11631         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11632         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11633         Likewise.
11634
11635         openat: declare in POSIX headers
11636         * NEWS: Mention this.
11637         * modules/openat (configure.ac): Declare witnesses.
11638         (Depends-on): Add fcntl-h, sys_stat, unistd.
11639         (Include): Mention correct headers.
11640         * modules/fcntl-h (Depends-on): Add link-warning.
11641         (Files): Add openat.m4.
11642         (Makefile.am): Substitute witnesses.
11643         * modules/sys_stat (Files, Makefile.am): Likewise.
11644         * modules/unistd (Files, Makefile.am): Likewise.
11645         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11646         (gl_OPENAT_DEFAULTS): New macro.
11647         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11649         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11650         (SYS_STAT_H): Remove unused variable.
11651         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11652         * lib/fcntl--.h (includes): Remove unneeded header.
11653         * lib/openat-safer.c (includes): Likewise.
11654         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11655         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11656         appropriate headers.
11657         (__OPENAT_PREFIX): Delete.
11658         * lib/fcntl.in.h (openat): Provide declaration.
11659         (AT_FDCWD): Fix Solaris bug.
11660         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11661         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11662         * lib/fchmodat.c (includes):  Adjust to find declaration.
11663         * lib/fchownat.c (includes): Likewise.
11664         * lib/mkdirat.c (includes): Likewise.
11665         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11666         still visible.
11667
11668 2009-09-02  Eric Blake  <ebb9@byu.net>
11669
11670         errno: use consistently
11671         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11672         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11673         * lib/canonicalize.c (ELOOP): Likewise.
11674         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11675         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11676         * lib/lchown.c (EOPNOTSUPP): Likewise.
11677         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11678         * lib/savewd.c (ESTALE): Likewise.
11679         * lib/settime.c (ENOSYS): Likewise.
11680         * lib/utimens.c (ENOSYS): Likewise.
11681         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11682         * lib/chdir-safer.c (ELOOP): Likewise.
11683         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11684         * modules/c-stack (Depends-on): Add errno.
11685         * modules/canonicalize (Depends-on): Likewise.
11686         * modules/chdir-safer (Depends-on): Likewise.
11687         * modules/fdopendir (Depends-on): Likewise.
11688         * modules/inet_ntop (Depends-on): Likewise.
11689         * modules/inet_pton (Depends-on): Likewise.
11690         * modules/lchown (Depends-on): Likewise.
11691         * modules/openat (Depends-on): Likewise.
11692         * modules/savewd (Depends-on): Likewise.
11693         * modules/settime (Depends-on): Likewise.
11694         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11695
11696         fts: avoid leaking fds
11697         * modules/fts (Depends-on): Add cloexec.
11698         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11699         flag.
11700
11701         fts: make directory fds more robust
11702         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11703         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11704
11705         backupfile, chdir-long, fts, savedir: make safer
11706         * lib/backupfile.c (includes): Use "dirent--.h", since
11707         numbered_backup can write to stderr during readdir.
11708         * lib/savedir.c (includes): Likewise.
11709         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11710         emulation can write to stderr on failure.
11711         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11712         * lib/getcwd.c: Document why opendir_safer is unused.
11713         * lib/glob.c: Likewise.
11714         * lib/scandir.c: Likewise.
11715         * lib/openat-proc.c: Likewise, for open_safer.
11716         * modules/backupfile (Depends-on): Add dirent-safer.
11717         * modules/savedir (Depends-on): Likewise.
11718         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11719         * modules/chdir-long (Depends-on): Add openat-safer.
11720
11721         openat-safer: new module
11722         * modules/openat-safer: New file.
11723         * lib/openat-safer.c: Likewise.
11724         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11725         * lib/fcntl-safer.h (openat_safer): Declare.
11726         * lib/fcntl--.h (openat): Override.
11727         * MODULES.html.sh (File descriptor based I/O): Mention it.
11728         * lib/openat.h: Add double-inclusion guards.
11729         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11730         "fcntl--.h", so we can implement openat.
11731         * modules/openat-safer-tests: New test.
11732         * tests/test-openat-safer.c: New file.
11733
11734         dirent-safer: new module
11735         * modules/dirent-safer: New file.
11736         * lib/dirent--.h: Likewise.
11737         * lib/dirent-safer.h: Likewise.
11738         * lib/opendir-safer.c: Likewise.
11739         * m4/dirent-safer.m4: Likewise.
11740         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11741         * modules/dirent-safer-tests: New test.
11742         * tests/test-dirent-safer.c: New file.
11743         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11744
11745         fdopendir: optimize on mingw
11746         * lib/unistd.in.h (_gl_directory_name): New prototype.
11747         * lib/fchdir.c (_gl_directory_name): Implement it.
11748         (fchdir): Use it to simplify implementation.
11749         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11750         fchdir, when available, to avoid calling [f]chdir().
11751
11752         fdopendir: split into its own module
11753         * lib/openat.c (fdopendir): Move...
11754         * lib/fdopendir.c: ...into new file.
11755         * modules/fdopendir: New module.
11756         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11757         * modules/openat (Depends-on): Add fdopendir.
11758         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11759         fdopendir here.
11760         * modules/savedir (Depends-on): Only need fdopendir, not full
11761         openat.
11762         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11763         * lib/openat.h (fdopendir): Drop prototype.
11764         * lib/dirent.in.h (fdopendir): Provide prototype.
11765         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11766         * modules/dirent (Makefile.am): Substitute them.
11767         * MODULES.html.sh (File system functions): Mention it.
11768         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11769         * modules/fdopendir-tests: New file.
11770         * tests/test-fdopendir.c: Likewise.
11771
11772         fchdir: use more consistent macro convention
11773         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11774         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11775         REPLACE_FCHDIR, rather than relying on config.h macros.
11776         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11777         inside a single make-time REPLACE_FCHDIR block, rather than using
11778         the config.h FCHDIR_REPLACEMENT.
11779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11780         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11781         Manage fstat replacement.
11782         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11783         REPLACE_FCHDIR.
11784         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11785         (Makefile.am): Substitute REPLACE_FCHDIR.
11786         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11787         FCHDIR_REPLACEMENT.
11788         * lib/dup-safer.c (dup_safer): Likewise.
11789         * lib/dup2.c (rpl_dup2): Likewise.
11790         * lib/dup3.c (rpl_dup3): Likewise.
11791         * lib/open.c (rpl_open): Likewise.
11792
11793         fchdir: simplify error handling, and support dup3
11794         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11795         stdbool, malloc-posix, realloc-posix.
11796         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11797         (ensure_dirs_slot): Return false on allocation failure.
11798         (rpl_dup2): Delete.
11799         (_gl_register_dup): New function.
11800         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11801         (_gl_register_fd): Close fd on allocation failure.
11802         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11803         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11804         prototype.
11805         (rpl_dup2_fchdir): Delete prototype.
11806         * lib/open.c (open): Update caller.
11807         * lib/dup2.c (dup2): Track fchdir metadata.
11808         * lib/dup3.c (dup3): Likewise.
11809         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11811
11812 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11813
11814         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11815         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11816         don't pass arguments to AC_OUTPUT.
11817
11818 2009-09-02  Bruno Haible  <bruno@clisp.org>
11819
11820         * modules/mkdtemp (License): Relicense under LGPLv2+.
11821         Reported by Paolo Bonzini.
11822
11823 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11824
11825         Replace uses of obsolete autoconf macros in Jim's modules.
11826         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11827         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11828         can evoke a warning from autoconf when run with -Wobsolete
11829         enabled.  They were declared obsolete for good reasons (see
11830         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11831         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11832         should not continue using the deprecated macros.
11833         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11834         obsolete Autoconf macros with modern counterparts.
11835         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11836         * m4/dos.m4 (gl_AC_DOS): Likewise.
11837         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11838         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11839         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11840         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11841         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11842         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11843         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11844         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11845         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11846         Likewise.
11847         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11848         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11849         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11850         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11851         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11852         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11853
11854 2009-09-01  Eric Blake  <ebb9@byu.net>
11855
11856         fchdir: fix off-by-one bug in previous patch
11857         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11858         (_gl_unregister_fd): Delete useless if.
11859
11860 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11861
11862         maint.mk: sort the list of syntax-check rules
11863         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11864         easier to get a sense of progress when the rules are run sequentially
11865         and take a long time.
11866
11867 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11868
11869         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11870         * modules/netinet_in: Likewise.
11871         * modules/sys_file: Likewise.
11872         * modules/sys_ioctl: Likewise.
11873         * modules/sys_select: Likewise.
11874         * modules/sys_socket: Likewise.
11875         * modules/sys_stat: Likewise.
11876         * modules/sys_time: Likewise.
11877         * modules/sys_times: Likewise.
11878         * modules/sys_utsname: Likewise.
11879         * modules/sys_wait: Likewise.
11880
11881 2009-09-01  Jim Meyering  <meyering@redhat.com>
11882
11883         fts: help ensure that return values are not ignored
11884         * lib/fts_.h (__GNUC_PREREQ): Define.
11885         (__attribute_warn_unused_result__): Define.
11886         (fts_children, fts_close, fts_open, fts_read): Declare with
11887         __attribute_warn_unused_result__.
11888
11889         fts: fts_close now fails also when closing a dir file descriptor fails
11890         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11891         and propagate to caller, along with errno.
11892
11893         announce-gen: correct formatting in --help output
11894         * build-aux/announce-gen (usage): Move the one-line description in
11895         --help output "up", to where it belongs, just after Usage:.
11896
11897 2009-08-31  Eric Blake  <ebb9@byu.net>
11898
11899         fchdir: port to mingw
11900         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11901         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11902         opened, then use a substitute.
11903         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11904         replacement.
11905         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11906         (_gl_register_fd): No need to check stat if open already filters
11907         all directories.
11908         (fchdir): Fix error condition to match POSIX.
11909         * modules/fchdir (Depends-on): Add sys_stat.
11910         * doc/posix-functions/open.texi (open): Document the limitation.
11911         * modules/fchdir-tests: New file.
11912         * tests/test-fchdir.c: Likewise.
11913
11914         canonicalize: allow cross-testing from cygwin to mingw
11915         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11916         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11917         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11918         Likewise.
11919         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11920         target does not support symlinks.
11921         * tests/test-canonicalize-lgpl.sh: Likewise.
11922
11923         chown: avoid compilation warning on mingw
11924         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11925         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11926         mingw.
11927         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11928         * modules/chown (Depends-on): Add errno.
11929
11930 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11931
11932         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11933         command.
11934
11935 2009-08-31  Jim Meyering  <meyering@redhat.com>
11936
11937         canonicalize: remove useless initialization
11938         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11939         initialization of local, "end".
11940
11941 2009-08-30  Bruno Haible  <bruno@clisp.org>
11942
11943         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11944         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11945         ENOSYS.
11946
11947 2009-08-30  Bruno Haible  <bruno@clisp.org>
11948
11949         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11950         /usr/xpg4/bin/tr when it exists.
11951         * tests/test-pipe-filter-gi1.sh: Likewise.
11952
11953 2009-08-30  Bruno Haible  <bruno@clisp.org>
11954
11955         Work around deficient /usr/bin/id program on Solaris.
11956         * tests/test-file-has-acl.sh (ID): New variable.
11957         * tests/test-set-mode-acl.sh (ID): Likewise.
11958         * tests/test-copy-acl.sh (ID): Likewise.
11959         * tests/test-copy-file.sh (ID): Likewise.
11960
11961 2009-08-30  Bruno Haible  <bruno@clisp.org>
11962
11963         New module 'xstriconveh'.
11964         * lib/xstriconveh.h: New file.
11965         * lib/xstriconveh.c: New file.
11966         * modules/xstriconveh: New file.
11967
11968 2009-08-30  Bruno Haible  <bruno@clisp.org>
11969
11970         Make it easier to use mem_cd_iconveh.
11971         * lib/striconveh.h (iconveh_t): New type.
11972         (iconveh_open, iconveh_close): New declarations.
11973         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11974         with a single 'const iconveh_t *' argument.
11975         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11976         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11977         with a single 'const iconveh_t *' argument.
11978         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11979         * tests/test-striconveh.c (main): Update.
11980         * NEWS: Mention the change.
11981
11982 2009-08-30  Bruno Haible  <bruno@clisp.org>
11983
11984         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11985         problem.
11986
11987 2009-08-30  Bruno Haible  <bruno@clisp.org>
11988
11989         Work around iconv_open problem on Solaris.
11990         * lib/iconv_open-solaris.gperf: New file.
11991         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11992         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11993         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11994         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11995         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11996         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11997
11998 2009-08-29  Jim Meyering  <meyering@redhat.com>
11999
12000         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
12001         * top/maint.mk (cvs-check): Remove target; it was just an alias
12002         to the better-named vc-diff-check.
12003         (maintainer-distcheck): Remove rule.  It was used only from
12004         the (alpha/beta/major) target, and all of its commands but one
12005         were coreutils-specific.
12006         (vc-dist): Remove rule.
12007         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
12008         Run vc-diff-check, not vc-dist.
12009         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
12010
12011 2009-08-27  Bruno Haible  <bruno@clisp.org>
12012
12013         * tests/test-bitrotate.c (main): Remove test that uses a shift count
12014         of 0.
12015
12016 2009-08-27  Bruno Haible  <bruno@clisp.org>
12017
12018         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
12019         compilers.
12020         * doc/func.texi: Document the SunPRO C bug.
12021
12022 2009-08-27  Bruno Haible  <bruno@clisp.org>
12023
12024         Fix link error on Solaris.
12025         * tests/test-parse-duration.c (xstrdup): Remove function.
12026
12027 2009-08-26  Pádraig Brady  <P@draigbrady.com>
12028
12029         ignore-value: handle pointer types, too
12030         * lib/ignore-value.h (__attribute__): Remove definition.
12031         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
12032         of a more concise and more-often effective "(void) i" statement.
12033         (ignore_ptr): New function to suppress warnings from functions that
12034         return pointers, and to make it explicit that one function doesn't
12035         handle all cases.
12036
12037 2009-08-25  Bruno Haible  <bruno@clisp.org>
12038
12039         dup2: work around a Linux bug.
12040         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
12041         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
12042         * doc/posix-functions/dup2.texi: Mention the Linux bug.
12043         Reported by Simon Josefsson.
12044
12045 2009-08-25  Jim Meyering  <meyering@redhat.com>
12046
12047         libguestfs uses gnulib
12048         * users.txt: Add libguestfs.
12049
12050 2009-08-24  Eric Blake  <ebb9@byu.net>
12051
12052         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
12053         * lib/pipe2.c (includes): Add binary-io.h.
12054         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
12055
12056 2009-08-24  Bruno Haible  <bruno@clisp.org>
12057
12058         Tolerate declared but missing accept4 syscall.
12059         * lib/accept4.c (accept4): Invoke original accept4 function first, if
12060         available.
12061         * lib/sys_socket.in.h (accept4): If the function is already present,
12062         override it.
12063         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
12064         * modules/accept4 (Makefile.am): Compile accept4.c always.
12065         Reported by Paolo Bonzini and Eric Blake.
12066
12067 2009-08-23  Bruno Haible  <bruno@clisp.org>
12068
12069         New module 'accept4'.
12070         * lib/sys_socket.in.h (accept4): New declaration.
12071         * lib/accept4.c: New file.
12072         * m4/accept4.m4: New file.
12073         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12074         GNULIB_ACCEPT4, HAVE_ACCEPT4.
12075         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
12076         HAVE_ACCEPT4.
12077         * modules/accept4: New file.
12078         * doc/glibc-functions/accept4.texi: Mention the new module.
12079
12080 2009-08-24  Jim Meyering  <meyering@redhat.com>
12081
12082         progname: also set global program_invocation_name, when possible
12083         Before this change, a libtool-enabled program that calls glibc's
12084         error function would report the program name as
12085         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
12086         * modules/progname (configure.ac): Check for a declaration of
12087         program_invocation_name.
12088         * lib/progname.c:  Include <errno.h>.
12089         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
12090         Set program_invocation_name.
12091
12092 2009-08-23  Bruno Haible  <bruno@clisp.org>
12093
12094         * lib/dup3.c: Include <string.h>.
12095
12096 2009-08-23  Bruno Haible  <bruno@clisp.org>
12097
12098         * lib/dup3.c (dup3): Test only once whether the system actually exists.
12099         * lib/pipe2.c (pipe2): Likewise.
12100         Suggested by Eric Blake.
12101
12102 2009-08-23  Bruno Haible  <bruno@clisp.org>
12103
12104         Tolerate declared but missing dup3 syscall.
12105         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
12106         * lib/unistd.in.h (dup3): If the function is already present,
12107         override it.
12108         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
12109         * modules/dup3 (Makefile.am): Compile dup3.c always.
12110         Reported by Paolo Bonzini.
12111
12112 2009-08-23  Bruno Haible  <bruno@clisp.org>
12113
12114         Tolerate declared but missing pipe2 syscall.
12115         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
12116         available.
12117         * lib/unistd.in.h (pipe2): If the function is already present,
12118         override it.
12119         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
12120         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
12121         Reported by Paolo Bonzini.
12122
12123 2009-08-23  Bruno Haible  <bruno@clisp.org>
12124
12125         * lib/pipe2.c (pipe2): Move #ifs inside function.
12126
12127 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12128
12129         quotearg: document limitations of quote_these_too
12130         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
12131         those limitations are created.
12132         * lib/quotearg.h (set_char_quoting): Document that digits and
12133         letters that are special after backslash are not permitted.
12134         (quotearg_char): Cross-reference set_char_quoting documentation.
12135
12136 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
12137
12138         quotearg: implement custom_quoting_style
12139         * lib/quotearg.c: (struct quoting_options): Add left_quote and
12140         right_quote fields.
12141         (set_custom_quoting): New public function.
12142         (quotearg_buffer_restyled): Add left_quote and right_quote
12143         arguments, handle them very much like locale quoting, and update
12144         all uses.
12145         (quotearg_n_custom): New public function.
12146         (quotearg_n_custom_mem): New public function.
12147         (quotearg_custom): New public function.
12148         (quotearg_custom_mem): New public function.
12149         * lib/quotearg.h: Prototype and document new public functions.
12150         (enum quoting_style): For escape_quoting_style and
12151         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
12152         ignored even though they're otherwise like c_quoting_style.
12153         Add custom_quoting_style member and document with comparison to
12154         clocale_quoting_style.
12155         * tests/test-quotearg.c (custom_quotes): New array.
12156         (custom_results): New array.
12157         (main): Extend to test custom quoting.
12158
12159 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12160
12161         quotearg: fix right quote escaping when it's in quote_these_too
12162         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
12163         quote, be sure to prepend only one backslash.
12164         * tests/test-quotearg.c (use_quote_double_quotes): New function.
12165         (main): Test it.
12166
12167 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12168
12169         quotearg-tests: test escaping of embedded locale quotes
12170         * tests/test-quotearg.c (struct result_strings): Add member for
12171         new input.
12172         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
12173         (inputs): Add new input.
12174         (results_g): Add expected results.
12175         (flag_results): Likewise.
12176         (locale_results): Likewise.
12177         (compare_strings): Check those.
12178
12179 2009-08-23  Bruno Haible  <bruno@clisp.org>
12180
12181         Tests for module 'dup3'.
12182         * modules/dup3-tests: New file.
12183         * tests/test-dup3.c: New file.
12184
12185         New module 'dup3'.
12186         * lib/unistd.in.h (dup3): New declaration.
12187         * lib/dup3.c: New file.
12188         * m4/dup3.m4: New file.
12189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
12190         HAVE_DUP3.
12191         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
12192         * modules/dup3: New file.
12193         * doc/glibc-functions/dup3.texi: Mention the new module.
12194
12195 2009-08-23  Bruno Haible  <bruno@clisp.org>
12196
12197         Tweak the dup2 test.
12198         * tests/test-dup2.c (main): Create the test file empty. Verify that an
12199         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
12200         the test file is still empty. Fix argument order of lseek.
12201
12202 2009-08-23  Bruno Haible  <bruno@clisp.org>
12203
12204         Avoid test link errors when the modules getopt-gnu, gettext are used.
12205         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
12206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12207
12208 2009-08-23  Bruno Haible  <bruno@clisp.org>
12209
12210         Fix getdtablesize() on mingw.
12211         * lib/getdtablesize.c (getdtablesize): Implement differently.
12212         * lib/unistd.in.h (getdtablesize): Improve comment.
12213
12214 2009-08-23  Bruno Haible  <bruno@clisp.org>
12215
12216         New module 'mkostemp'.
12217         Based on Ulrich Drepper's 2007-08-10 change in glibc.
12218         * lib/stdlib.in.h (mksotemp): New declaration.
12219         * lib/mkostemp.c: New file, from glibc with modifications.
12220         * lib/tempname.h (GT_FILE): Remove outdated comment.
12221         (gen_tempname): Add flags argument.
12222         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12223         (__GT_FILE): Map to 1.
12224         (small_open, large_open): Remove macros.
12225         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12226         * lib/mkstemp.c (mkstemp): Update.
12227         * lib/mkdtemp.c (mkdtemp): Likewise.
12228         * m4/mkostemp.m4: New file.
12229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12230         HAVE_MKOSTEMP.
12231         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12232         HAVE_MKOSTEMP.
12233         * modules/mkostemp: New file, based on modules/mkstemp.
12234         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12235         * NEWS: Mention the change.
12236
12237 2009-08-23  Bruno Haible  <bruno@clisp.org>
12238
12239         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12240         Reported by Eric Blake.
12241
12242 2009-08-23  Bruno Haible  <bruno@clisp.org>
12243
12244         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12245         Reported by Eric Blake.
12246
12247 2009-08-23  Bruno Haible  <bruno@clisp.org>
12248
12249         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12250         * modules/pipe2 (Depends-on): Likewise.
12251
12252 2009-08-23  Eric Blake  <ebb9@byu.net>
12253
12254         fcntl-h: add O_TTY_INIT support
12255         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12256         * tests/test-fcntl-h.c (o): Test it.
12257         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12258
12259         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12260         * modules/fcntl: Move <fcntl.h> header replacement...
12261         * modules/fcntl-h: ...to new name, so as not to collide with
12262         like-named function.
12263         * tests/test-fcntl.c: Rename...
12264         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12265         * modules/fcntl-tests: Rename...
12266         * modules/fcntl-h-tests: ...to this.  Update test file name.
12267         * modules/chdir-long (Depends-on): Update clients.
12268         * modules/chdir-safer (Depends-on): Likewise.
12269         * modules/fcntl-safer (Depends-on): Likewise.
12270         * modules/fts (Depends-on): Likewise.
12271         * modules/mkancesdirs (Depends-on): Likewise.
12272         * modules/mkdir-p (Depends-on): Likewise.
12273         * modules/open (Depends-on): Likewise.
12274         * modules/savewd (Depends-on): Likewise.
12275         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12276         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12277
12278 2009-08-22  Bruno Haible  <bruno@clisp.org>
12279
12280         * modules/binary-io (License): Relicense under LGPL.
12281         * modules/pipe2 (License): Likewise.
12282
12283 2009-08-22  Bruno Haible  <bruno@clisp.org>
12284
12285         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12286         return value.
12287         * lib/pipe-filter-gi.c (filter_init): Likewise.
12288         Reported by Eric Blake.
12289
12290 2009-08-22  Bruno Haible  <bruno@clisp.org>
12291
12292         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12293         * modules/pipe (Depends-on): Add pipe2.
12294
12295 2009-08-22  Bruno Haible  <bruno@clisp.org>
12296
12297         Tests for module 'pipe2'.
12298         * modules/pipe2-tests: New file.
12299         * tests/test-pipe2.c: New file.
12300
12301         New module 'pipe2'.
12302         * lib/unistd.in.h (pipe2): New declaration.
12303         * lib/pipe2.c: New file.
12304         * m4/pipe2.m4: New file.
12305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12306         HAVE_PIPE2.
12307         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12308         * modules/pipe2: New file.
12309         * doc/glibc-functions/pipe2.texi: Mention the new module.
12310
12311 2009-08-22  Bruno Haible  <bruno@clisp.org>
12312
12313         Reference some new glibc functions.
12314         * doc/glibc-functions/accept4.texi: New file.
12315         * doc/glibc-functions/dup3.texi: New file.
12316         * doc/glibc-functions/mkostemp.texi: New file.
12317         * doc/glibc-functions/pipe2.texi: New file.
12318         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12319         (Glibc sys/socket.h): Refer to accept4.
12320         (Glibc unistd.h): Refer to dup3, pipe2.
12321         Reported by Eric Blake.
12322
12323 2009-08-22  Jim Meyering  <meyering@redhat.com>
12324             Bruno Haible  <bruno@clisp.org>
12325
12326         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12327         This makes it so packages using automake-1.11's silent-rules option
12328         can print e.g., a single "GEN    configmake.h" line, rather than
12329         the 30+ statements that perform the job.  If you want to see the
12330         actual commands, you can still run "make V=1".
12331         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12332         so that make output is abbreviated when those variables are defined
12333         appropriately.
12334         * modules/argz: Likewise.
12335         * modules/arpa_inet: Likewise.
12336         * modules/byteswap: Likewise.
12337         * modules/configmake: Likewise.
12338         * modules/dirent: Likewise.
12339         * modules/errno: Likewise.
12340         * modules/fcntl: Likewise.
12341         * modules/float: Likewise.
12342         * modules/fnmatch: Likewise.
12343         * modules/getopt-posix: Likewise.
12344         * modules/glob: Likewise.
12345         * modules/iconv_open: Likewise.
12346         * modules/inttypes: Likewise.
12347         * modules/localcharset: Likewise.
12348         * modules/locale: Likewise.
12349         * modules/math: Likewise.
12350         * modules/netdb: Likewise.
12351         * modules/netinet_in: Likewise.
12352         * modules/poll: Likewise.
12353         * modules/posix_spawnp-tests: Likewise.
12354         * modules/sched: Likewise.
12355         * modules/search: Likewise.
12356         * modules/selinux-h: Likewise.
12357         * modules/signal: Likewise.
12358         * modules/spawn: Likewise.
12359         * modules/stdarg: Likewise.
12360         * modules/stdbool: Likewise.
12361         * modules/stddef: Likewise.
12362         * modules/stdint: Likewise.
12363         * modules/stdio: Likewise.
12364         * modules/stdlib: Likewise.
12365         * modules/string: Likewise.
12366         * modules/strings: Likewise.
12367         * modules/sys_file: Likewise.
12368         * modules/sys_ioctl: Likewise.
12369         * modules/sys_select: Likewise.
12370         * modules/sys_socket: Likewise.
12371         * modules/sys_stat: Likewise.
12372         * modules/sys_time: Likewise.
12373         * modules/sys_times: Likewise.
12374         * modules/sys_utsname: Likewise.
12375         * modules/sys_wait: Likewise.
12376         * modules/sysexits: Likewise.
12377         * modules/time: Likewise.
12378         * modules/unistd: Likewise.
12379         * modules/wchar: Likewise.
12380         * modules/wctype: Likewise.
12381
12382 2009-08-22  Jim Meyering  <meyering@redhat.com>
12383
12384         announce-gen: detect write failure
12385         * build-aux/announce-gen: Add Coda at end.
12386         Remove equivalent-but-more-verbose block at top.
12387
12388 2009-08-19  Akim Demaille  <demaille@gostai.com>
12389
12390         bootstrap: --help to stdout.
12391         * bootstrap (usage): Don't send --help to stderr.
12392         Use a here doc instead of a long string.
12393
12394 2009-08-21  Eric Blake  <ebb9@byu.net>
12395
12396         test-popen-safer: split from test-popen
12397         * tests/test-popen.c (main): Move...
12398         * tests/test-popen.h: ...into new file.
12399         * tests/test-popen-safer2.c: New file.
12400         * modules/popen-tests (Files): Add test-popen.h.
12401         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12402         Suggested by Bruno Haible.
12403
12404         test-fcntl-safer: split from test-open
12405         * tests/test-open.c (main): Move...
12406         * tests/test-open.h: ...into new file.
12407         * tests/test-fcntl-safer.c: New file.
12408         * modules/open-tests (Files): Add test-open.h.
12409         * modules/fcntl-safer-tests: New file.
12410         Suggested by Bruno Haible.
12411
12412         test-fopen-safer: split from test-fopen
12413         * tests/test-fopen.c (main): Move...
12414         * tests/test-fopen.h: ...into new file.
12415         * tests/test-fopen-safer.c: New file.
12416         * modules/fopen-tests (Files): Add test-fopen.h.
12417         * modules/fopen-safer-tests: New file.
12418         Suggested by Bruno Haible.
12419
12420 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12421
12422         popen-safer: test O_CLOEXEC at run-time.
12423         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12424
12425 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12426
12427         fcntl: move more flags to the header
12428         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12429         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12430         * lib/fcntl.in.h: Do both things here.
12431
12432 2009-08-21  Jim Meyering  <meyering@redhat.com>
12433
12434         consistently remove $@-t before redirecting to it
12435         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12436         * modules/alloca-opt: Likewise.
12437         * modules/byteswap: Likewise.
12438         * modules/fnmatch: Likewise.
12439         * modules/getopt-posix: Likewise.
12440         * modules/glob: Likewise.
12441         * modules/poll: Likewise.
12442         * modules/posix_spawnp-tests: Likewise.
12443         * modules/sys_socket: Likewise.
12444         * modules/sysexits: Likewise.
12445
12446 2009-08-21  Eric Blake  <ebb9@byu.net>
12447
12448         popen: simplify access to original popen
12449         * lib/popen.c (rpl_popen): No need to worry about popen being a
12450         macro.
12451         Reported by Bruno Haible.
12452
12453 2009-08-20  Eric Blake  <ebb9@byu.net>
12454
12455         build: avoid some compiler warnings
12456         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12457         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12458         type.
12459         (new_exclude_segment, excluded_file_pattern_p)
12460         (excluded_file_name_p): Reduce scope.
12461         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12462         old-style declaration.
12463
12464 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12465
12466         * tests/test-exclude1.sh: Handle Windows EOL.
12467         * tests/test-exclude2.sh: Likewise.
12468         * tests/test-exclude3.sh: Likewise.
12469         * tests/test-exclude4.sh: Likewise.
12470         * tests/test-exclude5.sh: Likewise.
12471         * tests/test-exclude6.sh: Likewise.
12472         * tests/test-exclude7.sh: Likewise.
12473
12474 2009-08-19  Akim Demaille  <demaille@gostai.com>
12475
12476         bootstrap: find sha1sum when named gsha1sum.
12477         * bootstrap (find_tool): New.
12478         ($SHA1SUM): New.
12479         Use it.
12480
12481 2009-08-20  Jim Meyering  <meyering@redhat.com>
12482
12483         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12484         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12485         expression that converts "." in a file name to "\." in the resulting
12486         regexp.  Start with a dummy statement, so that prior shell variable
12487         definitions are expanded portably.  Reported by Simon Josefsson.
12488
12489 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12490
12491         Fix polling for writeability of a screen buffer.
12492         * lib/poll.c: Distinguish input and screen buffers for the
12493         Win32 implementation.
12494         * lib/select.c: Likewise.
12495
12496 2009-08-19  Eric Blake  <ebb9@byu.net>
12497
12498         popen-safer: prevent popen from clobbering std descriptors
12499         * modules/popen-safer: New file.
12500         * lib/popen-safer.c: Likewise.
12501         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12502         * lib/stdio--.h (popen): Provide override.
12503         * lib/stdio-safer.h (popen_safer): Provide declaration.
12504         * tests/test-popen.c (includes): Partially test this.
12505         * modules/popen-safer-tests: New file, for more tests.
12506         * tests/test-popen-safer.c: Likewise.
12507         * MODULES.html.sh (file stream based Input/Output): Mention it.
12508
12509         tests: test some of the *-safer modules
12510         * modules/fopen-safer (Depends-on): Add fopen.
12511         * modules/fcntl-safer (Depends-on): Add fcntl.
12512         * modules/stdlib-safer (Depends-on): Add stdlib.
12513         (configure.ac): Set indicator.
12514         * modules/unistd-safer (configure.ac): Likewise.
12515         * modules/tmpfile-safer (configure.ac): Likewise.
12516         (Depends-on): Add tmpfile.
12517         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12518         active.
12519         * tests/test-fopen.c (includes): Test safer versions when they are
12520         in use.
12521         * tests/test-open.c (includes): Likewise.
12522
12523         popen: fix cygwin 1.5 bug when stdin closed
12524         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12525         * modules/popen: New file.
12526         * modules/popen-tests: Likewise.
12527         * tests/test-popen.c: Likewise.
12528         * m4/popen.m4: Likewise.
12529         * lib/popen.c: Likewise.
12530         * lib/stdio.in.h (popen): New declaration.
12531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12532         * modules/stdio (Makefile.am): Likewise.
12533         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12534
12535 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12536
12537         maint.mk: give full control over update-copyright exclusions
12538         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12539         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12540         (update-copyright): Don't force inclusion of top-level
12541         ChangeLog.  Don't force exclusion of all COPYING files, but make
12542         them the default exclusion instead.
12543
12544 2009-08-16  Bruno Haible  <bruno@clisp.org>
12545
12546         Fix test failures on Solaris 10.
12547         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12548         tests when Solaris iconv() is used.
12549         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12550         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12551         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12552         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12553         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12554
12555 2009-08-16  Bruno Haible  <bruno@clisp.org>
12556
12557         Fix test failures on Solaris 10.
12558         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12559         'tr' program and pass it as first argument.
12560         * tests/test-pipe-filter-gi1.sh: Likewise.
12561         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12562         program as first argument.
12563         * tests/test-pipe-filter-gi1.c (main): Likewise.
12564
12565 2009-08-16  Eric Blake  <ebb9@byu.net>
12566
12567         fpurge: fix previous commits
12568         * modules/fpurge (Makefile.am): Make replacement conditional,
12569         partially reverting 2007-04-29 change; missed in previous
12570         attempt.
12571         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12572         is missing.
12573
12574 2009-08-16  Bruno Haible  <bruno@clisp.org>
12575
12576         Clarify fpurge's effect on the file position.
12577         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12578         * tests/test-fpurge.c (main): Make a second pass for checking the file
12579         position.
12580
12581 2009-08-16  Bruno Haible  <bruno@clisp.org>
12582
12583         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12584         declaration of fpurge is missing.
12585         * tests/test-fpurge.c (main): Check that the file has not more contents
12586         than expected. Close the file before removing it.
12587
12588 2009-08-15  Eric Blake  <ebb9@byu.net>
12589
12590         fpurge: don't wrap working cygwin implementation
12591         * lib/fpurge.c (fpurge): Fix comment typo.
12592         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12593         1.7 to avoid replacement.
12594         * tests/test-fpurge.c (main): Enhance test.
12595
12596 2009-08-15  Eric Blake  <ebb9@byu.net>
12597         and Jim Meyering  <meyering@redhat.com>
12598
12599         test-update-copyright: skip if perl is insufficient
12600         * tests/test-update-copyright.sh: Failure to run maintainer tool
12601         should not cause testsuite failure on cygwin 1.5.
12602
12603 2009-08-14  Eric Blake  <ebb9@byu.net>
12604
12605         doc: mention more functions added in cygwin 1.7.0
12606         * doc/posix-headers/limits.texi (limits.h): Update for recent
12607         cygwin additions.
12608         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12609         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12610         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12611         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12612         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12613
12614 2009-08-14  Eric Blake  <ebb9@byu.net>
12615
12616         maint.mk: simplify update-copyright rule
12617         * top/maint.mk (update-copyright-local): Delete, and document how
12618         to do it in cfg.mk instead.
12619         (update-copyright-exclude-regexp): Delete, and document how to do
12620         it in .x-update-copyright instead.
12621         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12622         exclude ChangeLog.
12623
12624 2009-08-14  Bruno Haible  <bruno@clisp.org>
12625
12626         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12627
12628 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12629
12630         maint.mk: support update-copyright-env
12631         * top/maint.mk (update-copyright-env): Define place-holder.
12632         (update-copyright): Expand $(update-copyright-env) before
12633         invoking update-copyright.
12634
12635 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12636
12637         update-copyright: implement forced reformatting
12638         * build-aux/update-copyright: Implement and document
12639         UPDATE_COPYRIGHT_FORCE.
12640         * tests/test-update-copyright.sh: Test it.
12641
12642 2009-08-14  Eric Blake  <ebb9@byu.net>
12643         and Bruno Haible  <bruno@clisp.org>
12644
12645         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12646         * tests/test-locale.c: Revert previous patch related to NULL.
12647         * tests/test-stdio.c: Likewise.
12648         * tests/test-stdlib.c: Likewise.
12649         * tests/test-string.c: Likewise.
12650         * tests/test-unistd.c: Likewise.
12651         * modules/time-tests (Depends-on): Add verify.
12652         * modules/wchar-tests (Depends-on): Likewise.
12653         * tests/test-time.c: Test for NULL compliance.
12654         * tests/test-wchar.c: Likewise.
12655         * modules/locale (Depends-on): Add stddef.
12656         * modules/stdio (Depends-on): Likewise.
12657         * modules/stdlib (Depends-on): Likewise.
12658         * modules/string (Depends-on): Likewise.
12659         * modules/time (Depends-on): Likewise.
12660         * modules/unistd (Depends-on): Likewise.
12661         * modules/wchar (Depends-on): Likewise.
12662         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12663         * lib/stdlib.in.h (includes): Likewise.
12664         * lib/string.in.h (includes): Likewise.
12665         * lib/time.in.h (includes): Likewise.
12666         * lib/unistd.in.h (includes): Likewise.
12667         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12668         replaced.
12669         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12670         * m4/stddef_h.m4: New file.
12671         * modules/stddef: Likewise.
12672         * lib/stddef.in.h: Likewise.
12673         * modules/stddef-tests: Likewise.
12674         * tests/test-stddef.c: Likewise.
12675         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12676         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12677         * doc/posix-headers/locale.texi (locale.h): Likewise.
12678         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12679         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12680         * doc/posix-headers/string.texi (string.h): Likewise.
12681         * doc/posix-headers/time.texi (time.h): Likewise.
12682         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12683         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12684
12685 2009-08-14  Eric Blake  <ebb9@byu.net>
12686
12687         doc: improve git diff of texinfo files
12688         * .gitattributes: Add rule for *.texi files, with hint on how to
12689         use it.
12690         Copied from m4, and based on a report by Bruno Haible.
12691
12692 2009-08-14  Bruno Haible  <bruno@clisp.org>
12693
12694         Disable multithread support by default on Cygwin 1.5.x for real.
12695         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12696
12697 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12698
12699         update-copyright: much ado about intervals
12700         * build-aux/update-copyright: Implement and document
12701         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12702         of copyright year intervals.
12703         Also, document UPDATE_COPYRIGHT_YEAR.
12704         * tests/test-update-copyright.sh: Test it.
12705
12706         update-copyright: convert 2-digit to 4-digit years
12707         * build-aux/update-copyright: Implement and document.
12708         * tests/test-update-copyright.sh: Update.
12709
12710 2009-08-14  Jim Meyering  <meyering@redhat.com>
12711
12712         test-exclude: avoid coreutils "make check" failure
12713         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12714         just as in test-argmatch.c.
12715
12716 2009-08-13  Eric Blake  <ebb9@byu.net>
12717
12718         test-dup2: fix bad assumption
12719         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12720         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12721
12722         test-version-etc: fix CRLF portability issue
12723         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12724         recognize \r.
12725         * tests/test-argp-version-etc-1.sh: Likewise.
12726
12727         getopt: update client modules
12728         * modules/argp (Depends-on): Use getopt-gnu.
12729         * modules/git-merge-changelog (Depends-on): Likewise.
12730         * modules/long-options (Depends-on): Likewise.
12731         * modules/xstrtol (Depends-on): Likewise.
12732
12733 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12734
12735         * tests/test-version-etc.sh: Don't fail on different
12736         project/version.  Don't fail on CRLF differences.  Rewrite to use
12737         multiple -e instead of multiple sed forks, suggested by Eric Blake
12738         <ebb9@byu.net>.
12739         * tests/test-argp-version-etc-1.sh: Likewise.
12740
12741 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12742
12743         * tests/test-version-etc.sh: Don't fail on different
12744         project/version.
12745
12746 2009-08-12  Bruno Haible  <bruno@clisp.org>
12747
12748         Tests for modules 'getopt-posix', 'getopt-gnu'.
12749         * modules/getopt-posix-tests: New file.
12750         * tests/test-getopt.c: New file.
12751         * tests/test-getopt.h: New file.
12752         * tests/test-getopt_long.h: New file.
12753
12754         New modules 'getopt-posix', 'getopt-gnu'.
12755         * modules/getopt-gnu: New file, renamed from modules/getopt.
12756         * modules/getopt-posix: New file.
12757         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12758         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12759         (gl_GETOPT): Remove macro.
12760         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12761         Disable the test against BSD systems that declare optreset. Test
12762         against mingw bug. Test against lack of support of optional arguments
12763         on many platforms.
12764         * doc/glibc-headers/getopt.texi: Update module name and list of
12765         relevant platforms.
12766         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12767         'getopt-gnu' and more portability problems.
12768         * NEWS: Mention the changes.
12769
12770 2009-08-12  Bruno Haible  <bruno@clisp.org>
12771
12772         Ensure that optarg etc. get declared by <unistd.h>.
12773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12774         AC_USE_SYSTEM_EXTENSIONS.
12775         * modules/getopt (Depends-on): Add 'extensions'.
12776
12777 2009-08-12  Bruno Haible  <bruno@clisp.org>
12778
12779         Avoid test link errors.
12780         * modules/pipe-filter-ii-tests (Makefile.am): Define
12781         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12782         * modules/pipe-filter-gi-tests (Makefile.am): Define
12783         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12785
12786 2009-08-12  Bruno Haible  <bruno@clisp.org>
12787
12788         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12789         gl_GETOPT_SUBSTITUTE before.
12790         (gl_GETOPT): Use it.
12791         * m4/argp.m4 (gl_ARGP): Update.
12792         Reported by Sergey Poznyakoff.
12793
12794         * m4/getopt.m4: Reorder macros.
12795         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12796         (gl_GETOPT_SUBSTITUTE): Remove macro.
12797
12798 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12799
12800         Minor improvement in gitlog-to-changelog
12801
12802         * build-aux/gitlog-to-changelog: New option `--format' makes
12803         output format string configurable.
12804
12805 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12806
12807         Optimize exclude: use hash tables for non-wildcard patterns.
12808
12809         * lib/exclude.c: Include hash.h and mbuiter.h
12810         (struct exclude_pattern, exclude_segment): New data types.
12811         (struct exclude): Rewrite.
12812         (fnmatch_pattern_has_wildcards): New function.
12813         (new_exclude_segment, free_exclude_segment): New functions.
12814         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12815         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12816         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12817         * modules/exclude: Depend on hash and mbuiter.
12818
12819         * modules/exclude-tests: New file.
12820         * tests/test-exclude.c: New file.
12821         * tests/test-exclude1.sh: New file.
12822         * tests/test-exclude2.sh: New file.
12823         * tests/test-exclude3.sh: New file.
12824         * tests/test-exclude4.sh: New file.
12825         * tests/test-exclude5.sh: New file.
12826         * tests/test-exclude6.sh: New file.
12827         * tests/test-exclude7.sh: New file.
12828
12829 2009-08-12  Bruno Haible  <bruno@clisp.org>
12830
12831         Ensure that getopt() gets declared by <unistd.h>.
12832         * lib/unistd.in.h: Conditionally include getopt.h.
12833         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12834         Set GNULIB_UNISTD_H_GETOPT.
12835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12836         GNULIB_UNISTD_H_GETOPT.
12837         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12838
12839 2009-08-12  Bruno Haible  <bruno@clisp.org>
12840
12841         Clarify logic.
12842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12843         gl_replace_getopt instead of GETOPT_H.
12844
12845 2009-08-12  Bruno Haible  <bruno@clisp.org>
12846
12847         * m4/getopt.m4: Add comments.
12848
12849 2009-08-12  Bruno Haible  <bruno@clisp.org>
12850
12851         Disable multithread support by default on Cygwin 1.5.x.
12852         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12853         set gl_use_threads=no if not specified otherwise.
12854
12855 2009-08-11  Bruno Haible  <bruno@clisp.org>
12856
12857         Avoid compilation error on NetBSD 5.0.
12858         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12859         * tests/test-stdio.c: Likewise.
12860         * tests/test-stdlib.c: Likewise.
12861         * tests/test-string.c: Likewise.
12862         * tests/test-unistd.c: Likewise.
12863         Reported by Greg Troxel <gdt@ir.bbn.com>
12864         at <https://savannah.gnu.org/support/?106973>.
12865
12866 2009-08-11  Bruno Haible  <bruno@clisp.org>
12867
12868         * modules/dup2-tests (Depends-on): Remove close.
12869
12870         Undo 2009-07-19 commit.
12871         * modules/acl-tests (Depends-on): Remove close.
12872         * modules/binary-io-tests (Depends-on): Likewise.
12873         * modules/closein-tests (Depends-on): Likewise.
12874         * modules/flock-tests (Depends-on): Likewise.
12875         * modules/fsync-tests (Depends-on): Likewise.
12876         * modules/lseek-tests (Depends-on): Likewise.
12877         * modules/pipe-tests (Depends-on): Likewise.
12878         * modules/posix_spawn-tests (Depends-on): Likewise.
12879         * modules/posix_spawnp-tests (Depends-on): Likewise.
12880         * modules/stat-time-tests (Depends-on): Likewise.
12881         * modules/yesno-tests (Depends-on): Likewise.
12882
12883 2009-08-10  Bruno Haible  <bruno@clisp.org>
12884
12885         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12886
12887 2009-08-10  Bruno Haible  <bruno@clisp.org>
12888
12889         Fix a gcc warning.
12890         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12891
12892 2009-08-10  Bruno Haible  <bruno@clisp.org>
12893
12894         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12895         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12896         not only the first time.
12897         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12898         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12899         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12900         is 1, not only the the first time.
12901
12902 2009-08-10  Bruno Haible  <bruno@clisp.org>
12903
12904         Make it possible to use module 'gethostname' without module 'close'.
12905         * lib/unistd.in.h (close): Evoke a link error only if
12906         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12908         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12909         * modules/unistd (Makefile.am): Substitute
12910         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12911         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12912         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12913         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12914         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12915         * modules/sys_ioctl (Makefile.am): Substitute
12916         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12917         * modules/socket (configure.ac): On native Windows, set
12918         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12919         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12920         Reported by Sam Steingold <sds@gnu.org>.
12921
12922 2009-08-10  Bruno Haible  <bruno@clisp.org>
12923
12924         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12925         * modules/ioctl (configure.ac): Likewise.
12926
12927 2009-08-10  Bruno Haible  <bruno@clisp.org>
12928
12929         Avoid collision between gnulib wrapper and libintl wrapper.
12930         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12931         already defined in intl/printf.c.
12932         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12933         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12934
12935 2009-08-09  Bruno Haible  <bruno@clisp.org>
12936
12937         Make <sys/select.h> really self-contained, also on Solaris 10.
12938         * lib/sys_select.in.h: Include <string.h>.
12939         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12940         Solaris 10 problem.
12941         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12942         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12943         Reported by Jim Meyering.
12944
12945 2009-08-09  Bruno Haible  <bruno@clisp.org>
12946
12947         Avoid warnings from 'aclocal' that are due to a use of macro name
12948         AM_XGETTEXT_OPTION that is not defined in automake.
12949         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12950         automake.
12951         * modules/error (configure.ac): Likewise.
12952         * modules/propername (configure.ac): Likewise.
12953         * modules/vasprintf (configure.ac): Likewise.
12954         * modules/verror (configure.ac): Likewise.
12955         * modules/xprintf (configure.ac): Likewise.
12956         * modules/xvasprintf (configure.ac): Likewise.
12957
12958 2009-08-08  Bruno Haible  <bruno@clisp.org>
12959
12960         Avoid compilation error in C++ mode.
12961         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12962         Reported by Sam Steingold <sds@gnu.org>.
12963
12964 2009-08-08  Bruno Haible  <bruno@clisp.org>
12965
12966         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12967         for the various Unix platforms.
12968         * doc/posix-headers/limits.texi: Update platforms list regarding
12969         HOST_NAME_MAX.
12970         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12971
12972 2009-08-07  Jim Meyering  <meyering@redhat.com>
12973
12974         selinux-at: fix typo in a comment
12975         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12976         Spotted by Paolo Bonzini.
12977
12978         selinux-at: remove redundant m4 code, add documentation
12979         * modules/selinux-at (configure.ac): Remove redundant code.
12980         LIB_SELINUX is already set via the dependent module, selinux-h.
12981         (Include): Add quotes around selinux-at.h.
12982         * lib/selinux-at.h: Add documentation.
12983         Reported by Bruno Haible in
12984         http://marc.info/?l=gnulib-bug&m=124958988300749
12985
12986 2009-08-07  Bruno Haible  <bruno@clisp.org>
12987
12988         Avoid link error on MacOS X 10.3 and 10.4.
12989         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12990         on non-ELF systems.
12991         * lib/argp-pv.c (argp_program_version): Likewise.
12992         Reported by Simon Josefsson.
12993
12994 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12995
12996         * tests/test-version-etc.sh: Use $EXEEXT.
12997
12998 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12999
13000         update-copyright: update documentation to point to maint.mk
13001         * build-aux/update-copyright: Here.
13002
13003 2009-08-06  Jim Meyering  <meyering@redhat.com>
13004
13005         maint.mk: support update-copyright-local
13006         * top/maint.mk (update-copyright-local): Define place-holder.
13007         (update-copyright): Depend on $(update-copyright-local).
13008
13009 2009-08-06  Jim Meyering  <meyering@redhat.com>
13010
13011         selinux-at: new module
13012         Initially written for coreutils, this module will soon be
13013         used by findutils, too.
13014         * MODULES.html.sh [Misc]: Add selinux-at.
13015         * lib/selinux-at.h: New file, from coreutils.
13016         * lib/selinux-at.c: Likewise.
13017         * modules/selinux-at: Likewise.
13018         (License): Change from LGPL to GPL, since it depends
13019         on the GPL'd openat module.
13020
13021         doc: update README
13022         * README: Remove references to cogito.
13023         Remove cvs-repo-updating instructions from 2007.
13024         Don't imply that CVS is better if you have limited disk space.
13025
13026 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13027
13028         update-copyright: support C-style comments
13029         * build-aux/update-copyright: Implement and document.
13030         * tests/test-update-copyright.sh: Test.
13031
13032 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13033
13034         update-copyright: support omitted "(C)"
13035         * build-aux/update-copyright: Implement and document.  Also,
13036         allow variable whitespace before "(C)".
13037         * tests/test-update-copyright.sh: Test.
13038
13039 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13040
13041         update-copyright: don't trip on non-FSF copyright statements
13042         * build-aux/update-copyright: Fix so that the first correctly
13043         formatted FSF copyright statement is recognized no matter what
13044         appears before it.  Update documentation.
13045         * tests/test-update-copyright.sh: Test that.
13046
13047 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13048
13049         update-copyright: clean up code a little
13050         * build-aux/update-copyright: Append "_re" to the name of any
13051         variable holding a regular expression.
13052         Replace "old" and "new" with "stmt" in variable names.
13053         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
13054         handled correctly.
13055         Format code more consistently.
13056
13057 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13058
13059         update-copyright-tests: improve portability
13060         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
13061         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
13062
13063 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13064
13065         update-copyright: support @copyright{} and &copy;
13066         * build-aux/update-copyright: Implement and document.
13067         * tests/test-update-copyright.sh: Test.
13068
13069 2009-08-04  Jim Meyering  <meyering@redhat.com>
13070
13071         update-copyright-tests: correctly test EOL=\r\n handling
13072         * tests/test-update-copyright.sh: Put \r at the end of some lines
13073         for the dos-eol tests.  Based on a patch by Joel E. Denny.
13074
13075         maint.mk: make update-copyright exclusion list more configurable
13076         * top/maint.mk (update-copyright): Default to excluding COPYING,
13077         but allow an override, in case someone does want to update that file.
13078
13079         maint.mk: don't update copyright date in COPYING
13080         * top/maint.mk (update-copyright): Exclude COPYING.
13081
13082         maint.mk: add a copyright-updating rule
13083         * top/maint.mk (update-copyright): New rule.
13084         Derived from coreutils/Makefile.am.
13085
13086         update-copyright: rename some variables
13087         * build-aux/update-copyright: Rename a few variables for clarity.
13088         Tweak syntax.  List Joel E. Denny as coauthor.
13089
13090 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13091
13092         update-copyright: fix bug for 2-digit last year and add tests
13093         * build-aux/update-copyright: Fix bug.
13094         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
13095         specified.
13096         * modules/update-copyright-tests: New
13097         * tests/test-update-copyright.sh: New.
13098
13099 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13100
13101         update-copyright: handle leading tabs in line prefix
13102         * build-aux/update-copyright: Count leading tabs as 8 spaces
13103         when computing margin.  This helps with the formatting of
13104         ChangeLogs, for example.
13105         Fix documentation a little.
13106
13107 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13108
13109         update-copyright: support EOL=\r\n
13110         * build-aux/update-copyright: Implement that.
13111
13112 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13113
13114         update-copyright: automatically format copyright statements
13115         * build-aux/update-copyright: Implement that.
13116         Also, be a little more predictable and safer by always failing
13117         when the full copyright format is not perfectly recognized as an
13118         unbroken whole.  Discussed at
13119         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
13120         Rewrite documentation.
13121
13122 2009-08-03  Bruno Haible  <bruno@clisp.org>
13123
13124         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
13125
13126 2009-08-02  Bruno Haible  <bruno@clisp.org>
13127
13128         Tests for module 'uname'.
13129         * modules/uname-tests: New file.
13130         * tests/test-uname.c: New file.
13131
13132         New module 'uname'.
13133         * lib/uname.c: New file.
13134         * m4/uname.m4: New file.
13135         * modules/uname: New file.
13136         * doc/posix-functions/uname.texi: Mention the new module.
13137
13138 2009-08-02  Bruno Haible  <bruno@clisp.org>
13139
13140         Tests for module 'sys_utsname'.
13141         * modules/sys_utsname-tests: New file.
13142         * tests/test-sys_utsname.c: New file.
13143
13144         New module 'sys_utsname'.
13145         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
13146         * m4/sys_utsname_h.m4: New file.
13147         * modules/sys_utsname: New file.
13148         * doc/posix-headers/sys_utsname.texi: Mention the new module.
13149
13150 2009-08-02  Bruno Haible  <bruno@clisp.org>
13151
13152         Implicitly initialize the sockets library.
13153         * lib/gethostname.c: Include sockets.h.
13154         (rpl_gethostname): Invoke gl_sockets_startup.
13155         * lib/socket.c: Include sockets.h.
13156         (rpl_socket): Invoke gl_sockets_startup.
13157         * modules/gethostname (Depends-on): Add sockets.
13158         * modules/socket (Depends-on): Likewise.
13159         * tests/test-poll.c: Don't include sockets.h.
13160         (main): Don't invoke gl_sockets_startup.
13161         * tests/test-select.c: Don't include sockets.h.
13162         (main): Don't invoke gl_sockets_startup.
13163
13164 2009-08-02  Bruno Haible  <bruno@clisp.org>
13165
13166         Allow multiple calls to gl_sockets_startup.
13167         * lib/sockets.c (initialized_sockets_version): New variable.
13168         (gl_sockets_startup): Do nothing if already called for this or a higher
13169         version.
13170         (gl_sockets_cleanup): Reset initialized_sockets_version.
13171
13172 2009-08-03  Simon Josefsson  <simon@josefsson.org>
13173
13174         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
13175         different project/version.
13176
13177 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13178             Bruno Haible  <bruno@clisp.org>
13179
13180         Tests for module 'pipe-filter-gi'.
13181         * modules/pipe-filter-gi-tests: New file.
13182         * tests/test-pipe-filter-gi1.sh: New file.
13183         * tests/test-pipe-filter-gi1.c: New file.
13184         * tests/test-pipe-filter-gi2.sh: New file.
13185         * tests/test-pipe-filter-gi2-main.c: New file.
13186         * tests/test-pipe-filter-gi2-child.c: New file.
13187
13188         New module 'pipe-filter-gi'.
13189         * lib/pipe-filter-gi.c: New file.
13190         * modules/pipe-filter-gi: New file.
13191
13192 2009-08-02  Bruno Haible  <bruno@clisp.org>
13193             Paolo Bonzini  <bonzini@gnu.org>
13194
13195         Tests for module 'pipe-filter-ii'.
13196         * modules/pipe-filter-ii-tests: New file.
13197         * tests/test-pipe-filter-ii1.sh: New file.
13198         * tests/test-pipe-filter-ii1.c: New file.
13199         * tests/test-pipe-filter-ii2.sh: New file.
13200         * tests/test-pipe-filter-ii2-main.c: New file.
13201         * tests/test-pipe-filter-ii2-child.c: New file.
13202
13203         New module 'pipe-filter-ii'.
13204         * lib/pipe-filter.h: New file.
13205         * lib/pipe-filter-ii.c: New file.
13206         * lib/pipe-filter-aux.h: New file.
13207         * modules/pipe-filter-ii: New file.
13208
13209 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13210
13211         * lib/gc-libgcrypt.c: Change copyright to FSF.
13212         * lib/gc-gnulib.c: Likewise.
13213
13214 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
13215
13216         * lib/gethostname.c: Include limits.h.
13217
13218 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13219             Bruno Haible  <bruno@clisp.org>
13220
13221         Ensure HOST_NAME_MAX as part of the gethostname module.
13222         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13223         define also HOST_NAME_MAX.
13224         * tests/test-gethostname.c: Include <limits.h>.
13225         (main): Check also HOST_NAME_MAX.
13226         * doc/posix-headers/limits.texi: Document the mingw problem.
13227
13228 2009-08-02  Bruno Haible  <bruno@clisp.org>
13229
13230         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13231         Add comments.
13232
13233 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13234
13235         * lib/gethostname.c: Add Windows wrapper.
13236         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13237         * modules/gethostname: Depend on sys_socket & errno, for also
13238         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13239         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13240
13241 2009-07-31  Jim Meyering  <meyering@redhat.com>
13242
13243         getloadavg: fix symbol name in comment
13244         * lib/getloadavg.c: Correct a typo I introduced when adding
13245         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13246         Matt Kraai spotted the problem.
13247
13248 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13249
13250         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13251         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13252         code also if ! defined N_NAME_POINTER.
13253         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13254         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13255         but the n_name member is a 12-byte array.
13256
13257 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13258
13259         update-copyright: generalize comment handling
13260         * build-aux/update-copyright: Handle copyright statements
13261         within more comment styles.
13262         Document usage.
13263         Report any file with an external copyright holder or parse failure.
13264
13265 2009-07-29  Jim Meyering  <meyering@redhat.com>
13266
13267         mktime: correct setting of REPLACE_MKTIME
13268         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13269
13270         update-copyright: new module
13271         * modules/update-copyright: New file.
13272         * build-aux/update-copyright: New file.
13273         * MODULES.html.sh (maint+release support): Add update-copyright.
13274
13275 2009-07-27  Bruno Haible  <bruno@clisp.org>
13276
13277         Fix compilation error when <ctime> is used and mktime is replaced.
13278         * lib/time.in.h (mktime): New declaration.
13279         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13280         REPLACE_MKTIME instead of defining mktime in config.h.
13281         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13282         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13283         Reported by Ross McFarland <rwmcfa1@neces.com>.
13284
13285 2009-07-27  Bruno Haible  <bruno@clisp.org>
13286
13287         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13288         Reported by Matt Kraai <mkraai@beckman.com>.
13289
13290 2009-07-25  Jim Meyering  <meyering@redhat.com>
13291
13292         maint.mk: avoid warnings about missing files
13293         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13294         diagnostic when .prev-version does not exist.
13295         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13296         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13297         nonexistent cfg.mk.
13298         Suggestions from Simon Josefsson.
13299
13300 2009-07-25  Bruno Haible  <bruno@clisp.org>
13301
13302         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13303         defined as macros. Needed on QNX 6.4.1.
13304         Reported by Matt Kraai <mkraai@beckman.com>.
13305
13306 2009-07-23  Jim Meyering  <meyering@redhat.com>
13307
13308         maint.mk: invoke "make dist" with a working value of XZ_OPT
13309         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13310
13311 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13312
13313         Make fseeko.c compile on QNX.
13314         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13315
13316 2009-07-22  Peter Simons  <simons@cryp.to>
13317
13318         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13319         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13320         * lib/md4.h: Likewise.
13321         * lib/md5.h: Likewise.
13322         * lib/sha1.h: Likewise.
13323         * lib/sha256.h: Likewise.
13324         * lib/sha512.h: Likewise.
13325
13326         tests-sha1: don't assign literal string to 'char *' variable
13327         * tests/test-sha1.c (main): Declare locals with "const" to match
13328         attributes of the right hand side.
13329
13330 2009-07-21  Eric Blake  <ebb9@byu.net>
13331
13332         dup2: fix more mingw problems
13333         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13334         fd to itself.
13335         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13336         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13337         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13338         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13339         care of mingw bugs.
13340
13341 2009-07-21  Jim Meyering  <meyering@redhat.com>
13342
13343         vc-list-files: avoid failure when /bin/sh is dash
13344         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13345         On some Debian based systems, /bin/sh is a symlink to dash, and running
13346         this command would omit the "/" following each 'tests' prefix:
13347           dash -x build-aux/vc-list-files -C . tests
13348         That is because bash and dash work differently:
13349           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13350           bash ok
13351           dash odd
13352
13353 2009-07-21  Eric Blake  <ebb9@byu.net>
13354
13355         dup2-tests: test previous patch
13356         * modules/dup2-tests: New file.
13357         * tests/test-dup2.c: Likewise.
13358         * tests/test-open.c (main): Avoid unspecified behavior.
13359         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13360         test.
13361
13362         dup2: work around mingw and cygwin 1.5 bug
13363         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13365         * modules/unistd (Makefile.am): Substitute it.
13366         * lib/unistd.in.h (dup2): Declare the replacement.
13367         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13368         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13369         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13370         * modules/execute (Depends-on): Add dup2.
13371         * modules/fseterr (Depends-on): Likewise.
13372         * modules/pipe (Depends-on): Likewise.
13373         * modules/posix_spawn-internal (Depends-on): Likewise.
13374
13375 2009-07-21  Bruno Haible  <bruno@clisp.org>
13376
13377         * modules/.gitattributes: New file.
13378
13379 2009-07-20  Bruno Haible  <bruno@clisp.org>
13380
13381         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13382         (main): Use it.
13383
13384 2009-07-20  Eric Blake  <ebb9@byu.net>
13385
13386         test-pipe: make a bit more robust.
13387         * tests/test-pipe.c (myerr): Allow error messages regardless of
13388         what we do to stderr.
13389         (test_pipe): Rearrange to avoid deadlock.
13390         (child_main): Try a larger read, to ensure we avoided deadlock.
13391         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13392         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13393         if misused.
13394
13395 2009-07-19  Jim Meyering  <meyering@redhat.com>
13396
13397         fts: avoid false-positive cycle-detection
13398         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13399         for each new command line argument.
13400
13401 2009-07-19  Bruno Haible  <bruno@clisp.org>
13402
13403         Fix build error on mingw with the modules sys_select and unistd.
13404         * modules/acl-tests (Depends-on): Add close.
13405         * modules/binary-io-tests (Depends-on): Likewise.
13406         * modules/closein-tests (Depends-on): Likewise.
13407         * modules/flock-tests (Depends-on): Likewise.
13408         * modules/fsync-tests (Depends-on): Likewise.
13409         * modules/lseek-tests (Depends-on): Likewise.
13410         * modules/pipe-tests (Depends-on): Likewise.
13411         * modules/posix_spawn-tests (Depends-on): Likewise.
13412         * modules/posix_spawnp-tests (Depends-on): Likewise.
13413         * modules/stat-time-tests (Depends-on): Likewise.
13414         * modules/yesno-tests (Depends-on): Likewise.
13415
13416 2009-07-19  Bruno Haible  <bruno@clisp.org>
13417
13418         Unify conditionals.
13419         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13420         macros, not at the compiler macros.
13421         * lib/pipe.c: Likewise.
13422         * lib/execute.c: Likewise.
13423         * lib/spawni.c: Likewise.
13424
13425 2009-07-19  Bruno Haible  <bruno@clisp.org>
13426
13427         Fix handling of closed stdin/stdout/stderr on mingw.
13428         * lib/w32spawn.h: Include unistd.h.
13429         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13430         file descriptor with O_NOINHERIT flag.
13431         (fd_safer_noinherit): New function, based on fd-safer.c.
13432         (dup_safer_noinherit): New function, based on dup-safer.c.
13433         (undup_safer_noinherit): New function.
13434         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13435         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13436         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13437         instead of fd_safer.
13438         * tests/test-pipe.c: Include <windows.h>.
13439         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13440
13441         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13442         from main.
13443         (test_pipe): Pass an extra argument for disambiguation.
13444         (main): Invoke parent_main or child_main.
13445
13446         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13447         consistently.
13448
13449 2009-07-18  Eric Blake  <ebb9@byu.net>
13450
13451         test-pipe: fix mingw build
13452         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13453
13454 2009-07-18  Bruno Haible  <bruno@clisp.org>
13455
13456         * modules/pipe-tests (Makefile.am): Fix typo.
13457
13458 2009-07-18  Eric Blake  <ebb9@byu.net>
13459
13460         error: fix mingw build
13461         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13462         Reported by Bruno Haible.
13463
13464         error: avoid undefined use of stdout
13465         * lib/error.c (error, error_at_line): Check that fd 1 is open
13466         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13467         is handling faults and the close_stdout module wants to report the
13468         detection of closed stdout as an error.
13469
13470 2009-07-17  Eric Blake  <ebb9@byu.net>
13471
13472         pipe: be robust in face of closed fds
13473         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13474         should cause child to misbehave.
13475         * modules/pipe-tests: New module.
13476         * tests/test-pipe.c: New file.
13477         * tests/test-pipe.sh: New file.
13478         Reported by Akim Demaille.
13479
13480 2009-07-14  Bruno Haible  <bruno@clisp.org>
13481
13482         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13483         Reported by anonymous kc.
13484
13485 2009-07-07  Jim Meyering  <meyering@redhat.com>
13486
13487         maint.mk: don't look for translatable strings in *.m4 or *.mk
13488         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13489         when searching for translatable strings.
13490
13491 2009-07-05  Jim Meyering  <meyering@redhat.com>
13492
13493         remove superfluous parentheses in STREQ definition
13494         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13495         * lib/getugroups.c (STREQ): Likewise.
13496         * lib/fnmatch.c (STREQ): Likewise.
13497         Spotted by Bruno Haible.
13498
13499 2009-07-04  Jim Meyering  <meyering@redhat.com>
13500
13501         argv-iter: new module
13502         * MODULES.html.sh: Add argv-iter.
13503         * lib/argv-iter.c, lib/argv-iter.h: New files.
13504         * modules/argv-iter: New file.
13505         * modules/argv-iter-tests: New file.
13506         * tests/test-argv-iter.c: Test it.
13507
13508 2009-07-04  Bruno Haible  <bruno@clisp.org>
13509
13510         Fix assertion.
13511         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13512         contains more exact copies of a given entry than file2, leave the extra
13513         copies unpaired rather than aborting.
13514         Reported by Eric Blake.
13515
13516 2009-07-02  Bruno Haible  <bruno@clisp.org>
13517
13518         Speedup git-merge-changelog for git cherry-pick.
13519         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13520         (entries_mapping_get): New function, extracted from compute_mapping.
13521         (entries_mapping_reverse_get): New function.
13522         (compute_mapping): Add a 'full' argument. Return the result in a
13523         'struct entries_mapping'.
13524         (main): Update. Access the mappings through entries_mapping_get.
13525         Reported by Eric Blake.
13526
13527 2009-07-02  Bruno Haible  <bruno@clisp.org>
13528
13529         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13530         best_i.
13531
13532 2009-07-02  Bruno Haible  <bruno@clisp.org>
13533
13534         Speed up approximate search for matching ChangeLog entries.
13535         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13536         argument. Call fstrcmp_bounded instead of fstrcmp.
13537         (compute_mapping, try_split_merged_entry, main): Update callers.
13538
13539 2009-07-02  Bruno Haible  <bruno@clisp.org>
13540
13541         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13542
13543 2009-06-30  Bruno Haible  <bruno@clisp.org>
13544
13545         Reduce the number of uc_is_cased calls.
13546         * lib/unicase.h (casing_suffix_context_t): Add
13547         'first_char_except_ignorable' field.
13548         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13549         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13550         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13551         Update initializer.
13552         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13553         case-ignorable characters.
13554         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13555         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13556         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13557         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13558         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13559
13560 2009-06-30  Bruno Haible  <bruno@clisp.org>
13561
13562         Tests for module 'unicase/ignorable'.
13563         * modules/unicase/ignorable-tests: New file.
13564         * tests/unicase/test-ignorable.c: New file, generated by
13565         gen-uni-tables.
13566
13567         Tests for module 'unicase/cased'.
13568         * modules/unicase/cased-tests: New file.
13569         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13570         * tests/unicase/test-predicate-part1.h: New file, derived from
13571         tests/unictype/test-predicate-part1.h.
13572         * tests/unicase/test-predicate-part2.h: New file, same as
13573         tests/unictype/test-predicate-part2.h.
13574
13575         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13576         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13577         (output_casing_properties): New function.
13578         (main): Call it.
13579         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13580         * lib/unicase/cased.c: Include unictype/bitmap.h.
13581         (uc_is_cased): Define through a bitmap lookup.
13582         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13583         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13584         (uc_is_case_ignorable): Define through a bitmap lookup.
13585         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13586         lib/unictype/bitmap.h.
13587         (Depends-on): Add inline. Clean up.
13588         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13589         lib/unictype/bitmap.h.
13590         (Depends-on): Add inline. Clean up.
13591         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13592         recognition.
13593         * tests/unicase/test-u16-tolower.c (main): Likewise.
13594         * tests/unicase/test-u32-tolower.c (main): Likewise.
13595
13596 2009-06-30  Bruno Haible  <bruno@clisp.org>
13597
13598         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13599         * lib/unicase/u16-casemap.c: Likewise.
13600         * lib/unicase/u32-casemap.c: Likewise.
13601
13602 2009-06-29  Bruno Haible  <bruno@clisp.org>
13603
13604         Define u32_casefold as a wrapper around u32_ct_casefold.
13605         * lib/unicase/u32-casefold.c: Update.
13606         * modules/unicase/u32-casefold (Depends-on): Add
13607         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13608         unicase/empty-suffix-context. Clean up.
13609
13610         Define u16_casefold as a wrapper around u16_ct_casefold.
13611         * lib/unicase/u16-casefold.c: Update.
13612         * modules/unicase/u16-casefold (Depends-on): Add
13613         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13614         unicase/empty-suffix-context. Clean up.
13615
13616         Define u8_casefold as a wrapper around u8_ct_casefold.
13617         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13618         * lib/unicase/u8-casefold.c: Update.
13619         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13620         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13621
13622         Define u32_totitle as a wrapper around u32_ct_totitle.
13623         * lib/unicase/u32-totitle.c: Update.
13624         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13625         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13626
13627         Define u16_totitle as a wrapper around u16_ct_totitle.
13628         * lib/unicase/u16-totitle.c: Update.
13629         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13630         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13631
13632         Define u8_totitle as a wrapper around u8_ct_totitle.
13633         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13634         functions.
13635         (FUNC): Delegate to U_CT_TOTITLE.
13636         * lib/unicase/u8-totitle.c: Update.
13637         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13638         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13639
13640         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13641         invocation.
13642         * modules/unicase/u32-tolower (Depends-on): Add
13643         unicase/empty-prefix-context, unicase/empty-suffix-context.
13644
13645         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13646         invocation.
13647         * modules/unicase/u16-tolower (Depends-on): Add
13648         unicase/empty-prefix-context, unicase/empty-suffix-context.
13649
13650         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13651         * modules/unicase/u8-tolower (Depends-on): Add
13652         unicase/empty-prefix-context, unicase/empty-suffix-context.
13653
13654         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13655         invocation.
13656         * modules/unicase/u32-toupper (Depends-on): Add
13657         unicase/empty-prefix-context, unicase/empty-suffix-context.
13658
13659         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13660         invocation.
13661         * modules/unicase/u16-toupper (Depends-on): Add
13662         unicase/empty-prefix-context, unicase/empty-suffix-context.
13663
13664         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13665         * modules/unicase/u8-toupper (Depends-on): Add
13666         unicase/empty-prefix-context, unicase/empty-suffix-context.
13667
13668         New module 'unicase/u32-ct-casefold'.
13669         * lib/unicase/u32-ct-casefold.c: New file.
13670         * modules/unicase/u32-ct-casefold: New file.
13671
13672         New module 'unicase/u16-ct-casefold'.
13673         * lib/unicase/u16-ct-casefold.c: New file.
13674         * modules/unicase/u16-ct-casefold: New file.
13675
13676         New module 'unicase/u8-ct-casefold'.
13677         * lib/unicase/u8-ct-casefold.c: New file.
13678         * lib/unicase/u-ct-casefold.h: New file, derived from
13679         lib/unicase/u-casefold.h.
13680         * modules/unicase/u8-ct-casefold: New file.
13681
13682         New module 'unicase/u32-ct-totitle'.
13683         * lib/unicase/u32-ct-totitle.c: New file.
13684         * modules/unicase/u32-ct-totitle: New file.
13685
13686         New module 'unicase/u16-ct-totitle'.
13687         * lib/unicase/u16-ct-totitle.c: New file.
13688         * modules/unicase/u16-ct-totitle: New file.
13689
13690         New module 'unicase/u8-ct-totitle'.
13691         * lib/unicase/u8-ct-totitle.c: New file.
13692         * lib/unicase/u-ct-totitle.h: New file, derived from
13693         lib/unicase/u-totitle.h.
13694         * modules/unicase/u8-ct-totitle: New file.
13695
13696         New module 'unicase/u32-ct-tolower'.
13697         * lib/unicase/u32-ct-tolower.c: New file.
13698         * modules/unicase/u32-ct-tolower: New file.
13699
13700         New module 'unicase/u16-ct-tolower'.
13701         * lib/unicase/u16-ct-tolower.c: New file.
13702         * modules/unicase/u16-ct-tolower: New file.
13703
13704         New module 'unicase/u8-ct-tolower'.
13705         * lib/unicase/u8-ct-tolower.c: New file.
13706         * modules/unicase/u8-ct-tolower: New file.
13707
13708         New module 'unicase/u32-ct-toupper'.
13709         * lib/unicase/u32-ct-toupper.c: New file.
13710         * modules/unicase/u32-ct-toupper: New file.
13711
13712         New module 'unicase/u16-ct-toupper'.
13713         * lib/unicase/u16-ct-toupper.c: New file.
13714         * modules/unicase/u16-ct-toupper: New file.
13715
13716         New module 'unicase/u8-ct-toupper'.
13717         * lib/unicase/u8-ct-toupper.c: New file.
13718         * modules/unicase/u8-ct-toupper: New file.
13719
13720         Add context arguments to u*_casemap functions.
13721         * lib/unicase/unicasemap.h: Include unicase.h.
13722         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13723         suffix_context arguments.
13724         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13725         functions.
13726         (FUNC): Add prefix_context and suffix_context arguments. Use
13727         uc_is_cased and uc_is_case_ignorable.
13728         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13729         * lib/unicase/u16-casemap.c: Likewise.
13730         * lib/unicase/u32-casemap.c: Likewise.
13731         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13732         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13733         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13734         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13735         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13736         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13737
13738         New module 'unicase/u32-suffix-context'.
13739         * lib/unicase/u32-suffix-context.c: New file.
13740         * modules/unicase/u32-suffix-context: New file.
13741
13742         New module 'unicase/u16-suffix-context'.
13743         * lib/unicase/u16-suffix-context.c: New file.
13744         * modules/unicase/u16-suffix-context: New file.
13745
13746         New module 'unicase/u8-suffix-context'.
13747         * lib/unicase/u8-suffix-context.c: New file.
13748         * lib/unicase/u-suffix-context.h: New file.
13749         * modules/unicase/u8-suffix-context: New file.
13750
13751         New module 'unicase/empty-suffix-context'.
13752         * lib/unicase/empty-suffix-context.c: New file.
13753         * modules/unicase/empty-suffix-context: New file.
13754
13755         New module 'unicase/u32-prefix-context'.
13756         * lib/unicase/u32-prefix-context.c: New file.
13757         * modules/unicase/u32-prefix-context: New file.
13758
13759         New module 'unicase/u16-prefix-context'.
13760         * lib/unicase/u16-prefix-context.c: New file.
13761         * modules/unicase/u16-prefix-context: New file.
13762
13763         New module 'unicase/u8-prefix-context'.
13764         * lib/unicase/u8-prefix-context.c: New file.
13765         * lib/unicase/u-prefix-context.h: New file.
13766         * lib/unicase/context.h: New file.
13767         * modules/unicase/u8-prefix-context: New file.
13768
13769         New module 'unicase/empty-prefix-context'.
13770         * lib/unicase/empty-prefix-context.c: New file.
13771         * modules/unicase/empty-prefix-context: New file.
13772
13773         New module 'unicase/ignorable'.
13774         * lib/unicase/ignorable.c: New file.
13775         * modules/unicase/ignorable: New file.
13776
13777         New module 'unicase/cased'.
13778         * lib/unicase/caseprop.h: New file.
13779         * lib/unicase/cased.c: New file.
13780         * modules/unicase/cased: New file.
13781
13782         New functions for case mapping of substrings.
13783         * lib/unicase.h (casing_prefix_context_t): New type.
13784         (unicase_empty_prefix_context): New variable.
13785         (u8_casing_prefix_context, u16_casing_prefix_context,
13786         u32_casing_prefix_context, u8_casing_prefixes_context,
13787         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13788         declarations.
13789         (casing_suffix_context_t): New type.
13790         (unicase_empty_suffix_context): New variable.
13791         (u8_casing_suffix_context, u16_casing_suffix_context,
13792         u32_casing_suffix_context, u8_casing_suffixes_context,
13793         u16_casing_suffixes_context, u32_casing_suffixes_context,
13794         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13795         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13796         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13797         declarations.
13798
13799 2009-06-28  Jim Meyering  <meyering@redhat.com>
13800
13801         boostrap: indent only with spaces
13802         * build-aux/bootstrap: Indent only with spaces, never TABs.
13803
13804         bootstrap: split long lines
13805         * build-aux/bootstrap: Keep line length < 80.
13806
13807         bootstrap: sync from coreutils
13808         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13809         just as autoreconf does.  Verify a list of prerequisite
13810         package-name,version-number pairs if defined in bootstrap.conf.
13811         Refer to README-prereq, if prerequisites are not satisfied.
13812
13813 2009-06-27  Eric Blake  <ebb9@byu.net>
13814
13815         tests: add test for bogus NULL definition
13816         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13817         * tests/test-stdlib.c: Likewise.
13818         * tests/test-string.c: Likewise.
13819         * tests/test-locale.c: Likewise.
13820         * tests/test-unistd.c: Likewise.
13821         * modules/stdio-tests (Depends-on): Add verify.
13822         * modules/stdlib-tests (Depends-on): Likewise.
13823         * modules/string-tests (Depends-on): Likewise.
13824         * modules/locale-tests (Depends-on): Likewise.
13825         * modules/unistd-tests (Depends-on): Likewise.
13826
13827 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13828
13829         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13830         self-explaining comment.
13831         * m4/selinux-selinux-h: Update serial.
13832         (gl_LIBSELINUX): New macro, adding a warning for missing development
13833         packages to code extracted from...
13834         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13835         Add warning for missing development packages here, too.
13836
13837 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13838
13839         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13840
13841 2009-06-25  Eric Blake  <ebb9@byu.net>
13842
13843         version-etc: fix regression
13844         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13845         gcc.
13846         (version_etc): Use it, to catch bugs with trailing NULL.
13847         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13848         (version_etc_va): Fix logic bug.
13849         * modules/version-etc-tests: Add test.
13850         * tests/test-version-etc.c: New file.
13851         * tests/test-version-etc.sh: Likewise.
13852
13853 2009-06-25  Sam Steingold  <sds@gnu.org>
13854
13855         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13856         mbtowc declaration.
13857
13858 2009-06-25  Eric Blake  <ebb9@byu.net>
13859
13860         fpurge: migrate into <stdio.h>
13861         * lib/fpurge.h: Delete...
13862         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13863         * lib/fpurge.c (fpurge): Change declaring header.
13864         * modules/fpurge (Files): Drop deleted file.
13865         (Depends-on): Add stdio.
13866         (configure.ac): Set witness.
13867         * modules/stdio (Makefile.am): Support fpurge macros.
13868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13869         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13870         * lib/fflush.c: Update client.
13871         * tests/test-fpurge.c: Likewise.
13872         * NEWS: Mention the change.
13873
13874 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13875
13876         * lib/argp-version-etc.c (program_authors): Add const
13877         qualifier.
13878         * lib/version-etc.c: Fix typos in the comments.
13879         * modules/argp-version-etc: Depends on version-etc.
13880
13881 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13882
13883         argp-version-etc: new module.
13884
13885         * lib/argp-version-etc.c: New file.
13886         * lib/argp-version-etc.h: New file.
13887         * modules/argp-version-etc: New file.
13888         * modules/argp-version-etc-tests: New file.
13889         * tests/test-argp-version-etc.c: New test.
13890         * tests/test-argp-version-etc-1.sh: New test.
13891
13892 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13893
13894         Provide additional interfaces and documentation for version-etc
13895         module.
13896
13897         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13898         interfaces.
13899         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13900         prototypes.
13901
13902 2009-06-24  Bruno Haible  <bruno@clisp.org>
13903
13904         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13905         HAVE_LIB${NAME} macro.
13906         Reported by Sam Steingold <sds@gnu.org>.
13907
13908 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13909
13910         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13911         needed.
13912
13913 2009-06-21  Bruno Haible  <bruno@clisp.org>
13914
13915         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13916         work.
13917         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13918         together with LIB${NAME}, LTLIB${NAME}.
13919         Reported by Sam Steingold <sds@gnu.org>.
13920
13921 2009-06-20  Jim Meyering  <meyering@redhat.com>
13922
13923         tests: make sc_require_test_exit_idiom more generic
13924         * top/maint.mk (Exit_witness_file): New overridable variable.
13925         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13926         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13927
13928 2009-06-19  Jim Meyering  <meyering@redhat.com>
13929
13930         hash: reverse order of src/dst parameters in an internal interface
13931         * lib/hash.c (transfer_entries): Reverse order of parameters to
13932         put DST before SRC.  Adjust callers.
13933
13934         tests: test-hash: avoid wholesale duplication
13935         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13936         Instead, use a loop and add a single conditional.
13937
13938         tests: test-hash: allow seed selection via a command line argument
13939         * tests/test-hash.c (get_seed): New function.
13940         (main): Use it.
13941
13942 2009-06-19  Eric Blake  <ebb9@byu.net>
13943
13944         hash: avoid memory leak on allocation failure
13945         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13946         failure.  Factor repeated algorithm...
13947         (transfer_entries): ...into new helper routine.
13948         (hash_delete): React to hash_rehash return value.
13949
13950         hash: reduce memory pressure in hash_rehash no-op case
13951         * lib/hash.c (next_prime): Avoid overflow.
13952         (hash_initialize): Factor bucket size computation...
13953         (compute_bucket_size): ...into new helper function.
13954         (hash_rehash): Use new function and open coding to reduce memory
13955         pressure, and avoid a memory leak in USE_OBSTACK code.
13956         Reported by Jim Meyering.
13957
13958 2009-06-18  Eric Blake  <ebb9@byu.net>
13959
13960         hash: make rotation more obvious
13961         * modules/hash (Depends-on): Add bitrotate and stdint.
13962         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13963         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13964         (SIZE_MAX): Rely on headers for definition.
13965         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13966         (raw_hasher): Use rotr_sz.
13967         Suggested by Jim Meyering.
13968
13969         hash: fix memory leak in last patch
13970         * lib/hash.c (hash_rehash): Avoid memory leak.
13971
13972         hash: avoid no-op rehashing
13973         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13974
13975         hash: provide default callback functions
13976         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13977         (hash_initialize): Use them as defaults.
13978         * tests/test-hash.c (main): Test this.
13979
13980         hash: minor optimization
13981         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13982         when possible.
13983         (hash_initialize): Document this promise.
13984         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13985         * tests/test-hash.c (hash_compare_strings): Test this.
13986
13987 2009-06-18  Bruno Haible  <bruno@clisp.org>
13988
13989         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13990         going to be replaced anyway.
13991
13992 2009-06-18  Bruno Haible  <bruno@clisp.org>
13993
13994         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13995         in one place.
13996         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13997         be replaced anyway.
13998
13999 2009-06-18  Eric Blake  <ebb9@byu.net>
14000
14001         hash: check for resize before insertion
14002         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
14003         threshold before insertion, so that a pathological hash_rehash
14004         that fills every bucket can still trigger another rehash.
14005
14006 2009-06-18  Jim Meyering  <meyering@redhat.com>
14007
14008         hash-tests: add a loop around the small tests
14009         * tests/test-hash.c (main): Repeat small tests with selected
14010         small initial table sizes.
14011
14012 2009-06-17  Eric Blake  <ebb9@byu.net>
14013
14014         hash: minor cleanups
14015         * lib/hash.h (hash_entry): Make opaque, by moving...
14016         * lib/hash.c (hash_entry): ...here.
14017         (hash_insert): Clarify restrictions on what can be inserted.
14018         (hash_get_next): Clarify when it is safe to remove an element
14019         during traversal.
14020         (check_tuning): Skip verification when tuning is known safe.
14021         (hash_initialize): Clarify restrictions on tuning.
14022
14023 2009-06-17  Jim Meyering  <jim@meyering.net>
14024         and Eric Blake  <ebb9@byu.net>
14025
14026         hash-tests: new module
14027         * modules/hash-tests: New file.
14028         * tests/test-hash.c: New file.
14029
14030 2009-06-17  Eric Blake  <ebb9@byu.net>
14031
14032         strstr-simple: document new module
14033         * MODULES.html.sh: Document new module.
14034
14035         strstr, strcasestr: replace on platforms with broken memchr
14036         * modules/strstr: Split into...
14037         * modules/strstr-simple: ...new module that does not care about
14038         performance, but does care about glibc bug.
14039         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
14040         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
14041         if platform memchr is broken, per Debian bug 521737.
14042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
14043         memchr.
14044         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
14045         * doc/posix-functions/strstr.texi (strstr): Document the fix.
14046         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14047         * modules/mountlist (Depends-on): Add strstr-simple.
14048         * modules/gen-uni-tables (Depends-on): Likewise.
14049         * modules/argz (Depends-on): Add strstr.
14050
14051 2009-06-17  Bruno Haible  <bruno@clisp.org>
14052
14053         * modules/posix_spawn-internal (Depends-on): Add errno.
14054
14055 2009-06-17  Bruno Haible  <bruno@clisp.org>
14056
14057         Define missing ESTALE on Interix 3.5.
14058         * lib/errno.in.h (ESTALE): Assign a value if missing.
14059         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
14060         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
14061         missing.
14062         * doc/posix-headers/errno.texi: Mention the Interix bug.
14063         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
14064
14065 2009-06-15  Eric Blake  <ebb9@byu.net>
14066
14067         memchr, memchr2: add valgrind exception
14068         * lib/memchr.valgrind: New file.
14069         * lib/memchr2.valgrind: New file.
14070         * modules/memchr (Files): Distribute valgrind file.
14071         * modules/memchr2 (Files): Likewise.
14072
14073         docs: memchr is no longer obsolete
14074         * MODULES.html.sh: Move memchr from obsolete to string.h section.
14075         * lib/string.in.h (memchr): Simplify logic.
14076
14077 2009-06-14  Jim Meyering  <meyering@redhat.com>
14078
14079         link-follow: fix the "checking..." message to not mention trailing slash
14080         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
14081         never considered trailing slashes.
14082
14083 2009-06-14  Bruno Haible  <bruno@clisp.org>
14084
14085         * m4/memchr.m4: Mention also the bug on IA-64.
14086         * doc/posix-functions/memchr.texi: Likewise.
14087
14088 2009-06-12  Eric Blake  <ebb9@byu.net>
14089
14090         memchr: detect broken x86_64 and alpha implementations
14091         * modules/memchr-tests (Depends-on): Move mmap detection...
14092         * modules/memchr (Depends-on): ...here.
14093         (configure.ac): Set indicator.
14094         * lib/string.in.h (memchr): Declare replacement.
14095         * modules/string (Makefile.am): Trigger replacement.
14096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
14097         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
14098         bugs.
14099         * doc/posix-functions/memchr.texi (memchr): Document the bug.
14100         * modules/getpagesize (License): Relax license.
14101
14102 2009-06-11  Bruno Haible  <bruno@clisp.org>
14103
14104         * lib/idpriv.h: Add more references.
14105
14106 2009-06-08  Bruno Haible  <bruno@clisp.org>
14107
14108         Tests for module 'idpriv-droptemp'.
14109         * modules/idpriv-droptemp-tests: New file.
14110         * tests/test-idpriv-droptemp.sh: New file.
14111         * tests/test-idpriv-droptemp.su.sh: New file.
14112         * tests/test-idpriv-droptemp.c: New file.
14113
14114         New module 'idpriv-droptemp'.
14115         * lib/idpriv-droptemp.c: New file.
14116         * modules/idpriv-droptemp: New file.
14117
14118 2009-06-08  Bruno Haible  <bruno@clisp.org>
14119
14120         Tests for module 'idpriv-drop'.
14121         * modules/idpriv-drop-tests: New file.
14122         * tests/test-idpriv-drop.sh: New file.
14123         * tests/test-idpriv-drop.su.sh: New file.
14124         * tests/test-idpriv-drop.c: New file.
14125
14126         New module 'idpriv-drop'.
14127         * lib/idpriv.h: New file.
14128         * lib-idpriv-drop.c: New file.
14129         * m4/idpriv.m4: New file.
14130         * modules/idpriv-drop: New file.
14131
14132 2009-06-08  Bruno Haible  <bruno@clisp.org>
14133
14134         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
14135         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14136         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14137         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14138         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14139         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14140         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14141
14142 2009-06-08  Eric Blake  <ebb9@byu.net>
14143
14144         test-strstr: use memory fence, when possible
14145         * tests/test-strstr.c (main): Use memory fence, in order to be
14146         more likely to trigger Debian bug 521737.
14147         * modules/strstr-tests (Files): Pull in additional files.
14148
14149         memchr: no longer obsolete, for wider field testing
14150         * modules/memchr (Status, Notice): Delete, this module is no
14151         longer obsolete.
14152         * modules/vasnprintf (Depends-on): Add memchr.
14153
14154 2009-06-07  Jim Meyering  <meyering@redhat.com>
14155
14156         hash: declare some functions with the warn_unused_result attribute
14157         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
14158
14159 2009-06-07  Bruno Haible  <bruno@clisp.org>
14160
14161         * tests/test-alignof.c: Don't test int64_t if it does not exist.
14162         Reported by Eric Blake.
14163
14164 2009-06-06  Eric Blake  <ebb9@byu.net>
14165
14166         test-alignof: fix typo with long double
14167         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
14168         compiler error.
14169
14170 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
14171
14172         Escape non-texinfo { and }s.
14173         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
14174         markup error.
14175
14176 2009-06-04  Jim Meyering  <meyering@redhat.com>
14177
14178         gitlog-to-changelog: don't infloop on an empty commit log
14179         * build-aux/gitlog-to-changelog: Warn about an empty log message.
14180         Reported by Boris Petersen <transacid@centerim.org>.
14181
14182 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
14183
14184         version-etc: extend for packagers
14185         Add three new configure options, intended for packagers:
14186           --with-packager="packager name"
14187           --with-packager-version="packager-specific version"
14188           --with-packager-bug-reports="packager bug reporting"
14189         An example with coreutils:
14190           $ ./configure \
14191             --with-packager=Gentoo \
14192             --with-packager-bug-report=http://bugs.gentoo.org/ \
14193             --with-packager-version="patchset 1.6"
14194           $ ./src/ls --version | head -n2
14195           ls (GNU coreutils) 7.1-dirty
14196           Packaged by Gentoo (patchset 1.6)
14197         Note that the bug reporting info via --help doesn't show up because
14198         coreutils uses its own custom emit_bug_reporting_address() implementation
14199         in src/system.h.  If it didn't, it'd look like:
14200           $ ./src/ls --help | tail -n4
14201           Report bugs to <bug-coreutils@gnu.org>.
14202           Report Gentoo bugs to <http://bugs.gentoo.org/>.
14203           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
14204           General help using GNU software: <http://www.gnu.org/gethelp/>.
14205         * lib/version-etc.c: Print new information, if provided.
14206         * m4/version-etc.m4: New file.
14207         * modules/version-etc (Files): Add m4/version-etc.m4.
14208         (configure.ac): Add gl_VERSION_ETC.
14209
14210 2009-05-31  Bruno Haible  <bruno@clisp.org>
14211
14212         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
14213         and 'int64_t'.
14214         * modules/alignof-tests (Dependencies): Add stdint.
14215         Reported by Eric Blake.
14216
14217 2009-05-31  Bruno Haible  <bruno@clisp.org>
14218
14219         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
14220         restriction due to compiler bugs.
14221         Reported by Eric Blake.
14222
14223 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14224             Bruno Haible  <bruno@clisp.org>
14225
14226         Fix test-alignof failure.
14227         * lib/alignof.h (alignof_slot): New macro.
14228         (alignof_type): New macro, with the same semantics as the previous
14229         'alignof'.
14230         (alignof): Alias to alignof_slot.
14231         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14232         check that the results are usable as constant expressions.
14233
14234 2009-05-31  Bruno Haible  <bruno@clisp.org>
14235
14236         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14237         * tests/test-memchr.c (main): Check that memchr does not read past the
14238         first occurrence of the byte.
14239         * tests/test-strstr.c (main): Update comment.
14240         Suggested by Eric Blake.
14241
14242 2009-05-30  Bruno Haible  <bruno@clisp.org>
14243
14244         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14245         detail how to use dumpbin.
14246         Reported by David Byron <dbyron@dbyron.com>.
14247
14248 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14249
14250         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14251
14252 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14253
14254         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14255
14256 2009-05-28  Bruno Haible  <bruno@clisp.org>
14257
14258         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14259         build-aux/ files.
14260
14261 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14262
14263         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14264
14265 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14266
14267         * gnulib-tool (sed_transform_main_lib_file)
14268         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14269         regexps.
14270
14271 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14272
14273         * tests/test-strstr.c: Add another self-test.
14274         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14275         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14276
14277 2009-05-23  Bruno Haible  <bruno@clisp.org>
14278
14279         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14280         change.
14281
14282 2009-05-21  Bruno Haible  <bruno@clisp.org>
14283
14284         Simplify use of mode_t varargs.
14285         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14286         uses 'mode_t' or 'int'.
14287         * lib/openat.c (openat): Likewise.
14288         * lib/open-safer.c (open_safer): Likewise.
14289         * m4/mode_t.m4: New file.
14290         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14291         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14292         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14293         * modules/open (Files): Add m4/mode_t.m4.
14294         * modules/openat (Files): Likewise.
14295         * modules/fcntl-safer (Files): Likewise.
14296         Suggested by Eric Blake.
14297
14298 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14299
14300         * doc/glibc-functions/fallocate.texi: New file.
14301         * doc/gnulib.texi: Include it.
14302
14303 2009-05-21  Eric Blake  <ebb9@byu.net>
14304             Bruno Haible  <bruno@clisp.org>
14305
14306         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14307         invocations.
14308         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14309
14310 2009-05-21  Eric Blake  <ebb9@byu.net>
14311             Bruno Haible  <bruno@clisp.org>
14312
14313         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14314         include_next. Fix of 2008-11-20 commit.
14315         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14316         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14317         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14318         NEXT_MATH_H.
14319         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14320         instead of NEXT_MATH_H.
14321
14322 2009-05-21  Bruno Haible  <bruno@clisp.org>
14323
14324         Avoid redefinition warnings for SIZE_MAX.
14325         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14326         Reported by Simon Josefsson.
14327
14328 2009-05-21  Bruno Haible  <bruno@clisp.org>
14329
14330         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14331         AC_CACHE_VAL.
14332
14333 2009-05-20  Bruno Haible  <bruno@clisp.org>
14334
14335         Make zeroptr.h work on mingw.
14336         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14337         mprotect.
14338         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14339         * modules/memchr2-tests (configure.ac): Likewise.
14340         * modules/memcmp-tests (configure.ac): Likewise.
14341         * modules/memmem-tests (configure.ac): Likewise.
14342         * modules/memrchr-tests (configure.ac): Likewise.
14343         Reported by Simon Josefsson.
14344
14345 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14346
14347         * tests/test-glob.c: Include string.h for strcmp prototype.
14348
14349 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14350
14351         * modules/getdelim (Depends-on): Add explicit stdint, although it
14352         was implicitly already pulled in via realloc-posix.
14353         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14354
14355 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14356
14357         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14358         G. Christensen" <tgc@jupiterrise.com>.
14359         * m4/sys_socket_h.m4: Check for sa_family_t.
14360         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14361         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14362         * tests/test-sys_socket.c: Check that sa_family_t works.
14363
14364 2009-05-18  Eric Blake  <ebb9@byu.net>
14365
14366         maint.mk: allow gnulib_dir in VPATH build
14367         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14368
14369 2009-05-15  Jim Meyering  <meyering@redhat.com>
14370
14371         maint.mk: Give gnulib_dir a default definition.
14372         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14373         Thus, most packages no longer need to specify this variable in cfg.mk
14374
14375 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14376
14377         rename.m4: fix typos that would make non-mingw cross-configure fail
14378         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14379
14380 2009-05-13  Eric Blake  <ebb9@byu.net>
14381
14382         mmap-anon: avoid out-of-order autoconf expansion
14383         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14384         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14385         * modules/memchr-tests (Depends-on): Add extensions.
14386         * modules/memchr2-tests (Depends-on): Add extensions.
14387         * modules/memcmp-tests (Depends-on): Add extensions.
14388         * modules/memmem-tests (Depends-on): Add extensions.
14389         * modules/memrchr-tests (Depends-on): Add extensions.
14390
14391 2009-05-13  Bruno Haible  <bruno@clisp.org>
14392
14393         Make some tests ISO C 99 compliant.
14394         * tests/zerosize-ptr.h: New file.
14395         * tests/test-memchr.c: Include zerosize-ptr.h.
14396         (main): Use a zero-size object pointer instead of NULL.
14397         * tests/test-memchr2.c: Include zerosize-ptr.h.
14398         (main): Use a zero-size object pointer instead of NULL.
14399         * tests/test-memcmp.c: Include zerosize-ptr.h.
14400         (main): Use a zero-size object pointer instead of NULL.
14401         * tests/test-memmem.c: Include zerosize-ptr.h.
14402         (main): Use a zero-size object pointer instead of NULL.
14403         * tests/test-memrchr.c: Include zerosize-ptr.h.
14404         (main): Use a zero-size object pointer instead of NULL.
14405         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14406         m4/mmap-anon.m4.
14407         (Depends-on): Add getpagesize.
14408         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14409         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14410         m4/mmap-anon.m4.
14411         (Depends-on): Add getpagesize.
14412         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14413         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14414         m4/mmap-anon.m4.
14415         (Depends-on): Add getpagesize.
14416         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14417         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14418         m4/mmap-anon.m4.
14419         (Depends-on): Add getpagesize.
14420         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14421         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14422         m4/mmap-anon.m4.
14423         (Depends-on): Add getpagesize.
14424         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14425
14426 2009-05-12  Bruno Haible  <bruno@clisp.org>
14427
14428         Tests for module 'alignof'.
14429         * modules/alignof-tests: New file.
14430         * tests/test-alignof.c: New file.
14431
14432 2009-05-12  Bruno Haible  <bruno@clisp.org>
14433
14434         Fix alignof macro.
14435         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14436         vendor compilers that are always correct.
14437
14438 2009-05-12  Bruno Haible  <bruno@clisp.org>
14439
14440         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14441         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14442         not whether its fully works.
14443
14444 2009-05-12  Bruno Haible  <bruno@clisp.org>
14445
14446         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14447
14448 2009-05-12  Jim Meyering  <meyering@redhat.com>
14449
14450         * top/maint.mk: Adjust backslash alignment.
14451
14452 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14453
14454         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14455
14456 2009-05-11  Eric Blake  <ebb9@byu.net>
14457
14458         argp: avoid undefined behavior
14459         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14460         macros.
14461
14462 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14463
14464         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14465         user.name to prevent git commit from complaining.
14466
14467 2009-05-10  Bruno Haible  <bruno@clisp.org>
14468
14469         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14470         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14471         it rewrites every file name only once.
14472         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14473
14474 2009-05-08  Bruno Haible  <bruno@clisp.org>
14475
14476         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14477         instead of 'max'.
14478
14479 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14480
14481         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14482         sockaddr_storage test.
14483
14484 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14485
14486         * modules/sys_socket (Makefile.am): Substitute
14487         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14488         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14489         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14490         * tests/test-sys_socket.c: Check sockaddr_storage.
14491
14492 2009-05-08  Bruno Haible  <bruno@clisp.org>
14493
14494         New module 'alignof'.
14495         * lib/alignof.h: New file.
14496         * modules/alignof: New file.
14497
14498 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14499             Bruno Haible  <bruno@clisp.org>
14500
14501         Fix test-file-has-acl on FreeBSD.
14502         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14503         mask is implicitly added.
14504         * tests/test-file-has-acl.c: Include <signal.h>.
14505         (main): Terminate the test after 5 seconds.
14506         * modules/acl-tests (configure.ac): Check for alarm function.
14507
14508 2009-05-04  Bruno Haible  <bruno@clisp.org>
14509
14510         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14511         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14512         * modules/errno (configure.ac): Drop AC_REQUIRE.
14513         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14514         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14515
14516 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14517
14518         * modules/glob-tests: New module.
14519         * tests/test-glob.c: Add.
14520
14521 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14522
14523         * modules/fnmatch-tests: New module.
14524         * tests/test-fnmatch.c: Add.
14525
14526 2009-05-04  Eric Blake  <ebb9@byu.net>
14527
14528         maint: make the new no-submodule-changes rule VPATH-safe
14529         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14530
14531 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14532             Bruno Haible  <bruno@clisp.org>
14533
14534         acl: Fix infinite loop on FreeBSD.
14535         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14536         of return value from acl_get_entry.
14537         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14538         Likewise.
14539
14540 2009-05-03  Bruno Haible  <bruno@clisp.org>
14541
14542         * lib/acl-internal.h (acl_entries): Clarify return value.
14543         * lib/acl_entries.c (acl_entries): Likewise.
14544
14545 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14546
14547         Bug fix in acl module.
14548         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14549
14550 2009-05-03  Bruno Haible  <bruno@clisp.org>
14551
14552         Create gperf-generated file in the source dir, not in the build dir.
14553         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14554         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14555         * modules/unicase/locale-language (unicase/locale-languages.h):
14556         Likewise.
14557         * modules/unicase/special-casing (unicase/special-casing-table.h):
14558         Likewise.
14559         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14560         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14561         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14562         Reported by Ralf Wildenhues.
14563
14564 2009-05-03  Bruno Haible  <bruno@clisp.org>
14565
14566         * modules/fnmatch (Description, configure.ac): Taken from
14567         fnmatch-posix.
14568         * modules/fnmatch-posix: Turn into a symbolic reference to the
14569         'fnmatch' module, and deprecate.
14570         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14571
14572 2009-05-03  Bruno Haible  <bruno@clisp.org>
14573
14574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14575         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14576         Reported by Ralf Wildenhues.
14577
14578 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14579
14580         * m4/fnmatch.m4: Fix fnmatch re-define.
14581
14582 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14583
14584         priv-set: new module and tests; adapt write-any-file
14585         * lib/priv-set.c: New file.
14586         * lib/priv-set.h: New file.
14587         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14588         * lib/write-any-file.c: Simplify by using priv-set module.
14589         * m4/priv-set.m4: New file.
14590         * modules/priv-set: New file.
14591         * modules/unlinkdir: Add dependency on priv-set module.
14592         * modules/write-any-file: Likewise.
14593
14594         Tests for module 'priv-set'.
14595         * modules/priv-set-tests: New file.
14596         * tests/test-priv-set.c: New file.
14597
14598 2009-05-03  Jim Meyering  <meyering@redhat.com>
14599             Bruno Haible  <bruno@clisp.org>
14600
14601         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14602         use the converted UTF-8 variant of the name instead.
14603
14604 2009-05-03  Jim Meyering  <meyering@redhat.com>
14605
14606         tests: tighten some getdate tests
14607         * tests/test-getdate.c (main): Tighten tests: require equality,
14608         not just greater than.  Set TZ envvar to UTC0.
14609
14610 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14611
14612         getdate: correctly interpret "next monday" when run on a Monday
14613         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14614         that e.g., "next tues" (when run on a tuesday) results in a date
14615         that is one week in the future, and not today's date.
14616         I.e., add a week when the wday is the same as the current one.
14617         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14618         and earlier by Martin Bernreuther and Jan Minář.
14619         * tests/test-getdate.c (main): Check that "next DAY" is always in
14620         the future and that "last DAY" is always in the past.
14621
14622 2009-05-02  Jim Meyering  <meyering@redhat.com>
14623
14624         build: ensure that a release build fails when a submodule is unclean
14625         * top/maint.mk (no-submodule-changes): New rule.
14626         (alpha beta major): Depend on it.
14627
14628 2009-05-02  Bruno Haible  <bruno@clisp.org>
14629
14630         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14631         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14632         shell variable gl_fnmatch_required to detect which variant is
14633         requested.
14634         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14635         gl_FUNC_FNMATCH_POSIX.
14636         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14637         exclude fnmatch-posix.
14638
14639 2009-05-02  Bruno Haible  <bruno@clisp.org>
14640
14641         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14642         * modules/mbsrtowcs (License): Change to LGPLv2+.
14643         * modules/strnlen1 (License): Likewise.
14644         Reported by Simon Josefsson.
14645
14646 2009-05-02  Bruno Haible  <bruno@clisp.org>
14647
14648         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14649         "cross".
14650         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14651         gnulib-tool was called with option --source-base=lib.
14652
14653 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14654
14655         Use automake *-local hooks without commands, for extensibility.
14656         * modules/localcharset (Makefile.am): Rename install-exec-local
14657         rule to install-exec-localcharset, and make it a prerequisite of
14658         install-exec-local.  Likewise, rename the uninstall-local rule to
14659         uninstall-localcharset, and make it a prerequisite of the former.
14660
14661 2009-05-01  Bruno Haible  <bruno@clisp.org>
14662
14663         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14664         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14665         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14667         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14668         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14669         m4/locale-zh.m4, m4/codeset.m4.
14670
14671         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14672         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14673         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14674         m4/locale-zh.m4.
14675
14676         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14677         REPLACE_WCRTOMB if mbstate_t must be replaced.
14678         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14679         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14680
14681 2009-05-01  Bruno Haible  <bruno@clisp.org>
14682
14683         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14684         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14685         dngettext, dcngettext, textdomain, bindtextdomain,
14686         bind_textdomain_codeset): Undefine before redefining.
14687
14688 2009-04-30  Bruno Haible  <bruno@clisp.org>
14689
14690         Fix bug introduced on 2009-04-25.
14691         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14692         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14693         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14694         is defined.
14695         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14696         is defined.
14697         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14698         is defined.
14699         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14700
14701 2009-04-28  Bruno Haible  <bruno@clisp.org>
14702
14703         Comment tweaks.
14704         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14705         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14706         * lib/unicase.h (u*_casexfrm): Likewise.
14707         Reported by Paolo Bonzini.
14708
14709 2009-04-28  Bruno Haible  <bruno@clisp.org>
14710
14711         Fix a compilation error.
14712         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14713         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14714         Reported by Jim Meyering.
14715
14716 2009-04-27  Bruno Haible  <bruno@clisp.org>
14717
14718         New module 'libunistring'.
14719         * modules/libunistring: New file.
14720         * m4/libunistring.m4: New file.
14721         * MODULES.html.sh (Unicode string functions): Add it.
14722
14723 2009-04-27  Eric Blake  <ebb9@byu.net>
14724
14725         maint.mk: allow package-specific header to provide <config.h>
14726         * top/maint.mk (sc_require_config_h): New variable.
14727         (sc_require_config_h, sc_require_config_h_first): Use it.
14728
14729 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14730
14731         * top/maint.mk (sc_avoid_if_before_free): Except
14732         useless-if-before-free script.
14733
14734 2009-04-27  Eric Blake  <ebb9@byu.net>
14735
14736         maintainer-makefile: depend on all required helper scripts
14737         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14738         useless-if-before-free.
14739         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14740         version, rather than assuming gnulib checkout is available.
14741         Reported by Simen Josefsson.
14742
14743 2009-04-26  Bruno Haible  <bruno@clisp.org>
14744
14745         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14746         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14747         "../" or "..".
14748
14749 2009-04-26  Bruno Haible  <bruno@clisp.org>
14750
14751         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14752         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14753         AC_LIB_HAVE_LINKFLAGS.
14754
14755 2009-04-26  Bruno Haible  <bruno@clisp.org>
14756
14757         Simplify calling convention of u*_conv_from_encoding.
14758         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14759         u32_conv_from_encoding): Expect a resultbuf argument and return the
14760         result directly as a pointer.
14761         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14762         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14763         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14764         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14765         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14766         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14767         Update.
14768         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14769         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14770         * lib/vasnprintf.c (VASNPRINTF): Update.
14771         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14772         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14773         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14774         * NEWS: Mention the change.
14775
14776 2009-04-26  Bruno Haible  <bruno@clisp.org>
14777
14778         Simplify calling convention of u*_conv_to_encoding.
14779         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14780         u32_conv_to_encoding): Expect a resultbuf argument and return the
14781         result directly as a pointer.
14782         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14783         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14784         freeing scaled_offsets if mem_iconveha failed.
14785         * lib/unicase/u-casexfrm.h (FUNC): Update.
14786         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14787         * lib/vasnprintf.c (VASNPRINTF): Update.
14788         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14789         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14790         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14791         * NEWS: Mention the change.
14792
14793 2009-04-26  Bruno Haible  <bruno@clisp.org>
14794
14795         Avoid test failures on AIX and OSF/1.
14796         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14797         malloc(0).
14798         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14799         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14800         Likewise.
14801         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14802         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14803         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14804         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14805         * doc/posix-functions/malloc.texi: Document the portability problem
14806         related to malloc(0).
14807
14808 2009-04-26  Bruno Haible  <bruno@clisp.org>
14809
14810         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14811         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14812         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14813
14814 2009-04-25  Bruno Haible  <bruno@clisp.org>
14815
14816         Avoid link error when creating a namespace clean library.
14817         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14818         as macro with arguments if already defined as an alias.
14819         * lib/signbitf.c (gl_signbitf): Don't undefine.
14820         * lib/signbitd.c (gl_signbitd): Don't undefine.
14821         * lib/signbitl.c (gl_signbitl): Don't undefine.
14822
14823 2009-04-25  Jim Meyering  <meyering@redhat.com>
14824
14825         vc-list-files: fix another quoting bug
14826         * build-aux/vc-list-files: Avoid sed backslash expansion
14827         of pathological directory names.
14828
14829 2009-04-25  Eric Blake  <ebb9@byu.net>
14830
14831         vc-list-files: fix shell quoting error
14832         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14833         timestamp.
14834
14835 2009-04-25  Jim Meyering  <meyering@redhat.com>
14836
14837         vc-list-files: restore lost functionality with subdir argument
14838         * build-aux/vc-list-files: When given a non-"." sub-directory
14839         argument, substitute the $dir/ prefix back onto each resulting name.
14840         Otherwise, coreutils' root_tests check would fail.
14841
14842 2009-04-24  Eric Blake  <ebb9@byu.net>
14843
14844         vc-list-files: ignore git symlinks
14845         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14846         than ls-files, to ignore git symlinks.
14847
14848         maint.mk: import improvements from m4
14849         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14850         (move_if_change): Delete unused macro.
14851         (news-date-check, vc-diff-check): Support VPATH builds.
14852         (announcement): Likewise.  Split --bootstrap-tools list...
14853         (boostrap-tools): ...into separate list, which can be overridden
14854         in cfg.mk.
14855         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14856         requiring dependency on useless-if-before-free module.
14857         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14858         Support VPATH builds.
14859
14860 2009-04-24  Jim Meyering  <meyering@redhat.com>
14861
14862         maint.mk: remove coreutils-specific rules and variables
14863         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14864         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14865         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14866
14867         maint.mk: remove obsolete rule
14868         * top/maint.mk (rel-check): Remove rule.
14869         (WGET, WGETFLAGS): Remove now-unused variables.
14870
14871 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14872
14873         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14874         consistency.
14875
14876         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14877         '$(PATH_SEPARATOR)' instead of ':'.
14878
14879 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14880
14881         * lib/getopt1.c (main): Use 'const' for static array.
14882
14883 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14884
14885         * top/maint.mk: Sync with coreutils.
14886         * NEWS: Explain incompatibilities.
14887
14888 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14889             Bruno Haible  <bruno@clisp.org>
14890
14891         Fix cross-compilation results.
14892         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14893         statement, as third argument of AC_TRY_RUN.
14894         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14895         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14896         Likewise.
14897         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14898         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14899         Likewise.
14900         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14901         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14902         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14903
14904 2009-04-20  Bruno Haible  <bruno@clisp.org>
14905
14906         Avoid test failure on mingw.
14907         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14908
14909 2009-04-20  Bruno Haible  <bruno@clisp.org>
14910
14911         Avoid compilation error on mingw.
14912         * modules/localename-tests (Depends-on): Add locale.
14913
14914 2009-04-19  Bruno Haible  <bruno@clisp.org>
14915
14916         Support for building a shared library on Windows platforms.
14917         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14918         (main): Test the presence of UNINORM_NFC here.
14919         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14920         (main): Test the presence of UNINORM_NFD here.
14921         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14922         (main): Test the presence of UNINORM_NFKC here.
14923         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14924         (main): Test the presence of UNINORM_NFKD here.
14925
14926 2009-04-19  Bruno Haible  <bruno@clisp.org>
14927
14928         Avoid a compiler warning.
14929         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14930         Change type of variable 'sequence'.
14931
14932 2009-04-19  Bruno Haible  <bruno@clisp.org>
14933
14934         * modules/configmake (Makefile.am): When the contents of configmake.h
14935         does not change, arrange to preserve its modification time.
14936
14937 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14938
14939         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14940         gettext domain.
14941
14942 2009-04-16  Jim Meyering  <meyering@redhat.com>
14943
14944         useless-if-before-free: improve conversion code
14945         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14946         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14947
14948 2009-04-14  Bruno Haible  <bruno@clisp.org>
14949
14950         * modules/fcntl (Depends-on): Add extensions.
14951         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14952
14953 2009-04-12  Ben Pfaff  <blp@gnu.org>
14954
14955         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14956         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14957
14958 2009-03-20  Ben Pfaff  <blp@gnu.org>
14959
14960         Make rename replace existing destinations on Windows.
14961         * m4/rename.m4: Add test for Mingw.
14962         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14963         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14964         * doc/posix-functions/rename.texi: Document.
14965
14966 2009-04-10  Bruno Haible  <bruno@clisp.org>
14967
14968         New include file "iconveh.h".
14969         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14970         * lib/striconveh.h: Include it.
14971         (enum iconv_ilseq_handler): Remove definition.
14972         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14973         striconveh.h.
14974         * lib/striconveha.c: Include striconveh.h.
14975         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14976         * modules/striconveh (Files): Add lib/iconveh.h.
14977         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14978         lib/striconveh.h.
14979
14980 2009-04-10  Bruno Haible  <bruno@clisp.org>
14981
14982         * lib/uniconv.h: Update comment.
14983
14984 2009-04-10  Bruno Haible  <bruno@clisp.org>
14985
14986         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14987         always.
14988         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14989         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14990         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14991         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14992         "unistring-notinline.h", so that the function gets defined always.
14993         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14994         * lib/unistr/u8-uctomb.c: Likewise.
14995         * lib/unistr/u16-mbtouc.c: Likewise.
14996         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14997         * lib/unistr/u16-uctomb.c: Likewise.
14998         * lib/unistr/u32-mbtouc.c: Likewise.
14999         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
15000         * lib/unistr/u32-uctomb.c: Likewise.
15001
15002 2009-04-10  Bruno Haible  <bruno@clisp.org>
15003
15004         Mark 'utime' obsolete.
15005         * modules/utime (Status, Notice): New sections.
15006         Suggested by Jim Meyering.
15007
15008         Fix cross-compile guess for utime test.
15009         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
15010         autoconf.
15011         * doc/posix-functions/utime.texi: Give more precisions.
15012         Reported by Jan <ipif@ymail.com>.
15013
15014 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
15015
15016         filevercmp: correct today's change
15017         * lib/filevercmp.c: Also handle coreutils' test inputs.
15018         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
15019
15020         Fix regression in 'filevercmp' module. Thanks Sven Joachim
15021         for reporting it.
15022         * lib/filevercmp.c: Special handle for "", "." and "..".
15023         * tests/test-filevercmp.c: Enlarge the set suite.
15024
15025 2009-04-07  Jim Meyering  <meyering@redhat.com>
15026
15027         useless-if-before-free: show how to remove braced useless free, too
15028         * build-aux/useless-if-before-free: still only in a comment, though.
15029
15030 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
15031
15032         maint.mk: import changes to syntax-check macros from coreutils
15033         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
15034         Use them in the relevant macros.
15035
15036 2009-04-06  Bruno Haible  <bruno@clisp.org>
15037
15038         Fix unportable use of bit-fields.
15039         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
15040         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
15041         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
15042
15043 2009-04-06  Bruno Haible  <bruno@clisp.org>
15044
15045         Avoid test failures on AIX and OSF/1.
15046         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
15047         that malloc(0) = NULL.
15048         * tests/unicase/test-u8-tolower.c (check): Likewise.
15049         * tests/unicase/test-u8-totitle.c (check): Likewise.
15050         * tests/unicase/test-u8-toupper.c (check): Likewise.
15051         * tests/unicase/test-u16-casefold.c (check): Likewise.
15052         * tests/unicase/test-u16-tolower.c (check): Likewise.
15053         * tests/unicase/test-u16-totitle.c (check): Likewise.
15054         * tests/unicase/test-u16-toupper.c (check): Likewise.
15055         * tests/unicase/test-u32-casefold.c (check): Likewise.
15056         * tests/unicase/test-u32-tolower.c (check): Likewise.
15057         * tests/unicase/test-u32-totitle.c (check): Likewise.
15058         * tests/unicase/test-u32-toupper.c (check): Likewise.
15059         * tests/uninorm/test-u8-nfc.c (check): Likewise.
15060         * tests/uninorm/test-u8-nfd.c (check): Likewise.
15061         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
15062         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
15063         * tests/uninorm/test-u16-nfc.c (check): Likewise.
15064         * tests/uninorm/test-u16-nfd.c (check): Likewise.
15065         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
15066         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
15067         * tests/uninorm/test-u32-nfc.c (check): Likewise.
15068         * tests/uninorm/test-u32-nfd.c (check): Likewise.
15069         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
15070         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
15071
15072 2009-04-05  Bruno Haible  <bruno@clisp.org>
15073
15074         Work around an autoconf limitation.
15075         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
15076         comment line if it would be longer than 3 KB.
15077
15078 2009-04-05  Bruno Haible  <bruno@clisp.org>
15079
15080         Avoid test failure with libiconv-1.13.
15081         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
15082         of the expected test results.
15083
15084 2009-04-05  Bruno Haible  <bruno@clisp.org>
15085
15086         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
15087         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
15088         that it should be installed.
15089
15090 2009-04-05  Bruno Haible  <bruno@clisp.org>
15091
15092         * gnulib-tool: New option --copy-file.
15093         (func_usage): Document it.
15094         (func_dest_tmpfilename): Moved out of func_import.
15095         (func_add_file, func_update_file): New functions, extracted from
15096         func_import.
15097         (func_import): Update.
15098
15099 2009-04-05  Karl Berry  <karl@gnu.org>
15100
15101         * README: prominently mention gnulib-tool.
15102         Rearrange sections so getting the code is near the top.
15103
15104 2009-04-05  Bruno Haible  <bruno@clisp.org>
15105
15106         * lib/unicase.h: Mention u*_cmp2.
15107         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15108         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
15109         * lib/unicase/ulc-casecmp.c: Likewise.
15110         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
15111         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
15112         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
15113         unistr/u8-cmp.
15114         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
15115         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
15116         unistr/u16-cmp.
15117         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
15118         unistr/u32-cmp.
15119
15120         * lib/uninorm.h: Mention u*_cmp2.
15121         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15122         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
15123         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
15124         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
15125         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
15126         unistr/u8-cmp.
15127         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
15128         unistr/u16-cmp.
15129         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
15130         unistr/u32-cmp.
15131
15132         New module 'unistr/u32-cmp2'.
15133         * lib/unistr/u32-cmp2.c: New file.
15134         * modules/unistr/u32-cmp2: New file.
15135
15136         New module 'unistr/u16-cmp2'.
15137         * lib/unistr/u16-cmp2.c: New file.
15138         * modules/unistr/u16-cmp2: New file.
15139
15140         New module 'unistr/u8-cmp2'.
15141         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
15142         * lib/unistr/u8-cmp2.c: New file.
15143         * lib/unistr/u-cmp2.h: New file.
15144         * modules/unistr/u8-cmp2: New file.
15145
15146 2009-04-05  Bruno Haible  <bruno@clisp.org>
15147
15148         * lib/unictype.h (uc_property_is_valid): New macro.
15149         * tests/unictype/test-pr_byname.c (main): Use it.
15150
15151         * lib/unistr.h: Doc fixes.
15152         * lib/uniconv.h: Doc fixes.
15153         * lib/unictype.h: Doc fixes.
15154
15155 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
15156
15157         Port coreutils 7.2 to Solaris 8.
15158
15159         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
15160         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
15161         for Solaris 8.  This is a bit of a hack, as it means it's the
15162         caller's responsibility to add -lnsl if needed, but most likely it
15163         won't be needed since only getaddrinfo uses this and getaddrinfo
15164         isn't needed on Solaris 8.
15165
15166         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
15167         problem to Solaris 8 encountered with coreutils 7.2, which
15168         resulted in a message "fnmatch.c:292: warning: passing argument 4
15169         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
15170         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
15171
15172 2009-04-03  Simon Josefsson  <simon@josefsson.org>
15173
15174         * m4/ld-version-script.m4: Add FIXME comment.
15175
15176 2009-04-02  Simon Josefsson  <simon@josefsson.org>
15177
15178         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
15179         SOVERSION variable.
15180
15181 2009-04-02  Bruno Haible  <bruno@clisp.org>
15182
15183         * Makefile (info, html, dvi, pdf): Combine the rules.
15184         Suggested by Jim Meyering.
15185
15186 2009-04-01  Bruno Haible  <bruno@clisp.org>
15187
15188         * Makefile (info, html, dvi, pdf): New targets.
15189         Reported by Reuben Thomas <rrt@sc3d.org>.
15190
15191 2009-04-01  Bruno Haible  <bruno@clisp.org>
15192
15193         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
15194         can be put into PATH.
15195         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
15196
15197 2009-04-01  Bruno Haible  <bruno@clisp.org>
15198
15199         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
15200
15201 2009-04-01  Bruno Haible  <bruno@clisp.org>
15202
15203         Rename module 'visibility'.
15204         * modules/lib-symbol-visibility: Renamed from modules/visibility.
15205         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
15206         * doc/gnulib.texi: Update.
15207         * MODULES.html.sh (Misc): Update.
15208         * NEWS: Mention the change.
15209
15210 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15211
15212         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
15213         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
15214         Eric Blake <ebb9@byu.net> for review.
15215         * MODULES.html.sh: Add lib-msvc-compat.
15216         * doc/gnulib.texi: Link to new section.
15217         * m4/ld-output-def.m4: New file.
15218         * doc/ld-output-def.texi: New file.
15219
15220 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15221
15222         Rename ld-version-script to lib-symbol-versions.  Suggested by
15223         Bruno Haible <bruno@clisp.org>.
15224         * modules/ld-version-script: Renamed to lib-symbol-versions.
15225         * doc/ld-version-script.texi: Fix module name.
15226         * MODULES.html.sh: Add lib-symbol-versions.
15227
15228 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15229
15230         * modules/u64-tests: New file.
15231         * tests/test-u64.c: New file.
15232
15233 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15234
15235         * MODULES.html.sh: Mention u64.
15236         * modules/u64: New module.
15237         * modules/crypto/sha512: Depend on u64 module instead of providing
15238         u64.h.
15239
15240 2009-03-27  Eric Blake  <ebb9@byu.net>
15241
15242         test-strerror: make debugging EAI_SYSTEM easier
15243         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15244         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15245         failure was EAI_SYSTEM.
15246
15247 2009-03-25  Bruno Haible  <bruno@clisp.org>
15248
15249         Fix a problem with --enable-relocatable on Solaris 7.
15250         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15251         since 2008-02-24.
15252
15253 2009-03-25  Eric Blake  <ebb9@byu.net>
15254
15255         test-sockets: avoid gcc warning
15256         * tests/test-sockets.c (main): Silence compiler warning.
15257
15258 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15259
15260         New modules nproc, pthread, contributed by Glen Lenker.
15261
15262         * MODULES.html.sh: Add pthread, nproc.
15263         * lib/nproc.c: New file.
15264         * lib/nproc.h: New file.
15265         * lib/pthread.in.h: New file.
15266         * m4/pthread.m4: New file.
15267         * modules/nproc: New file.
15268         * modules/pthread: New file.
15269
15270 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15271
15272         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15273         New variable.
15274
15275 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15276
15277         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15278         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15279         * tests/test-filevercmp.c: Add tests for backup suffixes.
15280
15281 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15282
15283         * modules/stdlib (Depends-on): Add stdint, needed when defining
15284         struct random_data on, for example, HP-UX 10.20.  Reported by
15285         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15286
15287 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15288
15289         * lib/readline.c (readline): Call fflush on stdout after printing
15290         prompt.
15291
15292 2009-03-20  Bruno Haible  <bruno@clisp.org>
15293
15294         Remove dependency from 'close' module to -lws2_32 on native Windows.
15295         * lib/close-hook.h: New file.
15296         * lib/close-hook.c: New file.
15297         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15298         w32sock.h.
15299         (_gl_close_fd_maybe_socket): Remove function.
15300         (rpl_close): Invoke execute_all_close_hooks instead of
15301         _gl_close_fd_maybe_socket.
15302         * lib/sockets.c: Include close-hook.h, w32sock.h.
15303         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15304         (close_sockets_hook): New variable.
15305         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15306         (gl_sockets_cleanup): Unregister it.
15307         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15308         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15309         * modules/close-hook: New file.
15310         * modules/close (Files): Remove lib/w32sock.h.
15311         (Depends-on): Add close-hook.
15312         (Link): Remove section.
15313         * modules/sockets (Files): Add lib/w32sock.h.
15314         (Depends-on): Add close-hook.
15315         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15316         invocation.
15317         * NEWS: Mention that LIB_CLOSE is gone.
15318
15319 2009-03-23  Eric Blake  <ebb9@byu.net>
15320
15321         signal-tests: test previous patch
15322         * tests/test-signal.c: New file.
15323         * modules/signal-tests: Likewise.
15324
15325         signal.h: always support 'volatile sig_atomic_t'
15326         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15327         (gl_SIGNAL_H_DEFAULTS): Add a default.
15328         * modules/signal (Makefile.am): Substitute if needed.
15329         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15330         users can blindly add volatile.
15331         * doc/posix-headers/signal.texi (signal.h): Document it.
15332         Reported by Matthew Woehlke.
15333
15334 2009-03-23  Jim Meyering  <meyering@redhat.com>
15335
15336         pathmax: PATH_MAX: use pathconf only when available
15337         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15338         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15339         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15340         This avoids a link failure in a PSP cross-compilation environment
15341         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15342
15343         * lib/vasnprintf.c (divide): Fix typo in comment.
15344
15345 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15346
15347         * gnulib-tool (func_filter_filelist): Fix comment.
15348
15349 2009-03-20  Bruno Haible  <bruno@clisp.org>
15350
15351         Make sockets.h self-contained.
15352         * lib/sockets.c: Include sockets.h first.
15353         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15354
15355 2009-03-19  Eric Blake  <ebb9@byu.net>
15356
15357         doc: mention more functions added in cygwin 1.7.0
15358         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15359         addition.
15360         * doc/posix-functions/log2f.texi: Likewise.
15361
15362 2009-03-19  Jim Meyering  <meyering@redhat.com>
15363
15364         fsusage: avoid syntax error due to statement-before-declaration
15365         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15366         after all declarations.  Reported by Matthew Woehlke in
15367         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15368
15369 2009-03-18  Eric Blake  <ebb9@byu.net>
15370
15371         build-aux/compile: sync from automake
15372         * build-aux/compile: New file, from automake.
15373         * config/srclist.txt: Mention build-aux/compile.
15374
15375 2009-03-17  Bruno Haible  <bruno@clisp.org>
15376
15377         * lib/git-merge-changelog.c: Fix typo in comment.
15378         Reported by Reuben Thomas <rrt@sc3d.org>.
15379
15380 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15381
15382         * m4/regex.m4: update and improve help for
15383         --without-included-regex.
15384
15385 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15386
15387         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15388         failure on missing include files.
15389
15390 2009-03-17  Eric Blake  <ebb9@byu.net>
15391
15392         doc: mention more functions added in cygwin 1.7.0
15393         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15394         addition.
15395         * doc/posix-functions/fwscanf.texi: Likewise.
15396         * doc/posix-functions/swprintf.texi: Likewise.
15397         * doc/posix-functions/swscanf.texi: Likewise.
15398         * doc/posix-functions/vfwprintf.texi: Likewise.
15399         * doc/posix-functions/vfwscanf.texi: Likewise.
15400         * doc/posix-functions/vswprintf.texi: Likewise.
15401         * doc/posix-functions/vswscanf.texi: Likewise.
15402         * doc/posix-functions/vwprintf.texi: Likewise.
15403         * doc/posix-functions/vwscanf.texi: Likewise.
15404         * doc/posix-functions/wcscasecmp.texi: Likewise.
15405         * doc/posix-functions/wcsdup.texi: Likewise.
15406         * doc/posix-functions/wcsftime.texi: Likewise.
15407         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15408         * doc/posix-functions/wprintf.texi: Likewise.
15409         * doc/posix-functions/wscanf.texi: Likewise.
15410         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15411
15412 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15413
15414         maint.mk: really add $(AM_MAKEFLAGS)
15415         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15416         was inadvertently omitted in the last commit.
15417         Spotted by Bruno Haible.
15418
15419         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15420         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15421         $(AM_MAKEFLAGS)' rather than plain `make'.
15422
15423         gnulib-tool: execute $MAKE not make
15424         * gnulib-tool: Default $MAKE to 'make'.
15425         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15426         than make.  Initialize $MAKE in the do-autobuild script.
15427
15428         gnulib-tool: use $MAKE not make in generated files
15429         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15430         make, in generated files.  Initialize $MAKE in the do-autobuild
15431         script.
15432
15433         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15434
15435         GNUmakefile: disable parallelism only for multiple, recursive targets
15436         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15437         additions in the Makefile.
15438         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15439         by Automake.
15440         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15441         are listed on the command line and at least one of them is
15442         listed in $(ALL_RECURSIVE_TARGETS).
15443
15444 2009-03-14  Bruno Haible  <bruno@clisp.org>
15445
15446         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15447         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15448         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15449         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15450         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15451         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15452         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15453         unistr/u8-uctomb.
15454         * modules/unistr/u8-strchr (Depends-on): Likewise.
15455         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15456         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15457         unistr/u16-uctomb.
15458         * modules/unistr/u16-strchr (Depends-on): Likewise.
15459         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15460
15461 2009-03-12  Bruno Haible  <bruno@clisp.org>
15462
15463         Work around select() bug on Interix 3.5.
15464         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15465         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15466         * m4/select.m4: New file.
15467         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15468         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15469         * modules/select (Files): Add m4/select.m4.
15470         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15471         * modules/nanosleep (Depends-on): Add select.
15472         * modules/poll (Depends-on): Likewise.
15473         * doc/posix-functions/select.texi: Mention the Interix bug.
15474         Reported by Markus Duft <mduft@gentoo.org>.
15475
15476         * lib/select.c: Renamed from lib/winsock-select.c.
15477         * modules/select (Files): Add lib/select.c, remove
15478         lib/winsock-select.c.
15479         (configure.ac): Update.
15480
15481 2009-03-12  Jim Meyering  <meyering@redhat.com>
15482
15483         avoid gcc warnings about unused macro definitions
15484         * lib/readtokens.c (STREQ): Remove unused definition.
15485         * lib/xmalloc.c (SIZE_MAX): Likewise.
15486         * lib/openat-die.c (N_): Likewise.
15487         * lib/mountlist.c (SIZE_MAX): Remove definition.
15488         Instead, include <stdint.h>.
15489         * lib/readutmp.c: Likewise.
15490         * modules/readutmp (Depends-on): Add stdint.
15491         * modules/mountlist (Depends-on): Add stdint.
15492         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15493
15494 2009-03-10  Bruno Haible  <bruno@clisp.org>
15495
15496         Tests for module 'mbmemcasecoll'.
15497         * modules/mbmemcasecoll-tests: New file.
15498         * tests/test-mbmemcasecoll1.sh: New file.
15499         * tests/test-mbmemcasecoll2.sh: New file.
15500         * tests/test-mbmemcasecoll3.sh: New file.
15501         * tests/test-mbmemcasecoll.c: New file.
15502
15503         New module 'mbmemcasecoll'.
15504         * lib/mbmemcasecoll.h: New file.
15505         * lib/mbmemcasecoll.c: New file.
15506         * modules/mbmemcasecoll: New file.
15507
15508         * tests/test-mbmemcasecmp.h: New file, extracted from
15509         tests/test-mbmemcasecmp.c.
15510         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15511         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15512         (main): Update.
15513         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15514
15515 2009-03-09  Bruno Haible  <bruno@clisp.org>
15516
15517         Tests for module 'mbmemcasecmp'.
15518         * modules/mbmemcasecmp-tests: New file.
15519         * tests/test-mbmemcasecmp1.sh: New file.
15520         * tests/test-mbmemcasecmp2.sh: New file.
15521         * tests/test-mbmemcasecmp3.sh: New file.
15522         * tests/test-mbmemcasecmp.c: New file.
15523
15524         New module 'mbmemcasecmp'.
15525         * lib/mbmemcasecmp.h: New file.
15526         * lib/mbmemcasecmp.c: New file.
15527         * modules/mbmemcasecmp: New file.
15528
15529 2009-03-09  Bruno Haible  <bruno@clisp.org>
15530
15531         Tests for module 'unicase/ulc-casecoll'.
15532         * modules/unicase/ulc-casecoll-tests: New file.
15533         * tests/unicase/test-ulc-casecoll1.sh: New file.
15534         * tests/unicase/test-ulc-casecoll2.sh: New file.
15535         * tests/unicase/test-ulc-casecoll.c: New file.
15536
15537         New module 'unicase/ulc-casecoll'.
15538         * lib/unicase.h (ulc_casecoll): New declaration.
15539         * lib/unicase/ulc-casecoll.c: New file.
15540         * modules/unicase/ulc-casecoll: New file.
15541
15542         New module 'unicase/ulc-casexfrm'.
15543         * lib/unicase.h (ulc_casexfrm): New declaration.
15544         * lib/unicase/ulc-casexfrm.c: New file.
15545         * modules/unicase/ulc-casexfrm: New file.
15546
15547 2009-03-09  Bruno Haible  <bruno@clisp.org>
15548
15549         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15550         invocations.
15551
15552         * m4/mbscasecmp.m4: Remove file.
15553         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15554         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15555
15556         * m4/mbscasestr.m4: Remove file.
15557         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15558         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15559
15560         * m4/mbschr.m4: Remove file.
15561         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15562         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15563
15564         * m4/mbscspn.m4: Remove file.
15565         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15566         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15567
15568         * m4/mbslen.m4: Remove file.
15569         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15570         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15571
15572         * m4/mbsncasecmp.m4: Remove file.
15573         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15574         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15575
15576         * m4/mbsnlen.m4: Remove file.
15577         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15578         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15579
15580         * m4/mbspbrk.m4: Remove file.
15581         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15582         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15583
15584         * m4/mbspcasecmp.m4: Remove file.
15585         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15586         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15587
15588         * m4/mbsrchr.m4: Remove file.
15589         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15590         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15591
15592         * m4/mbssep.m4: Remove file.
15593         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15594         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15595
15596         * m4/mbsspn.m4: Remove file.
15597         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15598         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15599
15600         * m4/mbsstr.m4: Remove file.
15601         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15602         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15603
15604         * m4/mbstok_r.m4: Remove file.
15605         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15606         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15607
15608         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15609
15610         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15611         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15612
15613         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15614
15615 2009-03-08  Bruno Haible  <bruno@clisp.org>
15616
15617         Tests for module 'unicase/ulc-casecmp'.
15618         * modules/unicase/ulc-casecmp-tests: New file.
15619         * tests/unicase/test-ulc-casecmp1.sh: New file.
15620         * tests/unicase/test-ulc-casecmp2.sh: New file.
15621         * tests/unicase/test-ulc-casecmp.c: New file.
15622
15623         New module 'unicase/ulc-casecmp'.
15624         * lib/unicase.h (ulc_casecmp): New declaration.
15625         * lib/unicase/ulc-casecmp.c: New file.
15626         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15627         'const SRC_UNIT *'.
15628         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15629         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15630         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15631         * modules/unicase/ulc-casecmp: New file.
15632
15633         Tests for module 'unicase/u32-is-cased'.
15634         * modules/unicase/u32-is-cased-tests: New file.
15635         * tests/unicase/test-u32-is-cased.c: New file.
15636
15637         Tests for module 'unicase/u16-is-cased'.
15638         * modules/unicase/u16-is-cased-tests: New file.
15639         * tests/unicase/test-u16-is-cased.c: New file.
15640
15641         Tests for module 'unicase/u8-is-cased'.
15642         * modules/unicase/u8-is-cased-tests: New file.
15643         * tests/unicase/test-u8-is-cased.c: New file.
15644         * tests/unicase/test-is-cased.h: New file.
15645
15646         New module 'unicase/u32-is-cased'.
15647         * lib/unicase/u32-is-cased.c: New file.
15648         * modules/unicase/u32-is-cased: New file.
15649
15650         New module 'unicase/u16-is-cased'.
15651         * lib/unicase/u16-is-cased.c: New file.
15652         * modules/unicase/u16-is-cased: New file.
15653
15654         New module 'unicase/u8-is-cased'.
15655         * lib/unicase/u8-is-cased.c: New file.
15656         * lib/unicase/u-is-cased.h: New file.
15657         * modules/unicase/u8-is-cased: New file.
15658
15659         Tests for module 'unicase/u32-is-casefolded'.
15660         * modules/unicase/u32-is-casefolded-tests: New file.
15661         * tests/unicase/test-u32-is-casefolded.c: New file.
15662
15663         Tests for module 'unicase/u16-is-casefolded'.
15664         * modules/unicase/u16-is-casefolded-tests: New file.
15665         * tests/unicase/test-u16-is-casefolded.c: New file.
15666
15667         Tests for module 'unicase/u8-is-casefolded'.
15668         * modules/unicase/u8-is-casefolded-tests: New file.
15669         * tests/unicase/test-u8-is-casefolded.c: New file.
15670         * tests/unicase/test-is-casefolded.h: New file.
15671
15672         New module 'unicase/u32-is-casefolded'.
15673         * lib/unicase/u32-is-casefolded.c: New file.
15674         * modules/unicase/u32-is-casefolded: New file.
15675
15676         New module 'unicase/u16-is-casefolded'.
15677         * lib/unicase/u16-is-casefolded.c: New file.
15678         * modules/unicase/u16-is-casefolded: New file.
15679
15680         New module 'unicase/u8-is-casefolded'.
15681         * lib/unicase/u8-is-casefolded.c: New file.
15682         * modules/unicase/u8-is-casefolded: New file.
15683
15684         Tests for module 'unicase/u32-is-titlecase'.
15685         * modules/unicase/u32-is-titlecase-tests: New file.
15686         * tests/unicase/test-u32-is-titlecase.c: New file.
15687
15688         Tests for module 'unicase/u16-is-titlecase'.
15689         * modules/unicase/u16-is-titlecase-tests: New file.
15690         * tests/unicase/test-u16-is-titlecase.c: New file.
15691
15692         Tests for module 'unicase/u8-is-titlecase'.
15693         * modules/unicase/u8-is-titlecase-tests: New file.
15694         * tests/unicase/test-u8-is-titlecase.c: New file.
15695         * tests/unicase/test-is-titlecase.h: New file.
15696
15697         New module 'unicase/u32-is-titlecase'.
15698         * lib/unicase/u32-is-titlecase.c: New file.
15699         * modules/unicase/u32-is-titlecase: New file.
15700
15701         New module 'unicase/u16-is-titlecase'.
15702         * lib/unicase/u16-is-titlecase.c: New file.
15703         * modules/unicase/u16-is-titlecase: New file.
15704
15705         New module 'unicase/u8-is-titlecase'.
15706         * lib/unicase/u8-is-titlecase.c: New file.
15707         * modules/unicase/u8-is-titlecase: New file.
15708
15709         Tests for module 'unicase/u32-is-lowercase'.
15710         * modules/unicase/u32-is-lowercase-tests: New file.
15711         * tests/unicase/test-u32-is-lowercase.c: New file.
15712
15713         Tests for module 'unicase/u16-is-lowercase'.
15714         * modules/unicase/u16-is-lowercase-tests: New file.
15715         * tests/unicase/test-u16-is-lowercase.c: New file.
15716
15717         Tests for module 'unicase/u8-is-lowercase'.
15718         * modules/unicase/u8-is-lowercase-tests: New file.
15719         * tests/unicase/test-u8-is-lowercase.c: New file.
15720         * tests/unicase/test-is-lowercase.h: New file.
15721
15722         New module 'unicase/u32-is-lowercase'.
15723         * lib/unicase/u32-is-lowercase.c: New file.
15724         * modules/unicase/u32-is-lowercase: New file.
15725
15726         New module 'unicase/u16-is-lowercase'.
15727         * lib/unicase/u16-is-lowercase.c: New file.
15728         * modules/unicase/u16-is-lowercase: New file.
15729
15730         New module 'unicase/u8-is-lowercase'.
15731         * lib/unicase/u8-is-lowercase.c: New file.
15732         * modules/unicase/u8-is-lowercase: New file.
15733
15734         Tests for module 'unicase/u32-is-uppercase'.
15735         * modules/unicase/u32-is-uppercase-tests: New file.
15736         * tests/unicase/test-u32-is-uppercase.c: New file.
15737
15738         Tests for module 'unicase/u16-is-uppercase'.
15739         * modules/unicase/u16-is-uppercase-tests: New file.
15740         * tests/unicase/test-u16-is-uppercase.c: New file.
15741
15742         Tests for module 'unicase/u8-is-uppercase'.
15743         * modules/unicase/u8-is-uppercase-tests: New file.
15744         * tests/unicase/test-u8-is-uppercase.c: New file.
15745         * tests/unicase/test-is-uppercase.h: New file.
15746
15747         New module 'unicase/u32-is-uppercase'.
15748         * lib/unicase/u32-is-uppercase.c: New file.
15749         * modules/unicase/u32-is-uppercase: New file.
15750
15751         New module 'unicase/u16-is-uppercase'.
15752         * lib/unicase/u16-is-uppercase.c: New file.
15753         * modules/unicase/u16-is-uppercase: New file.
15754
15755         New module 'unicase/u8-is-uppercase'.
15756         * lib/unicase/u8-is-uppercase.c: New file.
15757         * modules/unicase/u8-is-uppercase: New file.
15758
15759         New module 'unicase/u32-is-invariant'.
15760         * lib/unicase/u32-is-invariant.c: New file.
15761         * modules/unicase/u32-is-invariant: New file.
15762
15763         New module 'unicase/u16-is-invariant'.
15764         * lib/unicase/u16-is-invariant.c: New file.
15765         * modules/unicase/u16-is-invariant: New file.
15766
15767         New module 'unicase/u8-is-invariant'.
15768         * lib/unicase/u8-is-invariant.c: New file.
15769         * lib/unicase/invariant.h: New file.
15770         * lib/unicase/u-is-invariant.h: New file.
15771         * modules/unicase/u8-is-invariant: New file.
15772
15773         Tests for module 'unicase/u32-casecoll'.
15774         * modules/unicase/u32-casecoll-tests: New file.
15775         * tests/unicase/test-u32-casecoll.c: New file.
15776
15777         Tests for module 'unicase/u16-casecoll'.
15778         * modules/unicase/u16-casecoll-tests: New file.
15779         * tests/unicase/test-u16-casecoll.c: New file.
15780
15781         Tests for module 'unicase/u8-casecoll'.
15782         * modules/unicase/u8-casecoll-tests: New file.
15783         * tests/unicase/test-u8-casecoll.c: New file.
15784
15785         New module 'unicase/u32-casecoll'.
15786         * lib/unicase/u32-casecoll.c: New file.
15787         * modules/unicase/u32-casecoll: New file.
15788
15789         New module 'unicase/u16-casecoll'.
15790         * lib/unicase/u16-casecoll.c: New file.
15791         * modules/unicase/u16-casecoll: New file.
15792
15793         New module 'unicase/u8-casecoll'.
15794         * lib/unicase/u8-casecoll.c: New file.
15795         * lib/unicase/u-casecoll.h: New file.
15796         * modules/unicase/u8-casecoll: New file.
15797
15798         New module 'unicase/u32-casexfrm'.
15799         * lib/unicase/u32-casexfrm.c: New file.
15800         * modules/unicase/u32-casexfrm: New file.
15801
15802         New module 'unicase/u16-casexfrm'.
15803         * lib/unicase/u16-casexfrm.c: New file.
15804         * modules/unicase/u16-casexfrm: New file.
15805
15806         New module 'unicase/u8-casexfrm'.
15807         * lib/unicase/u8-casexfrm.c: New file.
15808         * lib/unicase/u-casexfrm.h: New file.
15809         * modules/unicase/u8-casexfrm: New file.
15810
15811         Tests for module 'unicase/u32-casecmp'.
15812         * modules/unicase/u32-casecmp-tests: New file.
15813         * tests/unicase/test-u32-casecmp.c: New file.
15814
15815         Tests for module 'unicase/u16-casecmp'.
15816         * modules/unicase/u16-casecmp-tests: New file.
15817         * tests/unicase/test-u16-casecmp.c: New file.
15818
15819         Tests for module 'unicase/u8-casecmp'.
15820         * modules/unicase/u8-casecmp-tests: New file.
15821         * tests/unicase/test-u8-casecmp.c: New file.
15822         * tests/unicase/test-casecmp.h: New file.
15823
15824         New module 'unicase/u32-casecmp'.
15825         * lib/unicase/u32-casecmp.c: New file.
15826         * modules/unicase/u32-casecmp: New file.
15827
15828         New module 'unicase/u16-casecmp'.
15829         * lib/unicase/u16-casecmp.c: New file.
15830         * modules/unicase/u16-casecmp: New file.
15831
15832         New module 'unicase/u8-casecmp'.
15833         * lib/unicase/u8-casecmp.c: New file.
15834         * lib/unicase/u-casecmp.h: New file.
15835         * modules/unicase/u8-casecmp: New file.
15836
15837         Tests for module 'unicase/u32-casefold'.
15838         * modules/unicase/u32-casefold-tests: New file.
15839         * tests/unicase/test-u32-casefold.c: New file.
15840
15841         Tests for module 'unicase/u16-casefold'.
15842         * modules/unicase/u16-casefold-tests: New file.
15843         * tests/unicase/test-u16-casefold.c: New file.
15844
15845         Tests for module 'unicase/u8-casefold'.
15846         * modules/unicase/u8-casefold-tests: New file.
15847         * tests/unicase/test-u8-casefold.c: New file.
15848
15849         New module 'unicase/u32-casefold'.
15850         * lib/unicase/u32-casefold.c: New file.
15851         * modules/unicase/u32-casefold: New file.
15852
15853         New module 'unicase/u16-casefold'.
15854         * lib/unicase/u16-casefold.c: New file.
15855         * modules/unicase/u16-casefold: New file.
15856
15857         New module 'unicase/u8-casefold'.
15858         * lib/unicase/u8-casefold.c: New file.
15859         * lib/unicase/u-casefold.h: New file.
15860         * modules/unicase/u8-casefold: New file.
15861
15862         New module 'unicase/tocasefold'.
15863         * lib/unicase/casefold.h: New file.
15864         * lib/unicase/tocasefold.c: New file.
15865         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15866         * modules/unicase/tocasefold: New file.
15867
15868         Tests for module 'unicase/u32-totitle'.
15869         * modules/unicase/u32-totitle-tests: New file.
15870         * tests/unicase/test-u32-totitle.c: New file.
15871
15872         Tests for module 'unicase/u16-totitle'.
15873         * modules/unicase/u16-totitle-tests: New file.
15874         * tests/unicase/test-u16-totitle.c: New file.
15875
15876         Tests for module 'unicase/u8-totitle'.
15877         * modules/unicase/u8-totitle-tests: New file.
15878         * tests/unicase/test-u8-totitle.c: New file.
15879
15880         New module 'unicase/u32-totitle'.
15881         * lib/unicase/u32-totitle.c: New file.
15882         * modules/unicase/u32-totitle: New file.
15883
15884         New module 'unicase/u16-totitle'.
15885         * lib/unicase/u16-totitle.c: New file.
15886         * modules/unicase/u16-totitle: New file.
15887
15888         New module 'unicase/u8-totitle'.
15889         * lib/unicase/u8-totitle.c: New file.
15890         * lib/unicase/u-totitle.h: New file.
15891         * modules/unicase/u8-totitle: New file.
15892
15893         Tests for module 'unicase/u32-tolower'.
15894         * modules/unicase/u32-tolower-tests: New file.
15895         * tests/unicase/test-u32-tolower.c: New file.
15896
15897         Tests for module 'unicase/u16-tolower'.
15898         * modules/unicase/u16-tolower-tests: New file.
15899         * tests/unicase/test-u16-tolower.c: New file.
15900
15901         Tests for module 'unicase/u8-tolower'.
15902         * modules/unicase/u8-tolower-tests: New file.
15903         * tests/unicase/test-u8-tolower.c: New file.
15904
15905         New module 'unicase/u32-tolower'.
15906         * lib/unicase/u32-tolower.c: New file.
15907         * modules/unicase/u32-tolower: New file.
15908
15909         New module 'unicase/u16-tolower'.
15910         * lib/unicase/u16-tolower.c: New file.
15911         * modules/unicase/u16-tolower: New file.
15912
15913         New module 'unicase/u8-tolower'.
15914         * lib/unicase/u8-tolower.c: New file.
15915         * modules/unicase/u8-tolower: New file.
15916
15917         Tests for module 'unicase/u32-toupper'.
15918         * modules/unicase/u32-toupper-tests: New file.
15919         * tests/unicase/test-u32-toupper.c: New file.
15920
15921         Tests for module 'unicase/u16-toupper'.
15922         * modules/unicase/u16-toupper-tests: New file.
15923         * tests/unicase/test-u16-toupper.c: New file.
15924
15925         Tests for module 'unicase/u8-toupper'.
15926         * modules/unicase/u8-toupper-tests: New file.
15927         * tests/unicase/test-u8-toupper.c: New file.
15928
15929         New module 'unicase/u32-toupper'.
15930         * lib/unicase/u32-toupper.c: New file.
15931         * modules/unicase/u32-toupper: New file.
15932
15933         New module 'unicase/u16-toupper'.
15934         * lib/unicase/u16-toupper.c: New file.
15935         * modules/unicase/u16-toupper: New file.
15936
15937         New module 'unicase/u8-toupper'.
15938         * lib/unicase/u8-toupper.c: New file.
15939         * modules/unicase/u8-toupper: New file.
15940
15941         New module 'unicase/u32-casemap'.
15942         * lib/unicase/u32-casemap.c: New file.
15943         * modules/unicase/u32-casemap: New file.
15944
15945         New module 'unicase/u16-casemap'.
15946         * lib/unicase/u16-casemap.c: New file.
15947         * modules/unicase/u16-casemap: New file.
15948
15949         New module 'unicase/u8-casemap'.
15950         * lib/unicase/unicasemap.h: New file.
15951         * lib/unicase/u8-casemap.c: New file.
15952         * lib/unicase/u-casemap.h: New file.
15953         * modules/unicase/u8-casemap: New file.
15954
15955         New module 'unicase/special-casing'.
15956         * lib/unicase/special-casing.h: New file.
15957         * lib/unicase/special-casing.c: New file.
15958         * lib/unicase/special-casing-table.gperf: New file, generated by
15959         gen-uni-tables.c.
15960         * modules/unicase/special-casing: New file.
15961
15962         Tests for module 'unicase/locale-language'.
15963         * modules/unicase/locale-language-tests: New file.
15964         * tests/unicase/test-locale-language.sh: New file.
15965         * tests/unicase/test-locale-language.c: New file.
15966
15967         New module 'unicase/locale-language'.
15968         * lib/unicase/locale-language.c: New file.
15969         * lib/unicase/locale-languages.gperf: New file.
15970         * modules/unicase/locale-language: New file.
15971
15972         Generate more tables for case conversion and case folding.
15973         * lib/gen-uni-tables.c (SCC_*): New enum items.
15974         (struct special_casing_rule): New type.
15975         (casing_rules, num_casing_rules, allocated_casing_rules): New
15976         variables.
15977         (add_casing_rule, fill_casing_rules): New functions.
15978         (struct casefold_rule): New type.
15979         (casefolding_rules, num_casefolding_rules,
15980         allocated_casefolding_rules): New variables.
15981         (fill_casefolding_rules): New function.
15982         (unicode_casefold): New variable.
15983         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15984         sort_casing_rules, output_casing_rules): New functions.
15985         (main): Accept to more arguments: SpecialCasing.txt and
15986         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15987         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15988         Output mapping for casefolding.
15989
15990         * lib/unicase.h: Include stdbool.h, uninorm.h.
15991         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15992         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15993         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15994         arguments.
15995         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15996         resultp arguments.
15997         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15998         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15999         resultp arguments.
16000         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
16001         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
16002         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
16003         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
16004         declarations.
16005         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
16006
16007 2009-03-08  Bruno Haible  <bruno@clisp.org>
16008
16009         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16010         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
16011         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
16012         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16013
16014 2009-03-07  Bruno Haible  <bruno@clisp.org>
16015
16016         Adjust u*_normcmp, u*_normcoll API.
16017         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16018         u16_normcoll, u32_normcoll): Change failure conventions.
16019         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
16020         errno and return -1.
16021         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16022
16023 2009-03-07  Bruno Haible  <bruno@clisp.org>
16024
16025         Tests for module 'uninorm/u32-normcoll'.
16026         * modules/uninorm/u32-normcoll-tests: New file.
16027         * tests/uninorm/test-u32-normcoll.c: New file.
16028
16029         Tests for module 'uninorm/u16-normcoll'.
16030         * modules/uninorm/u16-normcoll-tests: New file.
16031         * tests/uninorm/test-u16-normcoll.c: New file.
16032
16033         Tests for module 'uninorm/u8-normcoll'.
16034         * modules/uninorm/u8-normcoll-tests: New file.
16035         * tests/uninorm/test-u8-normcoll.c: New file.
16036
16037 2009-03-07  Bruno Haible  <bruno@clisp.org>
16038
16039         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
16040         tests/uninorm/test-u32-normcmp.c.
16041         * tests/uninorm/test-u32-normcmp.c: Include it.
16042         (test_nonascii): New function, extracted from main. Add some more
16043         tests.
16044         (main): Invoke test_ascii and test_nonascii.
16045         * modules/uninorm/u32-normcmp-tests (Files): Add
16046         tests/uninorm/test-u32-normcmp.h.
16047         (Depends-on): Remove uninorm/u32-normcmp.
16048
16049         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
16050         tests/uninorm/test-u16-normcmp.c.
16051         * tests/uninorm/test-u16-normcmp.c: Include it.
16052         (test_nonascii): New function, extracted from main. Add some more
16053         tests.
16054         (main): Invoke test_ascii and test_nonascii.
16055         * modules/uninorm/u16-normcmp-tests (Files): Add
16056         tests/uninorm/test-u16-normcmp.h.
16057         (Depends-on): Remove uninorm/u16-normcmp.
16058
16059         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
16060         tests/uninorm/test-u8-normcmp.c.
16061         * tests/uninorm/test-u8-normcmp.c: Include it.
16062         (test_nonascii): New function, extracted from main. Add some more
16063         tests.
16064         (main): Invoke test_ascii and test_nonascii.
16065         * modules/uninorm/u8-normcmp-tests (Files): Add
16066         tests/uninorm/test-u8-normcmp.h.
16067         (Depends-on): Remove uninorm/u8-normcmp.
16068
16069 2009-03-07  Bruno Haible  <bruno@clisp.org>
16070
16071         New module 'uninorm/u32-normcoll'.
16072         * lib/uninorm/u32-normcoll.c: New file.
16073         * modules/uninorm/u32-normcoll: New file.
16074
16075         New module 'uninorm/u16-normcoll'.
16076         * lib/uninorm/u16-normcoll.c: New file.
16077         * modules/uninorm/u16-normcoll: New file.
16078
16079         New module 'uninorm/u8-normcoll'.
16080         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
16081         declarations.
16082         * lib/uninorm/u8-normcoll.c: New file.
16083         * lib/uninorm/u-normcoll.h: New file.
16084         * modules/uninorm/u8-normcoll: New file.
16085
16086         New module 'uninorm/u32-normxfrm'.
16087         * lib/uninorm/u32-normxfrm.c: New file.
16088         * modules/uninorm/u32-normxfrm: New file.
16089
16090         New module 'uninorm/u16-normxfrm'.
16091         * lib/uninorm/u16-normxfrm.c: New file.
16092         * modules/uninorm/u16-normxfrm: New file.
16093
16094         New module 'uninorm/u8-normxfrm'.
16095         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
16096         declarations.
16097         * lib/uninorm/u8-normxfrm.c: New file.
16098         * lib/uninorm/u-normxfrm.h: New file.
16099         * modules/uninorm/u8-normxfrm: New file.
16100
16101 2009-03-07  Bruno Haible  <bruno@clisp.org>
16102
16103         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
16104         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
16105         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
16106
16107 2009-03-07  Bruno Haible  <bruno@clisp.org>
16108
16109         New module 'memxfrm'.
16110         * lib/memxfrm.h: New file.
16111         * lib/memxfrm.c: New file.
16112         * modules/memxfrm: New file.
16113
16114 2009-03-07  Bruno Haible  <bruno@clisp.org>
16115
16116         New module 'memcmp2'.
16117         * lib/memcmp2.h: New file.
16118         * lib/memcmp2.c: New file.
16119         * modules/memcmp2: New file.
16120
16121 2009-03-07  Bruno Haible  <bruno@clisp.org>
16122
16123         Tests for module 'uninorm/decomposing-form'.
16124         * modules/uninorm/decomposing-form-tests: New file.
16125         * tests/uninorm/test-decomposing-form.c: New file.
16126
16127         New module 'uninorm/decomposing-form'.
16128         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
16129         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
16130         Add 'decomposing_variant' field.
16131         * lib/uninorm/decomposing-form.c: New file.
16132         * lib/uninorm/nfc.c (uninorm_nfc): Update.
16133         * lib/uninorm/nfd.c (uninorm_nfd): Update.
16134         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
16135         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
16136         * modules/uninorm/decomposing-form: New file.
16137         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
16138         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
16139
16140 2009-03-07  Bruno Haible  <bruno@clisp.org>
16141
16142         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
16143         strings.
16144
16145 2009-03-06  Bruno Haible  <bruno@clisp.org>
16146
16147         Tests for module 'uninorm/u32-normcmp'.
16148         * tests/uninorm/test-u32-normcmp.c: New file.
16149         * modules/uninorm/u32-normcmp-tests: New file.
16150
16151         Tests for module 'uninorm/u16-normcmp'.
16152         * tests/uninorm/test-u16-normcmp.c: New file.
16153         * modules/uninorm/u16-normcmp-tests: New file.
16154
16155         Tests for module 'uninorm/u8-normcmp'.
16156         * tests/uninorm/test-u8-normcmp.c: New file.
16157         * modules/uninorm/u8-normcmp-tests: New file.
16158
16159         New module 'uninorm/u32-normcmp'.
16160         * lib/uninorm/u32-normcmp.c: New file.
16161         * modules/uninorm/u32-normcmp: New file.
16162
16163         New module 'uninorm/u16-normcmp'.
16164         * lib/uninorm/u16-normcmp.c: New file.
16165         * modules/uninorm/u16-normcmp: New file.
16166
16167         New module 'uninorm/u8-normcmp'.
16168         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
16169         declarations.
16170         * lib/uninorm/u8-normcmp.c: New file.
16171         * lib/uninorm/u-normcmp.h: New file.
16172         * modules/uninorm/u8-normcmp: New file.
16173
16174 2009-03-06  Bruno Haible  <bruno@clisp.org>
16175
16176         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
16177         Reported by Eric Blake.
16178
16179 2009-03-06  Eric Blake  <ebb9@byu.net>
16180             Bruno Haible  <bruno@clisp.org>
16181
16182         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
16183         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
16184         condition.
16185         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16186         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
16187         condition.
16188         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16189
16190 2009-03-06  Eric Blake  <ebb9@byu.net>
16191
16192         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
16193         to avoid compiler warnings.
16194         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
16195
16196 2009-03-05  Bruno Haible  <bruno@clisp.org>
16197
16198         * tests/test-ftell.c (main): Disable test beyond end of file on
16199         FreeMiNT.
16200         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16201
16202 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
16203
16204         * lib/filevercmp.c: Move hidden files up in ordering.
16205         * tests/test-filevercmp.c: Add tests for hidden files.
16206
16207 2009-03-04  Bruno Haible  <bruno@clisp.org>
16208
16209         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
16210         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
16211         AM_CFLAGS.
16212         Reported by Simon Josefsson.
16213
16214 2009-03-03  Bruno Haible  <bruno@clisp.org>
16215
16216         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
16217         Reported by Simon Josefsson.
16218
16219         * doc/ld-version-script.texi: Update node reference.
16220
16221 2009-03-03  Bruno Haible  <bruno@clisp.org>
16222
16223         * modules/visibility (License): Change to 'unlimited'.
16224         Suggested by Simon Josefsson.
16225
16226 2009-03-03  Jim Meyering  <meyering@redhat.com>
16227
16228         unlinkdir: cannot_unlink_dir may modify process state
16229         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16230         it's neither thread-safe nor appropriate for use in a library.
16231
16232 2009-03-03  Eric Blake  <ebb9@byu.net>
16233
16234         test-closein: silence test under Darwin
16235         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16236         care if it dies from EPIPE or EBADF.
16237
16238 2009-03-03  Bruno Haible  <bruno@clisp.org>
16239
16240         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16241         earlier.
16242         * doc/visibility.texi: Fix @node and @section.
16243
16244 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16245
16246         * doc/gnulib.texi: Link to sections for ld version script and
16247         visibility.
16248         * doc/visibility.texi: Add @node and @section.
16249         * modules/ld-version-script: New module.
16250         * m4/ld-version-script.m4: New file.
16251         * doc/ld-version-script.texi: New file.
16252
16253 2009-03-02  David Lutterkort  <lutter@redhat.com>
16254
16255         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16257
16258 2009-03-02  Bruno Haible  <bruno@clisp.org>
16259
16260         * doc/visibility.texi: Mention libtool's -export-symbols option.
16261
16262 2009-03-02  Jim Meyering  <meyering@redhat.com>
16263
16264         announce-gen: new option: --no-print-checksums
16265         * build-aux/announce-gen (usage): Describe it.
16266         (print_checksums): Print a newline here, not in the [*] footnote.
16267         (main): Honor it.
16268
16269 2009-03-01  Bruno Haible  <bruno@clisp.org>
16270
16271         Use socklen_t in the native Windows replacements prototypes.
16272         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16273         instead of 'int'.
16274         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16275         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16276         * modules/getsockopt (Depends-on): Add socklen.
16277         * modules/setsockopt (Depends-on): Add socklen.
16278
16279 2009-03-01  Bruno Haible  <bruno@clisp.org>
16280
16281         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16282         least 4.2.
16283
16284 2009-03-01  Eric Blake  <ebb9@byu.net>
16285             Bruno Haible  <bruno@clisp.org>
16286
16287         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16288         error messages.
16289         * lib/wait-process.c (wait_subprocess): Omit error message about
16290         deadly signal sent to the child of termsigp != NULL.
16291
16292 2009-03-01  Eric Blake  <ebb9@byu.net>
16293
16294         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16295
16296 2009-03-01  Bruno Haible  <bruno@clisp.org>
16297
16298         Avoid a gcc warning.
16299         * tests/test-sched.c (b): Make global.
16300         Reported by Eric Blake.
16301
16302 2009-01-19  Martin Lambers  <marlam@marlam.de>
16303
16304         Provide POSIX semantics for socket timeout options on W32.
16305         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16306         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16307         * modules/setsockopt: Depend on sys_time module for struct timeval.
16308         * modules/getsockopt: Depend on sys_time module for struct timeval.
16309
16310 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16311
16312         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16313         __USE_GNU, for consistency with netdb.in.h.
16314         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16315
16316 2009-03-01  Bruno Haible  <bruno@clisp.org>
16317
16318         More support for FreeMiNT.
16319         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16320         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16321
16322 2009-03-01  Bruno Haible  <bruno@clisp.org>
16323
16324         More support for FreeMiNT.
16325         * lib/fpurge.c (fpurge): Correct last commit.
16326         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16327
16328 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16329
16330         Fix unportable awk script in vc-list-files.
16331         * build-aux/vc-list-files: In the replacement awk script, use
16332         substr with a second argument of 1, not zero.
16333         Report by Simon Josefsson.
16334
16335 2009-02-28  Bruno Haible  <bruno@clisp.org>
16336
16337         More support for FreeMiNT.
16338         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16339         to FreeMiNT today.
16340         * lib/fwriting.c (fwriting): Likewise.
16341         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16342
16343 2009-02-28  Bruno Haible  <bruno@clisp.org>
16344
16345         * tests/test-freadseek.c (main): Disable test beyond end of file on
16346         FreeMiNT.
16347         * tests/test-ftello.c (main): Likewise.
16348         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16349
16350 2009-02-28  Bruno Haible  <bruno@clisp.org>
16351
16352         Add tentative support for FreeMiNT.
16353         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16354         * lib/fpurge.c (fpurge): Likewise.
16355         * lib/freadable.c (freadable): Likewise.
16356         * lib/freading.c (freading): Likewise.
16357         * lib/freadptr.c (freadptr): Likewise.
16358         * lib/freadseek.c (freadptrinc): Likewise.
16359         * lib/fseeko.c (rpl_fseeko): Likewise.
16360         * lib/fseterr.c (fseterr): Likewise.
16361         * lib/fwritable.c (fwritable): Likewise.
16362         * lib/fwriting.c (fwriting): Likewise.
16363         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16364         Hourihane.
16365         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16366
16367 2009-02-28  Bruno Haible  <bruno@clisp.org>
16368
16369         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16370         SIGCHLD.
16371         Reported by Jim Meyering.
16372
16373 2009-02-28  Bruno Haible  <bruno@clisp.org>
16374
16375         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16376         Mention the results of these tests on various platforms.
16377         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16378         order.
16379         * doc/posix-functions/printf.texi: Likewise.
16380         * doc/posix-functions/snprintf.texi: Likewise.
16381         * doc/posix-functions/sprintf.texi: Likewise.
16382         * doc/posix-functions/vfprintf.texi: Likewise.
16383         * doc/posix-functions/vprintf.texi: Likewise.
16384         * doc/posix-functions/vsnprintf.texi: Likewise.
16385         * doc/posix-functions/vsprintf.texi: Likewise.
16386         * doc/glibc-functions/obstack_printf.texi: Likewise.
16387         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16388
16389 2009-02-28  Bruno Haible  <bruno@clisp.org>
16390
16391         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16392         Reported by Loïc Minier <lool@dooz.org>.
16393
16394 2009-02-27  Bruno Haible  <bruno@clisp.org>
16395
16396         * gnulib-tool (func_import): Make the sed expression used to create the
16397         sed script for updating the .gitignore file POSIX compliant.
16398         Reported by Eric Blake.
16399
16400 2009-02-27  Bruno Haible  <bruno@clisp.org>
16401
16402         * gnulib-tool (sed): Don't alias as "sed --posix".
16403         Reported by Eric Blake.
16404
16405 2009-02-27  Bruno Haible  <bruno@clisp.org>
16406
16407         Avoid test link errors.
16408         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16409         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16410         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16411         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16412         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16413
16414 2009-02-27  Bruno Haible  <bruno@clisp.org>
16415
16416         Avoid spurious "(cached)" in configure output.
16417         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16418         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16419         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16420         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16421         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16422         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16423         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16424         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16425         Reported by Eric Blake.
16426
16427 2009-02-27  Eric Blake  <ebb9@byu.net>
16428
16429         printf: fix regression in previous patch
16430         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16431
16432 2009-02-27  Bruno Haible  <bruno@clisp.org>
16433
16434         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16435         value.
16436         * lib/stdint.in.h: Likewise.
16437         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16438
16439 2009-02-27  Eric Blake  <ebb9@byu.net>
16440
16441         doc: mention more functions added in cygwin 1.7.0
16442         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16443         addition.
16444         * doc/posix-functions/open_wmemstream.texi: Likewise.
16445         * doc/posix-functions/wcsnlen.texi: Likewise.
16446         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16447         * doc/posix-functions/wcstod.texi: Likewise.
16448         * doc/posix-functions/wcstof.texi: Likewise.
16449         * doc/posix-functions/wcstoimax.texi: Likewise.
16450         * doc/posix-functions/wcstok.texi: Likewise.
16451         * doc/posix-functions/wcstoumax.texi: Likewise.
16452
16453         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16454         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16455         * doc/posix-functions/fprintf.texi: Update.
16456         * doc/posix-functions/printf.texi: Update.
16457         * doc/posix-functions/snprintf.texi: Update.
16458         * doc/posix-functions/sprintf.texi: Update.
16459         * doc/posix-functions/vfprintf.texi: Update.
16460         * doc/posix-functions/vprintf.texi: Update.
16461         * doc/posix-functions/vsnprintf.texi: Update.
16462         * doc/posix-functions/vsprintf.texi: Update.
16463         * doc/glibc-functions/obstack_printf.texi: Update.
16464         * doc/glibc-functions/obstack_vprintf.texi: Update.
16465
16466 2009-02-26  Eric Blake  <ebb9@byu.net>
16467
16468         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16469         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16470         compilation bug by using runtime conversion.
16471         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16472         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16473         * modules/ceill-tests (Files): Use nan.h.
16474         * modules/floorl-tests (Files): Likewise.
16475         * modules/frexpl-tests (Files): Likewise.
16476         * modules/isnanl-tests (Files): Likewise.
16477         * modules/ldexpl-tests (Files): Likewise.
16478         * modules/roundl-tests (Files): Likewise.
16479         * modules/truncl-tests (Files): Likewise.
16480         * tests/test-ceill.c (main): Use a working NaN.
16481         * tests/test-floorl.c (main): Likewise.
16482         * tests/test-frexpl.c (main): Likewise.
16483         * tests/test-isnan.c (test_long_double): Likewise.
16484         * tests/test-isnanl.h (main): Likewise.
16485         * tests/test-ldexpl.h (main): Likewise.
16486         * tests/test-roundl.h (main): Likewise.
16487         * tests/test-truncl.h (main): Likewise.
16488         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16489
16490 2009-02-26  Eric Blake  <ebb9@byu.net>
16491             Bruno Haible  <bruno@clisp.org>
16492
16493         Work around a *printf bug with %ls on Solaris.
16494         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16495         precision is specified, sprintf stops converting the wide string
16496         argument when the number of bytes that have been produced by this
16497         conversion equals or exceeds the precision.
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
16509 2009-02-26  Eric Blake  <ebb9@byu.net>
16510
16511         stdlib: favor compiler check of random.h
16512         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16513         to avoid an ObjC random.h installed by Swarm.
16514
16515 2009-02-26  Bruno Haible  <bruno@clisp.org>
16516
16517         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16518         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16519         Reported by Gary V. Vaughan <gary@gnu.org>.
16520
16521 2009-02-26  Bruno Haible  <bruno@clisp.org>
16522
16523         Fix *printf behaviour regarding the %ls directive.
16524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16525         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16526         NEED_PRINTF_DIRECTIVE_LS.
16527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16528         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16529         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16530         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16531         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16532         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16533         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16534         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16535         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16536         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16537         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16538         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16539         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16541         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16542         * doc/posix-functions/fprintf.texi: Update.
16543         * doc/posix-functions/printf.texi: Update.
16544         * doc/posix-functions/snprintf.texi: Update.
16545         * doc/posix-functions/sprintf.texi: Update.
16546         * doc/posix-functions/vfprintf.texi: Update.
16547         * doc/posix-functions/vprintf.texi: Update.
16548         * doc/posix-functions/vsnprintf.texi: Update.
16549         * doc/posix-functions/vsprintf.texi: Update.
16550         * doc/glibc-functions/obstack_printf.texi: Update.
16551         * doc/glibc-functions/obstack_vprintf.texi: Update.
16552         Reported by Eric Blake.
16553
16554 2009-02-25  Bruno Haible  <bruno@clisp.org>
16555
16556         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16557         with known value.
16558         Reported by Gary V. Vaughan <gary@gnu.org>.
16559
16560 2009-02-25  Bruno Haible  <bruno@clisp.org>
16561
16562         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16563         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16564         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16565         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16566         Reported by Gary V. Vaughan <gary@gnu.org>.
16567
16568 2009-02-25  Bruno Haible  <bruno@clisp.org>
16569
16570         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16571         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16572         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16573         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16574         Reported by Gary V. Vaughan <gary@gnu.org>.
16575
16576 2009-02-25  Eric Blake  <ebb9@byu.net>
16577
16578         tests: skip fseek/ftell tests if ungetc is broken
16579         * m4/ungetc.m4: New file.
16580         * modules/fseek-tests: Split test, so ungetc dependency is
16581         separate from rest of test.
16582         * modules/fseeko-tests: Likewise.
16583         * modules/ftell-tests: Likewise.
16584         * modules/ftello-tests: Likewise.
16585         * tests/test-fseek.c (main): Isolate ungetc dependency.
16586         * tests/test-fseeko.c (main): Likewise.
16587         * tests/test-ftell.c (main): Likewise.
16588         * tests/test-ftello.c (main): Likewise.
16589         * tests/test-fseek2.sh: New file.
16590         * tests/test-fseeko2.sh: Likewise.
16591         * tests/test-ftell2.sh: Likewise.
16592         * tests/test-ftello2.sh: Likewise.
16593
16594 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
16595
16596         test-getaddrinfo: fix usage of skip return code 77
16597         * tests/test-gettaddrinfo.c: Return skip code 77 only
16598         for first occurance of skip (4x77 is not 77)
16599
16600 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16601
16602         strtod: avoid C99 decl-after-statement
16603         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16604
16605 2009-02-24  Eric Blake  <ebb9@byu.net>
16606
16607         strtod: detect HP-UX 11.31 bug
16608         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16609         Reported by Gary V. Vaughan.
16610
16611 2009-02-23  Bruno Haible  <bruno@clisp.org>
16612
16613         Fix invalid read past end of memory block.
16614         * lib/vasnprintf.c (DCHAR_SET): Define.
16615         (local_wcslen): Define only when needed.
16616         (local_strnlen, local_wcsnlen): New functions.
16617         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16618         directives that involve a conversion ourselves.
16619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16620         wcsnlen, mbrtowc, wcrtomb.
16621         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16622         * tests/test-vasprintf-posix.c (test_function): Likewise.
16623         * tests/test-snprintf-posix.h (test_function): Likewise.
16624         * tests/test-sprintf-posix.h (test_function): Likewise.
16625         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16626
16627 2009-02-22  Bruno Haible  <bruno@clisp.org>
16628
16629         Implement new clarified decomposition of Hangul syllables.
16630         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16631         of type LTV, return only a pairwise decomposition.
16632         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16633         Likewise.
16634         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16635         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16636         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16637
16638 2009-02-22  Bruno Haible  <bruno@clisp.org>
16639
16640         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16641         zero-length results and shrink excess allocated memory.
16642         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16643         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16644         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16645         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16646         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16647         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16648         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16649         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16650         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16651         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16652         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16653         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16654
16655 2009-02-21  Bruno Haible  <bruno@clisp.org>
16656
16657         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16658         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16659         spaces after a period. Put a space between a macro name and its
16660         argument list. Trivial rewordings.
16661         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16662         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16663         (main): Return 0 explicitly.
16664
16665 2009-02-21  Bruno Haible  <bruno@clisp.org>
16666
16667         Tests for module 'uninorm/filter'.
16668         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16669         * modules/uninorm/filter-tests: New file.
16670
16671         New module 'uninorm/filter'.
16672         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16673         uninorm_filter_flush, uninorm_filter_free): New declarations.
16674         * lib/uninorm/uninorm-filter.c: New file.
16675         * modules/uninorm/filter: New file.
16676
16677 2009-02-21  Bruno Haible  <bruno@clisp.org>
16678
16679         Tests for module 'uninorm/nfkc'.
16680         * tests/uninorm/test-nfkc.c: New file.
16681         * tests/uninorm/test-u8-nfkc.c: New file.
16682         * tests/uninorm/test-u16-nfkc.c: New file.
16683         * tests/uninorm/test-u32-nfkc.c: New file.
16684         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16685         * tests/uninorm/test-u32-nfkc-big.c: New file.
16686         * modules/uninorm/nfkc-tests: New file.
16687
16688         New module 'uninorm/nfkc'.
16689         * lib/uninorm/nfkc.c: New file.
16690         * modules/uninorm/nfkc: New file.
16691
16692         Tests for module 'uninorm/nfkd'.
16693         * tests/uninorm/test-nfkd.c: New file.
16694         * tests/uninorm/test-u8-nfkd.c: New file.
16695         * tests/uninorm/test-u16-nfkd.c: New file.
16696         * tests/uninorm/test-u32-nfkd.c: New file.
16697         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16698         * tests/uninorm/test-u32-nfkd-big.c: New file.
16699         * modules/uninorm/nfkd-tests: New file.
16700
16701         New module 'uninorm/nfkd'.
16702         * lib/uninorm/nfkd.c: New file.
16703         * modules/uninorm/nfkd: New file.
16704
16705         Tests for module 'uninorm/nfc'.
16706         * tests/uninorm/test-nfc.c: New file.
16707         * tests/uninorm/test-u8-nfc.c: New file.
16708         * tests/uninorm/test-u16-nfc.c: New file.
16709         * tests/uninorm/test-u32-nfc.c: New file.
16710         * tests/uninorm/test-u32-nfc-big.sh: New file.
16711         * tests/uninorm/test-u32-nfc-big.c: New file.
16712         * modules/uninorm/nfc-tests: New file.
16713
16714         New module 'uninorm/nfc'.
16715         * lib/uninorm/nfc.c: New file.
16716         * modules/uninorm/nfc: New file.
16717
16718         Tests for module 'uninorm/nfd'.
16719         * tests/uninorm/test-nfd.c: New file.
16720         * tests/uninorm/test-u8-nfd.c: New file.
16721         * tests/uninorm/test-u16-nfd.c: New file.
16722         * tests/uninorm/test-u32-nfd.c: New file.
16723         * tests/uninorm/test-u32-nfd-big.sh: New file.
16724         * tests/uninorm/test-u32-nfd-big.c: New file.
16725         * tests/uninorm/test-u32-normalize-big.h: New file.
16726         * tests/uninorm/test-u32-normalize-big.c: New file.
16727         * tests/uninorm/NormalizationTest.txt: New file, created from
16728         Unicode 5.1.0 NormalizationTest.txt.
16729         * modules/uninorm/nfd-tests: New file.
16730
16731         New module 'uninorm/nfd'.
16732         * lib/uninorm/nfd.c: New file.
16733         * modules/uninorm/nfd: New file.
16734
16735         New module 'uninorm/u32-normalize'.
16736         * lib/uninorm/u32-normalize.c: New file.
16737         * modules/uninorm/u32-normalize: New file.
16738
16739         New module 'uninorm/u16-normalize'.
16740         * lib/uninorm/u16-normalize.c: New file.
16741         * modules/uninorm/u16-normalize: New file.
16742
16743         New module 'uninorm/u8-normalize'.
16744         * lib/uninorm/u8-normalize.c: New file.
16745         * lib/uninorm/normalize-internal.h: New file.
16746         * lib/uninorm/u-normalize-internal.h: New file.
16747         * modules/uninorm/u8-normalize: New file.
16748
16749         New module 'uninorm/decompose-internal'.
16750         * lib/uninorm/decompose-internal.c: New file.
16751         * modules/uninorm/decompose-internal: New file.
16752
16753         Tests for module 'uninorm/composition'.
16754         * tests/uninorm/test-composition.c: New file.
16755         * modules/uninorm/composition-tests: New file.
16756
16757         New module 'uninorm/composition'.
16758         * lib/uninorm/composition.c: New file.
16759         * lib/uninorm/composition-table.gperf: New file, generated by
16760         gen-uni-tables.
16761         * modules/uninorm/composition: New file.
16762
16763         Tests for module 'uninorm/compat-decomposition'.
16764         * tests/uninorm/test-compat-decomposition.c: New file.
16765         * modules/uninorm/compat-decomposition-tests: New file.
16766
16767         New module 'uninorm/compat-decomposition'.
16768         * lib/uninorm/decompose-internal.h: New file.
16769         * lib/uninorm/compat-decomposition.c: New file.
16770         * modules/uninorm/compat-decomposition: New file.
16771
16772         Tests for module 'uninorm/canonical-decomposition'.
16773         * tests/uninorm/test-canonical-decomposition.c: New file.
16774         * modules/uninorm/canonical-decomposition-tests: New file.
16775
16776         New module 'uninorm/canonical-decomposition'.
16777         * lib/uninorm/canonical-decomposition.c: New file.
16778         * modules/uninorm/canonical-decomposition: New file.
16779
16780         Tests for module 'uninorm/decomposition'.
16781         * tests/uninorm/test-decomposition.c: New file.
16782         * modules/uninorm/decomposition-tests: New file.
16783
16784         New module 'uninorm/decomposition'.
16785         * lib/uninorm/decomposition.c: New file.
16786         * modules/uninorm/decomposition: New file.
16787
16788         New module 'uninorm/decomposition-table'.
16789         * lib/uninorm/decomposition-table.h: New file.
16790         * lib/uninorm/decomposition-table.c: New file.
16791         * lib/uninorm/decomposition-table1.h: New file, generated by
16792         gen-uni-tables.
16793         * lib/uninorm/decomposition-table2.h: New file, generated by
16794         gen-uni-tables.
16795         * modules/uninorm/decomposition-table: New file.
16796
16797         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16798         (UC_DECOMP_*): New enumeration items.
16799         (get_decomposition): New function.
16800         (struct decomp_table): New type.
16801         (output_decomposition, output_decomposition_tables): New functions.
16802         (unicode_composition_exclusions): New variable.
16803         (fill_composition_exclusions, debug_output_composition_tables): New
16804         functions.
16805         (main): Accept one more argument. Invoke fill_composition_exclusions.
16806         Output decomposition and composition tables.
16807
16808         New module 'uninorm/base'.
16809         * lib/uninorm.h: New file.
16810         * lib/unictype.h: Update comment.
16811         * modules/uninorm/base: New file.
16812
16813 2009-02-21  David Lutterkort  <lutter@redhat.com>
16814
16815         Tests for module 'safe-alloc'.
16816         * tests/test-safe-alloc.c: New file.
16817         * modules/safe-alloc-tests: New file.
16818
16819         New module 'safe-alloc'.
16820         * lib/safe-alloc.h: New file.
16821         * lib/safe-alloc.c: New file.
16822         * m4/safe-alloc.m4: New file.
16823         * modules/safe-alloc: New file.
16824         * doc/safe-alloc.texi: New file.
16825         * doc/gnulib.texi: Include it.
16826         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16827         safe-alloc.
16828
16829 2009-02-18  Bruno Haible  <bruno@clisp.org>
16830
16831         Fix link error on non-glibc systems.
16832         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16833         variable.
16834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16835
16836 2009-02-18  Jim Meyering  <meyering@redhat.com>
16837
16838         fts: avoid used-uninitialized error due to recent change
16839         * lib/fts.c (fts_read): Guard uses of the new member,
16840         parent->fts_n_dirs_remaining, since it's not relevant for
16841         the parent of a directory specified on the command-line.
16842
16843 2009-02-17  James Youngman  <jay@gnu.org>
16844             Bruno Haible  <bruno@clisp.org>
16845
16846         * m4/include_next.m4: Reformulate comment.
16847
16848 2009-02-16  Jim Meyering  <meyering@redhat.com>
16849
16850         fts: add #if guards so that the fts_lgpl module still builds
16851         * lib/fts.c: Guard just-added hash-table-using parts with
16852         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16853         Reported by Simon Josefsson.
16854
16855 2009-02-15  Bruno Haible  <bruno@clisp.org>
16856
16857         * modules/array-mergesort-tests: New file.
16858         * tests/test-array-mergesort.c: New file.
16859
16860         New module 'array-mergesort'.
16861         * modules/array-mergesort: New file.
16862         * lib/array-mergesort.h: New file.
16863
16864 2009-02-15  Bruno Haible  <bruno@clisp.org>
16865
16866         Fix 2009-02-07 commit.
16867         * lib/gen-uni-tables.c (output_predicate, output_category,
16868         output_combclass, output_bidi_category, output_decimal_digit,
16869         output_digit, output_numeric, output_mirror, output_scripts,
16870         output_ident_category, output_simple_mapping): Fix format directives.
16871         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16872
16873 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16874
16875         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16876         fixes are available from IBM.
16877
16878 2009-02-13  Jim Meyering  <meyering@redhat.com>
16879
16880         fts: arrange not to stat non-directories in more cases
16881         This makes GNU find (when it doesn't need to stat each file)
16882         *much* more efficient at traversing reiserfs file systems.
16883         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16884         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16885         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16886         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16887         (leaf_optimization_applies): New function.
16888         (LCO_hash, LCO_compare): New helper functions.
16889         (link_count_optimize_ok): New function.
16890         (fts_stat): Initialize new member (if dir).
16891         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16892         we've just stat'ed a directory.  Skip the stat call when possible.
16893         ---
16894         Note this AFS-related exchange:
16895         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16896         and note find's pioctl call in find/fstype.c.
16897         But that is necessary only if you want to enable the
16898         optimization for AFS, and for now, I don't.
16899
16900         fts: move a function definition "up" (no semantic change)
16901         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16902         "up" to precede upcoming use of a related function.
16903
16904 2009-02-11  Jim Meyering  <meyering@redhat.com>
16905
16906         fts: correct internal computation of nlinks (optimization-related)
16907         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16908         whether the current entry is a directory, so don't test it.
16909
16910 2009-02-10  Bruno Haible  <bruno@clisp.org>
16911
16912         Tests for module 'uniwbrk/ulc-wordbreaks'.
16913         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16914         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16915         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16916
16917         Tests for module 'uniwbrk/u32-wordbreaks'.
16918         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16919         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16920
16921         Tests for module 'uniwbrk/u16-wordbreaks'.
16922         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16923         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16924
16925         Tests for module 'uniwbrk/u8-wordbreaks'.
16926         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16927         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16928
16929 2009-02-10  Bruno Haible  <bruno@clisp.org>
16930
16931         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16932         property.
16933         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16934         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16935         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16936
16937 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16938
16939         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16940         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16941
16942 2009-02-10  Bruno Haible  <bruno@clisp.org>
16943
16944         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16945         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16946         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16947         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16948         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16949         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16950
16951 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16952
16953         * lib/sockets.h (gl_fd_to_handle): New function.
16954
16955         * tests/test-sockets.c: Call gl_fd_to_handle.
16956
16957 2009-02-09  Bruno Haible  <bruno@clisp.org>
16958
16959         * doc/havelib.texi: Document the conventions on bi-arch systems.
16960
16961 2009-02-08  Bruno Haible  <bruno@clisp.org>
16962
16963         Document the AC_LIB_LINKFLAGS macro.
16964         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16965         * doc/gnulib.texi: Include it.
16966
16967 2009-02-08  Bruno Haible  <bruno@clisp.org>
16968
16969         Fix wrong order of sections, compared to TOC.
16970         * doc/gnulib.texi: Include relocatable-maint.texi after the
16971         "Regular expressions" node, not before.
16972
16973 2009-02-08  Bruno Haible  <bruno@clisp.org>
16974
16975         Tests for module 'unicase/totitle'.
16976         * modules/unicase/totitle-tests: New file.
16977
16978         Tests for module 'unicase/tolower'.
16979         * modules/unicase/tolower-tests: New file.
16980
16981         Tests for module 'unicase/toupper'.
16982         * modules/unicase/toupper-tests: New file.
16983         * tests/unicase/test-mapping-part1.h: New file.
16984         * tests/unicase/test-mapping-part2.h: New file.
16985
16986         New module 'unicase/totitle'.
16987         * modules/unicase/totitle: New file.
16988         * lib/unicase/totitle.c: New file.
16989
16990         New module 'unicase/tolower'.
16991         * modules/unicase/tolower: New file.
16992         * lib/unicase/tolower.c: New file.
16993
16994         New module 'unicase/toupper'.
16995         * modules/unicase/toupper: New file.
16996         * lib/unicase/toupper.c: New file.
16997         * lib/unicase/simple-mapping.h: New file.
16998
16999         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
17000         (mapping_table): New structure.
17001         (output_simple_mapping): New function.
17002         (main): Invoke output_simple_mapping_test and output_simple_mapping.
17003         * modules/gen-uni-tables (Description): Update.
17004         * lib/unicase/toupper.h: New file, automatically generated by
17005         gen-uni-tables.
17006         * lib/unicase/tolower.h: New file, automatically generated by
17007         gen-uni-tables.
17008         * lib/unicase/totitle.h: New file, automatically generated by
17009         gen-uni-tables.
17010         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
17011         gen-uni-tables.
17012         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
17013         gen-uni-tables.
17014         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
17015         gen-uni-tables.
17016
17017         New module 'unicase/base'.
17018         * modules/unicase/base: New file.
17019         * lib/unicase.h: New file.
17020
17021 2009-02-08  Bruno Haible  <bruno@clisp.org>
17022
17023         New module 'uniwbrk/ulc-wordbreaks'.
17024         * modules/uniwbrk/ulc-wordbreaks: New file.
17025         * lib/uniwbrk/ulc-wordbreaks.c: New file.
17026
17027         New module 'uniwbrk/u32-wordbreaks'.
17028         * modules/uniwbrk/u32-wordbreaks: New file.
17029         * lib/uniwbrk/u32-wordbreaks.c: New file.
17030
17031         New module 'uniwbrk/u16-wordbreaks'.
17032         * modules/uniwbrk/u16-wordbreaks: New file.
17033         * lib/uniwbrk/u16-wordbreaks.c: New file.
17034
17035         New module 'uniwbrk/u8-wordbreaks'.
17036         * modules/uniwbrk/u8-wordbreaks: New file.
17037         * lib/uniwbrk/u8-wordbreaks.c: New file.
17038         * lib/uniwbrk/u-wordbreaks.h: New file.
17039
17040         New module 'uniwbrk/table'.
17041         * modules/uniwbrk/table: New file.
17042         * lib/uniwbrk/wbrktable.h: New file.
17043         * lib/uniwbrk/wbrktable.c: New file.
17044
17045         New module 'uniwbrk/wordbreak-property'.
17046         * modules/uniwbrk/wordbreak-property: New file.
17047         * lib/uniwbrk/wordbreak-property.c: New file.
17048
17049         * lib/gen-uni-tables.c (WBP_*): New enum items.
17050         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
17051         (unicode_org_wbp): New variable.
17052         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
17053         New functions.
17054         (wbp_table): New structure.
17055         (output_wbp, output_wbrk_tables): New functions.
17056         (main): Accept additional argument. Invoke fill_org_wbp,
17057         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
17058         output_wbrk_tables.
17059         * modules/gen-uni-tables (Description): Update.
17060         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
17061         gen-uni-tables.
17062
17063         New module 'uniwbrk/base'.
17064         * modules/uniwbrk/base: New file.
17065         * lib/uniwbrk.h: New file.
17066
17067 2009-02-08  Bruno Haible  <bruno@clisp.org>
17068
17069         Update to Unicode 5.1.0.
17070         * lib/gen-uni-tables.c (is_property_alphabetic): Include
17071         U+2185..U+2188.
17072         (is_property_default_ignorable_code_point): Don't include characters
17073         of category Cc or Cs and not-a-characters.
17074         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
17075         U+0D79, U+109E, U+109F, U+A60C.
17076         * lib/unictype/bidi_of.h: Regenerated.
17077         * lib/unictype/blocks.h: Regenerated.
17078         * lib/unictype/categ_C.h: Regenerated.
17079         * lib/unictype/categ_Cf.h: Regenerated.
17080         * lib/unictype/categ_Cn.h: Regenerated.
17081         * lib/unictype/categ_L.h: Regenerated.
17082         * lib/unictype/categ_Ll.h: Regenerated.
17083         * lib/unictype/categ_Lm.h: Regenerated.
17084         * lib/unictype/categ_Lo.h: Regenerated.
17085         * lib/unictype/categ_Lu.h: Regenerated.
17086         * lib/unictype/categ_M.h: Regenerated.
17087         * lib/unictype/categ_Mc.h: Regenerated.
17088         * lib/unictype/categ_Me.h: Regenerated.
17089         * lib/unictype/categ_Mn.h: Regenerated.
17090         * lib/unictype/categ_N.h: Regenerated.
17091         * lib/unictype/categ_Nd.h: Regenerated.
17092         * lib/unictype/categ_Nl.h: Regenerated.
17093         * lib/unictype/categ_No.h: Regenerated.
17094         * lib/unictype/categ_P.h: Regenerated.
17095         * lib/unictype/categ_Pd.h: Regenerated.
17096         * lib/unictype/categ_Pe.h: Regenerated.
17097         * lib/unictype/categ_Pf.h: Regenerated.
17098         * lib/unictype/categ_Pi.h: Regenerated.
17099         * lib/unictype/categ_Po.h: Regenerated.
17100         * lib/unictype/categ_Ps.h: Regenerated.
17101         * lib/unictype/categ_S.h: Regenerated.
17102         * lib/unictype/categ_Sk.h: Regenerated.
17103         * lib/unictype/categ_Sm.h: Regenerated.
17104         * lib/unictype/categ_So.h: Regenerated.
17105         * lib/unictype/categ_of.h: Regenerated.
17106         * lib/unictype/combining.h: Regenerated.
17107         * lib/unictype/ctype_alnum.h: Regenerated.
17108         * lib/unictype/ctype_alpha.h: Regenerated.
17109         * lib/unictype/ctype_graph.h: Regenerated.
17110         * lib/unictype/ctype_lower.h: Regenerated.
17111         * lib/unictype/ctype_print.h: Regenerated.
17112         * lib/unictype/ctype_punct.h: Regenerated.
17113         * lib/unictype/ctype_upper.h: Regenerated.
17114         * lib/unictype/decdigit.h: Regenerated.
17115         * lib/unictype/digit.h: Regenerated.
17116         * lib/unictype/mirror.h: Regenerated.
17117         * lib/unictype/numeric.h: Regenerated.
17118         * lib/unictype/pr_alphabetic.h: Regenerated.
17119         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
17120         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
17121         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
17122         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
17123         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
17124         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
17125         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
17126         * lib/unictype/pr_combining.h: Regenerated.
17127         * lib/unictype/pr_dash.h: Regenerated.
17128         * lib/unictype/pr_decimal_digit.h: Regenerated.
17129         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
17130         * lib/unictype/pr_deprecated.h: Regenerated.
17131         * lib/unictype/pr_diacritic.h: Regenerated.
17132         * lib/unictype/pr_extender.h: Regenerated.
17133         * lib/unictype/pr_format_control.h: Regenerated.
17134         * lib/unictype/pr_grapheme_base.h: Regenerated.
17135         * lib/unictype/pr_grapheme_extend.h: Regenerated.
17136         * lib/unictype/pr_grapheme_link.h: Regenerated.
17137         * lib/unictype/pr_id_continue.h: Regenerated.
17138         * lib/unictype/pr_id_start.h: Regenerated.
17139         * lib/unictype/pr_ideographic.h: Regenerated.
17140         * lib/unictype/pr_ignorable_control.h: Regenerated.
17141         * lib/unictype/pr_lowercase.h: Regenerated.
17142         * lib/unictype/pr_math.h: Regenerated.
17143         * lib/unictype/pr_numeric.h: Regenerated.
17144         * lib/unictype/pr_other_alphabetic.h: Regenerated.
17145         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
17146         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
17147         * lib/unictype/pr_other_id_continue.h: Regenerated.
17148         * lib/unictype/pr_other_lowercase.h: Regenerated.
17149         * lib/unictype/pr_other_math.h: Regenerated.
17150         * lib/unictype/pr_punctuation.h: Regenerated.
17151         * lib/unictype/pr_sentence_terminal.h: Regenerated.
17152         * lib/unictype/pr_soft_dotted.h: Regenerated.
17153         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
17154         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
17155         * lib/unictype/pr_unified_ideograph.h: Regenerated.
17156         * lib/unictype/pr_uppercase.h: Regenerated.
17157         * lib/unictype/pr_xid_continue.h: Regenerated.
17158         * lib/unictype/pr_xid_start.h: Regenerated.
17159         * lib/unictype/pr_zero_width.h: Regenerated.
17160         * lib/unictype/scripts.h: Regenerated.
17161         * lib/unictype/scripts_byname.gperf: Regenerated.
17162         * lib/unictype/sy_java_ident.h: Regenerated.
17163         * lib/unilbrk/lbrkprop1.h: Regenerated.
17164         * lib/unilbrk/lbrkprop2.h: Regenerated.
17165         * tests/unictype/test-categ_C.c: Regenerated.
17166         * tests/unictype/test-categ_Cf.c: Regenerated.
17167         * tests/unictype/test-categ_Cn.c: Regenerated.
17168         * tests/unictype/test-categ_L.c: Regenerated.
17169         * tests/unictype/test-categ_Ll.c: Regenerated.
17170         * tests/unictype/test-categ_Lm.c: Regenerated.
17171         * tests/unictype/test-categ_Lo.c: Regenerated.
17172         * tests/unictype/test-categ_Lu.c: Regenerated.
17173         * tests/unictype/test-categ_M.c: Regenerated.
17174         * tests/unictype/test-categ_Mc.c: Regenerated.
17175         * tests/unictype/test-categ_Me.c: Regenerated.
17176         * tests/unictype/test-categ_Mn.c: Regenerated.
17177         * tests/unictype/test-categ_N.c: Regenerated.
17178         * tests/unictype/test-categ_Nd.c: Regenerated.
17179         * tests/unictype/test-categ_Nl.c: Regenerated.
17180         * tests/unictype/test-categ_No.c: Regenerated.
17181         * tests/unictype/test-categ_P.c: Regenerated.
17182         * tests/unictype/test-categ_Pd.c: Regenerated.
17183         * tests/unictype/test-categ_Pe.c: Regenerated.
17184         * tests/unictype/test-categ_Pf.c: Regenerated.
17185         * tests/unictype/test-categ_Pi.c: Regenerated.
17186         * tests/unictype/test-categ_Po.c: Regenerated.
17187         * tests/unictype/test-categ_Ps.c: Regenerated.
17188         * tests/unictype/test-categ_S.c: Regenerated.
17189         * tests/unictype/test-categ_Sk.c: Regenerated.
17190         * tests/unictype/test-categ_Sm.c: Regenerated.
17191         * tests/unictype/test-categ_So.c: Regenerated.
17192         * tests/unictype/test-ctype_alnum.c: Regenerated.
17193         * tests/unictype/test-ctype_alpha.c: Regenerated.
17194         * tests/unictype/test-ctype_graph.c: Regenerated.
17195         * tests/unictype/test-ctype_lower.c: Regenerated.
17196         * tests/unictype/test-ctype_print.c: Regenerated.
17197         * tests/unictype/test-ctype_punct.c: Regenerated.
17198         * tests/unictype/test-ctype_upper.c: Regenerated.
17199         * tests/unictype/test-decdigit.h: Regenerated.
17200         * tests/unictype/test-digit.h: Regenerated.
17201         * tests/unictype/test-numeric.h: Regenerated.
17202         * tests/unictype/test-pr_alphabetic.c: Regenerated.
17203         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
17204         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
17205         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
17206         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
17207         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
17208         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
17209         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
17210         * tests/unictype/test-pr_combining.c: Regenerated.
17211         * tests/unictype/test-pr_dash.c: Regenerated.
17212         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
17213         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
17214         * tests/unictype/test-pr_deprecated.c: Regenerated.
17215         * tests/unictype/test-pr_diacritic.c: Regenerated.
17216         * tests/unictype/test-pr_extender.c: Regenerated.
17217         * tests/unictype/test-pr_format_control.c: Regenerated.
17218         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
17219         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
17220         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17221         * tests/unictype/test-pr_id_continue.c: Regenerated.
17222         * tests/unictype/test-pr_id_start.c: Regenerated.
17223         * tests/unictype/test-pr_ideographic.c: Regenerated.
17224         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17225         * tests/unictype/test-pr_lowercase.c: Regenerated.
17226         * tests/unictype/test-pr_math.c: Regenerated.
17227         * tests/unictype/test-pr_numeric.c: Regenerated.
17228         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17229         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17230         Regenerated.
17231         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17232         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17233         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17234         * tests/unictype/test-pr_other_math.c: Regenerated.
17235         * tests/unictype/test-pr_punctuation.c: Regenerated.
17236         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17237         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17238         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17239         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17240         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17241         * tests/unictype/test-pr_uppercase.c: Regenerated.
17242         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17243         * tests/unictype/test-pr_xid_start.c: Regenerated.
17244         * tests/unictype/test-pr_zero_width.c: Regenerated.
17245
17246         Update to Unicode 5.1.0.
17247         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17248         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17249         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17250         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17251         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17252         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17253         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17254         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17255         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17256         (nonspacing_table_ind): Update.
17257         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17258
17259         Update to Unicode 5.1.0.
17260         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17261         code transform.
17262         * lib/uniname/uniname.c (unicode_character_name,
17263         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17264         * lib/uniname/uninames.h: Regenerated.
17265         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17266
17267 2009-02-07  Bruno Haible  <bruno@clisp.org>
17268
17269         Merge gen-ctype and gen-lbrk into a single program.
17270         * lib/gen-uni-tables.c: New file, incorporating
17271         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17272         Add directory prefixes to the names of the generated files.
17273         * lib/unictype/gen-ctype.c: Remove file.
17274         * lib/unilbrk/gen-lbrk.c: Remove file.
17275         * modules/gen-uni-tables: New file.
17276         * modules/unictype/gen-ctype: Remove file.
17277         * modules/unilbrk/gen-lbrk: Remove file.
17278
17279 2009-02-07  Bruno Haible  <bruno@clisp.org>
17280
17281         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17282
17283         New module 'unistr/u32-strcoll'.
17284         * modules/unistr/u32-strcoll: New file.
17285         * lib/unistr/u32-strcoll.c: New file.
17286
17287         New module 'unistr/u16-strcoll'.
17288         * modules/unistr/u16-strcoll: New file.
17289         * lib/unistr/u16-strcoll.c: New file.
17290
17291         New module 'unistr/u8-strcoll'.
17292         * modules/unistr/u8-strcoll: New file.
17293         * lib/unistr/u8-strcoll.c: New file.
17294         * lib/unistr/u-strcoll.h: New file.
17295
17296 2009-02-07  Bruno Haible  <bruno@clisp.org>
17297
17298         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17299         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17300         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17301         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17302         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17303         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17304
17305 2009-02-07  Bruno Haible  <bruno@clisp.org>
17306
17307         Make 64-bit clean.
17308         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17309         output_combclass, output_bidi_category, output_decimal_digit,
17310         output_digit, output_numeric, output_mirror, output_scripts,
17311         output_ident_category): Use proper width specifier in format strings.
17312
17313 2009-02-07  Bruno Haible  <bruno@clisp.org>
17314
17315         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17316         failure behaviour.
17317
17318 2009-02-07  Jim Meyering  <meyering@redhat.com>
17319
17320         regex: avoid compilation failure with upcoming gcc-4.4
17321         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17322         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17323         "... error: integer overflow in preprocessor expression".
17324
17325 2009-02-05  Ben Pfaff  <blp@gnu.org>
17326
17327         Fix link errors on Windows when close module is used.
17328         * modules/close: Add $(LIB_CLOSE) to Link section.
17329         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17330         $(LIB_CLOSE) on Windows.
17331
17332 2009-02-05  Jim Meyering  <meyering@redhat.com>
17333
17334         still avoid unused-parameter warnings, but do it cleanly
17335         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17336         (get_fs_usage): Cast to void instead.
17337         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17338         (dev_from_mount_options, read_file_system_list): Cast to void.
17339         Prompted by Bruno Haible.
17340
17341 2009-02-04  Jim Meyering  <meyering@redhat.com>
17342
17343         fsusage.c: correct copyright year
17344         * lib/fsusage.c: Reflect year in which the change is pushed into
17345
17346         avoid misc. warnings
17347         * lib/fsusage.c (UNUSED_PARAM): Define.
17348         (get_fs_usage): Mark parameter "disk" as unused.
17349         * lib/getugroups.c (getgrent): Use "void" in prototype.
17350         * lib/mountlist.c: Mark unused parameters.
17351         (read_file_system_list): Declare a local with "const".
17352         * lib/nanosleep.c (getnow): Declare static.
17353         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17354
17355         dirfd: set errno upon failure
17356         * lib/dirfd.c: Include <errno.h>.
17357         Set errno to ENOTSUP when returning -1.
17358         * modules/dirfd (Depends-on): Add errno.
17359         Suggested by John Kodis <kodis@comcast.net>.
17360
17361 2009-02-01  Bruno Haible  <bruno@clisp.org>
17362
17363         Don't assume sizeof (long) >= sizeof (void *).
17364         * lib/memcmp.c: Include stdint.h.
17365         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17366         srcp2 to 'const byte *'.
17367         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17368         types to uintptr_t.
17369         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17370         * modules/memcmp (Depends-on): Add stdint.
17371         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17372
17373 2009-01-30  Eric Blake  <ebb9@byu.net>
17374
17375         fix more require-before-expand issues
17376         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17377         expand, AC_PROG_AWK.
17378         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17379
17380 2009-01-28  Eric Blake  <ebb9@byu.net>
17381
17382         version-etc: use consistent URL formatting
17383         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17384         Improve formatting.  Use fputs for string without %.
17385
17386 2009-01-28  Jim Meyering  <meyering@redhat.com>
17387
17388         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17389         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17390         "underquoted definition of NAME" from autoconf-2.59.
17391
17392 2009-01-28  Bruno Haible  <bruno@clisp.org>
17393
17394         * doc/gnulib.texi: Add "Obsolete modules" to index.
17395
17396 2009-01-28  Jim Meyering  <meyering@redhat.com>
17397
17398         useless-if-before-free: recognize more variants
17399         * build-aux/useless-if-before-free: Also recognize e.g.,
17400         if (NULL != p) free (p);
17401
17402 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17403
17404         test-getaddrinfo: skip (don't fail) this test when there's no network
17405         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17406         on the presumption that it means you lack network access.
17407
17408 2009-01-26  Jim Meyering  <meyering@redhat.com>
17409
17410         fflush: avoid warnings on modern systems
17411         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17412         pos and result, into scopes where they're used.
17413
17414 2009-01-26  Eric Blake  <ebb9@byu.net>
17415
17416         Silence warning reintroduced by recent extensions patch.
17417         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17418         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17419         autoconf.
17420
17421         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17422         * m4/00gnulib.m4: New file.
17423         * gnulib-tool (func_get_filelist): Always use it.
17424         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17425         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17426
17427 2009-01-25  Bruno Haible  <bruno@clisp.org>
17428
17429         Make test-quotearg work on MacOS X and AIX.
17430         * tests/test-quotearg.sh: New file.
17431         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17432         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17433         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17434         include <libintl.h>.
17435         (fake_locale): Remove variable.
17436         (gettext, dgettext, dcgettext): Remove functions.
17437         (main): Instead of setting a fake locale, set a real locale. Call
17438         textdomain and bindtextdomain.
17439         * modules/quotearg-tests (Files): Add the new files.
17440         (Depends-on): Add gettext, setenv, unsetenv.
17441         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17442         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17443         Augment TESTS_ENVIRONMENT.
17444
17445 2009-01-25  Bruno Haible  <bruno@clisp.org>
17446
17447         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17448         fr_FR.ISO8859-1 locale on MacOS X.
17449         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17450         ja_JP.eucJP locale on MacOS X.
17451         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17452         zh_CN.GB18030 locale on MacOS X.
17453
17454 2009-01-25  Bruno Haible  <bruno@clisp.org>
17455
17456         Avoid link errors on MacOS X 10.3.
17457         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17458         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17459
17460 2009-01-25  Bruno Haible  <bruno@clisp.org>
17461
17462         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17463         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17464         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17465         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17466         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17467         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17468         posix_spawnattr_init, posix_spawnattr_setsigmask,
17469         posix_spawnattr_setflags, posix_spawnattr_destroy.
17470
17471         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17472         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17473         * modules/execute (Files): Remove m4/posix_spawn.m4.
17474         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17475         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17476         posix_spawnattr_init, posix_spawnattr_setsigmask,
17477         posix_spawnattr_setflags, posix_spawnattr_destroy.
17478
17479 2009-01-25  Bruno Haible  <bruno@clisp.org>
17480
17481         * lib/glthread/threadlib.c: Include <stdlib.h>.
17482
17483 2009-01-25  Bruno Haible  <bruno@clisp.org>
17484
17485         * lib/glthread/threadlib.c (dummy): New declaration.
17486
17487 2009-01-25  Bruno Haible  <bruno@clisp.org>
17488
17489         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17490         multibyte characters also for the GB18030 encoding. Don't crash when
17491         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17492
17493 2009-01-25  Bruno Haible  <bruno@clisp.org>
17494
17495         Avoid redefining 'struct random_data' on OSF/1 5.1.
17496         * lib/stdlib.in.h: Include <random.h> if it exists.
17497         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17498         HAVE_RANDOM_H. Include <random.h> when testing whether
17499         'struct random_data' exists.
17500         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17501
17502 2009-01-25  Bruno Haible  <bruno@clisp.org>
17503
17504         Don't install charset.alias on MacOS X >= 10.3.
17505         * lib/localcharset.c (DARWIN7): New macro.
17506         (get_charset_aliases): Hardcode the result for Darwin7.
17507         * modules/localcharset (install-exec-local): Don't install
17508         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17509
17510 2009-01-25  Bruno Haible  <bruno@clisp.org>
17511
17512         Don't install charset.alias on mingw and Cygwin.
17513         * modules/localcharset (install-exec-local): Don't install
17514         charset.alias on mingw and Cygwin, if the file does not yet exist.
17515         The result for these platforms is hardcoded in localcharset.c.
17516
17517 2009-01-25  Bruno Haible  <bruno@clisp.org>
17518
17519         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17520         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17521         before requiring AC_USE_SYSTEM_EXTENSIONS.
17522
17523 2009-01-25  Jim Meyering  <meyering@redhat.com>
17524
17525         c-strtod: avoid warnings
17526         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17527         "assignment discards qualifiers from pointer target type" warnings.
17528
17529 2009-01-24  Bruno Haible  <bruno@clisp.org>
17530
17531         Add support for non-UTF-8 locales on MacOS X.
17532         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17533         canonical encodings. For Darwin 7 and newer, don't map traditional
17534         encodings to UTF-8.
17535         Reported by Vincent Lefevre <vincent@vinc17.org>
17536         at <http://savannah.gnu.org/bugs/?25235>.
17537
17538 2009-01-24  Bruno Haible  <bruno@clisp.org>
17539
17540         * doc/gnulib.texi (Obsolete modules): New section.
17541         Reported by Mike Frysinger <vapier@gentoo.org>.
17542
17543 2009-01-24  Bruno Haible  <bruno@clisp.org>
17544
17545         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17546         (%.dvi): New rule.
17547
17548 2009-01-24  Bruno Haible  <bruno@clisp.org>
17549
17550         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17551         Reported by Eric Blake.
17552
17553 2009-01-24  Bruno Haible  <bruno@clisp.org>
17554
17555         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17556         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17557         Reported by Gary V. Vaughan <gary@gnu.org>.
17558
17559 2009-01-24  Bruno Haible  <bruno@clisp.org>
17560
17561         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17562
17563 2009-01-23  Bruno Haible  <bruno@clisp.org>
17564
17565         Make c-strtod, c-strtold usable in libraries.
17566         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17567         (C_STRTOD): Call strdup instead of xstrdup.
17568         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17569         * modules/c-strtold (Depends-on): Likewise.
17570         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17571         * NEWS: Mention the change.
17572         Reported by Michael Gold <mgold@ncf.ca>.
17573
17574 2009-01-23  Jim Meyering  <meyering@redhat.com>
17575
17576         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17577         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17578         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17579
17580 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17581
17582         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17583         GNU CoreUtils.
17584         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17585         * modules/version-etc (Description): Update.
17586
17587 2009-01-22  Bruno Haible  <bruno@clisp.org>
17588
17589         Cache the C locale object.
17590         * lib/c-strtod.c (c_locale_cache): New variable.
17591         (c_locale): New function.
17592         (C_STRTOD): Use it, and don't call freelocale.
17593         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17594         Suggested by Paolo Bonzini.
17595
17596 2009-01-21  Bruno Haible  <bruno@clisp.org>
17597
17598         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17599         conditions other than overflow.
17600
17601 2009-01-21  Bruno Haible  <bruno@clisp.org>
17602
17603         * lib/c-strtod.c: Include errno.h.
17604         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17605         value from STRTOD_L and STRTOD.
17606
17607 2009-01-21  Bruno Haible  <bruno@clisp.org>
17608         and Jim Meyering  <meyering@redhat.com>
17609
17610         nanosleep: skip configure test (fail it) for apple universal builds
17611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17612         universal builds, assume that nanosleep does not work.
17613         * modules/nanosleep (Depends-on): Add multiarch.
17614
17615         mktime: skip configure test (fail it) for apple universal builds
17616         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17617         universal builds, assume that mktime does not work.
17618         * modules/mktime (Depends-on): Add multiarch.
17619
17620 2009-01-21  Eric Blake  <ebb9@byu.net>
17621
17622         multiarch: avoid expand-before-require warning
17623         * modules/multiarch (configure.ac): Require, rather than expand,
17624         gl_MULTIARCH.
17625         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17626         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17627         enforce that all clients require it.  Partial reversion of
17628         2008-12-29 patch.
17629
17630         error: avoid expand-before-require warning
17631         * modules/errno (configure.ac): Require, rather than expand,
17632         gl_HEADER_ERRNO_H.
17633         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17634         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17635         enforce that all clients require it.
17636
17637         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17638         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17639         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17640         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17641
17642 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17643
17644         Revert:
17645         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17646
17647         regex: do not depend on obsolete modules.
17648         * modules/regex: Remove memcmp and memmove.
17649
17650 2009-01-20  Bruno Haible  <bruno@clisp.org>
17651
17652         Make the 'link' module link on Windows NT 4.
17653         * lib/link.c (_WIN32_WINNT): Don't define.
17654         (CreateHardLinkFuncType): New type.
17655         (CreateHardLinkFunc, initialized): New variables.
17656         (initialize): New function.
17657         (link): Invoke CreateHardLink indirectly through the function pointer.
17658
17659 2009-01-20  Bruno Haible  <bruno@clisp.org>
17660
17661         Fix compilation failure on mingw.
17662         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17663
17664 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17665
17666         * doc/c-strtod.texi: Mention a couple of restrictions.
17667
17668 2009-01-20  Jim Meyering  <meyering@redhat.com>
17669
17670         gettimeofday: move more declarations out of functions
17671         * lib/gettimeofday.c: Move extern declarations of tzset and
17672         gmtime out of containing functions.  Prompted by Bruno Haible.
17673
17674 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17675
17676         regex: do not depend on obsolete modules.
17677         * modules/regex: Remove memcmp and memmove.
17678
17679 2009-01-19  Bruno Haible  <bruno@clisp.org>
17680
17681         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17682         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17683         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17684         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17685         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17686
17687 2009-01-19  Bruno Haible  <bruno@clisp.org>
17688
17689         * tests/test-link.c: Include <errno.h>.
17690         (main): Exit with code 77 when a hard link cannot be created due to
17691         the file system.
17692         * tests/test-link.sh: Skip test when a hard link cannot be created due
17693         to the file system.
17694         Suggested by Eric Blake.
17695
17696 2009-01-19  Martin Lambers  <marlam@marlam.de>
17697
17698         * modules/link-tests: New file.
17699         * tests/test-link.sh: New file.
17700         * tests/test-link.c: New file.
17701
17702 2009-01-19  Eric Blake  <ebb9@byu.net>
17703
17704         doc: mention another function added in cygwin 1.7.0
17705         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17706         Another new function in cygwin 1.7.
17707
17708 2009-01-19  Bruno Haible  <bruno@clisp.org>
17709
17710         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17711         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17712         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17713         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17714         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17715         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17716         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17717         * m4/md4.m4 (gl_MD4): Likewise.
17718         * m4/md5.m4 (gl_MD5): Likewise.
17719         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17720         * m4/sha1.m4 (gl_SHA1): Likewise.
17721         * m4/sha256.m4 (gl_SHA256): Likewise.
17722         * m4/sha512.m4 (gl_SHA512): Likewise.
17723
17724 2009-01-19  Bruno Haible  <bruno@clisp.org>
17725
17726         * modules/uniname/uniname-tests (Depends-on): Add progname.
17727         * tests/uniname/test-uninames.c: Include progname.h.
17728         (main): Call set_program_name.
17729
17730         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17731         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17732         (main): Call set_program_name.
17733
17734         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17735         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17736         (main): Call set_program_name.
17737
17738         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17739         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17740         (main): Call set_program_name.
17741
17742         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17743         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17744         (main): Call set_program_name.
17745
17746         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17747         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17748         (main): Call set_program_name.
17749
17750         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17751         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17752         (main): Call set_program_name.
17753
17754         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17755         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17756         (main): Call set_program_name.
17757
17758         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17759         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17760         (main): Call set_program_name.
17761
17762 2009-01-19  Eric Blake  <ebb9@byu.net>
17763
17764         test-unistd: test previous patch
17765         * tests/test-unistd.c: Test *_FILENO macros.
17766
17767         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17768         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17769         Guarantee a definition.
17770         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17771         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17772         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17773         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17774         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17775         Likewise.
17776         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17777         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17778         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17779         Likewise.
17780         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17781         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17782         (STDERR_FILENO): Likewise.
17783         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17784         (STDERR_FILENO): Likewise.
17785         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17786         (STDERR_FILENO): Likewise.
17787         Reported by Elbert Pol.
17788
17789 2009-01-19  Eric Blake  <ebb9@byu.net>
17790
17791         doc: mention more functions added in cygwin 1.7.0
17792         * doc/posix-functions/abort.texi (abort): Update wording related
17793         to cygwin.
17794         * doc/posix-functions/daylight.texi (daylight): Likewise.
17795         * doc/posix-functions/optarg.texi (optarg): Likewise.
17796         * doc/posix-functions/optarg.texi (opterr): Likewise.
17797         * doc/posix-functions/optarg.texi (optind): Likewise.
17798         * doc/posix-functions/optarg.texi (optopt): Likewise.
17799         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17800         worked in 1.5.x, and was withdrawn in 1.7.
17801         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17802         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17803         cygwin versions.
17804         * doc/posix-functions/perror.texi (perror): Likewise.
17805         * doc/posix-functions/printf.texi (printf): Likewise.
17806         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17807         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17808         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17809         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17810         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17811         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17812         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17813         Likewise.
17814         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17815         Likewise.
17816         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17817         this function.
17818         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17819         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17820         Likewise.
17821         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17822         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17823         * doc/posix-functions/confstr.texi (confstr): Likewise.
17824         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17825         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17826         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17827         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17828         * doc/posix-functions/fputws.texi (fputws): Likewise.
17829         * doc/posix-functions/fwide.texi (fwide): Likewise.
17830         * doc/posix-functions/getwc.texi (getwc): Likewise.
17831         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17832         * doc/posix-functions/putwc.texi (putwc): Likewise.
17833         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17834         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17835         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17836         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17837         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17838         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17839         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17840         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17841         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17842         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17843         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17844
17845 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17846
17847         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17848         * lib/ioctl.c: Include <sys/ioctl.h>.
17849
17850 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17851
17852         * modules/getdate-tests (Depends-on): Add progname.
17853         * tests/test-getdate.c: Use progname module, to avoid link errors
17854         on non-glibc systems.
17855
17856 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17857
17858         * modules/filenamecat-tests (Depends-on): Add progname.
17859         * modules/fstrcmp-tests (Depends-on): Likewise.
17860
17861         * tests/test-filenamecat.c: Use progname module, to avoid link
17862         errors on non-glibc systems.
17863         * tests/test-fstrcmp.c: Likewise.
17864
17865 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17866
17867         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17868         * lib/gettimeofday.c: Move extern declaration out of function.
17869
17870 2009-01-18  Bruno Haible  <bruno@clisp.org>
17871
17872         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17873         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17874         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17875
17876 2009-01-18  Bruno Haible  <bruno@clisp.org>
17877
17878         * lib/strftime.c (MEMPCPY): Remove unused macro.
17879         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17880
17881 2009-01-18  Martin Lambers  <marlam@marlam.de>
17882
17883         New module 'link'.
17884         * lib/unistd.in.h (link): New declaration.
17885         * lib/link.c: New file.
17886         * m4/link.m4: New file.
17887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17888         HAVE_LINK.
17889         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17890         * modules/link: New file.
17891         * doc/posix-functions/link.texi: Mention the new module.
17892
17893 2009-01-18  Bruno Haible  <bruno@clisp.org>
17894
17895         * tests/test-avltree_list.c (main): Call set_program_name.
17896         * tests/test-avltree_oset.c (main): Likewise.
17897         * tests/test-obstack-printf.c: Include progname.h.
17898         (main): Call set_program_name.
17899         * tests/test-quotearg.c: Include progname.h.
17900         (main): Call set_program_name.
17901         * tests/test-xmemdup0.c: Include progname.h.
17902         (main): Call set_program_name.
17903
17904 2009-01-18  Bruno Haible  <bruno@clisp.org>
17905
17906         New module 'alphasort'.
17907         * lib/dirent.in.h (alphasort): New declaration.
17908         * lib/alphasort.c: New file, from glibc with modifications.
17909         * m4/alphasort.m4: New file.
17910         * modules/alphasort: New file.
17911         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17912         HAVE_ALPHASORT.
17913         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17914         HAVE_ALPHASORT.
17915         * doc/posix-functions/alphasort.texi: Mention the new module and the
17916         portability problems.
17917
17918 2009-01-18  Bruno Haible  <bruno@clisp.org>
17919
17920         New module 'scandir'.
17921         * lib/dirent.in.h (scandir): New declaration.
17922         * lib/scandir.c: New file, from glibc with modifications.
17923         * m4/scandir.m4: New file.
17924         * modules/scandir: New file.
17925         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17926         HAVE_SCANDIR.
17927         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17928         HAVE_SCANDIR.
17929         * doc/posix-functions/scandir.texi: Mention the new module and the
17930         portability problems.
17931
17932 2009-01-17  Bruno Haible  <bruno@clisp.org>
17933
17934         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17935         Update documentation.
17936         (func_remove_suffix): Escape all dots in the suffix. Update
17937         documentation.
17938         (func_filter_filelist): Update documentation.
17939         Reported by Ralf Wildenhues.
17940
17941 2009-01-17  Bruno Haible  <bruno@clisp.org>
17942
17943         * modules/dprintf-posix-tests: New file.
17944         * tests/test-dprintf-posix.sh: New file.
17945         * tests/test-dprintf-posix.c: New file.
17946
17947         New modules 'dprintf', 'dprintf-posix'.
17948         * lib/stdio.in.h (dprintf): New declaration.
17949         * lib/dprintf.c: New file.
17950         * m4/dprintf.m4: New file.
17951         * m4/dprintf-posix.m4: New file.
17952         * modules/dprintf: New file.
17953         * modules/dprintf-posix: New file.
17954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17955         HAVE_DPRINTF, REPLACE_DPRINTF.
17956         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17957         HAVE_DPRINTF, REPLACE_DPRINTF.
17958         * doc/posix-functions/dprintf.texi: Mention the new modules.
17959
17960 2009-01-17  Bruno Haible  <bruno@clisp.org>
17961
17962         * modules/vdprintf-posix-tests: New file.
17963         * tests/test-vdprintf-posix.sh: New file.
17964         * tests/test-vdprintf-posix.c: New file.
17965
17966         New modules 'vdprintf', 'vdprintf-posix'.
17967         * lib/stdio.in.h (vdprintf): New declaration.
17968         * lib/vdprintf.c: New file.
17969         * m4/vdprintf.m4: New file.
17970         * m4/vdprintf-posix.m4: New file.
17971         * modules/vdprintf: New file.
17972         * modules/vdprintf-posix: New file.
17973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17974         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17975         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17976         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17977         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17978
17979 2009-01-17  Bruno Haible  <bruno@clisp.org>
17980
17981         Fix replacement of fopen on mingw.
17982         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17983         mingw.
17984
17985 2009-01-17  Bruno Haible  <bruno@clisp.org>
17986
17987         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17988         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17989
17990 2009-01-17  Bruno Haible  <bruno@clisp.org>
17991
17992         Avoid test-fflush2.sh failure on mingw.
17993         * tests/test-fflush2.c: Include binary-io.h.
17994         (main): Put standard input into binary mode.
17995         * modules/fflush-tests (Depends-on): Add binary-io.
17996
17997 2009-01-17  Bruno Haible  <bruno@clisp.org>
17998
17999         * lib/wchar.in.h: In another particular situation, include only the
18000         system's <wchar.h> file.
18001         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
18002         Reported by Albert Chin-A-Young <china@thewrittenword.com>
18003         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
18004
18005 2009-01-17  Bruno Haible  <bruno@clisp.org>
18006
18007         Support for stripping executables in --enable-relocatable.
18008         * build-aux/install-reloc: Expect one more argument, or an environment
18009         variable RELOC_STRIP_PROG. If set, strip the destination program and
18010         its wrapper.
18011         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
18012         RELOC_STRIP_PROG.
18013         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
18014         to set RELOCATABLE_STRIP.
18015         * NEWS: Mention the new Makefile requirement.
18016
18017 2009-01-17  Bruno Haible  <bruno@clisp.org>
18018
18019         * build-aux/install-reloc: Remove debugging information left over by
18020         C compiler on MacOS X.
18021
18022 2009-01-17  Bruno Haible  <bruno@clisp.org>
18023
18024         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
18025         * lib/progreloc.c (find_executable): Fix type of pointer passed to
18026         _NSGetExecutablePath.
18027
18028 2009-01-16  Jim Meyering  <meyering@redhat.com>
18029
18030         strerror: avoid warnings about discarding "const"
18031         * lib/strerror.c (rpl_strerror): Instead of returning a const
18032         string from each and every "case", use a variable, and add a single
18033         cast after the switch.
18034
18035 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
18036
18037         * lib/arpa_inet.in.h: Add extern "C" block for C++.
18038
18039 2009-01-16  Bruno Haible  <bruno@clisp.org>
18040
18041         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
18042         array initializer syntax that also works in C++ mode.
18043         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18044
18045 2009-01-16  Jim Meyering  <meyering@redhat.com>
18046
18047         poll: suppress a warning
18048         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
18049         to ignore "...unsigned expression < 0 is always false" warnings.
18050
18051 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
18052
18053         poll: remove declarations of unused variables
18054         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
18055         sockbuf and optlen.
18056
18057 2009-01-15  Bruno Haible  <bruno@clisp.org>
18058
18059         Make fflush-after-ungetc POSIX compliant on BSD systems.
18060         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
18061         (clear_ungetc_buffer): Implement also for other systems.
18062         (rpl_fflush): On glibc systems, invoke
18063         clear_ungetc_buffer_preserving_position. Otherwise, invoke
18064         clear_ungetc_buffer after fetching the stream's position, not before.
18065
18066 2009-01-15  Bruno Haible  <bruno@clisp.org>
18067
18068         Make fflush-after-ungetc POSIX compliant on glibc systems.
18069         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
18070         after ungetc.
18071         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
18072         (rpl_fflush): On glibc systems, simply call the system's fflush
18073         function after clearing the ungetc buffer.
18074         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
18075         Instead, lseek only to the end of file, then use the system's fseeko
18076         for the rest. On glibc systems, reset the EOF indicator bit.
18077
18078 2009-01-15  Jim Meyering  <meyering@redhat.com>
18079
18080         openmp.m4: revert quote-adding change, for portability to older autoconf
18081         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
18082         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
18083         Simon Josefsson noticed the problem when using autoconf-2.61.
18084
18085 2009-01-15  Bruno Haible  <bruno@clisp.org>
18086
18087         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
18088         * tests/test-fflush2.c (ASSERT): Always fail.
18089         (main): Add two tests for fflush() after ungetc(), taking into account
18090         the Austin Group's clarification.
18091         Suggested by Eric Blake.
18092
18093 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
18094
18095         mktime.m4: remove K&R-style function prototypes
18096         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
18097         for the Sun C++ compiler.
18098
18099 2009-01-14  Bruno Haible  <bruno@clisp.org>
18100
18101         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
18102         while including <wchar.h>.
18103         * lib/wchar.in.h: In two particular situations on HP-UX, include only
18104         the system's <wchar.h> file.
18105         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18106
18107 2009-01-14  Bruno Haible  <bruno@clisp.org>
18108
18109         * m4/csharp.m4: Don't mention gettext on the serial number line.
18110         * m4/csharpexec.m4: Likewise.
18111         * m4/eaccess.m4: Likewise.
18112         * m4/javaexec.m4: Likewise.
18113         * m4/sig_atomic_t.m4: Likewise.
18114         * m4/tmpdir.m4: Likewise.
18115         * m4/intldir.m4: Bump gettext version.
18116         * m4/lib-ld.m4: Likewise.
18117
18118 2009-01-14  Bruno Haible  <bruno@clisp.org>
18119
18120         * lib/progname.c (set_program_name): Add more comments.
18121         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18122
18123 2009-01-14  Simon Josefsson  <simon@josefsson.org>
18124
18125         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
18126         were sys/stat.h does not define it.
18127
18128 2009-01-14  Jim Meyering  <meyering@redhat.com>
18129
18130         many *.m4 files: improve m4 quoting
18131         99% of this change was performed by running the following commands:
18132         git ls-files | grep '\.m4$' | xargs perl -pi \
18133           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
18134           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18135           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18136           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
18137         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
18138         The remainder were to add Copyright dates, increment serial numbers,
18139         undo some changes in comments, exclude m4/intl.m4, and add quotes
18140         around the "1" in ",1" where the unusual spacing prohibited the
18141         above regexps from doing the job.  For more details, see
18142         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
18143         * m4/acl.m4: Modified.
18144         * m4/afs.m4: Likewise.
18145         * m4/alloca.m4: Likewise.
18146         * m4/argp.m4: Likewise.
18147         * m4/argz.m4: Likewise.
18148         * m4/atexit.m4: Likewise.
18149         * m4/bison-i18n.m4: Likewise.
18150         * m4/bison.m4: Likewise.
18151         * m4/byteswap.m4: Likewise.
18152         * m4/c-stack.m4: Likewise.
18153         * m4/c-strtod.m4: Likewise.
18154         * m4/calloc.m4: Likewise.
18155         * m4/canonicalize-lgpl.m4: Likewise.
18156         * m4/chown.m4: Likewise.
18157         * m4/clock_time.m4: Likewise.
18158         * m4/codeset.m4: Likewise.
18159         * m4/copy-file.m4: Likewise.
18160         * m4/csharp.m4: Likewise.
18161         * m4/csharpcomp.m4: Likewise.
18162         * m4/csharpexec.m4: Likewise.
18163         * m4/d-ino.m4: Likewise.
18164         * m4/d-type.m4: Likewise.
18165         * m4/dirfd.m4: Likewise.
18166         * m4/double-slash-root.m4: Likewise.
18167         * m4/eaccess.m4: Likewise.
18168         * m4/eealloc.m4: Likewise.
18169         * m4/environ.m4: Likewise.
18170         * m4/errno_h.m4: Likewise.
18171         * m4/euidaccess.m4: Likewise.
18172         * m4/execute.m4: Likewise.
18173         * m4/fatal-signal.m4: Likewise.
18174         * m4/fchdir.m4: Likewise.
18175         * m4/fcntl_h.m4: Likewise.
18176         * m4/fileblocks.m4: Likewise.
18177         * m4/filenamecat.m4: Likewise.
18178         * m4/findprog.m4: Likewise.
18179         * m4/flexmember.m4: Likewise.
18180         * m4/fnmatch.m4: Likewise.
18181         * m4/fopen.m4: Likewise.
18182         * m4/fpending.m4: Likewise.
18183         * m4/fprintf-posix.m4: Likewise.
18184         * m4/free.m4: Likewise.
18185         * m4/frexp.m4: Likewise.
18186         * m4/frexpl.m4: Likewise.
18187         * m4/fsusage.m4: Likewise.
18188         * m4/ftruncate.m4: Likewise.
18189         * m4/gc-camellia.m4: Likewise.
18190         * m4/gc-random.m4: Likewise.
18191         * m4/gc.m4: Likewise.
18192         * m4/getaddrinfo.m4: Likewise.
18193         * m4/getcwd-abort-bug.m4: Likewise.
18194         * m4/getcwd-path-max.m4: Likewise.
18195         * m4/getdate.m4: Likewise.
18196         * m4/getdomainname.m4: Likewise.
18197         * m4/getgroups.m4: Likewise.
18198         * m4/gethostname.m4: Likewise.
18199         * m4/gethrxtime.m4: Likewise.
18200         * m4/getline.m4: Likewise.
18201         * m4/getloadavg.m4: Likewise.
18202         * m4/getndelim2.m4: Likewise.
18203         * m4/getpass.m4: Likewise.
18204         * m4/gettext.m4: Likewise.
18205         * m4/gettime.m4: Likewise.
18206         * m4/gettimeofday.m4: Likewise.
18207         * m4/gnulib-common.m4: Likewise.
18208         * m4/group-member.m4: Likewise.
18209         * m4/host-os.m4: Likewise.
18210         * m4/iconv.m4: Likewise.
18211         * m4/iconv_open.m4: Likewise.
18212         * m4/inet_ntop.m4: Likewise.
18213         * m4/inet_pton.m4: Likewise.
18214         * m4/inline.m4: Likewise.
18215         * m4/intldir.m4: Likewise.
18216         * m4/intlmacosx.m4: Likewise.
18217         * m4/intmax.m4: Likewise.
18218         * m4/intmax_t.m4: Likewise.
18219         * m4/inttypes.m4: Likewise.
18220         * m4/inttypes_h.m4: Likewise.
18221         * m4/inttypes-pri.m4: Likewise.
18222         * m4/isapipe.m4: Likewise.
18223         * m4/isnand.m4: Likewise.
18224         * m4/isnanf.m4: Likewise.
18225         * m4/isnanl.m4: Likewise.
18226         * m4/javacomp.m4: Likewise.
18227         * m4/javaexec.m4: Likewise.
18228         * m4/jm-winsz1.m4: Likewise.
18229         * m4/jm-winsz2.m4: Likewise.
18230         * m4/lchown.m4: Likewise.
18231         * m4/lcmessage.m4: Likewise.
18232         * m4/ldexpl.m4: Likewise.
18233         * m4/lib-ld.m4: Likewise.
18234         * m4/lib-link.m4: Likewise.
18235         * m4/libsigsegv.m4: Likewise.
18236         * m4/link-follow.m4: Likewise.
18237         * m4/localcharset.m4: Likewise.
18238         * m4/locale-fr.m4: Likewise.
18239         * m4/locale-ja.m4: Likewise.
18240         * m4/locale-tr.m4: Likewise.
18241         * m4/locale-zh.m4: Likewise.
18242         * m4/lock.m4: Likewise.
18243         * m4/longlong.m4: Likewise.
18244         * m4/ls-mntd-fs.m4: Likewise.
18245         * m4/lstat.m4: Likewise.
18246         * m4/malloc.m4: Likewise.
18247         * m4/mathl.m4: Likewise.
18248         * m4/mbrtowc.m4: Likewise.
18249         * m4/mbstate_t.m4: Likewise.
18250         * m4/mbswidth.m4: Likewise.
18251         * m4/memchr.m4: Likewise.
18252         * m4/memcmp.m4: Likewise.
18253         * m4/memcpy.m4: Likewise.
18254         * m4/memmem.m4: Likewise.
18255         * m4/memmove.m4: Likewise.
18256         * m4/mempcpy.m4: Likewise.
18257         * m4/memrchr.m4: Likewise.
18258         * m4/memset.m4: Likewise.
18259         * m4/minmax.m4: Likewise.
18260         * m4/mkdir-slash.m4: Likewise.
18261         * m4/mkdtemp.m4: Likewise.
18262         * m4/mktime.m4: Likewise.
18263         * m4/mmap-anon.m4: Likewise.
18264         * m4/mountlist.m4: Likewise.
18265         * m4/nanosleep.m4: Likewise.
18266         * m4/nls.m4: Likewise.
18267         * m4/nocrash.m4: Likewise.
18268         * m4/open.m4: Likewise.
18269         * m4/openat.m4: Likewise.
18270         * m4/openmp.m4: Likewise.
18271         * m4/pathmax.m4: Likewise.
18272         * m4/perl.m4: Likewise.
18273         * m4/physmem.m4: Likewise.
18274         * m4/pipe.m4: Likewise.
18275         * m4/po.m4: Likewise.
18276         * m4/poll.m4: Likewise.
18277         * m4/posixtm.m4: Likewise.
18278         * m4/posixver.m4: Likewise.
18279         * m4/printf-frexp.m4: Likewise.
18280         * m4/printf-frexpl.m4: Likewise.
18281         * m4/printf-posix.m4: Likewise.
18282         * m4/printf-posix-rpl.m4: Likewise.
18283         * m4/printf.m4: Likewise.
18284         * m4/progtest.m4: Likewise.
18285         * m4/putenv.m4: Likewise.
18286         * m4/readline.m4: Likewise.
18287         * m4/readlink.m4: Likewise.
18288         * m4/readutmp.m4: Likewise.
18289         * m4/realloc.m4: Likewise.
18290         * m4/regex.m4: Likewise.
18291         * m4/relocatable.m4: Likewise.
18292         * m4/relocatable-lib.m4: Likewise.
18293         * m4/rename-dest-slash.m4: Likewise.
18294         * m4/rename.m4: Likewise.
18295         * m4/rmdir-errno.m4: Likewise.
18296         * m4/rmdir.m4: Likewise.
18297         * m4/roundf.m4: Likewise.
18298         * m4/roundl.m4: Likewise.
18299         * m4/rpmatch.m4: Likewise.
18300         * m4/save-cwd.m4: Likewise.
18301         * m4/selinux-selinux-h.m4: Likewise.
18302         * m4/setenv.m4: Likewise.
18303         * m4/settime.m4: Likewise.
18304         * m4/sig2str.m4: Likewise.
18305         * m4/sig_atomic_t.m4: Likewise.
18306         * m4/signalblocking.m4: Likewise.
18307         * m4/signbit.m4: Likewise.
18308         * m4/sigpipe.m4: Likewise.
18309         * m4/sockets.m4: Likewise.
18310         * m4/sockpfaf.m4: Likewise.
18311         * m4/st_dm_mode.m4: Likewise.
18312         * m4/stat-time.m4: Likewise.
18313         * m4/stdbool.m4: Likewise.
18314         * m4/stdint.m4: Likewise.
18315         * m4/stdint_h.m4: Likewise.
18316         * m4/stpcpy.m4: Likewise.
18317         * m4/stpncpy.m4: Likewise.
18318         * m4/strcase.m4: Likewise.
18319         * m4/strchrnul.m4: Likewise.
18320         * m4/strcspn.m4: Likewise.
18321         * m4/strdup.m4: Likewise.
18322         * m4/strftime.m4: Likewise.
18323         * m4/strndup.m4: Likewise.
18324         * m4/strnlen.m4: Likewise.
18325         * m4/strpbrk.m4: Likewise.
18326         * m4/strptime.m4: Likewise.
18327         * m4/strsep.m4: Likewise.
18328         * m4/strtod.m4: Likewise.
18329         * m4/strtoimax.m4: Likewise.
18330         * m4/strtok_r.m4: Likewise.
18331         * m4/strtol.m4: Likewise.
18332         * m4/strtoll.m4: Likewise.
18333         * m4/strtoul.m4: Likewise.
18334         * m4/strtoull.m4: Likewise.
18335         * m4/strtoumax.m4: Likewise.
18336         * m4/strverscmp.m4: Likewise.
18337         * m4/threadlib.m4: Likewise.
18338         * m4/timegm.m4: Likewise.
18339         * m4/tm_gmtoff.m4: Likewise.
18340         * m4/tmpdir.m4: Likewise.
18341         * m4/tmpfile.m4: Likewise.
18342         * m4/tzset.m4: Likewise.
18343         * m4/uintmax_t.m4: Likewise.
18344         * m4/unlinkdir.m4: Likewise.
18345         * m4/unlocked-io.m4: Likewise.
18346         * m4/uptime.m4: Likewise.
18347         * m4/userspec.m4: Likewise.
18348         * m4/utimbuf.m4: Likewise.
18349         * m4/utime.m4: Likewise.
18350         * m4/utimes-null.m4: Likewise.
18351         * m4/utimes.m4: Likewise.
18352         * m4/vararrays.m4: Likewise.
18353         * m4/vasnprintf.m4: Likewise.
18354         * m4/vfprintf-posix.m4: Likewise.
18355         * m4/vprintf-posix.m4: Likewise.
18356         * m4/wait-process.m4: Likewise.
18357         * m4/wchar_t.m4: Likewise.
18358         * m4/wint_t.m4: Likewise.
18359         * m4/write-any-file.m4: Likewise.
18360         * m4/yield.m4: Likewise.
18361
18362 2009-01-13  Bruno Haible  <bruno@clisp.org>
18363
18364         Avoid test-copy-file.sh failures when ACL support insufficient.
18365         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18366         TESTS_ENVIRONMENT.
18367         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18368         Reported by Jim Meyering.
18369
18370 2009-01-13  Bruno Haible  <bruno@clisp.org>
18371
18372         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18373         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18374         * modules/unistdio/u8-printf-parse (Files): Likewise.
18375         * modules/unistdio/u32-printf-parse (Files): Likewise.
18376         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18377
18378 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18379
18380         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18381         and m4/inttypes_h.m4 too.
18382
18383 2009-01-12  Eric Blake  <ebb9@byu.net>
18384
18385         tests: IRIX 6.2 cc can't compile -0.0 into .data
18386         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18387         rather than at compile-time.
18388         * tests/test-floorl.c (minus_zero): Likewise.
18389         * tests/test-frexpl.c (minus_zero): Likewise.
18390         * tests/test-isnan.c (minus_zerol): Likewise.
18391         * tests/test-isnanl.h (minus_zero): Likewise.
18392         * tests/test-ldexpl.c (minus_zero): Likewise.
18393         * tests/test-roundl.c (minus_zero): Likewise.
18394         * tests/test-signbit.c (minus_zerol): Likewise.
18395         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18396         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18397         * tests/test-truncl.c (minus_zero): Likewise.
18398         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18399         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18400         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18401
18402 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18403
18404         regex: fix glibc bug 9697
18405         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18406         handling.
18407
18408 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18409
18410         regex: fix glibc bug 697
18411         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18412         being NULL also if there are no backreferences.
18413
18414 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18415
18416         regex: merge glibc changes
18417         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18418         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18419         re_string_skip_chars, re_string_reconstruct): Likewise.
18420         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18421
18422 2009-01-07  Jim Meyering  <meyering@redhat.com>
18423
18424         poll: filter through cppi
18425         * lib/poll.c: Indent cpp directives to reflect nesting.
18426
18427 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18428
18429         poll: don't return uninitialized
18430         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18431
18432 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18433
18434         avoid compile failure on AIX 6.1
18435         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18436         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18437
18438 2009-01-04  Jim Meyering  <meyering@redhat.com>
18439
18440         remove duplicate inclusion of <stdio.h>
18441         * tests/test-fprintf-posix.c: Likewise.
18442         * tests/test-printf-posix.c: Likewise.
18443         * tests/test-snprintf-posix.c: Likewise.
18444         * tests/test-sprintf-posix.c: Likewise.
18445         * tests/test-vasprintf-posix.c: Likewise.
18446         * tests/test-vfprintf-posix.c: Likewise.
18447         * tests/test-vprintf-posix.c: Likewise.
18448         * tests/test-vsnprintf-posix.c: Likewise.
18449         * tests/test-vsprintf-posix.c: Likewise.
18450
18451 2009-01-03  Jim Meyering  <meyering@redhat.com>
18452
18453         gnulib-tool: fix sed-based filtering
18454         * gnulib-tool (func_filter_filelist): Remove extra backslash
18455         in sed_fff_filter definition.
18456
18457 2009-01-02  Jim Meyering  <meyering@redhat.com>
18458
18459         strftime: avoid compilation failure on Solaris 2.6
18460         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18461         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18462         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18463         be available.  Reported by Tom G. Christensen.  Details in
18464         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18465
18466 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18467             Bruno Haible  <bruno@clisp.org>
18468
18469         Speed up gnulib-tool by doing more string processing through shell
18470         built-ins.
18471         * gnulib-tool (fast_func_append): New variable.
18472         (func_remove_prefix, func_remove_suffix): New functions.
18473         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18474         (func_filter_filelist): New function.
18475         (func_get_dependencies): Use func_remove_suffix instead of sed.
18476         (func_get_automake_snippet): Use func_filter_filelist instead of a
18477         subshell and sed invocation.
18478
18479 2009-01-01  Bruno Haible  <bruno@clisp.org>
18480
18481         Fix a security bug.
18482         * gnulib-tool (func_import, import, update): Don't allow the characters
18483         '"', '$', '`', '\' in macro arguments that become part of commands that
18484         are evaluated.
18485
18486 2009-01-01  Bruno Haible  <bruno@clisp.org>
18487
18488         * gnulib-tool (func_reset_sigpipe): Add more comments.
18489
18490 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18491
18492         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18493         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18494         already know the answer.
18495
18496 2009-01-01  Jim Meyering  <meyering@redhat.com>
18497
18498         * lib/version-etc.c (version_etc_va): Update copyright year.
18499
18500 2008-12-30  Bruno Haible  <bruno@clisp.org>
18501
18502         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18503         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18504         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18505
18506 2008-12-29  Eric Blake  <ebb9@byu.net>
18507
18508         multiarch: avoid autoconf AC_REQUIRE bug
18509         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18510         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18511         2.63 and older.
18512         Reported by Bruno Haible, and analyzed in
18513         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18514
18515 2008-12-29  Bruno Haible  <bruno@clisp.org>
18516
18517         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18518         files in subdirectories correctly.
18519         Reported by Ralf Wildenhues.
18520
18521 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18522
18523         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18524         rather than 'join FILE -', for Solaris join.
18525
18526 2008-12-29  Bruno Haible  <bruno@clisp.org>
18527
18528         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18529         quoting.
18530         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18531         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18532         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18533         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18534         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18535         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18536         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18537         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18538         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18539         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18540         * m4/nls.m4 (AM_NLS): Likewise.
18541         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18542         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18543         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18544         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18545         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18546         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18547         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18548         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18549         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18550         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18551         * m4/xsize.m4 (gl_XSIZE): Likewise.
18552         Suggested by Jim Meyering.
18553
18554 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18555
18556         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18557         * lib/parse-duration.c: use a switch instead of cascading if's.
18558
18559 2008-12-29  Eric Blake  <ebb9@byu.net>
18560
18561         wchar.h: supply WEOF on Irix 5.3
18562         * lib/wchar.in.h (wint_t): Also supply WEOF.
18563         * lib/wctype.in.h (wint_t): Likewise.
18564         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18565         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18566         Reported by Tom G. Christensen.
18567
18568 2008-12-26  Bruno Haible  <bruno@clisp.org>
18569
18570         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18571         i486, i586, i686.
18572
18573 2008-12-26  Bruno Haible  <bruno@clisp.org>
18574
18575         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18576
18577 2008-12-26  Bruno Haible  <bruno@clisp.org>
18578
18579         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18580         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18581         not __STDC_CONSTANT_MACROS.
18582         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18583
18584 2008-12-25  Bruno Haible  <bruno@clisp.org>
18585
18586         Add support for universal builds to vasnprintf.
18587         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18588         universal builds, guess no.
18589         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18590         * modules/vasprintf-posix (Depends-on): Likewise.
18591         * modules/fprintf-posix (Depends-on): Likewise.
18592         * modules/vfprintf-posix (Depends-on): Likewise.
18593         * modules/snprintf-posix (Depends-on): Likewise.
18594         * modules/vsnprintf-posix (Depends-on): Likewise.
18595         * modules/sprintf-posix (Depends-on): Likewise.
18596         * modules/vsprintf-posix (Depends-on): Likewise.
18597         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18598         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18599         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18600         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18601         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18602         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18603         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18604
18605         Add support for universal builds to <inttypes.h>.
18606         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18607         _SCNu64_PREFIX): In Apple
18608         universal builds, define directly, using _LP64.
18609         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18610         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18611         * modules/inttypes (Depends-on): Add multiarch.
18612         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18613
18614         Add support for universal builds to <stdint.h>.
18615         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18616         universal builds, define directly, using _LP64.
18617         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18618         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18619         and size_t.
18620         * modules/stdint (Depends-on): Add multiarch.
18621         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18622
18623         New module 'multiarch'.
18624         * modules/multiarch: New file.
18625         * m4/multiarch.m4: New file.
18626
18627 2008-12-25  Bruno Haible  <bruno@clisp.org>
18628
18629         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18630
18631 2008-12-25  Bruno Haible  <bruno@clisp.org>
18632
18633         * modules/btowc (License): Relicense under LGPLv2+.
18634         * modules/mbsinit (License): Likewise.
18635         * modules/mbrtowc (License): Likewise.
18636         * modules/wcrtomb (License): Likewise.
18637         * modules/streq (License): Likewise.
18638         Reported by David Lutterkort <lutter@redhat.com>.
18639
18640 2008-12-23  Bruno Haible  <bruno@clisp.org>
18641
18642         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18643
18644 2008-12-23  Bruno Haible  <bruno@clisp.org>
18645
18646         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18647         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18648         GETADDRINFO_LIB, not in LIBS.
18649         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18650         * modules/canon-host (Link): Likewise.
18651         * NEWS: Mention the change.
18652         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18653         GETADDRINFO_LIB.
18654
18655 2008-12-22  Bruno Haible  <bruno@clisp.org>
18656
18657         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18658         * doc/posix-functions/iswalpha_l.texi: Likewise.
18659         * doc/posix-functions/iswblank_l.texi: Likewise.
18660         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18661         * doc/posix-functions/iswctype_l.texi: Likewise.
18662         * doc/posix-functions/iswdigit_l.texi: Likewise.
18663         * doc/posix-functions/iswgraph_l.texi: Likewise.
18664         * doc/posix-functions/iswlower_l.texi: Likewise.
18665         * doc/posix-functions/iswprint_l.texi: Likewise.
18666         * doc/posix-functions/iswpunct_l.texi: Likewise.
18667         * doc/posix-functions/iswspace_l.texi: Likewise.
18668         * doc/posix-functions/iswupper_l.texi: Likewise.
18669         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18670         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18671         * doc/posix-functions/open_wmemstream.texi: Likewise.
18672         * doc/posix-functions/swscanf.texi: Likewise.
18673         * doc/posix-functions/towctrans_l.texi: Likewise.
18674         * doc/posix-functions/towlower.texi: Likewise.
18675         * doc/posix-functions/towlower_l.texi: Likewise.
18676         * doc/posix-functions/towupper.texi: Likewise.
18677         * doc/posix-functions/towupper_l.texi: Likewise.
18678         * doc/posix-functions/vfwprintf.texi: Likewise.
18679         * doc/posix-functions/vfwscanf.texi: Likewise.
18680         * doc/posix-functions/vswscanf.texi: Likewise.
18681         * doc/posix-functions/vwprintf.texi: Likewise.
18682         * doc/posix-functions/vwscanf.texi: Likewise.
18683         * doc/posix-functions/wcpcpy.texi: Likewise.
18684         * doc/posix-functions/wcpncpy.texi: Likewise.
18685         * doc/posix-functions/wcscasecmp.texi: Likewise.
18686         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18687         * doc/posix-functions/wcscoll_l.texi: Likewise.
18688         * doc/posix-functions/wcsdup.texi: Likewise.
18689         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18690         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18691         * doc/posix-functions/wcsnlen.texi: Likewise.
18692         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18693         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18694         * doc/posix-functions/wctrans_l.texi: Likewise.
18695         * doc/posix-functions/wctype_l.texi: Likewise.
18696         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18697         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18698         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18699         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18700         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18701         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18702         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18703         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18704         * doc/glibc-functions/wcschrnul.texi: Likewise.
18705         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18706         * doc/glibc-functions/wcstod_l.texi: Likewise.
18707         * doc/glibc-functions/wcstof_l.texi: Likewise.
18708         * doc/glibc-functions/wcstol_l.texi: Likewise.
18709         * doc/glibc-functions/wcstold_l.texi: Likewise.
18710         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18711         * doc/glibc-functions/wcstoq.texi: Likewise.
18712         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18713         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18714         * doc/glibc-functions/wcstouq.texi: Likewise.
18715         * doc/glibc-functions/wmempcpy.texi: Likewise.
18716
18717 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18718             Eric Blake  <ebb9@byu.net>
18719             Paolo Bonzini  <bonzini@gnu.org>
18720             Bruno Haible  <bruno@clisp.org>
18721
18722         Make c-stack work on Haiku.
18723         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18724         (c_stack_action): Use SA_ONSTACK flag.
18725
18726 2008-12-22  Bruno Haible  <bruno@clisp.org>
18727
18728         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18729
18730 2008-12-22  Bruno Haible  <bruno@clisp.org>
18731
18732         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18733         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18734         being overridden.
18735         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18736         New macros.
18737         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18738         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18739         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18740         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18741
18742 2008-12-22  Bruno Haible  <bruno@clisp.org>
18743
18744         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18745         from test code.
18746
18747 2008-12-22  Eric Blake  <ebb9@byu.net>
18748
18749         Avoid gcc warnings on cygwin.
18750         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18751         Avoid unused variable.
18752         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18753         Likewise.
18754
18755 2008-12-22  Bruno Haible  <bruno@clisp.org>
18756
18757         Remove HAVE_MBRTOWC conditionals.
18758         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18759         (mbscasecmp): Assume mbrtowc function.
18760         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18761         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18762         * lib/mbschr.c: Include mbuiter.h unconditionally.
18763         (mbschr): Assume mbrtowc function.
18764         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18765         (mbscspn): Assume mbrtowc function.
18766         * lib/mbslen.c: Include mbuiter.h unconditionally.
18767         (mbslen): Assume mbrtowc function.
18768         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18769         (mbsncasecmp): Assume mbrtowc function.
18770         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18771         (mbsnlen): Assume mbrtowc function.
18772         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18773         (mbspbrk): Assume mbrtowc function.
18774         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18775         (mbspcasecmp): Assume mbrtowc function.
18776         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18777         (mbsrchr): Assume mbrtowc function.
18778         * lib/mbssep.c: Include mbuiter.h unconditionally.
18779         (mbssep): Assume mbrtowc function.
18780         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18781         (mbsspn): Assume mbrtowc function.
18782         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18783         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18784         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18785         (mbstok_r): Assume mbrtowc function.
18786         * lib/propername.c: Include mbuiter.h unconditionally.
18787         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18788         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18789         (trim2): Assume mbrtowc function.
18790         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18791         (mbsnwidth): Assume mbrtowc function.
18792         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18793         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18794         fallback definitions.
18795         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18796
18797 2008-12-22  Bruno Haible  <bruno@clisp.org>
18798
18799         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18800
18801 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18802
18803         * modules/regex: Request emulations for the mb*/wc* functions we need.
18804         * m4/regex.m4: Don't look for those functions here.
18805         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18806
18807 2008-12-22  Bruno Haible  <bruno@clisp.org>
18808
18809         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18810
18811 2008-12-21  Bruno Haible  <bruno@clisp.org>
18812
18813         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18814         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18815         (Include): Remove conditionalization.
18816         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18817         (Include): Remove conditionalization.
18818         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18819         (Include): Remove conditionalization.
18820         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18821         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18822         * NEWS: Mention the change.
18823         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18824         via Sergey Poznyakoff <gray@gnu.org.ua>.
18825
18826 2008-12-21  Bruno Haible  <bruno@clisp.org>
18827
18828         * MODULES.html.sh (Extended multibyte and wide character utilities
18829         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18830         wcrtomb, wcsrtombs.
18831         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18832         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18833         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18834         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18835
18836 2008-12-21  Bruno Haible  <bruno@clisp.org>
18837
18838         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18839
18840 2008-12-21  Bruno Haible  <bruno@clisp.org>
18841
18842         * modules/wcsnrtombs-tests: New file.
18843         * tests/test-wcsnrtombs1.sh: New file.
18844         * tests/test-wcsnrtombs2.sh: New file.
18845         * tests/test-wcsnrtombs3.sh: New file.
18846         * tests/test-wcsnrtombs4.sh: New file.
18847         * tests/test-wcsnrtombs.c: New file.
18848
18849         New module 'wcsnrtombs'.
18850         * lib/wchar.in.h (wcsnrtombs): New declaration.
18851         * lib/wcsnrtombs.c: New file.
18852         * lib/wcsrtombs-state.c: New file.
18853         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18854         (internal_state): Remove variable.
18855         * m4/wcsnrtombs.m4: New file.
18856         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18857         compilation units.
18858         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18859         HAVE_WCSNRTOMBS.
18860         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18861         HAVE_WCSNRTOMBS.
18862         * modules/wcsnrtombs: New file.
18863         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18864         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18865
18866 2008-12-21  Bruno Haible  <bruno@clisp.org>
18867
18868         * modules/wcsrtombs-tests: New file.
18869         * tests/test-wcsrtombs1.sh: New file.
18870         * tests/test-wcsrtombs2.sh: New file.
18871         * tests/test-wcsrtombs3.sh: New file.
18872         * tests/test-wcsrtombs4.sh: New file.
18873         * tests/test-wcsrtombs.c: New file.
18874
18875         New module 'wcsrtombs'.
18876         * lib/wchar.in.h (wcsrtombs): New declaration.
18877         * lib/wcsrtombs.c: New file.
18878         * m4/wcsrtombs.m4: New file.
18879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18880         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18882         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18883         * modules/wcsrtombs: New file.
18884         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18885         bugs.
18886
18887 2008-12-21  Bruno Haible  <bruno@clisp.org>
18888
18889         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18890         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18891         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18892         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18893         if not correct.
18894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18895         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18896         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18897         m4/locale-zh.m4, m4/codeset.m4.
18898         * doc/posix-functions/wcrtomb.texi: Document the bug.
18899
18900 2008-12-21  Bruno Haible  <bruno@clisp.org>
18901
18902         Work around a btowc() bug on IRIX 6.5.
18903         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18904         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18905         REPLACE_WTOBC if not.
18906         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18907         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18908         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18909
18910 2008-12-21  Bruno Haible  <bruno@clisp.org>
18911
18912         * modules/wcrtomb-tests: New file.
18913         * tests/test-wcrtomb.sh: New file.
18914         * tests/test-wcrtomb.c: New file.
18915
18916         New module 'wcrtomb'.
18917         * lib/wchar.in.h (wcrtomb): New declaration.
18918         * lib/wcrtomb.c: New file.
18919         * m4/wcrtomb.m4: New file.
18920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18921         HAVE_WCRTOMB.
18922         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18923         HAVE_WCRTOMB.
18924         * modules/wcrtomb: New file.
18925         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18926
18927 2008-12-21  Bruno Haible  <bruno@clisp.org>
18928
18929         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18930         * modules/mbsrtowcs (Files): Likewise.
18931         * modules/wctob (Files): Likewise.
18932         * modules/c-strcase-tests (Files): Likewise.
18933         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18934         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18935         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18936         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18937         * modules/vasnprintf-posix-tests (Files): Likewise.
18938
18939 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18940
18941         gitlog-to-changelog: pass all command-line arguments to git-log
18942         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18943         it is sometimes convenient to filter the commits in various ways.
18944         gitlog-to-changelog only allows --since to specify a start date,
18945         but git-log itself supports many other filtering mechanisms.
18946         At the moment, I want to filter by branch name.  Rather than
18947         adding a --branch option to gitlog-to-changelog, it seems more
18948         flexible to simply pass all options directly to git-log and let
18949         git do the work.  Notice that this effectively makes --since a
18950         redundant option for gitlog-to-changelog, but removing it would
18951         require current usage to change since calls would then require
18952         an additional '--'.
18953
18954 2008-12-21  Bruno Haible  <bruno@clisp.org>
18955
18956         * modules/mbsnrtowcs-tests: New file.
18957         * tests/test-mbsnrtowcs1.sh: New file.
18958         * tests/test-mbsnrtowcs2.sh: New file.
18959         * tests/test-mbsnrtowcs3.sh: New file.
18960         * tests/test-mbsnrtowcs4.sh: New file.
18961         * tests/test-mbsnrtowcs.c: New file.
18962
18963         New module 'mbsnrtowcs'.
18964         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18965         * lib/mbsnrtowcs.c: New file.
18966         * lib/mbsrtowcs-state.c: New file.
18967         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18968         (internal_state): Remove variable.
18969         * m4/mbsnrtowcs.m4: New file.
18970         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18971         compilation units.
18972         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18973         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18974         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18975         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18976         * modules/mbsnrtowcs: New file.
18977         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18978         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18979         portability problem.
18980
18981 2008-12-21  Bruno Haible  <bruno@clisp.org>
18982
18983         Work around mbsrtowcs bug.
18984         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18985         (gl_FUNC_MBSRTOWCS): Invoke it.
18986         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18987         m4/locale-zh.m4.
18988         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18989
18990 2008-12-21  Bruno Haible  <bruno@clisp.org>
18991
18992         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18993
18994 2008-12-21  Bruno Haible  <bruno@clisp.org>
18995
18996         Update doc for AIX.
18997         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18998         16-bit wchar_t type.
18999         * doc/posix-functions/btowc.texi: Likewise.
19000         * doc/posix-functions/fgetwc.texi: Likewise.
19001         * doc/posix-functions/fgetws.texi: Likewise.
19002         * doc/posix-functions/fputwc.texi: Likewise.
19003         * doc/posix-functions/fputws.texi: Likewise.
19004         * doc/posix-functions/fwide.texi: Likewise.
19005         * doc/posix-functions/fwprintf.texi: Likewise.
19006         * doc/posix-functions/fwscanf.texi: Likewise.
19007         * doc/posix-functions/getwchar.texi: Likewise.
19008         * doc/posix-functions/getwc.texi: Likewise.
19009         * doc/posix-functions/iswalnum.texi: Likewise.
19010         * doc/posix-functions/iswalpha.texi: Likewise.
19011         * doc/posix-functions/iswblank.texi: Likewise.
19012         * doc/posix-functions/iswcntrl.texi: Likewise.
19013         * doc/posix-functions/iswctype.texi: Likewise.
19014         * doc/posix-functions/iswdigit.texi: Likewise.
19015         * doc/posix-functions/iswgraph.texi: Likewise.
19016         * doc/posix-functions/iswlower.texi: Likewise.
19017         * doc/posix-functions/iswprint.texi: Likewise.
19018         * doc/posix-functions/iswpunct.texi: Likewise.
19019         * doc/posix-functions/iswspace.texi: Likewise.
19020         * doc/posix-functions/iswupper.texi: Likewise.
19021         * doc/posix-functions/iswxdigit.texi: Likewise.
19022         * doc/posix-functions/mbrtowc.texi: Likewise.
19023         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19024         * doc/posix-functions/mbstowcs.texi: Likewise.
19025         * doc/posix-functions/mbtowc.texi: Likewise.
19026         * doc/posix-functions/putwchar.texi: Likewise.
19027         * doc/posix-functions/putwc.texi: Likewise.
19028         * doc/posix-functions/swprintf.texi: Likewise.
19029         * doc/posix-functions/tolower.texi: Likewise.
19030         * doc/posix-functions/toupper.texi: Likewise.
19031         * doc/posix-functions/towctrans.texi: Likewise.
19032         * doc/posix-functions/ungetwc.texi: Likewise.
19033         * doc/posix-functions/vswprintf.texi: Likewise.
19034         * doc/posix-functions/wcrtomb.texi: Likewise.
19035         * doc/posix-functions/wcscat.texi: Likewise.
19036         * doc/posix-functions/wcschr.texi: Likewise.
19037         * doc/posix-functions/wcscmp.texi: Likewise.
19038         * doc/posix-functions/wcscoll.texi: Likewise.
19039         * doc/posix-functions/wcscpy.texi: Likewise.
19040         * doc/posix-functions/wcscspn.texi: Likewise.
19041         * doc/posix-functions/wcsftime.texi: Likewise.
19042         * doc/posix-functions/wcslen.texi: Likewise.
19043         * doc/posix-functions/wcsncat.texi: Likewise.
19044         * doc/posix-functions/wcsncmp.texi: Likewise.
19045         * doc/posix-functions/wcsncpy.texi: Likewise.
19046         * doc/posix-functions/wcspbrk.texi: Likewise.
19047         * doc/posix-functions/wcsrchr.texi: Likewise.
19048         * doc/posix-functions/wcsrtombs.texi: Likewise.
19049         * doc/posix-functions/wcsspn.texi: Likewise.
19050         * doc/posix-functions/wcsstr.texi: Likewise.
19051         * doc/posix-functions/wcstod.texi: Likewise.
19052         * doc/posix-functions/wcstof.texi: Likewise.
19053         * doc/posix-functions/wcstoimax.texi: Likewise.
19054         * doc/posix-functions/wcstok.texi: Likewise.
19055         * doc/posix-functions/wcstold.texi: Likewise.
19056         * doc/posix-functions/wcstoll.texi: Likewise.
19057         * doc/posix-functions/wcstol.texi: Likewise.
19058         * doc/posix-functions/wcstombs.texi: Likewise.
19059         * doc/posix-functions/wcstoull.texi: Likewise.
19060         * doc/posix-functions/wcstoul.texi: Likewise.
19061         * doc/posix-functions/wcstoumax.texi: Likewise.
19062         * doc/posix-functions/wcswidth.texi: Likewise.
19063         * doc/posix-functions/wcsxfrm.texi: Likewise.
19064         * doc/posix-functions/wctob.texi: Likewise.
19065         * doc/posix-functions/wctomb.texi: Likewise.
19066         * doc/posix-functions/wctrans.texi: Likewise.
19067         * doc/posix-functions/wctype.texi: Likewise.
19068         * doc/posix-functions/wcwidth.texi: Likewise.
19069         * doc/posix-functions/wmemchr.texi: Likewise.
19070         * doc/posix-functions/wmemcmp.texi: Likewise.
19071         * doc/posix-functions/wmemcpy.texi: Likewise.
19072         * doc/posix-functions/wmemmove.texi: Likewise.
19073         * doc/posix-functions/wmemset.texi: Likewise.
19074         * doc/posix-functions/wprintf.texi: Likewise.
19075         * doc/posix-functions/wscanf.texi: Likewise.
19076
19077 2008-12-21  Bruno Haible  <bruno@clisp.org>
19078
19079         Update doc for HP-UX 11.11.
19080         * doc/posix-functions/btowc.texi: Clarify that the function is missing
19081         in HP-UX version 11.00, not in all versions of HP-UX 11.
19082         * doc/posix-functions/fwide.texi: Likewise.
19083         * doc/posix-functions/fwprintf.texi: Likewise.
19084         * doc/posix-functions/fwscanf.texi: Likewise.
19085         * doc/posix-functions/inet_ntop.texi: Likewise.
19086         * doc/posix-functions/inet_pton.texi: Likewise.
19087         * doc/posix-functions/mbrlen.texi: Likewise.
19088         * doc/posix-functions/mbrtowc.texi: Likewise.
19089         * doc/posix-functions/mbsinit.texi: Likewise.
19090         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19091         * doc/posix-functions/swprintf.texi: Likewise.
19092         * doc/posix-functions/swscanf.texi: Likewise.
19093         * doc/posix-functions/towctrans.texi: Likewise.
19094         * doc/posix-functions/vfwprintf.texi: Likewise.
19095         * doc/posix-functions/vswprintf.texi: Likewise.
19096         * doc/posix-functions/vwprintf.texi: Likewise.
19097         * doc/posix-functions/wcrtomb.texi: Likewise.
19098         * doc/posix-functions/wcsrtombs.texi: Likewise.
19099         * doc/posix-functions/wcsstr.texi: Likewise.
19100         * doc/posix-functions/wctob.texi: Likewise.
19101         * doc/posix-functions/wctrans.texi: Likewise.
19102         * doc/posix-functions/wmemchr.texi: Likewise.
19103         * doc/posix-functions/wmemcmp.texi: Likewise.
19104         * doc/posix-functions/wmemcpy.texi: Likewise.
19105         * doc/posix-functions/wmemmove.texi: Likewise.
19106         * doc/posix-functions/wmemset.texi: Likewise.
19107         * doc/posix-functions/wprintf.texi: Likewise.
19108         * doc/posix-functions/wscanf.texi: Likewise.
19109
19110 2008-12-21  Bruno Haible  <bruno@clisp.org>
19111
19112         Work around a portability problem.
19113         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
19114         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
19115
19116 2008-12-20  Bruno Haible  <bruno@clisp.org>
19117
19118         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
19119         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
19120         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
19121         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
19122         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
19123
19124         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
19125         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
19126         set.
19127         (GNULIB_defined_mbstate_t): New macro.
19128         (mbsinit): Redefine if REPLACE_MBSINIT is set.
19129         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
19130         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
19131         reuses the system's mbrtowc function but works around the bugs.
19132         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
19133         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
19134         macros.
19135         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
19136         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
19137         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
19138         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
19139         REPLACE_MBSINIT if mbsinit needs to be overridden.
19140         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
19141         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19142         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
19143         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19144         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19145         m4/locale-zh.m4.
19146         (Depends): Add mbsinit.
19147         * modules/mbsinit (Depends): Add mbrtowc.
19148         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
19149
19150 2008-12-20  Bruno Haible  <bruno@clisp.org>
19151
19152         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
19153         so that there are no conversion errors on AIX.
19154         * tests/test-mbsrtowcs.c (main): LIkewise.
19155
19156 2008-12-20  Bruno Haible  <bruno@clisp.org>
19157
19158         Work around wctob bug on Solaris <= 9.
19159         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
19160         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
19161         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
19162         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
19163         * modules/wctob (Files): Add m4/locale-fr.m4.
19164         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
19165
19166 2008-12-20  Bruno Haible  <bruno@clisp.org>
19167
19168         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
19169         /dev/null.
19170         * tests/test-select-in.sh: Likewise.
19171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19172
19173 2008-12-20  Bruno Haible  <bruno@clisp.org>
19174
19175         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
19176         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
19177         Cygwin 1.5.x.
19178
19179 2008-12-20  Bruno Haible  <bruno@clisp.org>
19180
19181         Ensure mbstate_t is defined on HP-UX 11.11.
19182         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
19183         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
19184         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
19185         AC_USE_SYSTEM_EXTENSIONS.
19186         * modules/fnmatch (Depends-on): Add extensions.
19187         * modules/mbrlen (Depends-on): Likewise.
19188         * modules/mbrtowc (Depends-on): Likewise.
19189         * modules/mbsinit (Depends-on): Likewise.
19190         * modules/mbsrtowcs (Depends-on): Likewise.
19191         * modules/mbswidth (Depends-on): Likewise.
19192         * modules/quotearg (Depends-on): Likewise.
19193         * modules/strftime (Depends-on): Likewise.
19194
19195 2008-12-20  Bruno Haible  <bruno@clisp.org>
19196
19197         Ensure wctob is declared on IRIX 6.5.
19198         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
19199         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
19200         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
19201         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
19202         of HAVE_WCTOB.
19203         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
19204         HAVE_WCTOB.
19205         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
19206
19207 2008-12-19  Bruno Haible  <bruno@clisp.org>
19208
19209         * modules/mbsrtowcs-tests: New file.
19210         * tests/test-mbsrtowcs1.sh: New file.
19211         * tests/test-mbsrtowcs2.sh: New file.
19212         * tests/test-mbsrtowcs3.sh: New file.
19213         * tests/test-mbsrtowcs4.sh: New file.
19214         * tests/test-mbsrtowcs.c: New file.
19215
19216         New module 'mbsrtowcs'.
19217         * lib/wchar.in.h (mbsrtowcs): New declaration.
19218         * lib/mbsrtowcs.c: New file.
19219         * m4/mbsrtowcs.m4: New file.
19220         * modules/mbsrtowcs: New file.
19221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19222         HAVE_MBSRTOWCS.
19223         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19224         HAVE_MBSRTOWCS.
19225         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19226
19227 2008-12-19  Bruno Haible  <bruno@clisp.org>
19228
19229         New module 'mbrlen'.
19230         * lib/wchar.in.h (mbrlen): New declaration.
19231         * lib/mbrlen.c: New file.
19232         * m4/mbrlen.m4: New file.
19233         * modules/mbrlen: New file.
19234         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19235         HAVE_MBRLEN.
19236         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19237         HAVE_MBRLEN.
19238         * doc/posix-functions/mbrlen.texi: Document the new module.
19239
19240 2008-12-19  Bruno Haible  <bruno@clisp.org>
19241
19242         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19243         * modules/mbrtowc (Depends-on): Add verify.
19244         Suggested by Paul Eggert.
19245
19246 2008-12-18  Bruno Haible  <bruno@clisp.org>
19247
19248         * modules/mbsinit-tests: New file.
19249         * tests/test-mbsinit.sh: New file.
19250         * tests/test-mbsinit.c: New file.
19251
19252 2008-12-18  Bruno Haible  <bruno@clisp.org>
19253
19254         * modules/mbrtowc-tests: New file.
19255         * tests/test-mbrtowc1.sh: New file.
19256         * tests/test-mbrtowc2.sh: New file.
19257         * tests/test-mbrtowc3.sh: New file.
19258         * tests/test-mbrtowc4.sh: New file.
19259         * tests/test-mbrtowc.c: New file.
19260
19261         New module 'mbrtowc'.
19262         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19263         mbsinit and mbrtowc.
19264         (mbrtowc): New declaration.
19265         * lib/mbrtowc.c: New file.
19266         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19267         * modules/mbrtowc: New file.
19268         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19269         HAVE_MBRTOWC.
19270         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19271         HAVE_MBRTOWC.
19272         * doc/posix-functions/mbrtowc.texi: Document the new module.
19273
19274 2008-12-18  Bruno Haible  <bruno@clisp.org>
19275
19276         New module 'wctob'.
19277         * lib/wchar.in.h (wctob): New declaration.
19278         * lib/wctob.c: New file.
19279         * m4/wctob.m4: New file.
19280         * modules/wctob: New file.
19281         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19282         HAVE_WCTOB.
19283         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19284         * doc/posix-functions/wctob.texi: Document the new module.
19285
19286 2008-12-18  Bruno Haible  <bruno@clisp.org>
19287
19288         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19289         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19290
19291 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19292
19293         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19294         G. Christensen" <tgc@jupiterrise.com>.
19295
19296         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19297         G. Christensen" <tgc@jupiterrise.com>.
19298
19299         * lib/flock.c: Need to include string.h.  Reported by "Tom
19300         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19301         <ebb9@byu.net>.
19302
19303 2008-12-18  Bruno Haible  <bruno@clisp.org>
19304
19305         * m4/locale-ja.m4: New file, from GNU gettext.
19306
19307 2008-12-17  Bruno Haible  <bruno@clisp.org>
19308
19309         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19310         Suggested by Eric Blake.
19311
19312 2008-12-17  Bruno Haible  <bruno@clisp.org>
19313
19314         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19315
19316 2008-12-17  Bruno Haible  <bruno@clisp.org>
19317
19318         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19319         * modules/mbsinit (Depends-on): Add verify.
19320         Suggested by Paul Eggert.
19321
19322 2008-12-17  Bruno Haible  <bruno@clisp.org>
19323
19324         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19325         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19326         gl_FUNC_MBRTOWC.
19327         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19328         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19329         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19330         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19331         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19332         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19333         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19334         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19335         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19336         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19337         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19338         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19339         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19340         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19341         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19342         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19343         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19344         * modules/trim (configure.ac): Likewise.
19345
19346 2008-12-17  Bruno Haible  <bruno@clisp.org>
19347
19348         * modules/btowc-tests: New file.
19349         * tests/test-btowc1.sh: New file.
19350         * tests/test-btowc2.sh: New file.
19351         * tests/test-btowc.c: New file.
19352
19353         New module 'btowc'.
19354         * lib/wchar.in.h (btowc): New declaration.
19355         * lib/btowc.c: New file.
19356         * m4/btowc.m4: New file.
19357         * modules/btowc: New file.
19358         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19359         HAVE_BTOWC.
19360         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19361         * doc/posix-functions/btowc.texi: Document the new module.
19362
19363 2008-12-17  Bruno Haible  <bruno@clisp.org>
19364
19365         New module 'mbsinit'.
19366         * lib/wchar.in.h (mbsinit): New declaration.
19367         * lib/mbsinit.c: New file.
19368         * m4/mbsinit.m4: New file.
19369         * modules/mbsinit: New file.
19370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19371         HAVE_MBSINIT.
19372         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19373         HAVE_MBSINIT.
19374         * doc/posix-functions/mbsinit.texi: Document the new module.
19375
19376 2008-12-16  Bruno Haible  <bruno@clisp.org>
19377
19378         * lib/unistd.in.h: Add comment.
19379         * tests/test-environ.c: Don't include <stdlib.h>.
19380
19381 2008-12-16  Bruno Haible  <bruno@clisp.org>
19382
19383         * lib/parse-duration.h (parse_duration): Document return value
19384         convention.
19385         * lib/parse-duration.c: Include specification header first. Add
19386         comments.
19387         (_): Remove macro.
19388         (parse_year_month_day, parse_hour_minute_second): Move side effects
19389         outside of strchr call.
19390         (parse_non_iso8601): Move side effects outside of isspace call.
19391         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19392         call.
19393
19394 2008-12-16  Bruno Haible  <bruno@clisp.org>
19395
19396         * tests/test-parse-duration.sh: Produce no output when the test
19397         succeeds.
19398
19399 2008-12-16  Bruno Haible  <bruno@clisp.org>
19400
19401         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19402         expressions.
19403
19404 2008-12-15  Bruno Haible  <bruno@clisp.org>
19405
19406         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19407         * doc/glibc-functions/flistxattr.texi: Likewise.
19408         * doc/glibc-functions/fopencookie.texi: Likewise.
19409         * doc/glibc-functions/fremovexattr.texi: Likewise.
19410         * doc/glibc-functions/fsetxattr.texi: Likewise.
19411         * doc/glibc-functions/getxattr.texi: Likewise.
19412         * doc/glibc-functions/lgetxattr.texi: Likewise.
19413         * doc/glibc-functions/listxattr.texi: Likewise.
19414         * doc/glibc-functions/llistxattr.texi: Likewise.
19415         * doc/glibc-functions/lremovexattr.texi: Likewise.
19416         * doc/glibc-functions/lsetxattr.texi: Likewise.
19417         * doc/glibc-functions/removexattr.texi: Likewise.
19418         * doc/glibc-functions/setxattr.texi: Likewise.
19419         * doc/posix-functions/open_memstream.texi: Likewise.
19420
19421 2008-12-15  Eric Blake  <ebb9@byu.net>
19422
19423         Update doc for cygwin 1.7.
19424         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19425         functions.
19426         * doc/posix-functions/fchmodat.texi: Likewise.
19427         * doc/posix-functions/fchownat.texi: Likewise.
19428         * doc/posix-functions/fdopendir.texi: Likewise.
19429         * doc/posix-functions/fmemopen.texi: Likewise.
19430         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19431         * doc/posix-functions/fstatat.texi: Likewise.
19432         * doc/posix-functions/futimens.texi: Likewise.
19433         * doc/posix-functions/gai_strerror.texi: Likewise.
19434         * doc/posix-functions/getaddrinfo.texi: Likewise.
19435         * doc/posix-functions/getnameinfo.texi: Likewise.
19436         * doc/posix-functions/if_freenameindex.texi: Likewise.
19437         * doc/posix-functions/if_indextoname.texi: Likewise.
19438         * doc/posix-functions/if_nameindex.texi: Likewise.
19439         * doc/posix-functions/if_nametoindex.texi: Likewise.
19440         * doc/posix-functions/insque.texi: Likewise.
19441         * doc/posix-functions/linkat.texi: Likewise.
19442         * doc/posix-functions/llrint.texi: Likewise.
19443         * doc/posix-functions/llrintf.texi: Likewise.
19444         * doc/posix-functions/llrintl.texi: Likewise.
19445         * doc/posix-functions/lockf.texi: Likewise.
19446         * doc/posix-functions/lrintl.texi: Likewise.
19447         * doc/posix-functions/mkdirat.texi: Likewise.
19448         * doc/posix-functions/mkfifoat.texi: Likewise.
19449         * doc/posix-functions/mknodat.texi: Likewise.
19450         * doc/posix-functions/mq_close.texi: Likewise.
19451         * doc/posix-functions/mq_getattr.texi: Likewise.
19452         * doc/posix-functions/mq_notify.texi: Likewise.
19453         * doc/posix-functions/mq_open.texi: Likewise.
19454         * doc/posix-functions/mq_receive.texi: Likewise.
19455         * doc/posix-functions/mq_send.texi: Likewise.
19456         * doc/posix-functions/mq_setattr.texi: Likewise.
19457         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19458         * doc/posix-functions/mq_timedsend.texi: Likewise.
19459         * doc/posix-functions/mq_unlink.texi: Likewise.
19460         * doc/posix-functions/open_memstream.texi: Likewise.
19461         * doc/posix-functions/openat.texi: Likewise.
19462         * doc/posix-functions/posix_fadvise.texi: Likewise.
19463         * doc/posix-functions/posix_fallocate.texi: Likewise.
19464         * doc/posix-functions/posix_madvise.texi: Likewise.
19465         * doc/posix-functions/posix_memalign.texi: Likewise.
19466         * doc/posix-functions/posix_openpt.texi: Likewise.
19467         * doc/posix-functions/readlinkat.texi: Likewise.
19468         * doc/posix-functions/remque.texi: Likewise.
19469         * doc/posix-functions/renameat.texi: Likewise.
19470         * doc/posix-functions/rintl.texi: Likewise.
19471         * doc/posix-functions/sem_unlink.texi: Likewise.
19472         * doc/posix-functions/shm_open.texi: Likewise.
19473         * doc/posix-functions/shm_unlink.texi: Likewise.
19474         * doc/posix-functions/signgam.texi: Likewise.
19475         * doc/posix-functions/sigset.texi: Likewise.
19476         * doc/posix-functions/stpcpy.texi: Likewise.
19477         * doc/posix-functions/stpncpy.texi: Likewise.
19478         * doc/posix-functions/strerror.texi: Likewise.
19479         * doc/posix-functions/strtod.texi: Likewise.
19480         * doc/posix-functions/symlinkat.texi: Likewise.
19481         * doc/posix-functions/unlinkat.texi: Likewise.
19482         * doc/posix-functions/utimensat.texi: Likewise.
19483         * doc/glibc-functions/bindresvport.texi: Likewise.
19484         * doc/glibc-functions/dn_expand.texi: Likewise.
19485         * doc/glibc-functions/exp10.texi: Likewise.
19486         * doc/glibc-functions/exp10f.texi: Likewise.
19487         * doc/glibc-functions/fgetxattr.texi: Likewise.
19488         * doc/glibc-functions/flistxattr.texi: Likewise.
19489         * doc/glibc-functions/fopencookie.texi: Likewise.
19490         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19491         * doc/glibc-functions/fremovexattr.texi: Likewise.
19492         * doc/glibc-functions/fsetxattr.texi: Likewise.
19493         * doc/glibc-functions/getifaddrs.texi: Likewise.
19494         * doc/glibc-functions/getxattr.texi: Likewise.
19495         * doc/glibc-functions/lgetxattr.texi: Likewise.
19496         * doc/glibc-functions/listxattr.texi: Likewise.
19497         * doc/glibc-functions/llistxattr.texi: Likewise.
19498         * doc/glibc-functions/lremovexattr.texi: Likewise.
19499         * doc/glibc-functions/lsetxattr.texi: Likewise.
19500         * doc/glibc-functions/pow10.texi: Likewise.
19501         * doc/glibc-functions/pow10f.texi: Likewise.
19502         * doc/glibc-functions/rcmd_af.texi: Likewise.
19503         * doc/glibc-functions/removexattr.texi: Likewise.
19504         * doc/glibc-functions/res_init.texi: Likewise.
19505         * doc/glibc-functions/res_mkquery.texi: Likewise.
19506         * doc/glibc-functions/res_query.texi: Likewise.
19507         * doc/glibc-functions/res_querydomain.texi: Likewise.
19508         * doc/glibc-functions/res_send.texi: Likewise.
19509         * doc/glibc-functions/rresvport_af.texi: Likewise.
19510         * doc/glibc-functions/setxattr.texi: Likewise.
19511         * doc/glibc-functions/strcasestr.texi: Likewise.
19512
19513 2008-12-15  Bruno Haible  <bruno@clisp.org>
19514
19515         Fix compilation error on OSF/1 4.0.
19516         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19517         <sys/time.h>, simply delegate to the system header.
19518         Reported by Daniel Richard G. <oss@teragram.com>.
19519
19520 2008-12-15  Bruno Haible  <bruno@clisp.org>
19521
19522         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19523         * doc/posix-functions/fchmodat.texi: Likewise.
19524         * doc/posix-functions/fchownat.texi: Likewise.
19525         * doc/posix-functions/fdopendir.texi: Likewise.
19526         * doc/posix-functions/fstatat.texi: Likewise.
19527         * doc/posix-functions/mkdirat.texi: Likewise.
19528         * doc/posix-functions/unlinkat.texi: Likewise.
19529
19530 2008-12-14  Bruno Haible  <bruno@clisp.org>
19531
19532         Update doc for POSIX:2008.
19533         * doc/posix-functions/faccessat.texi: New file.
19534         * doc/posix-functions/fchmodat.texi: New file.
19535         * doc/posix-functions/fchownat.texi: New file.
19536         * doc/posix-functions/fdopendir.texi: New file.
19537         * doc/posix-functions/fstatat.texi: New file.
19538         * doc/posix-functions/futimens.texi: New file.
19539         * doc/posix-functions/linkat.texi: New file.
19540         * doc/posix-functions/mkdirat.texi: New file.
19541         * doc/posix-functions/mkfifoat.texi: New file.
19542         * doc/posix-functions/mknodat.texi: New file.
19543         * doc/posix-functions/open_wmemstream.texi: New file.
19544         * doc/posix-functions/openat.texi: New file.
19545         * doc/posix-functions/psiginfo.texi: New file.
19546         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19547         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19548         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19549         * doc/posix-functions/readlinkat.texi: New file.
19550         * doc/posix-functions/renameat.texi: New file.
19551         * doc/posix-functions/strerror_l.texi: New file.
19552         * doc/posix-functions/symlinkat.texi: New file.
19553         * doc/posix-functions/unlinkat.texi: New file.
19554         * doc/posix-functions/utimensat.texi: New file.
19555         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19556
19557 2008-12-14  Bruno Haible  <bruno@clisp.org>
19558
19559         Update doc for POSIX:2008.
19560         * doc/posix-functions/alphasort.texi: Renamed from
19561         doc/glibc-functions/alphasort.texi.
19562         * doc/posix-functions/dirfd.texi: Renamed from
19563         doc/glibc-functions/dirfd.texi.
19564         * doc/posix-functions/dprintf.texi: Renamed from
19565         doc/glibc-functions/dprintf.texi.
19566         * doc/posix-functions/duplocale.texi: Renamed from
19567         doc/glibc-functions/duplocale.texi.
19568         * doc/posix-functions/fexecve.texi: Renamed from
19569         doc/glibc-functions/fexecve.texi.
19570         * doc/posix-functions/fmemopen.texi: Renamed from
19571         doc/glibc-functions/fmemopen.texi.
19572         * doc/posix-functions/freelocale.texi: Renamed from
19573         doc/glibc-functions/freelocale.texi.
19574         * doc/posix-functions/getdate_err.texi: Renamed from
19575         doc/glibc-functions/getdate_err.texi.
19576         * doc/posix-functions/isalnum_l.texi: Renamed from
19577         doc/glibc-functions/isalnum_l.texi.
19578         * doc/posix-functions/isalpha_l.texi: Renamed from
19579         doc/glibc-functions/isalpha_l.texi.
19580         * doc/posix-functions/isblank_l.texi: Renamed from
19581         doc/glibc-functions/isblank_l.texi.
19582         * doc/posix-functions/iscntrl_l.texi: Renamed from
19583         doc/glibc-functions/iscntrl_l.texi.
19584         * doc/posix-functions/isdigit_l.texi: Renamed from
19585         doc/glibc-functions/isdigit_l.texi.
19586         * doc/posix-functions/isgraph_l.texi: Renamed from
19587         doc/glibc-functions/isgraph_l.texi.
19588         * doc/posix-functions/islower_l.texi: Renamed from
19589         doc/glibc-functions/islower_l.texi.
19590         * doc/posix-functions/isprint_l.texi: Renamed from
19591         doc/glibc-functions/isprint_l.texi.
19592         * doc/posix-functions/ispunct_l.texi: Renamed from
19593         doc/glibc-functions/ispunct_l.texi.
19594         * doc/posix-functions/isspace_l.texi: Renamed from
19595         doc/glibc-functions/isspace_l.texi.
19596         * doc/posix-functions/isupper_l.texi: Renamed from
19597         doc/glibc-functions/isupper_l.texi.
19598         * doc/posix-functions/iswalnum_l.texi: Renamed from
19599         doc/glibc-functions/iswalnum_l.texi.
19600         * doc/posix-functions/iswalpha_l.texi: Renamed from
19601         doc/glibc-functions/iswalpha_l.texi.
19602         * doc/posix-functions/iswblank_l.texi: Renamed from
19603         doc/glibc-functions/iswblank_l.texi.
19604         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19605         doc/glibc-functions/iswcntrl_l.texi.
19606         * doc/posix-functions/iswctype_l.texi: Renamed from
19607         doc/glibc-functions/iswctype_l.texi.
19608         * doc/posix-functions/iswdigit_l.texi: Renamed from
19609         doc/glibc-functions/iswdigit_l.texi.
19610         * doc/posix-functions/iswgraph_l.texi: Renamed from
19611         doc/glibc-functions/iswgraph_l.texi.
19612         * doc/posix-functions/iswlower_l.texi: Renamed from
19613         doc/glibc-functions/iswlower_l.texi.
19614         * doc/posix-functions/iswprint_l.texi: Renamed from
19615         doc/glibc-functions/iswprint_l.texi.
19616         * doc/posix-functions/iswpunct_l.texi: Renamed from
19617         doc/glibc-functions/iswpunct_l.texi.
19618         * doc/posix-functions/iswspace_l.texi: Renamed from
19619         doc/glibc-functions/iswspace_l.texi.
19620         * doc/posix-functions/iswupper_l.texi: Renamed from
19621         doc/glibc-functions/iswupper_l.texi.
19622         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19623         doc/glibc-functions/iswxdigit_l.texi.
19624         * doc/posix-functions/isxdigit_l.texi: Renamed from
19625         doc/glibc-functions/isxdigit_l.texi.
19626         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19627         doc/glibc-functions/mbsnrtowcs.texi.
19628         * doc/posix-functions/mkdtemp.texi: Renamed from
19629         doc/glibc-functions/mkdtemp.texi.
19630         * doc/posix-functions/newlocale.texi: Renamed from
19631         doc/glibc-functions/newlocale.texi.
19632         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19633         doc/glibc-functions/nl_langinfo_l.texi.
19634         * doc/posix-functions/open_memstream.texi: Renamed from
19635         doc/glibc-functions/open_memstream.texi.
19636         * doc/posix-functions/opterr.texi: Renamed from
19637         doc/glibc-functions/opterr.texi.
19638         * doc/posix-functions/optind.texi: Renamed from
19639         doc/glibc-functions/optind.texi.
19640         * doc/posix-functions/optopt.texi: Renamed from
19641         doc/glibc-functions/optopt.texi.
19642         * doc/posix-functions/psignal.texi: Renamed from
19643         doc/glibc-functions/psignal.texi.
19644         * doc/posix-functions/scandir.texi: Renamed from
19645         doc/glibc-functions/scandir.texi.
19646         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19647         doc/glibc-functions/sched_get_priority_min.texi.
19648         * doc/posix-functions/signgam.texi: Renamed from
19649         doc/glibc-functions/signgam.texi.
19650         * doc/posix-functions/stpcpy.texi: Renamed from
19651         doc/glibc-functions/stpcpy.texi.
19652         * doc/posix-functions/stpncpy.texi: Renamed from
19653         doc/glibc-functions/stpncpy.texi.
19654         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19655         doc/glibc-functions/strcasecmp_l.texi.
19656         * doc/posix-functions/strcoll_l.texi: Renamed from
19657         doc/glibc-functions/strcoll_l.texi.
19658         * doc/posix-functions/strfmon_l.texi: Renamed from
19659         doc/glibc-functions/strfmon_l.texi.
19660         * doc/posix-functions/strftime_l.texi: Renamed from
19661         doc/glibc-functions/strftime_l.texi.
19662         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19663         doc/glibc-functions/strncasecmp_l.texi.
19664         * doc/posix-functions/strndup.texi: Renamed from
19665         doc/glibc-functions/strndup.texi.
19666         * doc/posix-functions/strnlen.texi: Renamed from
19667         doc/glibc-functions/strnlen.texi.
19668         * doc/posix-functions/strsignal.texi: Renamed from
19669         doc/glibc-functions/strsignal.texi.
19670         * doc/posix-functions/strxfrm_l.texi: Renamed from
19671         doc/glibc-functions/strxfrm_l.texi.
19672         * doc/posix-functions/timer_gettime.texi: Renamed from
19673         doc/glibc-functions/timer_gettime.texi.
19674         * doc/posix-functions/tolower_l.texi: Renamed from
19675         doc/glibc-functions/tolower_l.texi.
19676         * doc/posix-functions/toupper_l.texi: Renamed from
19677         doc/glibc-functions/toupper_l.texi.
19678         * doc/posix-functions/towctrans_l.texi: Renamed from
19679         doc/glibc-functions/towctrans_l.texi.
19680         * doc/posix-functions/towlower_l.texi: Renamed from
19681         doc/glibc-functions/towlower_l.texi.
19682         * doc/posix-functions/towupper_l.texi: Renamed from
19683         doc/glibc-functions/towupper_l.texi.
19684         * doc/posix-functions/uselocale.texi: Renamed from
19685         doc/glibc-functions/uselocale.texi.
19686         * doc/posix-functions/vdprintf.texi: Renamed from
19687         doc/glibc-functions/vdprintf.texi.
19688         * doc/posix-functions/wcpcpy.texi:
19689         Renamed from doc/glibc-functions/wcpcpy.texi.
19690         * doc/posix-functions/wcpncpy.texi: Renamed from
19691         doc/glibc-functions/wcpncpy.texi.
19692         * doc/posix-functions/wcscasecmp.texi: Renamed from
19693         doc/glibc-functions/wcscasecmp.texi.
19694         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19695         doc/glibc-functions/wcscasecmp_l.texi.
19696         * doc/posix-functions/wcscoll_l.texi: Renamed from
19697         doc/glibc-functions/wcscoll_l.texi.
19698         * doc/posix-functions/wcsdup.texi: Renamed from
19699         doc/glibc-functions/wcsdup.texi.
19700         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19701         doc/glibc-functions/wcsncasecmp.texi.
19702         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19703         doc/glibc-functions/wcsncasecmp_l.texi.
19704         * doc/posix-functions/wcsnlen.texi: Renamed from
19705         doc/glibc-functions/wcsnlen.texi.
19706         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19707         doc/glibc-functions/wcsnrtombs.texi.
19708         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19709         doc/glibc-functions/wcsxfrm_l.texi.
19710         * doc/posix-functions/wctrans_l.texi: Renamed from
19711         doc/glibc-functions/wctrans_l.texi.
19712         * doc/posix-functions/wctype_l.texi: Renamed from
19713         doc/glibc-functions/wctype_l.texi.
19714         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19715         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19716         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19717         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19718         these subsections.
19719         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19720         Remove sections.
19721
19722 2008-12-14  Bruno Haible  <bruno@clisp.org>
19723
19724         Update doc for POSIX:2008.
19725         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19726
19727 2008-12-14  Bruno Haible  <bruno@clisp.org>
19728
19729         Update doc for POSIX:2008.
19730         * doc/pastposix-functions/bcmp.texi: Renamed from
19731         doc/posix-functions/bcmp.texi.
19732         * doc/pastposix-functions/bcopy.texi: Renamed from
19733         doc/posix-functions/bcopy.texi.
19734         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19735         doc/posix-functions/bsd_signal.texi.
19736         * doc/pastposix-functions/bzero.texi: Renamed from
19737         doc/posix-functions/bzero.texi.
19738         * doc/pastposix-functions/ecvt.texi: Renamed from
19739         doc/posix-functions/ecvt.texi.
19740         * doc/pastposix-functions/fcvt.texi: Renamed from
19741         doc/posix-functions/fcvt.texi.
19742         * doc/pastposix-functions/ftime.texi: Renamed from
19743         doc/posix-functions/ftime.texi.
19744         * doc/pastposix-functions/gcvt.texi: Renamed from
19745         doc/posix-functions/gcvt.texi.
19746         * doc/pastposix-functions/getcontext.texi: Renamed from
19747         doc/posix-functions/getcontext.texi.
19748         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19749         doc/posix-functions/gethostbyaddr.texi.
19750         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19751         doc/posix-functions/gethostbyname.texi.
19752         * doc/pastposix-functions/getwd.texi: Renamed from
19753         doc/posix-functions/getwd.texi.
19754         * doc/pastposix-functions/h_errno.texi: Renamed from
19755         doc/posix-functions/h_errno.texi.
19756         * doc/pastposix-functions/index.texi: Renamed from
19757         doc/posix-functions/index.texi.
19758         * doc/pastposix-functions/makecontext.texi: Renamed from
19759         doc/posix-functions/makecontext.texi.
19760         * doc/pastposix-functions/mktemp.texi: Renamed from
19761         doc/posix-functions/mktemp.texi.
19762         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19763         doc/posix-functions/pthread_attr_getstackaddr.texi.
19764         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19765         doc/posix-functions/pthread_attr_setstackaddr.texi.
19766         * doc/pastposix-functions/rindex.texi: Renamed from
19767         doc/posix-functions/rindex.texi.
19768         * doc/pastposix-functions/scalb.texi: Renamed from
19769         doc/posix-functions/scalb.texi.
19770         * doc/pastposix-functions/setcontext.texi: Renamed from
19771         doc/posix-functions/setcontext.texi.
19772         * doc/pastposix-functions/swapcontext.texi: Renamed from
19773         doc/posix-functions/swapcontext.texi.
19774         * doc/pastposix-functions/ualarm.texi: Renamed from
19775         doc/posix-functions/ualarm.texi.
19776         * doc/pastposix-functions/usleep.texi: Renamed from
19777         doc/posix-functions/usleep.texi.
19778         * doc/pastposix-functions/vfork.texi: Renamed from
19779         doc/posix-functions/vfork.texi.
19780         * doc/pastposix-functions/wcswcs.texi: Renamed from
19781         doc/posix-functions/wcswcs.texi.
19782         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19783         (Function Substitutes): Update.
19784
19785 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19786
19787         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19788         m4/strerror.m4.
19789
19790 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19791             Bruno Haible  <bruno@clisp.org>
19792
19793         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19794
19795 2008-12-13  Bruno Haible  <bruno@clisp.org>
19796
19797         * modules/strtoull (Depends-on): Remove unistd.
19798
19799 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19800
19801         * modules/strtoull (Depends-on): Add stdlib.
19802
19803 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19804
19805         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19806
19807 2008-12-10  Jim Meyering  <meyering@redhat.com>
19808
19809         gl_ASSERT: don't say assertions are disabled when they're not
19810         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19811         "checking whether to enable assertions... no", when they are in
19812         fact enabled.  This is solely a bug in the output of configure.
19813         In spite of saying "no", NDEBUG was not defined in that case.
19814         Also, as noted by Eric Blake, leave assertions enabled upon
19815         --enable-assert=INVALID.
19816
19817 2008-12-10  Bruno Haible  <bruno@clisp.org>
19818
19819         Change MODULES.html to refer to POSIX:2008 where possible.
19820         * MODULES.html.sh (POSIX2008_URL): New variable.
19821         (posix_headers): Remove sys/timeb, ucontext.
19822         (posix2001_headers): New variable.
19823         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19824         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19825         index, makecontext, mktemp, pthread_attr_getstackaddr,
19826         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19827         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19828         (posix2001_functions): New variable.
19829         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19830         otherwise.
19831
19832 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19833
19834         add missing include to parse-duration.c
19835         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19836         * modules/parse-duration (Depends-on): Add xalloc.
19837
19838         fix sed script reading maint.mk
19839         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19840         (syntax-check-rules): Use it.
19841
19842 2008-12-09  Bruno Haible  <bruno@clisp.org>
19843
19844         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19845         MacOS X 10.4/PowerPC.
19846         Reported by Simon Josefsson.
19847
19848 2008-12-08  Jim Meyering  <meyering@redhat.com>
19849
19850         work around mingw's lack of some S_IF definitions
19851         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19852         Reported by Simon Josefsson.
19853
19854 2008-12-08  Bruno Haible  <bruno@clisp.org>
19855
19856         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19857         applied to variables. Needed on MacOS X 10.4/PowerPC.
19858         Reported by Simon Josefsson.
19859
19860 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19861         and Eric Blake  <ebb9@byu.net>
19862
19863         assert: honor --enable-assert
19864         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19865         order to honor --enable-assert, rather than treating it as a
19866         synonym for --disable-assert.
19867
19868 2008-12-08  Jim Meyering  <meyering@redhat.com>
19869
19870         * lib/posixtm.c: Remove now-useless declaration of mktime.
19871
19872         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19873
19874 2008-12-07  Bruno Haible  <bruno@clisp.org>
19875
19876         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19877         test_once): Mark functions as static.
19878         * tests/test-tls.c (test_tls): Likewise.
19879
19880 2008-12-07  Bruno Haible  <bruno@clisp.org>
19881
19882         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19883         iconv_register_autodetect.
19884
19885 2008-12-07  Jim Meyering  <meyering@redhat.com>
19886
19887         posixtm.c: avoid a warning
19888         * lib/posixtm.c (posixtime): Don't initialize tm0.
19889         It's no longer needed to placate gcc4's -Wuninitialized,
19890         and the attempt to placate would elicit a new warning.
19891
19892         unicodeio.c: mark unused parameters
19893         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19894         (fallback_failure_callback): Likewise.
19895
19896 2008-12-07  Bruno Haible  <bruno@clisp.org>
19897
19898         * gnulib-tool (func_create_testdir): When building the tests
19899         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19900         Reported by Simon Josefsson.
19901
19902 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19903
19904         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19905
19906 2008-12-06  Bruno Haible  <bruno@clisp.org>
19907
19908         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19909         Suggested by Eric Blake.
19910
19911 2008-12-06  Bruno Haible  <bruno@clisp.org>
19912
19913         Fix a c-stack test failure on MacOS X.
19914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19915         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19916         handler for SIGBUS as well.
19917         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19918         install a signal handler for SIGBUS as well.
19919         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19920
19921 2008-12-06  Bruno Haible  <bruno@clisp.org>
19922
19923         Advocacy documentation.
19924         * doc/gnulib-intro.texi (Benefits): New section.
19925         * doc/gnulib.texi: Update.
19926
19927 2008-12-06  Bruno Haible  <bruno@clisp.org>
19928
19929         Document the 'manywarnings' module.
19930         * doc/manywarnings.texi: New file.
19931         * doc/gnulib.texi: Include it.
19932
19933 2008-12-05  Eric Blake  <ebb9@byu.net>
19934
19935         tests: silence some gcc warnings
19936         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19937         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19938         type mismatches.
19939
19940 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19941             Bruno Haible  <bruno@clisp.org>
19942
19943         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19944
19945 2008-11-29  Jim Meyering  <meyering@redhat.com>
19946
19947         unicodeio.c: mark unused parameters
19948         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19949         (fallback_failure_callback): Likewise.
19950
19951         fts: fix a thinko
19952         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19953         (set_stat_type): Return S_IF*-valued "type" directly.
19954         Prompted by James Youngman's spotting a related bug.
19955         Confirmed by further testing through find.
19956
19957         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19958         * lib/fts.c (D_TYPE): Define.
19959         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19960         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19961         (s_ifmt_shift_bits): New function.
19962         (set_stat_type): New function.
19963         (fts_build): When not calling fts_stat, call set_stat_type
19964         to propagate dirent.d_type info to fts_read caller.
19965         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19966         fts_statp->st_mode type information may be valid.
19967
19968 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19969
19970         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19971         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19972         <sds@gnu.org>.
19973
19974 2008-11-20  Bruno Haible  <bruno@clisp.org>
19975
19976         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19977         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19978         INCLUDE_NEXT.
19979         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19980         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19981         * modules/math (Makefile.am): Substitute
19982         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19983         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19984
19985 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19986             Bruno Haible  <bruno@clisp.org>
19987
19988         * lib/stdint.in.h: Define all type macros so that their expansion is
19989         a single typedef'ed token. Fixes a compilation failure in Boost which
19990         does "using ::int8_t;".
19991
19992 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19993
19994         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19995         gl_MANYWARN_ALL_GCC.
19996         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19997         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19998         * modules/manywarnings: New file.
19999         * MODULES.html.sh: Mention manywarnings module.
20000
20001 2008-11-18  Bruno Haible  <bruno@clisp.org>
20002
20003         * doc/gnulib-tool.texi (Unit tests): New section.
20004
20005 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20006
20007         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
20008         paths like 'lib/po/foo.po'.
20009
20010 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20011
20012         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
20013         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
20014
20015 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20016
20017         * m4/warnings.m4: Use CPPFLAGS to really check whether the
20018         parameter works.
20019
20020 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20021
20022         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
20023
20024 2008-11-17  Bruce Korb  <bkorb@gnu.org>
20025
20026         * modules/parse-duration-tests: New file.
20027         * tests/test-parse-duration.sh: New file.
20028         * tests/test-parse-duration.c: New file.
20029
20030         New module 'parse-duration'.
20031         * lib/parse-duration.h: New file.
20032         * lib/parse-duration.c: New file.
20033         * modules/parse-duration: New file.
20034
20035 2008-11-17  Bruno Haible  <bruno@clisp.org>
20036
20037         * tests/test-select-out.sh: Comment out the first pipe test.
20038         Reported by Simon Josefsson.
20039
20040 2008-11-17  Bruno Haible  <bruno@clisp.org>
20041
20042         * modules/getaddrinfo (Depends-on): Add servent, hostent.
20043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
20044         gl_HOSTENT.
20045
20046 2008-11-17  Bruno Haible  <bruno@clisp.org>
20047
20048         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
20049         -lnetwork and -lnet. Needed for Haiku and BeOS.
20050
20051 2008-11-16  Bruno Haible  <bruno@clisp.org>
20052
20053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
20054
20055 2008-11-16  Bruno Haible  <bruno@clisp.org>
20056
20057         Avoid test failure on Haiku.
20058         * tests/test-fsync.c: Include <errno.h>.
20059         (main): Don't require that fsync (0) fails.
20060
20061 2008-11-15  Bruno Haible  <bruno@clisp.org>
20062
20063         New module 'hostent'.
20064         * modules/hostent: New file.
20065         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
20066
20067 2008-11-15  Bruno Haible  <bruno@clisp.org>
20068
20069         New module 'servent'.
20070         * modules/servent: New file.
20071         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
20072
20073 2008-11-15  Bruno Haible  <bruno@clisp.org>
20074
20075         Avoid generating same test program with two different rules.
20076         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
20077         test-frexp to test-frexp-nolibm.
20078         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
20079         test-frexpl to test-frexpl-nolibm.
20080
20081 2008-11-15  Bruno Haible  <bruno@clisp.org>
20082
20083         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
20084         $(FREXPL_LIBM).
20085
20086 2008-11-15  Bruno Haible  <bruno@clisp.org>
20087
20088         * lib/netdb.in.h: Activate the definitions also when the system's
20089         <netdb.h> has 'struct addrinfo'.
20090         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
20091         EAI_OVERFLOW or AI_NUMERICSERV.
20092         * doc/posix-headers/netdb.texi: Document the problem.
20093
20094 2008-11-15  Bruno Haible  <bruno@clisp.org>
20095
20096         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
20097
20098         Make the 'sched' module work on platforms where <sched.h> exists but
20099         is incomplete (such as Haiku).
20100         * lib/sched.in.h; Include the system's <sched.h> if it exists.
20101         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
20102         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
20103         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
20104         HAVE_STRUCT_SCHED_PARAM.
20105         * modules/sched (Depends-on): Add include_next.
20106         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
20107         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
20108         * doc/posix-headers/sched.texi: Document the issue.
20109
20110 2008-11-13  Jim Meyering  <meyering@redhat.com>
20111
20112         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
20113         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
20114         test would fail due to the difference in the Report bugs to ...
20115         line.  The expected address is empty, "<>", while the actual
20116         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
20117
20118 2008-11-12  Bruno Haible  <bruno@clisp.org>
20119
20120         lstat: don't compile lstat.c on systems lacking lstat
20121         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
20122         which don't have lstat; this is handled by lib/sys_stat.in.h already.
20123         Reported by Daniel P. Berrange via Jim Meyering.
20124
20125 2008-11-12  Jim Meyering  <meyering@redhat.com>
20126
20127         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
20128
20129 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20130
20131         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
20132         instead.
20133
20134 2008-11-12  Bruno Haible  <bruno@clisp.org>
20135
20136         * lib/unicodeio.c: Include unistr.h.
20137         (utf8_wctomb): Remove function.
20138         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
20139
20140 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20141
20142         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
20143         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
20144         <bruno@clisp.org>.
20145         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
20146
20147 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20148
20149         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
20150         * doc/gnulib.texi: Add section for warnings.
20151
20152 2008-11-11  Bruno Haible  <bruno@clisp.org>
20153
20154         * lib/sockets.h: Add a comment.
20155
20156 2008-11-11  Karl Berry  <karl@gnu.org>
20157
20158         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
20159
20160 2008-11-11  Eric Blake  <ebb9@byu.net>
20161
20162         fdl.texi: avoid git symlinks
20163         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
20164
20165 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20166
20167         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
20168
20169 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20170
20171         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
20172         (gl_WARN_ADD): Substitute $2 if literal.
20173
20174 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20175
20176         * m4/warning.m4: Remove.
20177
20178 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20179
20180         * m4/warnings.m4: Almost complete rewrite. :-)
20181
20182 2008-11-10  Simon Josefsson  <simon@josefsson.org>
20183
20184         * modules/warnings: New module.
20185         * m4/warnings.m4: New file.
20186         * MODULES.html.sh: Mention warnings module.
20187         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
20188         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20189
20190 2008-11-10  Eric Blake  <ebb9@byu.net>
20191
20192         fdl.texi: make a symlink to the latest version
20193         * doc/standards.texi: Revert today's earlier change.
20194         * doc/fdl-1.2.texi: Rename from old fdl.texi...
20195         * doc/fdl.texi: ...and replace this with a symlink to the newer
20196         fdl-1.3.texi.
20197
20198 2008-11-10  Bruno Haible  <bruno@clisp.org>
20199
20200         * tests/test-select-fd.c (main): Accept the result file name as fourth
20201         argument.
20202         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
20203         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
20204
20205 2008-11-10  Bruno Haible  <bruno@clisp.org>
20206
20207         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
20208         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
20209         as autoconf-substituted macros.
20210         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
20211         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
20212         gl_NETDB_H_DEFAULTS. Set these variables.
20213         * modules/netdb (Makefile.am): Substitute these variables.
20214
20215 2008-11-10  Eric Blake  <ebb9@byu.net>
20216
20217         standards.texi: include correct file for FDL 1.3
20218         * doc/standards.texi (GNU Free Documentation License): Change
20219         include file to pull in FDL 1.3, not 1.2.
20220
20221         fdl.texi: revert accidental change to license
20222         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20223
20224 2008-11-10  Bruno Haible  <bruno@clisp.org>
20225
20226         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20227         cross-compiling guesses also when the native compile gives no result.
20228
20229 2008-11-10  Bruno Haible  <bruno@clisp.org>
20230
20231         * lib/spawni.c (__spawni): Force variable into the stack.
20232
20233 2008-11-10  Bruno Haible  <bruno@clisp.org>
20234
20235         Add support for Haiku.
20236         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20237         glibc and BeOS, but also on Haiku.
20238         * lib/fpurge.c (fpurge): Likewise.
20239         * lib/freadable.c (freadable): Likewise.
20240         * lib/freadahead.c (freadahead): Likewise.
20241         * lib/freading.c (freading): Likewise.
20242         * lib/freadptr.c (freadptr): Likewise.
20243         * lib/freadseek.c (freadptrinc): Likewise.
20244         * lib/fseeko.c (rpl_fseeko): Likewise.
20245         * lib/fseterr.c (fseterr): Likewise.
20246         * lib/fwritable.c (fwritable): Likewise.
20247         * lib/fwriting.c (fwriting): Likewise.
20248         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20249
20250 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20251
20252         * lib/config.charset: Treat Haiku like BeOS.
20253
20254 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20255
20256         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20257         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20258
20259 2008-11-08  Bruno Haible  <bruno@clisp.org>
20260
20261         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20262         AC_CACHE_CHECK.
20263
20264 2008-11-08  Bruno Haible  <bruno@clisp.org>
20265
20266         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20267
20268 2008-11-08  Bruno Haible  <bruno@clisp.org>
20269
20270         * tests/test-select-fd.c: New file.
20271         * tests/test-select-in.sh: New file.
20272         * tests/test-select-out.sh: New file.
20273         * tests/test-select-stdin.c: New file.
20274         * modules/select-tests (Files): Add the new files.
20275         (Depends-on): Add gettimeofday.
20276         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20277         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20278         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20279
20280 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20281             Bruno Haible  <bruno@clisp.org>
20282
20283         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20284
20285 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20286
20287         * build-aux/pmccabe2html: Added support for C++ source files.
20288
20289 2008-11-05  Ben Pfaff  <blp@gnu.org>
20290
20291         Fix lib/close.c build on Windows.
20292         * modules/close (Files): Add lib/w32sock.h.
20293
20294 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20295
20296         Accept Bison's NEWS format.
20297         * build-aux/announce-gen (print_news_deltas): Tweak
20298         $re_prefix.
20299
20300 2008-11-04  Bruno Haible  <bruno@clisp.org>
20301
20302         * modules/random_r (Maintainer): Add glibc.
20303
20304 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20305
20306         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20307         by karl@freefriends.org (Karl Berry).
20308         * doc/alloca.texi: Likewise.
20309         * doc/c-ctype.texi: Likewise.
20310         * doc/c-strcase.texi: Likewise.
20311         * doc/c-strcaseeq.texi: Likewise.
20312         * doc/c-strcasestr.texi: Likewise.
20313         * doc/c-strstr.texi: Likewise.
20314         * doc/c-strtod.texi: Likewise.
20315         * doc/c-strtold.texi: Likewise.
20316         * doc/ctime.texi: Likewise.
20317         * doc/error.texi: Likewise.
20318         * doc/fdl.texi: Likewise.
20319         * doc/gcd.texi: Likewise.
20320         * doc/getdate.texi: Likewise.
20321         * doc/gnulib-intro.texi: Likewise.
20322         * doc/gnulib-tool.texi: Likewise.
20323         * doc/gnulib.texi: Likewise.
20324         * doc/inet_ntoa.texi: Likewise.
20325         * doc/maintain.texi: Likewise.
20326         * doc/make-stds.texi: Likewise.
20327         * doc/quote.texi: Likewise.
20328         * doc/regexprops-generic.texi: Likewise.
20329         * doc/standards.texi: Likewise.
20330         * doc/verify.texi: Likewise.
20331         * doc/visibility.texi: Likewise.
20332         * doc/gnulib.texi (GNU Free Documentation License): Include
20333         fdl-1.3.texi instead of fdl.texi.
20334
20335 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20336
20337         * doc/fdl-1.3.texi: New file, from
20338         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20339         * modules/fdl-1.3: Add.
20340         * MODULES.html.sh: Add fdl-1.3.
20341
20342 2008-11-03  Bruno Haible  <bruno@clisp.org>
20343
20344         Make determination of absolute name of header file work with AIX xlc.
20345         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20346         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20347         preprocessing.
20348         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20349         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20350
20351 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20352
20353         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20354         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20355         <ludo@gnu.org>.
20356
20357 2008-11-02  Bruno Haible  <bruno@clisp.org>
20358
20359         Mark 'strpbrk' obsolete.
20360         * modules/strpbrk (Status, Notice): New sections.
20361         * modules/strtok_r (Depends-on): Add strpbrk.
20362
20363 2008-11-02  Bruno Haible  <bruno@clisp.org>
20364
20365         Mark 'strdup' obsolete.
20366         * modules/strdup (Status, Notice): New sections.
20367         * modules/findprog (Depends-on): Add strdup.
20368         * modules/getaddrinfo (Depends-on): Likewise.
20369         * modules/localename (Depends-on): Likewise.
20370         * modules/relocatable-lib (Depends-on): Likewise.
20371         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20372         * modules/relocatable-prog (Depends-on): Likewise.
20373         * modules/trim (Depends-on): Likewise.
20374         * modules/unictype/gen-ctype (Depends-on): Likewise.
20375         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20376
20377 2008-11-02  Bruno Haible  <bruno@clisp.org>
20378
20379         Mark 'strcspn' obsolete.
20380         * modules/strcspn (Status, Notice): New sections.
20381
20382 2008-11-02  Bruno Haible  <bruno@clisp.org>
20383
20384         Mark 'rmdir' obsolete.
20385         * modules/rmdir (Status, Notice): New sections.
20386         * modules/clean-temp (Depends-on): Add rmdir.
20387         * modules/openat (Depends-on): Likewise.
20388
20389 2008-11-02  Bruno Haible  <bruno@clisp.org>
20390
20391         Mark 'raise' obsolete.
20392         * modules/raise (Status, Notice): New sections.
20393         (Include): Specify <signal.h>.
20394         * modules/stdio (Depends-on): Add raise.
20395         * modules/write (Depends-on): Likewise.
20396
20397 2008-11-02  Bruno Haible  <bruno@clisp.org>
20398
20399         Mark 'memset' obsolete.
20400         * modules/memset (Status, Notice): New sections.
20401
20402 2008-11-02  Bruno Haible  <bruno@clisp.org>
20403
20404         Mark 'memmove' obsolete.
20405         * modules/memmove (Status, Notice): New sections.
20406         * modules/argp (Depends-on): Add memmove.
20407         * modules/argz (Depends-on): Likewise.
20408         * modules/canonicalize (Depends-on): Likewise.
20409         * modules/canonicalize-lgpl (Depends-on): Likewise.
20410         * modules/fts (Depends-on): Likewise.
20411         * modules/getcwd (Depends-on): Likewise.
20412         * modules/human (Depends-on): Likewise.
20413         * modules/regex (Depends-on): Likewise.
20414         * modules/striconveh (Depends-on): Likewise.
20415         * modules/trim (Depends-on): Likewise.
20416         * modules/unistr/u8-move (Depends-on): Likewise.
20417         * modules/unistr/u16-move (Depends-on): Likewise.
20418         * modules/unistr/u32-move (Depends-on): Likewise.
20419
20420 2008-11-02  Bruno Haible  <bruno@clisp.org>
20421
20422         Mark 'memcpy' obsolete.
20423         * modules/memcpy (Status, Notice): New sections.
20424
20425 2008-11-02  Bruno Haible  <bruno@clisp.org>
20426
20427         Mark 'memcmp' obsolete.
20428         * modules/memcmp (Status, Notice): New sections.
20429         * modules/argmatch (Depends-on): Add memchr.
20430         * modules/backupfile (Depends-on): Likewise.
20431         * modules/c-strcasestr (Depends-on): Likewise.
20432         * modules/crypto/des (Depends-on): Likewise.
20433         * modules/csharpcomp (Depends-on): Likewise.
20434         * modules/fnmatch (Depends-on): Likewise.
20435         * modules/git-merge-changelog (Depends-on): Likewise.
20436         * modules/isnand (Depends-on): Likewise.
20437         * modules/isnand-nolibm (Depends-on): Likewise.
20438         * modules/isnanf (Depends-on): Likewise.
20439         * modules/isnanf-nolibm (Depends-on): Likewise.
20440         * modules/isnanl (Depends-on): Likewise.
20441         * modules/isnanl-nolibm (Depends-on): Likewise.
20442         * modules/mbchar (Depends-on): Likewise.
20443         * modules/memcoll (Depends-on): Likewise.
20444         * modules/quotearg (Depends-on): Likewise.
20445         * modules/regex (Depends-on): Likewise.
20446         * modules/relocatable-prog (Depends-on): Likewise.
20447         * modules/same (Depends-on): Likewise.
20448         * modules/signbit (Depends-on): Likewise.
20449         * modules/strcasestr-simple (Depends-on): Likewise.
20450         * modules/unictype/gen-ctype (Depends-on): Likewise.
20451         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20452         * modules/uniname/uniname (Depends-on): Likewise.
20453         * modules/unistr/u8-cmp (Depends-on): Likewise.
20454
20455 2008-11-02  Bruno Haible  <bruno@clisp.org>
20456
20457         Mark 'memchr' obsolete.
20458         * modules/memchr (Status, Notice): New sections.
20459         * modules/argp (Depends-on): Add memchr.
20460         * modules/base64 (Depends-on): Likewise.
20461         * modules/c-strcasestr (Depends-on): Likewise.
20462         * modules/chdir-long (Depends-on): Likewise.
20463         * modules/fnmatch (Depends-on): Likewise.
20464         * modules/getsubopt (Depends-on): Likewise.
20465         * modules/git-merge-changelog (Depends-on): Likewise.
20466         * modules/glob (Depends-on): Likewise.
20467         * modules/strcasestr-simple (Depends-on): Likewise.
20468         * modules/strnlen (Depends-on): Likewise.
20469
20470 2008-11-02  Bruno Haible  <bruno@clisp.org>
20471
20472         Mark 'atexit' obsolete.
20473         * modules/atexit (Status, Notice): New sections.
20474         * modules/chdir-long (Depends-on): Add atexit.
20475         * modules/wait-process (Depends-on): Likewise.
20476
20477 2008-11-02  Bruno Haible  <bruno@clisp.org>
20478
20479         * gnulib-tool: New option --with-obsolete.
20480         (func_usage): Document it.
20481         (func_modules_transitive_closure): Drop obsolete dependencies if
20482         incobsolete is not true.
20483         (func_import): Read and save the incobsolete variable to the cache.
20484
20485 2008-11-02  Bruno Haible  <bruno@clisp.org>
20486
20487         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20488         * gnulib-tool: New option --extract-status.
20489         (func_usage): Document it.
20490         (sed_extract_prog): Recognize it.
20491         (func_get_status): New function.
20492
20493 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20494
20495         * modules/sockets (License): Change from LGPL to LGPLv2+.
20496
20497 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20498
20499         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20500
20501 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20502
20503         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20504         Mention times and sys_times.
20505         * modules/sys_times, modules/sys_times-tests: New modules.
20506         * modules/times, modules/times-tests: Likewise
20507         * m4/sys_times_h.m4: New file.
20508         * lib/sys_times.in.h: Likewise
20509         * lib/times.c: Likewise.
20510         * tests/test-sys_times.c: Likewise.
20511         * tests/test-times.c: Likewise.
20512         * doc/posix-headers/sys_times.texi: Update.
20513         * doc/posix-functions/times.texi: Update.
20514
20515 2008-10-28  Jim Meyering  <meyering@redhat.com>
20516
20517         * modules/tempname (Depends-on): Add lstat.
20518
20519         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20520
20521 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20522
20523         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20524         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20525         using idiom used elsewhere in gnulib.
20526
20527 2008-10-27  Jim Meyering  <meyering@redhat.com>
20528
20529         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20530
20531 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20532
20533         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20534         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20535         programs.
20536         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20537
20538 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20539
20540         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20541
20542 2008-10-27  Bruno Haible  <bruno@clisp.org>
20543
20544         * tests/test-lstat.c: Include <stdio.h>.
20545
20546 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20547
20548         * modules/lstat-tests: New module.
20549         * tests/test-lstat.c: New file.
20550
20551 2008-10-26  Jim Meyering  <meyering@redhat.com>
20552
20553         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20554
20555 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20556             Bruno Haible  <bruno@clisp.org>
20557
20558         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20559         * modules/configmake (Include): Add a note that the include must come
20560         after all system headers.
20561         * lib/javaversion.c: Include configmake.h after all other includes.
20562
20563 2008-10-26  Bruno Haible  <bruno@clisp.org>
20564
20565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20566         HAVE_STRUCT_RANDOM_DATA to 1.
20567         (gl_STDLIB_H): Simplify.
20568
20569 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20570
20571         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20572         substitute HAVE_STRUCT_RANDOM_DATA.
20573         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20574         random_data.
20575         * modules/stdlib (Makefile.am): Substitute
20576         HAVE_STRUCT_RANDOM_DATA.
20577
20578 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20579
20580         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20581         * doc/gnulib-intro.texi (Copyright): Likewise.
20582
20583 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20584
20585         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20586         findings.
20587
20588 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20589             Bruno Haible  <bruno@clisp.org>
20590
20591         * lib/unistd.in.h: Include <winsock2.h>.
20592         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20593         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20594         Provide dummy declarations.
20595         (gethostname): Override.
20596         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20597         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20598         gl_PREREQ_SYS_H_WINSOCK2.
20599         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20600         * doc/posix-functions/gethostname.texi: More details.
20601
20602 2008-10-25  Bruno Haible  <bruno@clisp.org>
20603
20604         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20605         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20606         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20607
20608         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20609         here ...
20610         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20611         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20612         gl_UNISTD_H_DEFAULTS.
20613
20614 2008-10-25  Eric Blake  <ebb9@byu.net>
20615
20616         signbit: avoid spurious compiler failure
20617         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20618         declarations inside function.
20619
20620 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20621             Bruno Haible  <bruno@clisp.org>
20622
20623         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20624         * modules/random_r (Depends-on): Add stdint.
20625
20626 2008-10-24  Bruno Haible  <bruno@clisp.org>
20627
20628         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20629         Eggert.
20630         * modules/strerror (License): Likewise.
20631
20632 2008-10-24  Jim Meyering  <meyering@redhat.com>
20633
20634         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20635         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20636
20637 2008-10-24  Eric Blake  <ebb9@byu.net>
20638
20639         getgroups: fix compilation when getgroups is available
20640         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20641         but with <config.h> override of getgroups disabled.
20642
20643 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20644
20645         * doc/gnulib.texi (Header files): Add note about C++ problems.
20646         Explained by Bruno Haible <bruno@clisp.org>.
20647
20648 2008-10-23  Bruno Haible  <bruno@clisp.org>
20649
20650         Define a dummy SA_NODEFER macro on Interix.
20651         * lib/signal.in.h (SA_NODEFER): Define fallback.
20652         Reported by Aleksey Cheusov <cheusov@tut.by> via
20653         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20654
20655 2008-10-23  Bruno Haible  <bruno@clisp.org>
20656
20657         * modules/freadahead (License): Change to LGPLv2+.
20658         Suggested by Simon Josefsson.
20659
20660 2008-10-23  Jim Meyering  <meyering@redhat.com>
20661
20662         random_r: new module
20663         * modules/random_r: New file.
20664         * m4/random_r.m4: New file.
20665         * lib/random_r.c: New file, from glibc.
20666         * modules/random_r-tests: New file.
20667         * tests/test-random_r.c: New file.
20668         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20669          Declare.
20670         (RAND_MAX): Define.
20671         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20672         * modules/stdlib: Substitute them, too.
20673         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20674         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20675         * doc/glibc-functions/random_r.texi: Likewise.
20676         * doc/glibc-functions/setstate_r.texi: Likewise.
20677         * doc/glibc-functions/srandom_r.texi: Likewise.
20678         * config/srclist.txt: Mention it.
20679
20680 2008-10-23  David Lutterkort  <lutter@redhat.com>
20681
20682         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20683         link requirement
20684
20685 2008-10-23  Jim Meyering  <meyering@redhat.com>
20686
20687         selinux-h: mark parameters of stub functions as intentionally unused
20688         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20689         * lib/se-context.in.h: Likewise.
20690
20691 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20692
20693         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20694
20695 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20696
20697         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20698
20699 2008-10-22  Eric Blake  <ebb9@byu.net>
20700
20701         glthread/thread: avoid compiler warning
20702         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20703         Add unreachable abort to silence compiler.
20704
20705 2008-10-22  Eric Blake  <ebb9@byu.net>
20706
20707         netdb: also supply struct addrinfo for cygwin 1.5.x
20708         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20709         older cygwin.
20710         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20711         cygwin.
20712         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20713
20714 2008-10-22  Bruno Haible  <bruno@clisp.org>
20715
20716         * users.txt: Update entry about pspp.
20717
20718 2008-10-21  Bruno Haible  <bruno@clisp.org>
20719
20720         Simplification.
20721         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20722         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20723
20724         Simplification.
20725         * lib/ioctl.c (ioctl): Don't undefine.
20726         * lib/socket.c (socket): Don't undefine.
20727
20728         Remove unused module indicator macros.
20729         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20730         GNULIB_$1 as a C macro.
20731
20732         * doc/posix-functions/close.texi: Undo last change.
20733         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20734         Windows platforms.
20735
20736 2008-10-21  Bruno Haible  <bruno@clisp.org>
20737
20738         Add gethostname() declaration to <unistd.h>.
20739         * lib/unistd.in.h (gethostname): New declaration.
20740         * lib/gethostname.c: Include <unistd.h>.
20741         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20742         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20744         and HAVE_GETHOSTNAME.
20745         * modules/gethostname (Depends-on): Add unistd.
20746         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20747         (Include): Specify <unistd.h>.
20748         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20749         HAVE_GETHOSTNAME.
20750         * tests/test-gethostname.c: Include <unistd.h> first.
20751
20752 2008-10-21  Bruno Haible  <bruno@clisp.org>
20753
20754         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20755         * modules/select-tests (Depends-on): Likewise.
20756         Reported by Simon Josefsson.
20757
20758 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20759
20760         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20761         * lib/accept.c: New file, based on winsock.c.
20762         * lib/bind.c: New file, based on winsock.c.
20763         * lib/connect.c: New file, based on winsock.c.
20764         * lib/getpeername.c: New file, based on winsock.c.
20765         * lib/getsockname.c: New file, based on winsock.c.
20766         * lib/getsockopt.c: New file, based on winsock.c.
20767         * lib/ioctl.c: New file, based on winsock.c.
20768         * lib/listen.c: New file, based on winsock.c.
20769         * lib/recv.c: New file, based on winsock.c.
20770         * lib/recvfrom.c: New file, based on winsock.c.
20771         * lib/send.c: New file, based on winsock.c.
20772         * lib/sendto.c: New file, based on winsock.c.
20773         * lib/setsockopt.c: New file, based on winsock.c.
20774         * lib/shutdown.c: New file, based on winsock.c.
20775         * lib/socket.c: New file, based on winsock.c.
20776         * lib/w32sock.h: New file, based on winsock.c.
20777         * lib/winsock.c: Remove file.
20778         * modules/accept: Likewise.
20779         * modules/bind: Likewise.
20780         * modules/connect: Likewise.
20781         * modules/getpeername: Likewise.
20782         * modules/getsockname: Likewise.
20783         * modules/getsockopt: Likewise.
20784         * modules/ioctl: Likewise.
20785         * modules/listen: Likewise.
20786         * modules/recv: Likewise.
20787         * modules/recvfrom: Likewise.
20788         * modules/send: Likewise.
20789         * modules/sendto: Likewise.
20790         * modules/setsockopt: Likewise.
20791         * modules/shutdown: Likewise.
20792         * modules/socket: Use socket.c instead of winsock.c.
20793         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20794         * doc/posix-functions/accept.texi: Doc fix.
20795         * doc/posix-functions/bind.texi: Doc fix.
20796         * doc/posix-functions/close.texi: Doc fix.
20797         * doc/posix-functions/connect.texi: Doc fix.
20798         * doc/posix-functions/getpeername.texi: Doc fix.
20799         * doc/posix-functions/getsockname.texi: Doc fix.
20800         * doc/posix-functions/getsockopt.texi: Doc fix.
20801         * doc/posix-functions/ioctl.texi: Doc fix.
20802         * doc/posix-functions/listen.texi: Doc fix.
20803         * doc/posix-functions/recv.texi: Doc fix.
20804         * doc/posix-functions/recvfrom.texi: Doc fix.
20805         * doc/posix-functions/send.texi: Doc fix.
20806         * doc/posix-functions/sendto.texi: Doc fix.
20807         * doc/posix-functions/setsockopt.texi: Doc fix.
20808         * doc/posix-functions/shutdown.texi: Doc fix.
20809         * doc/posix-functions/socket.texi: Doc fix.
20810
20811 2008-10-20  Bruno Haible  <bruno@clisp.org>
20812
20813         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20814         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20815         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20816         as an alias for SIGABRT.
20817         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20818         (sigaction): Map it to SIGABRT.
20819         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20820
20821 2008-10-20  Bruno Haible  <bruno@clisp.org>
20822
20823         * lib/fts.c: Don't include lstat.h.
20824         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20825
20826         Move the lstat() declaration to <sys/stat.h>.
20827         * lib/lstat.h: Remove file.
20828         * lib/sys_stat.in.h: Add special invocation convention.
20829         (lstat): New declaration.
20830         * lib/lstat.c (orig_lstat): New function.
20831         (rpl_lstat): Use orig_lstat instead of lstat.
20832         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20833         AC_C_INLINE. Set REPLACE_LSTAT.
20834         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20835         and REPLACE_LSTAT.
20836         * modules/lstat (Files): Remove lib/lstat.h.
20837         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20838         (Include): Specify <sys/stat.h> instead of lstat.h.
20839         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20840         REPLACE_LSTAT.
20841         * NEWS: Mention the change.
20842
20843 2008-10-20  Bruno Haible  <bruno@clisp.org>
20844
20845         * modules/posix_spawn-tests: New file.
20846         * tests/test-posix_spawn3.c: New file.
20847
20848 2008-10-20  Bruno Haible  <bruno@clisp.org>
20849
20850         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20851         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20852         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20853         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20854         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20855
20856 2008-10-20  Bruno Haible  <bruno@clisp.org>
20857
20858         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20859         of posix_spawn on AIX 5.3.
20860
20861 2008-10-20  Bruno Haible  <bruno@clisp.org>
20862
20863         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20864
20865 2008-10-20  Bruno Haible  <bruno@clisp.org>
20866
20867         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20868         of AC_LANG_PROGRAM.
20869
20870 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20871
20872         * lib/netdb.in.h: Don't define GNU specific constants until they
20873         are supported or needed.  Reported by Bruno Haible
20874         <bruno@clisp.org>.
20875
20876 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20877
20878         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20879
20880 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20881
20882         * lib/getaddrinfo.h: Remove file.
20883         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20884         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20885         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20886         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20887         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20888         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20889         * tests/test-getaddrinfo.c: Likewise.
20890         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20891         * NEWS: Mention change.
20892
20893 2008-10-19  Bruno Haible  <bruno@clisp.org>
20894
20895         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20896
20897 2008-10-19  Bruno Haible  <bruno@clisp.org>
20898
20899         * lib/wait-process.c: Include simply <sys/wait.h>.
20900         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20901         WIFSTOPPED): Remove fallback definitions.
20902         * modules/wait-process (Depends-on): Add sys_wait.
20903
20904         New module 'sys_wait'.
20905         * modules/sys_wait: New file.
20906         * lib/sys_wait.in.h: New file, partially copied from
20907         lib/wait-process.c.
20908         * m4/sys_wait_h.m4: New file.
20909         * doc/posix-headers/sys_wait.texi: Mention the new module.
20910
20911 2008-10-19  Bruno Haible  <bruno@clisp.org>
20912
20913         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20914
20915 2008-10-19  Bruno Haible  <bruno@clisp.org>
20916
20917         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20918         * lib/wait-process.c (WAIT_T): Remove type.
20919         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20920         (wait_subprocess): Update.
20921
20922 2008-10-19  Bruno Haible  <bruno@clisp.org>
20923
20924         New module 'atoll'.
20925         * modules/atoll: New file.
20926         * lib/stdlib.in.h (atoll): New declaration.
20927         * lib/atoll.c: New file, from glibc with modifications.
20928         * m4/atoll.m4: New file.
20929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20930         HAVE_ATOLL.
20931         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20932         * doc/posix-functions/atoll.texi: Mention the new module.
20933
20934 2008-10-19  Bruno Haible  <bruno@clisp.org>
20935
20936         Add strtoull() declaration to <stdlib.h>.
20937         * lib/stdlib.in.h (strtoull): New declaration.
20938         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20939         Set HAVE_STRTOULL.
20940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20941         HAVE_STRTOULL.
20942         * modules/strtoull (Depends-on): Add stdlib.
20943         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20944         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20945         HAVE_STRTOULL.
20946
20947 2008-10-19  Bruno Haible  <bruno@clisp.org>
20948
20949         Add strtoll() declaration to <stdlib.h>.
20950         * lib/stdlib.in.h (strtoll): New declaration.
20951         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20952         Set HAVE_STRTOLL.
20953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20954         HAVE_STRTOLL.
20955         * modules/strtoll (Depends-on): Add stdlib.
20956         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20957         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20958
20959 2008-10-19  Bruno Haible  <bruno@clisp.org>
20960
20961         * modules/bcopy (Depends-on): Add strings.
20962         (Include): Specify <strings.h>.
20963
20964 2008-10-19  Bruno Haible  <bruno@clisp.org>
20965
20966         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20967
20968 2008-10-19  Bruno Haible  <bruno@clisp.org>
20969
20970         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20971         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20972         mingw.
20973
20974 2008-10-19  Bruno Haible  <bruno@clisp.org>
20975
20976         * lib/atanl.c: Don't include isnanl.h.
20977         * lib/cosl.c: Likewise.
20978         * lib/ldexpl.c: Likewise.
20979         * lib/logl.c: Likewise.
20980         * lib/sinl.c: Likewise.
20981         * lib/sqrtl.c: Likewise.
20982         * lib/tanl.c: Likewise.
20983
20984         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20985         * lib/isnanf.h: Remove file.
20986         * lib/isnand.h: Remove file.
20987         * lib/isnanl.h: Remove file.
20988         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20989         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20990         macros.
20991         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20992         HAVE_ISNANF, don't define it as a C macro.
20993         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20994         HAVE_ISNAND, don't define it as a C macro.
20995         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20996         HAVE_ISNANL, don't define it as a C macro.
20997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20998         HAVE_ISNAN[FDL].
20999         * modules/isnanf (Files): Remove lib/isnanf.h.
21000         (Depends-on): Add math.
21001         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21002         (Include): Specify <math.h> instead of isnanf.h.
21003         * modules/isnand (Files): Remove lib/isnand.h.
21004         (Depends-on): Add math.
21005         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21006         (Include): Specify <math.h> instead of isnand.h.
21007         * modules/isnanl (Files): Remove lib/isnanl.h.
21008         (Depends-on): Add math.
21009         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21010         (Include): Specify <math.h> instead of isnanl.h.
21011         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
21012         HAVE_ISNAN[FDL].
21013         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
21014         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
21015         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
21016         * NEWS: Mention the change.
21017
21018 2008-10-18  Bruno Haible  <bruno@clisp.org>
21019
21020         Add getusershell(), setusershell(), endusershell() declarations to
21021         <unistd.h>.
21022         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
21023         declarations.
21024         * lib/getusershell.c: Include unistd.h.
21025         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
21026         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21027         HAVE_GETUSERSHELL.
21028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
21029         and HAVE_GETUSERSHELL.
21030         * modules/getusershell (Depends-on): Add unistd, extensions.
21031         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21032         (Include): Specify <unistd.h>.
21033         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
21034         HAVE_GETUSERSHELL.
21035
21036 2008-10-18  Bruno Haible  <bruno@clisp.org>
21037
21038         Add a getloadavg() declaration to <stdlib.h>.
21039         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
21040         getloadavg declaration.
21041         (getloadavg): New declaration.
21042         * lib/getloadavg.c: Include <stdlib.h> first.
21043         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
21044         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
21045         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
21046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
21047         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21048         * modules/getloadavg (Depends-on): Add stdlib, extensions.
21049         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21050         (Include): Specify <stdlib.h>.
21051         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
21052         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21053
21054 2008-10-18  Bruno Haible  <bruno@clisp.org>
21055
21056         * lib/dirchownmod.c: Don't include lchmod.h.
21057
21058         Move the lchmod() declaration to <sys/stat.h>.
21059         * lib/lchmod.h: Remove file.
21060         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
21061         (lchmod): New declaration, moved here from lib/lchown.h.
21062         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
21063         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
21064         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
21065         and HAVE_LCHMOD.
21066         * modules/lchmod (Files): Remove lib/lchmod.h.
21067         (Depends-on): Add sys_stat, extensions.
21068         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
21069         (Include): Specify <sys/stat.h> instead of lchmod.h.
21070         * modules/sys_stat (Depends-on): Add link-warning.
21071         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
21072         definition of GL_LINK_WARNING.
21073         * NEWS: Mention the change.
21074
21075 2008-10-18  Bruno Haible  <bruno@clisp.org>
21076
21077         * lib/fchdir.c: Don't include dirfd.h.
21078         * lib/fts.c: Likewise.
21079         * lib/getcwd.c: Likewise.
21080         * lib/glob.c: Likewise.
21081
21082         Move the dirfd() declaration to <dirent.h>.
21083         * lib/dirfd.h: Remove file.
21084         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
21085         (dirfd): New declaration.
21086         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
21087         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
21088         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
21089         HAVE_DECL_DIRFD.
21090         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
21091         HAVE_DECL_DIRFD.
21092         * modules/dirfd (Files): Remove lib/dirfd.h.
21093         (Depends-on): Add dirent, extensions.
21094         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
21095         (Include): Specify <dirent.h> instead of dirfd.h.
21096         * modules/dirent (Depends-on): Add link-warning.
21097         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
21098         definition of GL_LINK_WARNING.
21099         * NEWS: Mention the change.
21100
21101 2008-10-18  Bruno Haible  <bruno@clisp.org>
21102
21103         Move the euidaccess() declaration to <unistd.h>.
21104         * lib/euidaccess.h: Remove file.
21105         * lib/unistd.in.h (euidaccess): New declaration.
21106         * lib/euidaccess.c: Don't include euidaccess.h.
21107         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
21108         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
21109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
21110         and HAVE_EUIDACCESS.
21111         * modules/euidaccess (Files): Remove lib/euidaccess.h.
21112         (Depends-on): Add unistd.
21113         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21114         (Include): Specify <unistd.h> instead of euidaccess.h.
21115         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
21116         HAVE_EUIDACCESS.
21117         * NEWS: Mention the change.
21118
21119 2008-10-18  Bruno Haible  <bruno@clisp.org>
21120
21121         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
21122
21123         Move the getdomainname() declaration to <unistd.h>.
21124         * lib/getdomainname.h: Remove file.
21125         * lib/unistd.in.h (getdomainname): New declaration.
21126         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
21127         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21128         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21129         HAVE_GETDOMAINNAME.
21130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21131         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
21132         * modules/getdomainname (Files): Remove lib/getdomainname.h.
21133         (Depends-on): Add unistd, extensions.
21134         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21135         (Includes): Specify <unistd.h> instead of getdomainname.h.
21136         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
21137         HAVE_GETDOMAINNAME.
21138         * NEWS: Mention the change.
21139
21140 2008-10-18  Bruno Haible  <bruno@clisp.org>
21141
21142         * modules/dirent: New file.
21143         * m4/dirent_h.m4: New file.
21144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
21145         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
21146         * modules/fchdir (Files): Remove lib/dirent.in.h.
21147         (Depends-on): Add dirent.
21148         (Makefile.am): Move rules to modules/dirent.
21149         * doc/posix-headers/dirent.texi: Mention the new module.
21150
21151 2008-10-18  Bruno Haible  <bruno@clisp.org>
21152
21153         Avoid -Wunused-parameter warnings in public gnulib header files.
21154         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
21155         macro.
21156         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
21157
21158 2008-10-18  Bruno Haible  <bruno@clisp.org>
21159
21160         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
21161         * doc/glibc-functions/error.texi: Mention the module 'error'.
21162         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
21163         * doc/glibc-functions/getdomainname.texi: Mention the module
21164         'getdomainname'.
21165         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
21166         * doc/glibc-functions/getpagesize.texi: Mention the module
21167         'getpagesize'.
21168         * doc/glibc-functions/getusershell.texi: Mention the module
21169         'getusershell'.
21170         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
21171         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
21172         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
21173         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
21174         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
21175         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
21176         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
21177         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
21178         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
21179         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
21180         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
21181         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
21182         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
21183         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
21184
21185 2008-10-17  Bruno Haible  <bruno@clisp.org>
21186
21187         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
21188         HP-UX and IRIX, use -0.0L.
21189         * tests/test-ceill.c (minus_zero): Likewise.
21190         * tests/test-floorl.c (minus_zero): Likewise.
21191         * tests/test-frexpl.c (minus_zero): Likewise.
21192         * tests/test-isnan.c (minus_zerol): Likewise.
21193         * tests/test-isnanl.h (minus_zero): Likewise.
21194         * tests/test-ldexpl.c (minus_zero): Likewise.
21195         * tests/test-roundl.c (minus_zero): Likewise.
21196         * tests/test-signbit.c (minus_zerol): Likewise.
21197         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21198         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21199         * tests/test-truncl.c (minus_zero): Likewise.
21200         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21201         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21202         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
21203         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21204
21205 2008-10-17  Bruno Haible  <bruno@clisp.org>
21206
21207         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
21208         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
21209         that it gets activated only for gcc >= 3.0.
21210         * lib/dirent.in.h: Likewise.
21211         * lib/errno.in.h: Likewise.
21212         * lib/fcntl.in.h: Likewise.
21213         * lib/float.in.h: Likewise.
21214         * lib/iconv.in.h: Likewise.
21215         * lib/inttypes.in.h: Likewise.
21216         * lib/locale.in.h: Likewise.
21217         * lib/math.in.h: Likewise.
21218         * lib/netdb.in.h: Likewise.
21219         * lib/netinet_in.in.h: Likewise.
21220         * lib/search.in.h: Likewise.
21221         * lib/signal.in.h: Likewise.
21222         * lib/spawn.in.h: Likewise.
21223         * lib/stdarg.in.h: Likewise.
21224         * lib/stdint.in.h: Likewise.
21225         * lib/stdio.in.h: Likewise.
21226         * lib/stdlib.in.h: Likewise.
21227         * lib/string.in.h: Likewise.
21228         * lib/strings.in.h: Likewise.
21229         * lib/sys_file.in.h: Likewise.
21230         * lib/sys_ioctl.in.h: Likewise.
21231         * lib/sys_select.in.h: Likewise.
21232         * lib/sys_socket.in.h: Likewise.
21233         * lib/sys_stat.in.h: Likewise.
21234         * lib/sys_time.in.h: Likewise.
21235         * lib/sysexits.in.h: Likewise.
21236         * lib/time.in.h: Likewise.
21237         * lib/unistd.in.h: Likewise.
21238         * lib/wchar.in.h: Likewise.
21239         * lib/wctype.in.h: Likewise.
21240         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21241
21242 2008-10-17  Jim Meyering  <meyering@redhat.com>
21243
21244         ignore-value: don't depend on inline module
21245         * modules/ignore-value (Depends-on): Remove 'inline'.
21246         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21247         Suggestion from Bruno Haible.
21248
21249 2008-10-17  Bruno Haible  <bruno@clisp.org>
21250
21251         New implementation of condition variables for Win32.
21252         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21253         (gl_linked_waitqueue_t): New type.
21254         (gl_cond_t): Use it.
21255         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21256         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21257         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21258         (glthread_cond_init_func, glthread_cond_wait_func,
21259         glthread_cond_timedwait_func, glthread_cond_signal_func,
21260         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21261         Reimplemented on the basis of gl_linked_waitqueue_t.
21262         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21263         gl_waitqueue_t.
21264         (gl_rwlock_t): Update.
21265         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21266
21267 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21268
21269         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21270         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21271
21272 2008-10-17  Jim Meyering  <meyering@redhat.com>
21273
21274         ignore-value: new module
21275         * modules/ignore-value: New file.
21276         * lib/ignore-value.h: New file.
21277         * MODULES.html.sh (Compiler warning management): New section,
21278         just for this module.  More to come.
21279
21280 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21281
21282         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21283         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21284         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21285
21286 2008-10-16  Jim Meyering  <meyering@redhat.com>
21287
21288         openat-die.c: avoid 'no previous prototype' warning
21289         * lib/openat-die.c: Include "openat.h".
21290         Reported by Reuben Thomas <rrt@sc3d.org>.
21291
21292 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21293
21294         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21295         * lib/netdb.in.h: Fix typo.
21296         Reported by Bruno Haible  <bruno@clisp.org>
21297
21298         * lib/netdb.in.h: Include sys/socket.h for platforms without
21299         netdb.h, to get structures like hostent on MinGW.
21300         * modules/netdb (Depends-on): Add sys_socket.
21301
21302 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21303
21304         * modules/netdb, modules/netdb-tests: New file.
21305         * m4/netdb_h.m4: New file.
21306         * lib/netdb.in.h: Add, currently just an empty file pending
21307         definitions.
21308         * tests/test-netdb.c: New file.
21309         * doc/posix-headers/netdb.texi: Mention that we replace it if
21310         needed.
21311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21312         netdb.
21313
21314 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21315
21316         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21317         with code.
21318
21319 2008-10-13  Bruno Haible  <bruno@clisp.org>
21320
21321         * lib/glthread/cond.c (glthread_cond_wait_func,
21322         glthread_cond_timedwait_func): Add a comment.
21323
21324 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21325
21326         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21327         * tests/test-select.c: Likewise,
21328
21329 2008-10-13  Bruno Haible  <bruno@clisp.org>
21330
21331         * lib/glthread/cond.c (glthread_cond_wait_func,
21332         glthread_cond_timedwait_func): Fix variable name.
21333         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21334
21335 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21336
21337         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21338         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21339         struct sockaddr.sa_len.
21340         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21341
21342 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21343
21344         * build-aux/pmccabe2html: Add css and css_url parameters.
21345
21346 2008-10-12  Bruno Haible  <bruno@clisp.org>
21347
21348         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21349         calling aclx_get.
21350         Reported by Rainer Tammer <tammer@tammer.net>.
21351
21352 2008-10-12  Bruno Haible  <bruno@clisp.org>
21353
21354         Use msvcrt aware primitives for creation/termination of Win32 threads.
21355         * lib/glthread/thread.c: Include <process.h>.
21356         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21357         (wrapper_func): Update signature.
21358         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21359
21360 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21361             Bruno Haible  <bruno@clisp.org>
21362
21363         Provide a Win32 implementation of the 'cond' module.
21364         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21365         * lib/glthread/cond.c (glthread_cond_init_func,
21366         glthread_cond_wait_func, glthread_cond_timedwait_func,
21367         glthread_cond_signal_func, glthread_cond_broadcast_func,
21368         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21369         * modules/cond (Dependencies): Add gettimeofday.
21370
21371 2008-10-11  Bruno Haible  <bruno@clisp.org>
21372
21373         Make sleep work on older versions of mingw.
21374         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21375         only whether it exists.
21376         * doc/posix-functions/sleep.texi: Mention the problem with older
21377         versions of mingw.
21378
21379 2008-10-11  Bruno Haible  <bruno@clisp.org>
21380
21381         New module 'shutdown'.
21382         * modules/shutdown: New file.
21383         * lib/sys_socket.in.h (shutdown): New declaration.
21384         * lib/winsock.c (shutdown): New function.
21385         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21386         GNULIB_SHUTDOWN.
21387         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21388         * doc/posix-functions/shutdown.texi: Document the new module.
21389
21390 2008-10-11  Jim Meyering  <meyering@redhat.com>
21391
21392         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21393
21394 2008-10-11  Bruno Haible  <bruno@clisp.org>
21395
21396         New module 'fclose'.
21397         * modules/fclose: New file.
21398         * lib/stdio.in.h (fclose): New declaration.
21399         * lib/fclose.c: New file.
21400         * m4/fclose.m4: New file.
21401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21402         REPLACE_FCLOSE.
21403         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21404         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21405         REPLACE_FCLOSE.
21406         * modules/close (Depends-on): fclose.
21407         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21408
21409 2008-10-11  Bruno Haible  <bruno@clisp.org>
21410
21411         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21412         set errno and don't call _close.
21413
21414 2008-10-10  Bruno Haible  <bruno@clisp.org>
21415
21416         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21417         ACL, not afterwards. Fixes test failure on Cygwin.
21418
21419 2008-10-09  Ben Pfaff  <blp@gnu.org>
21420
21421         * build-aux/announce-gen: Fix gnulib version related part of usage
21422         message.  Die with a useful error message if no tarballs are
21423         found.
21424
21425 2008-10-10  Jim Meyering  <meyering@redhat.com>
21426
21427         bootstrap: use git's --depth=N option only if it's supported
21428         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21429         recognize the --depth option.  Reported by Pádraig Brady.
21430
21431 2008-10-09  Bruno Haible  <bruno@clisp.org>
21432
21433         New module 'ioctl'.
21434         * modules/ioctl: New file.
21435         * lib/sys_socket.in.h (ioctl): Remove declaration.
21436         * lib/winsock.c: Include <sys/ioctl.h>.
21437         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21438         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21439         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21440         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21441         * doc/posix-functions/ioctl.texi: Mention the new module.
21442
21443 2008-10-09  Bruno Haible  <bruno@clisp.org>
21444
21445         New module 'sys_ioctl'.
21446         * lib/sys_ioctl.in.h: New file.
21447         * m4/sys_ioctl_h.m4: New file.
21448         * modules/sys_ioctl: New file.
21449         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21450
21451 2008-10-09  Bruno Haible  <bruno@clisp.org>
21452
21453         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21454         * lib/winsock.c: Include <stdarg.h>.
21455         (rpl_ioctl): Change to second argument 'int' and then varargs.
21456
21457 2008-10-09  Bruno Haible  <bruno@clisp.org>
21458
21459         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21460         when the sys_socket module is present and the system has <winsock2.h>.
21461
21462 2008-10-09  Bruno Haible  <bruno@clisp.org>
21463
21464         * doc/posix-functions/close.texi: Mention module 'close' instead of
21465         module 'sys_socket'.
21466
21467 2008-10-09  Bruno Haible  <bruno@clisp.org>
21468
21469         * doc/glibc-headers/sys_ioctl.texi: New file.
21470         * doc/gnulib.texi: Include it.
21471
21472 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21473             Bruno Haible  <bruno@clisp.org>
21474
21475         Combine the two replacements of 'close'.
21476         * lib/sys_socket.in.h (close): Define to a reminder to include
21477         <unistd.h>.
21478         (_gl_close_fd_maybe_socket): New declaration.
21479         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21480         * lib/winsock.c (close): Remove undefinition.
21481         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21482         needed for the gnulib module 'close'.
21483         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21484         define to an error symbol or to a warning, if suitable.
21485         * lib/close.c: Include <sys/socket.h>.
21486         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21487         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21488         UNISTD_H_HAVE_WINSOCK2_H.
21489         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21491         UNISTD_H_HAVE_WINSOCK2_H.
21492         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21493         (configure.ac): Set a module indicator.
21494         (Makefile.am): Substitute GNULIB_CLOSE.
21495         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21496         * modules/poll-tests (Depends-on): Add close.
21497         * modules/select-tests (Depends-on): Likewise.
21498
21499 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21500             Bruno Haible  <bruno@clisp.org>
21501
21502         New module 'close'.
21503         * modules/close: New file.
21504         * lib/unistd.in.h (close): Move declaration out of the
21505         FCHDIR_REPLACEMENT scope.
21506         (_gl_unregister_fd): New declaration.
21507         * lib/close.c: New file.
21508         * lib/fchdir.c (rpl_close): Remove function.
21509         * m4/close.m4: New file.
21510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21511         close.
21512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21513         REPLACE_CLOSE.
21514         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21515         REPLACE_CLOSE.
21516         * modules/fchdir (Depends-on): Add close.
21517
21518 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21519             Bruno Haible  <bruno@clisp.org>
21520
21521         * lib/fcntl.in.h (open): Simplify conditionals.
21522         (_gl_register_fd): New declaration.
21523         * lib/fchdir.c (rpl_open): Remove function.
21524         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21525         also.
21526         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21528         open.
21529
21530 2008-10-09  Jim Meyering  <meyering@redhat.com>
21531
21532         GNUmakefile: use the more name-space-friendly "_version"
21533         * top/GNUmakefile (_dummy): Update.
21534         (_version): Rename from "version".
21535
21536 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21537             Bruno Haible  <bruno@clisp.org>
21538
21539         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21540         rpl_close.
21541         (_gl_register_fd): New function, extracted from rpl_open.
21542         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21543         (rpl_open, rpl_opendir): Use _gl_register_fd.
21544
21545 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21546
21547         Fix organization of 'open' replacement.
21548         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21549         (gl_FUNC_OPEN): Use it.
21550         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21551
21552 2008-10-08  Bruno Haible  <bruno@clisp.org>
21553
21554         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21555
21556 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21557
21558         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21559         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21560         listen).
21561
21562 2008-10-08  Eric Blake  <ebb9@byu.net>
21563
21564         GNUmakefile: add 'make version' target
21565         * top/GNUmakefile (_curr-ver): Split version update rules...
21566         (version): ...into a target.
21567
21568 2008-10-07  Bruno Haible  <bruno@clisp.org>
21569
21570         Use a more portable replacement expression for -0.0L.
21571         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21572         instead of -0.0L. Fix m4 quotation.
21573
21574         * tests/test-signbit.c: Include <float.h>.
21575         (minus_zero): New variable.
21576         (test_signbitl): Use minus_zero instead of -zero.
21577         * modules/signbit-tests (Depends-on): Add float.
21578
21579         * tests/test-ceill.c: Include <float.h>.
21580         (zero): Remove variable.
21581         (minus_zero): New variable.
21582         (main): Use minus_zero instead of -zero.
21583         * modules/ceill-tests (Depends-on): Add float.
21584
21585         * tests/test-floorl.c: Include <float.h>.
21586         (zero): Remove variable.
21587         (minus_zero): New variable.
21588         (main): Use minus_zero instead of -zero.
21589         * modules/floorl-tests (Depends-on): Add float.
21590
21591         * tests/test-roundl.c: Include <float.h>.
21592         (zero): Remove variable.
21593         (minus_zero): New variable.
21594         (main): Use minus_zero instead of -zero.
21595         * modules/roundl-tests (Depends-on): Add float.
21596
21597         * tests/test-truncl.c: Include <float.h>.
21598         (zero): Remove variable.
21599         (minus_zero): New variable.
21600         (main): Use minus_zero instead of -zero.
21601         * modules/truncl-tests (Depends-on): Add float.
21602
21603         * tests/test-frexpl.c (zero): Remove variable.
21604         (minus_zero): New variable.
21605         (main): Use minus_zero instead of -zero.
21606         * modules/frexpl-tests (Depends-on): Add float.
21607
21608         * tests/test-isnan.c (zerol): Remove variable.
21609         (minus_zerol): New variable.
21610         (test_long_double): Use minus_zerol instead of -zerol.
21611         * modules/isnan-tests (Depends-on): Add float.
21612
21613         * tests/test-isnanl.h (zero): Remove variable.
21614         (minus_zero): New variable.
21615         (main): Use minus_zero instead of -zero.
21616         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21617         * modules/isnanl-tests (Depends-on): Add float.
21618
21619         * tests/test-ldexpl.c (zero): Remove variable.
21620         (minus_zero): New variable.
21621         (main): Use minus_zero instead of -zero.
21622         * modules/ldexpl-tests (Depends-on): Add float.
21623
21624         * tests/test-snprintf-posix.h (zerol): Remove variable.
21625         (minus_zerol): New variable.
21626         (test_function): Use minus_zerol instead of -zerol.
21627         * modules/snprintf-posix-tests (Depends-on): Add float.
21628         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21629
21630         * tests/test-sprintf-posix.h (zerol): Remove variable.
21631         (minus_zerol): New variable.
21632         (test_function): Use minus_zerol instead of -zerol.
21633         * modules/sprintf-posix-tests (Depends-on): Add float.
21634         * modules/vsprintf-posix-tests (Depends-on): Add float.
21635
21636         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21637         (minus_zerol): New variable.
21638         (test_function): Use minus_zerol instead of -zerol.
21639         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21640
21641         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21642         (minus_zerol): New variable.
21643         (test_function): Use minus_zerol instead of -zerol.
21644         * modules/vasprintf-posix-tests (Depends-on): Add float.
21645
21646 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21647
21648         * MODULES.html.sh (Support for building documentation): Mention
21649         pmccabe2html.  Sort entries.
21650
21651         Add pmccabe2html module, from gnupdf.
21652         * build-aux/pmccabe.css: New file.
21653         * build-aux/pmccabe2html: New file.
21654         * m4/pmccabe2html.m4: New file.
21655         * modules/pmccabe2html: New file.
21656
21657 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21658
21659         flock: new module
21660         * MODULES.html.sh: Add to list of modules.
21661         * lib/flock.c: flock implementation for Windows and Unix systems
21662         which have fcntl.
21663         * doc/glibc-functions/flock.texi: Update documentation.
21664         * lib/sys_file.in.h: <sys/file.h> header file.
21665         * m4/flock.m4: M4 macros.
21666         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21667         * modules/flock: flock module.
21668         * modules/flock-tests: flock tests module.
21669         * modules/sys_file: sys/file.h module.
21670         * tests/test-flock.c: test suite for flock.
21671
21672 2008-10-06  Jim Meyering  <meyering@redhat.com>
21673
21674         bootstrap: check for LT_INIT more portably still ;-)
21675         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21676         Spotted by Bruno Haible.
21677
21678 2008-10-06  Eric Blake  <ebb9@byu.net>
21679
21680         test-signbit: avoid tripping Irix cc bug on -0.0L
21681         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21682         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21683         entire testsuite consistent and avoids an Irix 6.2 bug.
21684
21685 2008-10-05  Bruno Haible  <bruno@clisp.org>
21686             Jim Meyering  <jim@meyering.net>
21687
21688         Add an option for ignoring EPIPE during close_stdout.
21689         * lib/closeout.h: Include <stdbool.h>.
21690         (close_stdout_set_ignore_EPIPE): New declaration.
21691         * lib/closeout.c: Include <stdbool.h>.
21692         (ignore_EPIPE): New variable.
21693         (close_stdout_set_ignore_EPIPE): New function.
21694         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21695         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21696         failure.
21697         * modules/closeout (Depends-on): Add stdbool.
21698
21699 2008-10-05  Bruno Haible  <bruno@clisp.org>
21700
21701         * modules/accept: New file.
21702         * modules/bind: New file.
21703         * modules/connect: New file.
21704         * modules/getpeername: New file.
21705         * modules/getsockname: New file.
21706         * modules/getsockopt: New file.
21707         * modules/listen: New file.
21708         * modules/recv: New file.
21709         * modules/recvfrom: New file.
21710         * modules/send: New file.
21711         * modules/sendto: New file.
21712         * modules/setsockopt: New file.
21713         * modules/socket: New file.
21714         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21715         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21716         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21717         the particular module is requested. Add a link warning when the
21718         particular module is not requested.
21719         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21720         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21721         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21722         the particular module is requested.
21723         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21724         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21725         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21726         * modules/sys_socket (Depends-on): Add link-warning.
21727         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21728         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21729         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21730         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21731         GL_LINK_WARNING.
21732         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21733         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21734         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21735         * doc/posix-functions/getpeername.texi: Mention the new module
21736         'getpeername'.
21737         * doc/posix-functions/getsockname.texi: Mention the new module
21738         'getsockname'.
21739         * doc/posix-functions/getsockopt.texi: Mention the new module
21740         'getsockopt'.
21741         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21742         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21743         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21744         * doc/posix-functions/send.texi: Mention the new module 'send'.
21745         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21746         * doc/posix-functions/setsockopt.texi: Mention the new module
21747         'setsockopt'.
21748         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21749         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21750         listen, connect, accept.
21751         * modules/select-tests (Depends-on): Likewise.
21752
21753 2008-10-05  Bruno Haible  <bruno@clisp.org>
21754
21755         * lib/winsock.c (strerror): Remove unused #undef.
21756         (rpl_close): Remove unused local variable.
21757
21758         * modules/sys_socket (Depends-on); Add errno.
21759
21760 2008-10-05  Bruno Haible  <bruno@clisp.org>
21761
21762         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21763         (select): Add a link warning when the 'select' module is not used.
21764         * modules/sys_select (Depends-on): Add link-warning.
21765         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21766         Suggested by Paolo Bonzini.
21767
21768 2008-10-05  Jim Meyering  <meyering@redhat.com>
21769
21770         bootstrap: check for LT_INIT more portably
21771         * build-aux/bootstrap: Avoid using grep -E, since it's not
21772         portable enough.  Suggestion from Bruno Haible.
21773
21774 2008-10-05  Bruno Haible  <bruno@clisp.org>
21775
21776         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21777         as being fixed by gnulib.
21778
21779 2008-10-05  Bruno Haible  <bruno@clisp.org>
21780
21781         * modules/select-tests: New file, mostly copied from
21782         modules/sys_select-tests.
21783         * tests/test-select.c: New file, mostly copied from
21784         tests/test-sys_select.c.
21785         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21786         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21787         (Makefile.am): Remove test_sys_select_LDADD.
21788
21789         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21790         to an undefined symbol, for an error message.
21791         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21792         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21793         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21794         winsock-select.c here.
21795         * modules/sys_select (Files): Remove lib/winsock-select.c.
21796         (Depends-on): Remove alloca.
21797         (Makefile.am): Substitute GNULIB_SELECT.
21798         * modules/select: New file.
21799         * doc/posix-functions/select.texi: Update.
21800
21801 2008-10-05  Bruno Haible  <bruno@clisp.org>
21802
21803         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21804         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21805         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21806         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21807         getdtablesize.
21808         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21809         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21810
21811 2008-10-05  Bruno Haible  <bruno@clisp.org>
21812
21813         * modules/getdtablesize-tests: New file.
21814         * tests/test-getdtablesize.c: New file.
21815
21816         New module 'getdtablesize'.
21817         * lib/unistd.in.h (getdtablesize): New declaration.
21818         * lib/getdtablesize.c: New file.
21819         * m4/getdtablesize.m4: New file.
21820         * modules/getdtablesize: New file.
21821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21822         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21823         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21824         HAVE_GETDTABLESIZE.
21825         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21826
21827 2008-10-05  Bruno Haible  <bruno@clisp.org>
21828
21829         * modules/sched (Makefile.am): Fix typo.
21830         Reported by Simon Josefsson.
21831
21832 2008-10-05  Jim Meyering  <meyering@redhat.com>
21833
21834         bootstrap: check for LT_INIT, too
21835         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21836         are deprecated.  Suggestion from Ralf Wildenhues.
21837
21838 2008-10-05  Bruno Haible  <bruno@clisp.org>
21839
21840         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21841         overriding them by ours.
21842         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21843
21844 2008-10-05  Jim Meyering  <meyering@redhat.com>
21845
21846         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21847         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21848         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21849
21850 2008-10-04  Bruno Haible  <bruno@clisp.org>
21851
21852         * modules/dup2 (License): Change to LGPLv2+.
21853         * modules/sleep (License): Likewise.
21854         * modules/perror (License): Likewise.
21855         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21856         Blake.
21857         * modules/signal (License): Likewise.
21858         * modules/sigprocmask (License): Likewise.
21859         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21860         Meyering.
21861
21862 2008-10-04  Bruno Haible  <bruno@clisp.org>
21863
21864         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21865         Reported by Rainer Tammer <tammer@tammer.net>.
21866
21867 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21868             Bruno Haible  <bruno@clisp.org>
21869
21870         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21871         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21872         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21873
21874 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21875
21876         filevercmp: new module
21877         * lib/filevercmp.h: New function filevercmp comparing version strings.
21878         * lib/filevercmp.c: Implementation of filevercmp function.
21879         * modules/filevercmp: Module metadata.
21880         * tests/test-filevercmp.c: Unit test for new module.
21881         * modules/filevercmp-tests: Unit test metadata.
21882         * MODULES.html.sh: Add filevercmp module.
21883
21884 2008-10-03  Bruno Haible  <bruno@clisp.org>
21885
21886         * lib/c-ctype.h: Add comment.
21887         Reported by Jim Meyering.
21888
21889 2008-10-02  Bruno Haible  <bruno@clisp.org>
21890
21891         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21892
21893 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21894
21895         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21896         name of bootstrap.conf accordingly.
21897
21898 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21899
21900         * build-aux/bootstrap: Install git-merge-changelog configuration
21901         items into .gitconfig if needed.
21902
21903 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21904
21905         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21906         git repository, and initialize/update it accordingly.
21907
21908 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21909
21910         * modules/fsync-tests: New file.
21911         * tests/test-fsync.c: New file.
21912
21913         New module 'fsync'.
21914         * lib/fsync.c: New file.
21915         * m4/fsync.m4: New file.
21916         * modules/fsync: New file.
21917         * lib/unistd.in.h (fsync): New declaration.
21918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21919         GNULIB_FSYNC and HAVE_FSYNC.
21920         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21921         * MODULES.html.sh (posix_functions): Add fsync.
21922         * doc/posix-functions/fsync.texi: Mention the new module.
21923
21924 2008-10-02  Jim Meyering  <meyering@redhat.com>
21925
21926         fts.c: sync with similar code from coreutils' remove.c
21927         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21928         Guard also with "#if defined __linux__", since for now at least,
21929         this code is Linux-kernel-specific.
21930
21931 2008-10-02  Jim Meyering  <meyering@redhat.com>
21932
21933         fts: bug fixes
21934         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21935         Include <sys/vfs.h>, not <sys/statfs.h>.
21936
21937         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21938         Include <sys/vfs.h>, not <sys/statfs.h>.
21939
21940 2008-10-01  Bruno Haible  <bruno@clisp.org>
21941
21942         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21943         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21944         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21945         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21946         * doc/posix-functions/posix_spawnp.texi: Likewise.
21947         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21948         whether posix_spawn actually works.
21949         * m4/pipe.m4 (gl_PIPE): Likewise.
21950         * modules/execute (Files): Add m4/posix_spawn.m4.
21951         * modules/pipe (Files): Add m4/posix_spawn.m4.
21952         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21953
21954 2008-10-01  Jim Meyering  <meyering@redhat.com>
21955
21956         remove trailing spaces
21957         * NEWS: Likewise.
21958         * lib/poll.c (poll): Likewise.
21959         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21960         * lib/winsock.c (rpl_close): Likewise.
21961         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21962         * modules/yield: Likewise.
21963         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21964         * tests/test-sys_select.c (connect_to_socket): Likewise.
21965
21966         fts.c: adjust a new interface to be more generally useful
21967         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21968         (fts_build): Adjust caller.
21969
21970 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21971
21972         * modules/cond-tests: New file.
21973         * tests/test-cond.c: New file.
21974
21975 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21976             Bruno Haible  <bruno@clisp.org>
21977
21978         * modules/cond (Dependencies): Add errno, time.
21979         * lib/glthread/cond.h: Include <time.h>.
21980         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21981         across platforms.
21982
21983 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21984             Bruno Haible  <bruno@clisp.org>
21985
21986         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21987
21988 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21989             Bruno Haible  <bruno@clisp.org>
21990
21991         * modules/tls-tests (Depends-on): Add thread, yield.
21992         (configure.ac): Remove all checks.
21993         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21994         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21995         gl_thread_self): Remove definitions. Include glthread/thread.h and
21996         glthread/yield.h instead.
21997         (test_tls): Pass an additional NULL argument to gl_thread_join.
21998
21999 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22000             Bruno Haible  <bruno@clisp.org>
22001
22002         * modules/lock-tests (Depends-on): Add thread, yield.
22003         (configure.ac): Remove all checks.
22004         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
22005         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22006         gl_thread_self): Remove definitions. Include glthread/thread.h and
22007         glthread/yield.h instead.
22008         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
22009         additional NULL argument to gl_thread_join.
22010
22011 2008-09-30  Bruno Haible  <bruno@clisp.org>
22012
22013         Fix the Win32 implementation of the 'thread' module.
22014         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
22015         pointer type.
22016         (gl_thread_self): Invoke gl_thread_self_func.
22017         (gl_thread_self_func): New declaration.
22018         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
22019         (do_init_self_key, init_self_key): New functions.
22020         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
22021         Remove some fields.
22022         (running_threads, running_lock): Remove variables.
22023         (get_current_thread_handle): New function.
22024         (gl_thread_self_func, wrapper_func, glthread_create_func,
22025         glthread_join_func, gl_thread_exit_func): Largely rewritten and
22026         simplified.
22027
22028 2008-09-30  Bruno Haible  <bruno@clisp.org>
22029
22030         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
22031         files.
22032
22033 2008-09-30  Jim Meyering  <meyering@redhat.com>
22034
22035         fts.m4: correct the test for statfs.f_type
22036         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
22037         when checking for statfs.f_type.
22038
22039 2008-09-15  Simon Josefsson  <simon@josefsson.org>
22040
22041         tests: avoid some compiler warnings
22042         * tests/test-memchr.c (main): Pass NULL indirectly.
22043         * tests/test-getdate.c (main): Remove unused variable 'ret'.
22044
22045 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
22046
22047         getdate.y: disallow countable dayshifts like "4 yesterday ago"
22048         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
22049         exactly specified dayshifts.
22050         (dayshift): New rule.
22051         (rel): Add dayshift.
22052         (relative_time_table) [tomorrow, yesterday, today, now]:
22053         Use tDAY_SHIFT in place of tDAY_UNIT.
22054         * tests/test-getdate.c: Add tests for now-disallowed countable
22055         dayshifts, e.g., "4 yesterday ago".
22056
22057 2008-09-29  Bruno Haible  <bruno@clisp.org>
22058
22059         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
22060         * tests/test-posix_spawn1.in.sh: Renamed from
22061         tests/test-posix_spawn.in.sh.
22062         * tests/test-posix_spawn2.c: New file.
22063         * tests/test-posix_spawn2.in.sh: New file.
22064         * modules/posix_spawnp-tests (Files): Update.
22065         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
22066
22067 2008-09-29  Bruno Haible  <bruno@clisp.org>
22068
22069         Propagate effects of putenv/setenv/unsetenv to child processes.
22070         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
22071         * lib/pipe.c (create_pipe): Likewise.
22072
22073 2008-09-29  Bruno Haible  <bruno@clisp.org>
22074
22075         Enable use of shell scripts as executables in mingw.
22076         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
22077         run the program as a shell script.
22078         * lib/pipe.c (create_pipe): Likewise.
22079         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
22080         resulting array.
22081
22082 2008-09-29  Eric Blake  <ebb9@byu.net>
22083
22084         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
22085
22086 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
22087
22088         * doc/posix-functions/accept.texi: Update mingw problems.
22089         * doc/posix-functions/bind.texi: Update mingw problems.
22090         * doc/posix-functions/close.texi: Update mingw problems.
22091         * doc/posix-functions/connect.texi: Update mingw problems.
22092         * doc/posix-functions/getpeername.texi: Update mingw problems.
22093         * doc/posix-functions/getsockname.texi: Update mingw problems.
22094         * doc/posix-functions/getsockopt.texi: Update mingw problems.
22095         * doc/posix-functions/ioctl.texi: Update mingw problems.
22096         * doc/posix-functions/listen.texi: Update mingw problems.
22097         * doc/posix-functions/recv.texi: Update mingw problems.
22098         * doc/posix-functions/recvfrom.texi: Update mingw problems.
22099         * doc/posix-functions/select.texi: Update mingw problems.
22100         * doc/posix-functions/send.texi: Update mingw problems.
22101         * doc/posix-functions/sendto.texi: Update mingw problems.
22102         * doc/posix-functions/setsockopt.texi: Update mingw problems.
22103         * doc/posix-functions/socket.texi: Update mingw problems.
22104
22105 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
22106             Bruno Haible  <bruno@clisp.org>
22107
22108         * lib/sys_select.in.h: Include sys/time.h.
22109         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
22110         * modules/sys_select: Depend on sys_time.
22111         * tests/test-sys_select.c: Test that sys/select.h defines struct
22112         timeval fully.
22113
22114 2008-09-29  Bruno Haible  <bruno@clisp.org>
22115
22116         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
22117         * lib/sys_select.in.h: Likewise.
22118
22119 2008-09-29  Bruno Haible  <bruno@clisp.org>
22120
22121         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
22122
22123 2008-09-29  Bruno Haible  <bruno@clisp.org>
22124
22125         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
22126         Set LIBSOCKET instead of augmenting LIBS.
22127         * modules/sockets (Link): New section.
22128         * modules/sockets-tests (test_sockets_LDADD): New variable.
22129         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
22130         * modules/poll-tests (test_poll_LDADD): New variable.
22131         * NEWS: Document the change.
22132
22133 2008-09-29  Bruno Haible  <bruno@clisp.org>
22134
22135         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
22136         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
22137         ARPA_INET_H directly.
22138         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22139
22140 2008-09-28  Bruno Haible  <bruno@clisp.org>
22141
22142         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
22143         from gl_HEADER_SYS_SOCKET.
22144         (gl_HEADER_SYS_SOCKET): Invoke it.
22145         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22146
22147 2008-09-28  Bruno Haible  <bruno@clisp.org>
22148
22149         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
22150         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
22151         Needed on OSF/1 4.0.
22152
22153 2008-09-28  Bruno Haible  <bruno@clisp.org>
22154
22155         Override open more carefully.
22156         * lib/open.c (orig_open): New function.
22157         (rpl_open): Use orig_open instead of open.
22158         * lib/fcntl.in.h: Add special invocation convention.
22159         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
22160         (gl_FUNC_OPEN): Invoke it.
22161
22162         Override freopen more carefully.
22163         * lib/freopen.c (orig_freopen): New function.
22164         (rpl_freopen): Use orig_freopen instead of freopen.
22165         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
22166         (gl_FUNC_FREOPEN): Invoke it.
22167
22168         Override fopen more carefully.
22169         * lib/fopen.c (orig_fopen): New function.
22170         (rpl_fopen): Use orig_fopen instead of fopen.
22171         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
22172         (gl_FUNC_FOPEN): Invoke it.
22173         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
22174
22175 2008-09-28  Bruno Haible  <bruno@clisp.org>
22176
22177         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
22178         SIGPIPE.
22179
22180 2008-09-28  Bruno Haible  <bruno@clisp.org>
22181
22182         * tests/test-sigaction.c (handler, main): Disable the check whether
22183         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
22184         glibc systems with LinuxThreads.
22185
22186 2008-09-28  Bruno Haible  <bruno@clisp.org>
22187
22188         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
22189
22190         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
22191         with AIX xlc.
22192         * lib/fcntl.in.h (open): Likewise.
22193         Reported by Rainer Tammer <tammer@tammer.net>.
22194
22195 2008-09-28  Bruno Haible  <bruno@clisp.org>
22196
22197         * modules/posix_spawnp-tests: New file.
22198         * tests/test-posix_spawn.c: New file.
22199         * tests/test-posix_spawn.in.sh: New file.
22200
22201         New module 'posix_spawnp'.
22202         * modules/posix_spawnp: New file.
22203         * lib/spawnp.c: New file, from GNU libc with modifications.
22204         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
22205
22206         New module 'posix_spawn'.
22207         * modules/posix_spawn: New file.
22208         * lib/spawn.c: New file, from GNU libc with modifications.
22209         * doc/posix-functions/posix_spawn.texi: Mention the new module.
22210
22211         New module 'posix_spawnattr_destroy'.
22212         * modules/posix_spawnattr_destroy: New file.
22213         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
22214         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
22215         module.
22216
22217         New module 'posix_spawnattr_setsigmask'.
22218         * modules/posix_spawnattr_setsigmask: New file.
22219         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
22220         modifications.
22221         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22222         new module.
22223
22224         New module 'posix_spawnattr_getsigmask'.
22225         * modules/posix_spawnattr_getsigmask: New file.
22226         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22227         modifications.
22228         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22229         new module.
22230
22231         New module 'posix_spawnattr_setsigdefault'.
22232         * modules/posix_spawnattr_setsigdefault: New file.
22233         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22234         modifications.
22235         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22236         new module.
22237
22238         New module 'posix_spawnattr_getsigdefault'.
22239         * modules/posix_spawnattr_getsigdefault: New file.
22240         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22241         modifications.
22242         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22243         new module.
22244
22245         New module 'posix_spawnattr_setschedpolicy'.
22246         * modules/posix_spawnattr_setschedpolicy: New file.
22247         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22248         modifications.
22249         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22250         new module.
22251
22252         New module 'posix_spawnattr_getschedpolicy'.
22253         * modules/posix_spawnattr_getschedpolicy: New file.
22254         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22255         modifications.
22256         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22257         new module.
22258
22259         New module 'posix_spawnattr_setschedparam'.
22260         * modules/posix_spawnattr_setschedparam: New file.
22261         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22262         modifications.
22263         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22264         new module.
22265
22266         New module 'posix_spawnattr_getschedparam'.
22267         * modules/posix_spawnattr_getschedparam: New file.
22268         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22269         modifications.
22270         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22271         new module.
22272
22273         New module 'posix_spawnattr_setpgroup'.
22274         * modules/posix_spawnattr_setpgroup: New file.
22275         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22276         modifications.
22277         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22278         module.
22279
22280         New module 'posix_spawnattr_getpgroup'.
22281         * modules/posix_spawnattr_getpgroup: New file.
22282         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22283         modifications.
22284         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22285         module.
22286
22287         New module 'posix_spawnattr_setflags'.
22288         * modules/posix_spawnattr_setflags: New file.
22289         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22290         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22291         module.
22292
22293         New module 'posix_spawnattr_getflags'.
22294         * modules/posix_spawnattr_getflags: New file.
22295         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22296         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22297         module.
22298
22299         New module 'posix_spawnattr_init'.
22300         * modules/posix_spawnattr_init: New file.
22301         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22302         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22303         module.
22304
22305         New module 'posix_spawn_file_actions_destroy'.
22306         * modules/posix_spawn_file_actions_destroy: New file.
22307         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22308         modifications.
22309         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22310         the new module.
22311
22312         New module 'posix_spawn_file_actions_addopen'.
22313         * modules/posix_spawn_file_actions_addopen: New file.
22314         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22315         modifications.
22316         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22317         the new module.
22318
22319         New module 'posix_spawn_file_actions_adddup2'.
22320         * modules/posix_spawn_file_actions_adddup2: New file.
22321         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22322         modifications.
22323         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22324         the new module.
22325
22326         New module 'posix_spawn_file_actions_addclose'.
22327         * modules/posix_spawn_file_actions_addclose: New file.
22328         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22329         modifications.
22330         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22331         the new module.
22332
22333         New module 'posix_spawn_file_actions_init'.
22334         * modules/posix_spawn_file_actions_init: New file.
22335         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22336         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22337         new module.
22338
22339         New module 'posix_spawn-internal'.
22340         * modules/posix_spawn-internal: New file.
22341         * lib/spawn_int.h: New file, from GNU libc with modifications.
22342         * lib/spawni.c: New file, from GNU libc with modifications.
22343         * m4/posix_spawn.m4: New file.
22344
22345         New module 'spawn'.
22346         * modules/spawn: New file.
22347         * lib/spawn.in.h: New file, from GNU libc with modifications.
22348         * m4/spawn_h.m4: New file.
22349         * doc/posix-headers/spawn.texi: Mention the new module.
22350
22351 2008-09-28  Bruno Haible  <bruno@clisp.org>
22352
22353         * modules/sched-tests: New file.
22354         * tests/test-sched.c: New file.
22355
22356         New module 'sched'.
22357         * modules/sched: New file.
22358         * lib/sched.in.h: New file.
22359         * m4/sched_h.m4: New file.
22360         * doc/posix-headers/sched.texi: Mention the new module.
22361
22362 2008-09-27  Eric Blake  <ebb9@byu.net>
22363
22364         Fix previous patch, and tweak references to $0.
22365         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22366         (func_version, func_gnulib_dir): Don't call this program
22367         gnulib-tool.
22368         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22369         with using $0 in function.
22370         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22371         (func_fatal_error): Reuse the name the user invoked us with.
22372
22373 2008-09-27  Bruno Haible  <bruno@clisp.org>
22374
22375         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22376         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22377         (gl_ICONV_H): Not here.
22378         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22379         instead of assigning ICONV_H directly.
22380
22381         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22383         WCHAR_H directly.
22384
22385 2008-09-27  Bruno Haible  <bruno@clisp.org>
22386
22387         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22388         * modules/arpa_inet (Depends-on): Add link-warning.
22389         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22390         * modules/unistd (Makefile.am): Likewise.
22391
22392 2008-09-26  Bruno Haible  <bruno@clisp.org>
22393
22394         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22395         variables.
22396         (func_version): Essentially copied from gnulib-tool.
22397         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22398         func_readlink): Copied from gnulib-tool.
22399
22400 2008-09-26  Bruno Haible  <bruno@clisp.org>
22401
22402         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22403         invoking git-version-gen.
22404
22405 2008-09-26  Bruno Haible  <bruno@clisp.org>
22406
22407         * posix-modules: Update to directory names changed on 2008-01-19.
22408         Remove commas in output before splitting into words. No more need to
22409         avoid 'ftruncate' since 2007-02-19.
22410
22411 2008-09-26  Bruno Haible  <bruno@clisp.org>
22412
22413         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22414
22415 2008-09-26  Bruno Haible  <bruno@clisp.org>
22416
22417         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22418         * modules/fwriteerror (Depends-on): Add errno.
22419
22420 2008-09-26  Bruno Haible  <bruno@clisp.org>
22421
22422         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22423         * tests/test-vc-list-files-cvs.sh: Likewise.
22424
22425 2008-09-26  Bruno Haible  <bruno@clisp.org>
22426
22427         * doc/posix-headers/sys_resource.texi: Reorder items.
22428
22429 2008-09-26  Jim Meyering  <meyering@redhat.com>
22430
22431         fts: tweak inode comparison function
22432         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22433         inode numbers, as documented.
22434
22435         fts: sort dirent entries on inode number before traversing
22436         This avoids a quadratic, seek-related performance penalty when
22437         operating on a directory containing many entries (measurable at 10k;
22438         3.5 hours at 2 million entries with a cold cache) on certain types
22439         of file systems, including ext3 and ext4, but not tmpfs.
22440         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22441         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22442         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22443         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22444         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22445         (fts_build): Set the stat.st_ino member from D_INO.
22446         If it is likely to be useful, sort dirent entries on inode number.
22447
22448         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22449         and the struct statfs.f_type member.
22450         * modules/fts (Depends-on): Add d-ino.
22451
22452 2008-09-26  Bruno Haible  <bruno@clisp.org>
22453
22454         * modules/sigpipe-die (Depends-on): Add sigpipe.
22455
22456         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22457         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22458         and GNULIB_STDIO_H_SIGPIPE are set.
22459         * lib/stdio-write.c: New file.
22460         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22461         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22462         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22463         REPLACE_STDIO_WRITE_FUNCS.
22464         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22465         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22466         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22467         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22468         * modules/stdio (Files): Add lib/stdio-write.c.
22469         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22470         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22471         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22472         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22473         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22474         REPLACE_FPRINTF_POSIX.
22475         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22476         REPLACE_PRINTF_POSIX.
22477         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22478         REPLACE_VFPRINTF_POSIX.
22479         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22480         REPLACE_VPRINTF_POSIX.
22481         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22482         SIGPIPE issue.
22483         * doc/posix-functions/fputc.texi: Likewise.
22484         * doc/posix-functions/fputs.texi: Likewise.
22485         * doc/posix-functions/fwrite.texi: Likewise.
22486         * doc/posix-functions/printf.texi: Likewise.
22487         * doc/posix-functions/putc.texi: Likewise.
22488         * doc/posix-functions/putchar.texi: Likewise.
22489         * doc/posix-functions/puts.texi: Likewise.
22490         * doc/posix-functions/vfprintf.texi: Likewise.
22491         * doc/posix-functions/vprintf.texi: Likewise.
22492
22493         * modules/safe-write (Depends-on): Add write.
22494
22495         * modules/sigpipe-tests: New file.
22496         * tests/test-sigpipe.c: New file.
22497         * tests/test-sigpipe.sh: New file.
22498
22499         * modules/write: New file.
22500         * lib/unistd.in.h: Include <sys/types.h>.
22501         (write): New declaration.
22502         * lib/write.c: New file.
22503         * m4/write.m4: New file.
22504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22505         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22506         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22507         GNULIB_WRITE, REPLACE_WRITE.
22508         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22509         and the SIGPIPE issue.
22510
22511         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22512         (raise): New declaration.
22513         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22514         (ext_signal): New function.
22515         (rpl_raise): New function.
22516         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22517         GNULIB_SIGNAL_H_SIGPIPE.
22518         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22519         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22520
22521         * modules/sigpipe: New file.
22522         * m4/sigpipe.m4: New file.
22523
22524 2008-09-25  Derek Price  <derek@ximbiot.com>
22525             Bruno Haible  <bruno@clisp.org>
22526
22527         * gnulib-tool (func_import): Report all license incompatibilities, not
22528         just the first one.
22529
22530 2008-09-25  Bruno Haible  <bruno@clisp.org>
22531
22532         * gnulib-tool (func_import): When computing the edits, consider not
22533         only the Makefile.ams that exist but also those that will be generated.
22534
22535 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22536
22537         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22538         fixes gnulib-tool --test warning about duplicate dependency.
22539
22540 2008-09-25  Bruno Haible  <bruno@clisp.org>
22541
22542         * gnulib-tool: Don't ask the user to perform edits in the generated
22543         Makefile.ams.
22544         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22545         apply to the Makefile.am being generated.
22546         (func_emit_tests_Makefile_am): Execute edits that apply to the
22547         Makefile.am being generated.
22548         (func_import): Setup list of Makefile.am edits before emitting the
22549         Makefile.ams, not at the end.
22550         (func_create_testdir): Update.
22551         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22552
22553 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22554
22555         * gnulib-tool (func_import): Store the --tests-base option in the
22556         comment in gnulib-cache.m4.
22557
22558 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22559
22560         * NEWS: Document increased portability that sys_select now provides.
22561
22562         * lib/sys_select.in.h: Install select wrapper.
22563         * lib/sys_socket.in.h: Use more descriptive name when there is no
22564         select wrapper.
22565         * lib/winsock-select.c: New.
22566         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22567         Require gl_HEADER_SYS_SOCKET.
22568         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22569         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22570         * tests/test-sys_select.c: Add functional tests.
22571
22572 2008-09-24  Eric Blake  <ebb9@byu.net>
22573
22574         open, fopen: close fd leak in last patch
22575         * lib/open.c (rpl_open): Close fd before returning error.
22576         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22577         * doc/posix-functions/open.texi (open): Document that Irix also
22578         has the bug.
22579         * doc/posix-functions/fopen.texi (fopen): Likewise.
22580         Reported by Paolo Bonzini.
22581
22582 2008-09-24  Bruno Haible  <bruno@clisp.org>
22583
22584         Ensure that a filename ending in a slash cannot be used to access a
22585         non-directory.
22586         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22587         to check whether it's really a directory.
22588         * lib/fopen.c: Include fcntl.h, unistd.h.
22589         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22590         and fdopen().
22591         * modules/fopen (Depends-on): Add unistd.
22592         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22593         * tests/test-fopen.c (main): Likewise.
22594         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22595         * doc/posix-functions/fopen.texi: Likewise.
22596         Reported by Eric Blake.
22597
22598 2008-09-23  Eric Blake  <ebb9@byu.net>
22599
22600         c-stack: avoid compiler optimizations when provoking overflow
22601         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22602         recursion harder to optimize, to ensure a stack overflow occurs.
22603         * tests/test-c-stack.c (recurse): Likewise.
22604         Borrowed from libsigsegv.
22605
22606         c-stack: work around Irix sigaltstack bug
22607         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22608         whether sigaltstack uses wrong end of stack_t (copied in part from
22609         libsigsegv).
22610         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22611         Irix bug, without requiring an over-allocation.
22612         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22613         bug.
22614
22615         fopen: document mingw bug on directories
22616         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22617         not allowing a stream visiting a directory, even though reading
22618         from such a stream is not portable.
22619
22620 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22621
22622         * lib/poll.c: Rewrite.
22623         * modules/poll: Depend on alloca.
22624
22625 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22626
22627         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22628         instead define prototypes for a full set of wrappers.  Ensure
22629         that Cygwin does not use the compatibility code, which is only
22630         for MinGW.
22631         * lib/winsock.c: New.
22632         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22633         * modules/sys_socket: Add lib/winsock.c.
22634
22635         * modules/poll-tests: Add errno and perror.
22636         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22637
22638 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22639
22640         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22641
22642 2008-09-23  Bruno Haible  <bruno@clisp.org>
22643
22644         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22645         * doc/glibc-functions/*: Likewise.
22646
22647 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22648
22649         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22650         success.
22651
22652 2008-09-22  Eric Blake  <ebb9@byu.net>
22653             Bruno Haible  <bruno@clisp.org>
22654
22655         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22656         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22657         supply %A but mishandle pseudo-NaN.
22658         Reported by Simon Josefsson.
22659
22660 2008-09-21  Bruno Haible  <bruno@clisp.org>
22661
22662         * tests/test-lock.c (main): Tweak skip message.
22663         * tests/test-tls.c (main): Likewise.
22664
22665 2008-09-21  Bruno Haible  <bruno@clisp.org>
22666
22667         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22668         whether 'struct sigaction' has sa_sigaction here...
22669         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22670         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22671
22672 2008-09-21  Bruno Haible  <bruno@clisp.org>
22673
22674         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22675         section.
22676         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22677         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22678         the new section.
22679         (Support for obsolete systems lacking POSIX:2001): New section.
22680         (String handling <string.h>): Move strdup to the new section.
22681         Suggested by Simon Josefsson and Paolo Bonzini.
22682
22683 2008-09-21  Bruno Haible  <bruno@clisp.org>
22684
22685         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22686         exponents in %e and %g results on 'long double'. Needed for mingw's
22687         improved *printf functions.
22688         * tests/test-vasprintf-posix.c (test_function): Likewise.
22689         * tests/test-snprintf-posix.h (test_function): Likewise.
22690         * tests/test-sprintf-posix.h (test_function): Likewise.
22691         Reported by Eric Blake.
22692
22693 2008-09-21  Bruno Haible  <bruno@clisp.org>
22694
22695         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22696         * tests/test-sprintf-posix.h (test_function): Likewise.
22697
22698 2008-09-21  Bruno Haible  <bruno@clisp.org>
22699
22700         * modules/getpass (Depends-on): Add strdup-posix.
22701
22702         New module 'strdup-posix'.
22703         * modules/strdup-posix: New file.
22704         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22705         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22707         REPLACE_STRDUP.
22708         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22709         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22711         strdup-posix.
22712
22713         * modules/strdup (Depends-on): Remove malloc-posix.
22714
22715 2008-09-20  Bruno Haible  <bruno@clisp.org>
22716
22717         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22718         Wildenhues.
22719
22720 2008-09-20  Bruno Haible  <bruno@clisp.org>
22721
22722         Ensure that wint_t gets defined on IRIX 5.3.
22723         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22724         * lib/wctype.in.h (wint_t): Likewise.
22725         (__wctype_wint_t): Remove type.
22726         (isw*): Use wint_t instead of __wctype_wint_t.
22727         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22728         * modules/wchar (Files): Add m4/wint_t.m4.
22729         (Makefile.am): Substitute HAVE_WINT_T.
22730         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22731         * tests/test-wctype.c: Check that wint_t is defined.
22732         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22733         * doc/posix-headers/wctype.texi: Likewise.
22734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22735
22736 2008-09-18  Bruno Haible  <bruno@clisp.org>
22737
22738         * gnulib-tool (func_exit): Update comment.
22739
22740 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22741
22742         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22743         assumes strdup exists and does not depend on strdup to return
22744         ENOMEM on out of memory conditions.
22745
22746 2008-09-18  Bruno Haible  <bruno@clisp.org>
22747
22748         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
22749         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22750         digits for the exponent.
22751
22752 2008-09-18  Jim Meyering  <meyering@redhat.com>
22753             Bruno Haible  <bruno@clisp.org>
22754
22755         * lib/vasnprintf.c (decimal_point_char): Define also if
22756         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22757
22758 2008-09-16  Bruno Haible  <bruno@clisp.org>
22759         and Eric Blake  <ebb9@byu.net>
22760
22761         vasnprintf: support Irix 5.3
22762         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22763         that mishandle long double infinity.
22764         Reported by Tom G. Christensen.
22765
22766 2008-09-16  Bruno Haible  <bruno@clisp.org>
22767
22768         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22769         Solaris 9.
22770         * doc/glibc-functions/alphasort.texi: Likewise.
22771         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22772
22773 2008-09-16  Jim Meyering  <meyering@redhat.com>
22774
22775         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22776         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22777         a umask modification leak out of a subshell.  Otherwise, the
22778         opensolaris /bin/sh would be accepted and thus cause unwarranted
22779         failures in the coreutils test suite.
22780
22781 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22782
22783         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22784         to succeed.
22785
22786 2008-09-16  Jim Meyering  <meyering@redhat.com>
22787
22788         avoid spurious test failure when library is built without ACL support
22789         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22790         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22791         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22792         * tests/test-copy-acl.sh: Likewise.
22793
22794 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22795
22796         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22797         based on character occurrence counts.
22798
22799 2008-09-15  Eric Blake  <ebb9@byu.net>
22800
22801         tests: avoid some compiler warnings
22802         * tests/test-memchr.c (main): Pass NULL indirectly.
22803         * tests/test-closein.c (main): Avoid unused variable.
22804
22805 2008-09-15  Bruno Haible  <bruno@clisp.org>
22806
22807         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22808         are missing on OpenBSD 4.0 individually.
22809         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22810
22811 2008-09-15  Bruno Haible  <bruno@clisp.org>
22812
22813         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22814         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22815         * doc/posix-functions/perror.texi: Likewise.
22816         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22817         is missing.
22818         Reported by Eric Blake.
22819
22820         * lib/errno.in.h: Use replacement values >= 2000.
22821         Reported by Eric Blake.
22822
22823 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22824
22825         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22826         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22827         limit.
22828         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22829         compareseq was aborted.
22830
22831 2008-09-14  Bruno Haible  <bruno@clisp.org>
22832
22833         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22834         yvec_edit_count.
22835         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22836         (fstrcmp_bounded): Simplify result computation accordingly.
22837
22838 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22839
22840         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22841         (fstrcmp): Define in terms of fstrcmp_bounded.
22842         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22843         lower_bound argument.
22844         Return quickly if the result is certainly < lower_bound.
22845         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22846
22847 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22848
22849         * lib/diffseq.h (EARLY_ABORT): New macro.
22850         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22851         evaluates to true.
22852
22853 2008-09-14  Bruno Haible  <bruno@clisp.org>
22854
22855         * modules/perror-tests: New file.
22856         * tests/test-perror.sh: New file.
22857         * tests/test-perror.c: New file.
22858
22859         New module 'perror'.
22860         * lib/stdio.in.h (perror): New declaration.
22861         * lib/perror.c: New file.
22862         * m4/perror.m4: New file.
22863         * modules/perror: New file.
22864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22865         * doc/posix-functions/perror.texi: Mention the perror module.
22866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22867         REPLACE_PERROR.
22868         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22869         REPLACE_PERROR.
22870
22871 2008-09-14  Bruno Haible  <bruno@clisp.org>
22872
22873         * modules/stdio (Makefile.am): Reorder to match the order in
22874         lib/stdio.in.h.
22875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22876
22877 2008-09-13  Bruno Haible  <bruno@clisp.org>
22878
22879         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22880
22881 2008-09-13  Bruno Haible  <bruno@clisp.org>
22882
22883         Extend strerror to cover the added errno values.
22884         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22885         (rpl_strerror): Provide error messages for the added errno values and
22886         for the WSA* values.
22887         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22888         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22889         strerror.
22890         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22891         * modules/strerror (Depends-on): Add errno.
22892         * doc/posix-functions/strerror.texi: Document the change.
22893         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22894         and EOVERFLOW.
22895
22896 2008-09-13  Bruno Haible  <bruno@clisp.org>
22897
22898         * modules/EOVERFLOW: Remove file.
22899         * m4/eoverflow.m4: Remove file.
22900         * modules/EOVERFLOW-tests: Remove file.
22901         * tests/test-EOVERFLOW.c: Remove file.
22902         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22903         * modules/ftell (Depends-on): Likewise.
22904         * modules/getdelim (Depends-on): Likewise.
22905         * modules/getugroups (Depends-on): Likewise.
22906         * modules/poll (Depends-on): Likewise.
22907         * modules/snprintf (Depends-on): Likewise.
22908         * modules/sprintf-posix (Depends-on): Likewise.
22909         * modules/vasnprintf (Depends-on): Likewise.
22910         * modules/vasprintf (Depends-on): Likewise.
22911         * modules/vfprintf-posix (Depends-on): Likewise.
22912         * modules/vsnprintf (Depends-on): Likewise.
22913         * modules/vsprintf-posix (Depends-on): Likewise.
22914         * modules/xvasprintf (Depends-on): Likewise.
22915         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22916         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22917         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22918         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22919         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22920         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22921         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22922         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22923         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22924         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22925         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22926         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22927         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22928         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22929         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22930         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22931         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22932         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22933         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22934         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22935         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22936         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22937         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22938         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22939         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22940         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22941         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22942         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22943         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22944         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22945         * MODULES.html.sh: Remove EOVERFLOW.
22946         * NEWS: Mention the change.
22947
22948 2008-09-13  Bruno Haible  <bruno@clisp.org>
22949
22950         * modules/errno-tests: New file.
22951         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22952
22953         * lib/errno.in.h: New file.
22954         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22955         * modules/errno: New file.
22956         * doc/posix-headers/errno.texi: Update documentation.
22957         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22958
22959 2008-09-13  Bruno Haible  <bruno@clisp.org>
22960
22961         * tests/test-poll.c: Use #if for native Windows, rather than testing
22962         __MSVCRT__.
22963
22964 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22965             Bruno Haible  <bruno@clisp.org>
22966
22967         * lib/glob.c: Don't include <pwd.h> on native Windows.
22968         (WINDOWS32): New macro.
22969         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22970
22971 2008-09-13  Bruno Haible  <bruno@clisp.org>
22972
22973         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22974         (ETIMEDOUT): Remove macro.
22975         (glthread_cond_timedwait_multithreaded): New declaration.
22976         (glthread_cond_timedwait): Use it.
22977         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22978         (glthread_cond_timedwait_multithreaded): New function.
22979
22980 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22981
22982         * modules/poll-tests: Do not check for io.h.
22983         * tests/test-poll.c: Check for __MSVCRT__ instead.
22984
22985 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22986
22987         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22988         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22989         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22990
22991 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22992
22993         * modules/poll-tests: New.
22994         * tests/test-poll.c: New.
22995
22996 2008-09-12  Eric Blake  <ebb9@byu.net>
22997
22998         frexp: test for NetBSD failure on -0.0
22999         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
23000         not all, bugs from NetBSD 3.0 have been fixed.
23001         * doc/posix-functions/frexp.texi (frexp): Document bug.
23002         Reported by Thomas Klausner.
23003
23004         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
23005         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
23006         literal -0.0.
23007         Reported by Jonathan C. Patschke <jp@centtech.com>.
23008
23009 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23010
23011         * lib/glthread/cond.h: Use dummy implementation also if
23012         USE_WIN32_THREADS.
23013
23014 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23015
23016         * modules/fnmatch-posix (License): Change to LGPLv2+.
23017         * modules/fnmatch-gnu (License): Likewise.
23018
23019 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23020
23021         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
23022
23023 2008-09-11  Jim Meyering  <meyering@redhat.com>
23024
23025         * users.txt: Add gtk-vnc.
23026
23027 2008-09-08  Simon Josefsson  <simon@josefsson.org>
23028
23029         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
23030         rotate amounts.
23031
23032         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
23033         required for 16-bit and 8-bit rotates.
23034         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
23035         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
23036         UINT8_MAX instead of hard-coded constants.
23037         Suggested by Paul Eggert.
23038
23039 2008-09-07  Bruno Haible  <bruno@clisp.org>
23040
23041         * tests/test-striconveh.c (main): Check behaviour when converting from
23042         UTF-7.
23043
23044         Make striconveh work better with stateful encodings.
23045         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
23046         that iconv does not increment the inptr when returning -1/EINVAL.
23047
23048 2008-09-07  Bruno Haible  <bruno@clisp.org>
23049
23050         * build-aux/config.rpath: Update according to libtool-2.2.6.
23051         * build-aux/config.libpath: Likewise.
23052
23053 2008-09-06  Bruno Haible  <bruno@clisp.org>
23054
23055         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
23056         * lib/freadptr.c (freadptr): Likewise.
23057         * lib/freadseek.c (freadptrinc): Likewise.
23058         Reported by Simon Josefsson.
23059
23060 2008-09-06  Bruno Haible  <bruno@clisp.org>
23061
23062         * modules/freadptr (License): Change to LGPLv2+.
23063         * modules/freadseek (License): Likewise.
23064         Suggested by Eric Blake.
23065
23066         * modules/memchr2 (License): Change to LGPLv2+.
23067         Approved by Eric Blake.
23068
23069 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23070             Bruno Haible  <bruno@clisp.org>
23071
23072         Make gnulib-tool work with native 'sed' on AIX.
23073         * gnulib-tool (sed_noop): New variable.
23074         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
23075         func_add_or_update, func_create_testdir): Use it to initialize sed
23076         script variables.
23077         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23078
23079 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
23080             Bruno Haible  <bruno@clisp.org>
23081
23082         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
23083         also works after #include directives.
23084
23085 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
23086
23087         getdate.y: reject an out-of-range timezone value
23088         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
23089         the range [-24...+24].  When specified with only one or two digits,
23090         * tests/test-getdate.c: Tests for the fix.
23091         * doc/getdate.texi: Document this change.
23092
23093 2008-09-03  Bruno Haible  <bruno@clisp.org>
23094
23095         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
23096
23097 2008-09-02  Simon Josefsson  <simon@josefsson.org>
23098
23099         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
23100         <bruce.korb@gmail.com> with ideas from Ben Pfaff
23101         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
23102         Blake <ebb9@byu.net>.
23103
23104         * tests/test-bitrotate.c: Add more test vectors.
23105
23106 2008-09-02  Eric Blake  <ebb9@byu.net>
23107
23108         vasnprintf-posix: handle large precision via %.*d
23109         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
23110         when handling it ourselves.
23111         * tests/test-vasnprintf-posix.c (test_function): Add test.
23112         * tests/test-snprintf-posix.h (test_function): Likewise.
23113         * tests/test-sprintf-posix.h (test_function): Likewise.
23114         * tests/test-vasprintf-posix.c (test_function): Likewise.
23115         Reported by Alain Guibert.
23116
23117 2008-09-01  Eric Blake  <ebb9@byu.net>
23118
23119         c-stack: make configure-time check more robust
23120         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
23121         successful sigaction call.
23122         Reported by Tom G. Christensen.
23123
23124 2008-09-01  Bruno Haible  <bruno@clisp.org>
23125
23126         New module 'findprog-lgpl'.
23127         * modules/findprog-lgpl: New file.
23128         * lib/findprog-lgpl.c: New file.
23129         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
23130         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
23131         to decide whether to use strdup or xstrdup, concatenated_filename or
23132         xconcatenated_filename.
23133
23134 2008-09-01  Bruno Haible  <bruno@clisp.org>
23135
23136         Split module 'concat-filename' into 'concat-filename' (LGPL) and
23137         'xconcat-filename' (GPL).
23138         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
23139         (License): Change to LGPLv2+.
23140         * modules/xconcat-filename: New file.
23141         * lib/concat-filename.h (concatenated_filename): Change specification.
23142         (xconcatenated_filename): New declaration.
23143         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
23144         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
23145         memory situations.
23146         * lib/xconcat-filename.c: New file.
23147         * NEWS: Mention the change.
23148         * lib/findprog.c: Include concat-filename.h, not filename.h.
23149         (find_in_path): Use xconcatenated_filename instead of
23150         concatenated_filename.
23151         * lib/javacomp.c: Include concat-filename.h, not filename.h.
23152         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23153         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23154         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23155         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
23156         instead of concatenated_filename.
23157         * lib/javaexec.c: Include concat-filename.h, not filename.h.
23158         (execute_java_class): Use xconcatenated_filename instead of
23159         concatenated_filename.
23160         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
23161         * modules/javacomp (Depends-on): Likewise.
23162         * modules/javaexec (Depends-on): Likewise.
23163
23164 2008-09-01  Bruno Haible  <bruno@clisp.org>
23165
23166         Split module 'filename' into 'filename' and 'concat-filename'.
23167         * modules/filename: Keep only lib/filename.h.
23168         (License): Change to LGPLv2+.
23169         * modules/concat-filename: New file, extracted from modules/filename.
23170         * lib/filename.h (concatenated_filename): Remove declaration.
23171         * lib/concat-filename.h: New file, extracted from lib/filename.h.
23172         * lib/concat-filename.c: Include concat-filename.h.
23173         * NEWS: Mention the change.
23174
23175 2008-09-01  Simon Josefsson  <simon@josefsson.org>
23176
23177         * lib/bitrotate.h (rotl8, rotr8): Add.
23178
23179         * modules/bitrotate (configure.ac): Need
23180         AC_REQUIRE([AC_C_INLINE]).
23181         (Description): Mention stdint.h.  Reported by Bruno Haible
23182         <bruno@clisp.org>.
23183
23184         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
23185         Paolo Bonzini <bonzini@gnu.org>.
23186
23187 2008-08-31  Bruno Haible  <bruno@clisp.org>
23188
23189         Assume Solaris specific bi-arch conventions on Solaris systems.
23190         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
23191         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
23192         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
23193         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
23194         like acl_libdirstem.
23195         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
23196         acl_libdirstem.
23197         * NEWS: Mention the change.
23198         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
23199
23200 2008-08-31  Jim Meyering  <meyering@redhat.com>
23201
23202         * lib/strftime.h: Add comments describing the two added arguments.
23203
23204         remove duplicate #include directives
23205         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
23206         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
23207
23208 2008-08-31  Bruno Haible  <bruno@clisp.org>
23209
23210         New module 'sigpipe-die'.
23211         * modules/sigpipe-die: New file.
23212         * lib/sigpipe-die.h: New file.
23213         * lib/sigpipe-die.c: New file.
23214         * MODULES.html.sh (Signal handling): Add sigpipe-die.
23215
23216 2008-08-31  Bruno Haible  <bruno@clisp.org>
23217
23218         Don't override previously installed signal handlers.
23219         * lib/fatal-signal.c (saved_sigactions): New variable.
23220         (uninstall_handlers): Reset the signal to the saved handler, not
23221         to SIG_DFL (except when ignored).
23222         (install_handlers): Save the previous handlers.
23223
23224 2008-08-30  Bruno Haible  <bruno@clisp.org>
23225
23226         * gnulib-tool (func_reset_sigpipe): New function.
23227         (func_get_automake_snippet, func_modules_transitive_closure,
23228         func_import): Invoke it before a join command that reads from stdin,
23229         to avoid "echo: write error: Broken pipe" error messages on stderr.
23230         Reported by Sam Steingold <sds@gnu.org>.
23231
23232 2008-08-30  Bruno Haible  <bruno@clisp.org>
23233
23234         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23235         Code copied from m4/open.m4.
23236         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23237         access and the filename ends in a slash. Code copied from lib/open.c.
23238         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23239         * tests/test-fopen.c (main): Check against bug with trailing slash.
23240
23241 2008-08-29  Bruno Haible  <bruno@clisp.org>
23242
23243         Avoid some "gcc -pedantic" warnings.
23244         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23245         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23246         * lib/dirent.in.h: Likewise.
23247         * lib/fcntl.in.h: Likewise.
23248         * lib/float.in.h: Likewise.
23249         * lib/iconv.in.h: Likewise.
23250         * lib/inttypes.in.h: Likewise.
23251         * lib/locale.in.h: Likewise.
23252         * lib/math.in.h: Likewise.
23253         * lib/netinet_in.in.h: Likewise.
23254         * lib/search.in.h: Likewise.
23255         * lib/signal.in.h: Likewise.
23256         * lib/stdarg.in.h: Likewise.
23257         * lib/stdint.in.h: Likewise.
23258         * lib/stdio.in.h: Likewise.
23259         * lib/stdlib.in.h: Likewise.
23260         * lib/string.in.h: Likewise.
23261         * lib/strings.in.h: Likewise.
23262         * lib/sys_select.in.h: Likewise.
23263         * lib/sys_socket.in.h: Likewise.
23264         * lib/sys_stat.in.h: Likewise.
23265         * lib/sys_time.in.h: Likewise.
23266         * lib/sysexits.in.h: Likewise.
23267         * lib/time.in.h: Likewise.
23268         * lib/unistd.in.h: Likewise.
23269         * lib/wchar.in.h: Likewise.
23270         * lib/wctype.in.h: Likewise.
23271         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23272         * modules/fchdir (Makefile.am): Likewise.
23273         * modules/fcntl (Makefile.am): Likewise.
23274         * modules/float (Makefile.am): Likewise.
23275         * modules/iconv_open (Makefile.am): Likewise.
23276         * modules/inttypes (Makefile.am): Likewise.
23277         * modules/locale (Makefile.am): Likewise.
23278         * modules/math (Makefile.am): Likewise.
23279         * modules/netinet_in (Makefile.am): Likewise.
23280         * modules/search (Makefile.am): Likewise.
23281         * modules/signal (Makefile.am): Likewise.
23282         * modules/stdarg (Makefile.am): Likewise.
23283         * modules/stdint (Makefile.am): Likewise.
23284         * modules/stdio (Makefile.am): Likewise.
23285         * modules/stdlib (Makefile.am): Likewise.
23286         * modules/string (Makefile.am): Likewise.
23287         * modules/strings (Makefile.am): Likewise.
23288         * modules/sys_select (Makefile.am): Likewise.
23289         * modules/sys_socket (Makefile.am): Likewise.
23290         * modules/sys_stat (Makefile.am): Likewise.
23291         * modules/sys_time (Makefile.am): Likewise.
23292         * modules/sysexits (Makefile.am): Likewise.
23293         * modules/time (Makefile.am): Likewise.
23294         * modules/unistd (Makefile.am): Likewise.
23295         * modules/wchar (Makefile.am): Likewise.
23296         * modules/wctype (Makefile.am): Likewise.
23297         Reported by Reuben Thomas <rrt@sc3d.org>.
23298
23299 2008-08-29  Bruno Haible  <bruno@clisp.org>
23300
23301         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23302         any more.
23303
23304 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23305
23306         * MODULES.html.sh (Misc): Add bitrotate.
23307
23308         * modules/bitrotate: New file.
23309
23310         * lib/bitrotate.h: New file.
23311
23312         * modules/bitrotate-tests: New file.
23313
23314         * tests/test-bitrotate.c: New file.
23315
23316         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23317         on the bitrotate module.
23318
23319         * lib/arctwo.c: Use new bitrotate module.
23320
23321 2008-08-29  Jim Meyering  <meyering@redhat.com>
23322
23323         bootstrap: merge changes from coreutils
23324         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23325         of copied files.  Remove a kludge, now that this is fixed.
23326         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23327         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23328         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23329
23330 2008-08-29  Bruno Haible  <bruno@clisp.org>
23331
23332         * MODULES.html.sh: Remove --cvs-urls option.
23333
23334 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23335
23336         maint.mk: adjust to file name change
23337         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23338
23339 2008-08-28  Jim Meyering  <meyering@redhat.com>
23340
23341         * modules/getndelim2 (License): Relicense to LGPLv2+.
23342         Approved by Richard Stallman for the version of 1995, and by
23343         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23344
23345 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23346
23347         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23348         dummy if one is not available.  Do not touch them if
23349         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23350         (getc_maybe_unlocked): New.
23351         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23352
23353 2008-08-26  Eric Blake  <ebb9@byu.net>
23354
23355         doc/INSTALL: resync from autoconf
23356         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23357         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23358         moving...
23359         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23360         * INSTALL: Regenerate.
23361         * INSTALL.ISO: New file.
23362         * INSTALL.UTF-8: Likewise.
23363
23364 2008-08-26  Jim Meyering  <meyering@redhat.com>
23365
23366         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23367         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23368         these definitions conditional, so that they may be overridden, too.
23369
23370 2008-08-26  Bruno Haible  <bruno@clisp.org>
23371
23372         Generate INSTALL file variants with prettier quotes.
23373         * doc/Makefile (INSTALL_PRELUDE): New macro.
23374         (INSTALL): Use it.
23375         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23376
23377 2008-08-26  Bruno Haible  <bruno@clisp.org>
23378
23379         Run makeinfo in an English locale.
23380         * doc/Makefile (MAKEINFO): New variable.
23381
23382 2008-08-26  Bruno Haible  <bruno@clisp.org>
23383
23384         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23385         Suggested by Eric Blake.
23386
23387 2008-08-25  Bruno Haible  <bruno@clisp.org>
23388
23389         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23390
23391 2008-08-25  Eric Blake  <ebb9@byu.net>
23392
23393         c-stack: test that stack overflow can be caught
23394         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23395         that platform allows handling stack overflow; at least OS/2 EMX
23396         has sigaltstack, but crashes before transferring control to
23397         handler on stack overflow.
23398         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23399         check for HAVE_STACK_OVERFLOW_HANDLING.
23400         Reported by Elbert Pol.
23401
23402 2008-08-25  Bruno Haible  <bruno@clisp.org>
23403
23404         * doc/posix-functions/strftime.texi: Fix description of strftime
23405         module.
23406
23407 2008-08-24  Bruno Haible  <bruno@clisp.org>
23408
23409         * tests/uniwidth/test-uc_width2.c: New file.
23410         * tests/uniwidth/test-uc_width2.sh: New file.
23411         * modules/uniwidth/width-tests (Files): Add the new files.
23412         (TESTS): Add uniwidth/test-uc_width2.sh.
23413         (TESTS_ENVIRONMENT): New variable.
23414         (check_PROGRAMS): Add test-uc_width2.
23415         (test_uc_width2_SOURCES): New variable.
23416
23417         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23418         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23419         not 0x00AB.
23420         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23421
23422 2008-08-22  Eric Blake  <ebb9@byu.net>
23423
23424         test-lock, test-tls: mention why a test is skipped
23425         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23426         skipped.
23427         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23428
23429         count-one-bits: relax license
23430         * modules/count-one-bits (License): Relicense to LGPLv2+.
23431         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23432
23433 2008-08-22  Andreas Schwab  <schwab@suse.de>
23434
23435         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23436         Remove spurious space in assignment.
23437
23438 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23439
23440         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23441         Paul Eggert <eggert@CS.UCLA.EDU>.
23442
23443 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23444
23445         * modules/gettext: Add m4/threadlib.m4.
23446
23447 2008-08-19  Eric Blake  <ebb9@byu.net>
23448
23449         test-c-stack: fix compilation failure on FreeBSD 5.0
23450         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23451         headers before <sys/resource.h>.
23452         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23453         the bug.
23454         Reported by Nelson H. F. Beebe.
23455
23456         strverscmp: migrate from "strverscmp.h" to <string.h>
23457         * modules/string (Makefile.am): Add new hooks.
23458         * modules/strverscmp (Files): Remove strverscmp.h.
23459         (Depends-on): Add string.
23460         (configure.ac): Add indicator.
23461         (Include): Mention new header.
23462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23463         defaults.
23464         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23465         results.
23466         * lib/strverscmp.h: Delete.
23467         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23468         * tests/test-strverscmp.c (includes): Adjust client.
23469         * lib/check-version.c (includes): Likewise.
23470         * NEWS: Document the change.
23471
23472         strverscmp: add unit test
23473         * modules/strverscmp-tests: New file.
23474         * tests/test-strverscmp.c: Likewise.
23475
23476 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23477
23478         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23479         regarding Windows crypto stuff, from Mono.
23480
23481 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23482
23483         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23484         if present, for intel RND.  Return error on failures.
23485
23486 2008-08-18  Ben Pfaff  <blp@gnu.org>
23487
23488         gitlog-to-changelog: give better diagnostic for failed pipe-open
23489         * build-aux/gitlog-to-changelog: Improve error message: suggest
23490         that the version of Git may be too old.
23491
23492 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23493
23494         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23495         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23496
23497 2008-08-18  Bruno Haible  <bruno@clisp.org>
23498
23499         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23500         pthread_in_use().
23501
23502 2008-08-18  Bruno Haible  <bruno@clisp.org>
23503
23504         * lib/glthread/threadlib.c: Include <pthread.h>.
23505
23506 2008-08-18  Bruno Haible  <bruno@clisp.org>
23507
23508         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23509         glthread_recursive_lock_* macros.
23510         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23511         Fix syntax error.
23512
23513 2008-08-18  Bruno Haible  <bruno@clisp.org>
23514
23515         * lib/glthread/thread.c: Avoid forcing a context switch right after
23516         thread creation.
23517
23518 2008-08-17  Bruno Haible  <bruno@clisp.org>
23519
23520         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23521         * lib/glthread/thread.h: Provide Win32 specific implementation.
23522         * modules/thread (Files): Add lib/glthread/thread.c.
23523         (Depends-on): Add lock.
23524         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23525
23526 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23527
23528         New module 'yield'.
23529         * modules/yield: New file.
23530         * lib/glthread/yield.h: New file.
23531         * m4/yield.m4: New file.
23532         * MODULES.html.sh (Multithreading): Add yield.
23533
23534 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23535
23536         New module 'thread'.
23537         * modules/thread: New file.
23538         * lib/glthread/thread.h: New file.
23539         * m4/thread.m4: New file.
23540         * MODULES.html.sh (Multithreading): Add thread.
23541
23542 2008-08-17  Bruno Haible  <bruno@clisp.org>
23543
23544         * lib/glthread/lock.h: Include <stdlib.h> always.
23545         * lib/glthread/tls.h: Likewise.
23546         * lib/glthread/cond.h: Likewise.
23547
23548 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23549
23550         New module 'cond'.
23551         * modules/cond: New file.
23552         * lib/glthread/cond.h: New file.
23553         * lib/glthread/cond.c: New file.
23554         * m4/cond.m4: New file.
23555         * MODULES.html.sh (Multithreading): Add cond.
23556
23557 2008-08-16  Eric Blake  <ebb9@byu.net>
23558
23559         c-stack: fix regression on Irix 5.3 from 2008-06-21
23560         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23561         sa_sigaction...
23562         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23563         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23564         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23565         * modules/signal (Makefile.am): Use the value.
23566         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23567         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23568         * doc/posix-headers/signal.texi (signal.h): Document this
23569         portability issue.
23570         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23571         Reported by Tom G. Christensen.
23572
23573 2008-08-17  Bruno Haible  <bruno@clisp.org>
23574
23575         New module 'threadlib'.
23576         * modules/threadlib: New file.
23577         * lib/glthread/threadlib.c: New file, extracted from
23578         lib/glthread/lock.c.
23579         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23580         functions.
23581         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23582         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23583         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23584         macros.
23585         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23586         (gl_DISABLE_THREADS): Remove macro.
23587         * modules/lock (Files): Remove build-aux/config.rpath.
23588         (Depends-on): Remove havelib. Add threadlib.
23589         (configure.ac-early): Remove section.
23590         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23591         * modules/tls (Depends-on): Remove lock. Add threadlib.
23592         (Link): New section, copied from threadlib.
23593         * MODULES.html.sh (Multithreading): Add threadlib.
23594
23595 2008-08-14  Bruno Haible  <bruno@clisp.org>
23596
23597         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23598         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23599         glthread_rwlock_unlock, glthread_rwlock_destroy,
23600         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23601         glthread_recursive_lock_destroy): Define as macros always.
23602         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23603         glthread_lock_lock.
23604         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23605         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23606         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23607         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23608         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23609         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23610         (glthread_recursive_lock_lock_func): Renamed from
23611         glthread_recursive_lock_lock.
23612         (glthread_recursive_lock_unlock_func): Renamed from
23613         glthread_recursive_lock_unlock.
23614         (glthread_recursive_lock_destroy_func): Renamed from
23615         glthread_recursive_lock_destroy.
23616
23617 2008-08-14  Bruno Haible  <bruno@clisp.org>
23618
23619         * lib/glthread/lock.h: Renamed from lib/lock.h.
23620         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23621         * lib/glthread/tls.h: Renamed from lib/tls.h.
23622         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23623         * lib/fstrcmp.c: Update includes.
23624         * lib/strsignal.c: Update includes.
23625         * modules/lock (Files, Makefile.am): Update.
23626         (Include): Change to "glthread/lock.h".
23627         * modules/tls (Files, Makefile.am): Update.
23628         (Include): Change to "glthread/tls.h".
23629         * tests/test-lock.c: Update includes.
23630         * tests/test-tls.c: Update includes.
23631         * NEWS: Mention the renamed header files.
23632
23633 2008-08-11  Jim Meyering  <meyering@redhat.com>
23634
23635         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23636
23637 2008-08-11  Eric Blake  <ebb9@byu.net>
23638
23639         test-c-stack: avoid C99-ism
23640         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23641         before statement.
23642         Reported by Alain Guibert.
23643
23644 2008-08-10  Jim Meyering  <meyering@redhat.com>
23645
23646         ensure that return value of uinttostr et al are not ignored
23647         * lib/inttostr.h (__GNUC_PREREQ): Define.
23648         (__attribute_warn_unused_result__): Define.
23649         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23650
23651 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23652
23653         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23654         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23655
23656 2008-08-07  Jim Meyering  <meyering@redhat.com>
23657
23658         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23659
23660         * modules/mkstemp (License): Relicense under LGPLv2+.
23661         * modules/tempname (License): Likewise.
23662
23663 2008-08-06  Bruno Haible  <bruno@clisp.org>
23664
23665         * lib/poll.c (poll): Further micro-optimization.
23666
23667 2008-08-06  Jim Meyering  <meyering@redhat.com>
23668
23669         inet_pton.c: use locale-independent tolower
23670         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23671         (inet_pton6): Use c_tolower rather than tolower.
23672         * modules/inet_pton (Depends-on): Add c-ctype.
23673
23674 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23675
23676         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23677         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23678
23679 2008-08-06  Jim Meyering  <meyering@redhat.com>
23680
23681         * modules/inet_pton (License): Relicense under LGPLv2+.
23682
23683 2008-08-03  Bruno Haible  <bruno@clisp.org>
23684
23685         Additional non-aborting API for lock and tls.
23686         * lib/lock.h: Include <errno.h>.
23687         (glthread_lock_init): New macro/function.
23688         (gl_lock_init): Define as wrapper around glthread_lock_init.
23689         (glthread_lock_lock): New macro/function.
23690         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23691         (glthread_lock_unlock): New macro/function.
23692         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23693         (glthread_lock_destroy): New macro/function.
23694         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23695         (glthread_rwlock_init): New macro/function.
23696         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23697         (glthread_rwlock_rdlock): New macro/function.
23698         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23699         (glthread_rwlock_wrlock): New macro/function.
23700         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23701         (glthread_rwlock_unlock): New macro/function.
23702         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23703         (glthread_rwlock_destroy): New macro/function.
23704         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23705         (glthread_recursive_lock_init): New macro/function.
23706         (gl_recursive_lock_init): Define as wrapper around
23707         glthread_recursive_lock_init.
23708         (glthread_recursive_lock_lock): New macro/function.
23709         (gl_recursive_lock_lock): Define as wrapper around
23710         glthread_recursive_lock_lock.
23711         (glthread_recursive_lock_unlock): New macro/function.
23712         (gl_recursive_lock_unlock): Define as wrapper around
23713         glthread_recursive_lock_unlock.
23714         (glthread_recursive_lock_destroy): New macro/function.
23715         (gl_recursive_lock_destroy): Define as wrapper around
23716         glthread_recursive_lock_destroy.
23717         (glthread_once): New macro/function.
23718         (gl_once): Define as wrapper around glthread_once.
23719         Update function declarations.
23720         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23721         glthread_rwlock_init. Return error code.
23722         (glthread_rwlock_rdlock_multithreaded): Renamed from
23723         glthread_rwlock_rdlock. Return error code.
23724         (glthread_rwlock_wrlock_multithreaded): Renamed from
23725         glthread_rwlock_wrlock. Return error code.
23726         (glthread_rwlock_unlock_multithreaded): Renamed from
23727         glthread_rwlock_unlock. Return error code.
23728         (glthread_rwlock_destroy_multithreaded): Renamed from
23729         glthread_rwlock_destroy. Return error code.
23730         (glthread_recursive_lock_init_multithreaded): Renamed from
23731         glthread_recursive_lock_init. Return error code.
23732         (glthread_recursive_lock_lock_multithreaded): Renamed from
23733         glthread_recursive_lock_lock. Return error code.
23734         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23735         glthread_recursive_lock_unlock. Return error code.
23736         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23737         glthread_recursive_lock_destroy. Return error code.
23738         (glthread_once_call): Make static.
23739         (glthread_once_multithreaded): Renamed from glthread_once.
23740         * lib/tls.h: Include <errno.h>.
23741         (glthread_tls_key_init): New macro/function.
23742         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23743         (glthread_tls_set): New macro/function.
23744         (gl_tls_set): Define as wrapper around glthread_tls_set.
23745         (glthread_tls_key_destroy): New macro/function.
23746         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23747         Update function declarations.
23748         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23749         glthread_tls_get.
23750         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23751
23752 2008-08-04  Eric Blake  <ebb9@byu.net>
23753
23754         gnumakefile: use space, not TAB, outside of targets
23755         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23756
23757 2008-08-02  Jim Meyering  <meyering@redhat.com>
23758
23759         getdate.y: avoid locale-dependent date parsing failure
23760         In Turkish locales, getdate would fail to recognize keywords
23761         containing a lowercase "i".  The solution is not to rely on
23762         locale-sensitive case-conversion.
23763         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23764         (lookup_word): Use c_toupper in place of toupper.
23765         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23766         Reported by Vefa Bicakci <bicave@superonline.com> in
23767         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23768         * modules/getdate (Depends-on): Add c-ctype.
23769
23770 2008-08-02  Bruno Haible  <bruno@clisp.org>
23771
23772         * gnulib-tool (func_import): When updating or creating a .gitignore
23773         file, prepend each added line with a slash, and ignore leading slashes
23774         from the existing lines.
23775         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23776
23777 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23778
23779         Portability fix for GNU make 3.79.1.
23780         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23781         versions do not understand.
23782
23783 2008-08-01  Bruno Haible  <bruno@clisp.org>
23784
23785         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23786         * tests/test-isnanf.h (zero): New variable.
23787         (main): Avoid literal -0.0f.
23788         * tests/test-isnand.h (zero): New variable.
23789         (main): Avoid literal -0.0.
23790         * tests/test-isnanl.h (zero): New variable.
23791         (main): Avoid literal -0.0L.
23792         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23793         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23794         -0.0, -0.0L.
23795         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23796         (test_signbitd): Avoid literal -0.0.
23797         (test_signbitl): Avoid literal -0.0L.
23798         * tests/test-ceilf1.c (zero): New variable.
23799         (main): Avoid literal -0.0f.
23800         * tests/test-ceill.c (zero): New variable.
23801         (main): Avoid literal -0.0L.
23802         * tests/test-floorf1.c (zero): New variable.
23803         (main): Avoid literal -0.0f.
23804         * tests/test-floorl.c (zero): New variable.
23805         (main): Avoid literal -0.0L.
23806         * tests/test-roundf1.c (zero): New variable.
23807         (main): Avoid literal -0.0f.
23808         * tests/test-round1.c (zero): New variable.
23809         (main): Avoid literal -0.0.
23810         * tests/test-roundl.c (zero): New variable.
23811         (main): Avoid literal -0.0L.
23812         * tests/test-truncf1.c (zero): New variable.
23813         (main): Avoid literal -0.0f.
23814         * tests/test-trunc1.c (zero): New variable.
23815         (main): Avoid literal -0.0.
23816         * tests/test-truncl.c (zero): New variable.
23817         (main): Avoid literal -0.0L.
23818         * tests/test-frexp.c (zero): New variable.
23819         (main): Avoid literal -0.0.
23820         * tests/test-frexpl.c (zero): New variable.
23821         (main): Avoid literal -0.0L.
23822         * tests/test-ldexpl.c (zero): New variable.
23823         (main): Avoid literal -0.0L.
23824         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23825         (zerod, zerol): New variables.
23826         (test_function): Avoid literals -0.0, -0.0L.
23827         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23828         (zerod, zerol): New variables.
23829         (test_function): Avoid literals -0.0, -0.0L.
23830         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23831         (zerod, zerol): New variables.
23832         (test_function): Avoid literals -0.0, -0.0L.
23833         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23834         (zerod, zerol): New variables.
23835         (test_function): Avoid literals -0.0, -0.0L.
23836         * tests/test-strtod.c (zero): New variable.
23837         (main): Avoid literal -0.0.
23838         Reported by Jonathan C. Patschke <jp@centtech.com>.
23839
23840 2008-07-31  Jim Meyering  <meyering@redhat.com>
23841
23842         sha256.h: correct definition of SHA224_DIGEST_SIZE
23843         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23844         Reported by Paulie Pena IV <paulie4@gmail.com>.
23845         Define as 224 / 8, rather than as a literal.
23846         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23847         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23848         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23849
23850 2008-07-31  Bruno Haible  <bruno@clisp.org>
23851
23852         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23853         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23854         Reported by Jonathan Patschke <jp@centtech.com>.
23855
23856 2008-07-31  Bruno Haible  <bruno@clisp.org>
23857
23858         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23859         Reported by Paolo Bonzini <bonzini@gnu.org>.
23860
23861 2008-07-30  Eric Blake  <ebb9@byu.net>
23862
23863         test-strtod: allow compilation without -lm
23864         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23865         Reported by Dennis Clarke <blastwave@gmail.com>.
23866
23867 2008-07-28  Jim Meyering  <meyering@redhat.com>
23868
23869         bootstrap: work also when there are no .po files in po/
23870         * build-aux/bootstrap (update_po_files): Complete the change
23871         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23872
23873 2008-07-27  Jim Meyering  <meyering@redhat.com>
23874
23875         * users.txt: Add zile.
23876
23877 2008-07-26  Ben Pfaff  <blp@gnu.org>
23878
23879         Add missing dependencies on new m4/exponent[fdl].m4 files.
23880         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23881         * modules/isnand-nolibm: Add m4/exponentd.m4.
23882         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23883         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23884         m4/isnan[fdl].m4, because the macros actually used moved.
23885         Reported by Jim Meyering.
23886
23887 2008-07-14  Ben Pfaff  <blp@gnu.org>
23888
23889         Add isinf module.
23890         * lib/isinf.c: New file.
23891         * lib/math.in.h: Define isinf macro if we have decided to replace
23892         it.
23893         * m4/isinf.m4: New file.
23894         * m4/math_h.m4: Initialize and substitute variables for isinf
23895         module.
23896         * modules/isinf: New file.
23897         * modules/isinf-tests: New file.
23898         * modules/math: Add substitutions for new module.
23899         * tests/test-isinf.c: New file.
23900         * doc/posix-functions/isinf.texi: Mention new module.
23901         * MODULES.html.sh: Mention new module.
23902
23903 2008-07-14  Ben Pfaff  <blp@gnu.org>
23904
23905         Factor out some macros for use by additional modules.
23906         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23907         exponentf.m4.
23908         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23909         exponentd.m4.
23910         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23911         file exponentl.m4.
23912         * m4/exponentf.m4: New file.
23913         * m4/exponentd.m4: New file.
23914         * m4/exponentl.m4: New file.
23915         * modules/isnanf: Use new file m4/exponentf.m4.
23916         * modules/isnand: Use new file m4/exponentd.m4.
23917         * modules/isnanl: Use new file m4/exponentl.m4.
23918
23919 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23920
23921         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23922         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23923         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23924         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23925
23926         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23927         readlink on platforms without PATH_MAX.
23928
23929 2008-07-21  Eric Blake  <ebb9@byu.net>
23930
23931         Warn, not fail, on stale version.
23932         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23933
23934         Don't allow installation with stale devel version number.
23935         * top/GNUmakefile (_is-install-target): New macro.
23936         (_curr-ver): Forbid installation with stale version number.
23937
23938 2008-07-20  Bruno Haible  <bruno@clisp.org>
23939
23940         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23941         TESTS_ENVIRONMENT.
23942         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23943
23944 2008-07-20  Bruno Haible  <bruno@clisp.org>
23945
23946         * lib/c-stack.h (c_stack_action): Add documentation.
23947         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23948
23949 2008-07-20  Bruno Haible  <bruno@clisp.org>
23950
23951         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23952         * modules/readlink (License): Likewise.
23953
23954 2008-07-17  Eric Blake  <ebb9@byu.net>
23955
23956         * modules/c-stack (Link): Fix typo.
23957
23958         Make c-stack use libsigsegv, when available.
23959         * modules/c-stack (Depends-on): Add libsigsegv.
23960         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23961         needed.
23962         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23963         (segv_handler, overflow_handler, c_stack_action)
23964         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23965         implementation when libsigsegv is available, but only when using
23966         the library is necessary.
23967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23968         comment, explaining why XSI check fails on Linux.
23969         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23970         * tests/test-c-stack2.sh: Tweak skip message.
23971         * NEWS: Document new link-time requirements.
23972
23973 2008-07-16  Eric Blake  <ebb9@byu.net>
23974
23975         c-stack: Expose false positives when not using libsigsegv.
23976         * modules/c-stack-tests (Files): Expand test.
23977         * tests/test-c-stack.c (main): Add means to conditionally trigger
23978         non-overflow SIGSEGV.
23979         * tests/test-c-stack2.sh: New file.
23980
23981 2008-07-14  Bruno Haible  <bruno@clisp.org>
23982
23983         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23984         Reported by Eric Blake.
23985
23986 2008-07-14  Sam Steingold  <sds@gnu.org>
23987             Bruno Haible  <bruno@clisp.org>
23988
23989         New module libsigsegv.
23990         * modules/libsigsegv: New file.
23991         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23992         modifications.
23993         * MODULES.html.sh (Signal handling): New section.
23994
23995 2008-07-14  Bruno Haible  <bruno@clisp.org>
23996
23997         * modules/unictype/ctype-* (Description): Add the word "function".
23998         Improves the resulting doc in MODULES.html.
23999
24000 2008-07-12  Ben Pfaff  <blp@gnu.org>
24001
24002         Add longlong module.
24003         * modules/longlong: New file.
24004
24005 2008-07-12  Bruno Haible  <bruno@clisp.org>
24006
24007         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
24008         to empty.
24009
24010 2008-07-10  Ben Pfaff  <blp@gnu.org>
24011
24012         Add isnan module.
24013         * doc/posix-functions/isnan.texi: Mention new module.
24014         * lib/math.in.h: Define isnan macro if we have decided to replace
24015         it.
24016         * m4/isnan.m4: New file.
24017         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
24018         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
24019         also.
24020         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
24021         redundancy.
24022         * m4/math_h.m4: Initialize and substitute variables for isnan
24023         module.
24024         * modules/isnan: New file.
24025         * modules/isnan-tests: New file.
24026         * modules/math: Add substitutions for new module.
24027         * tests/test-isnan.c: New file.
24028         * MODULES.html.sh: Mention new module.
24029
24030 2008-07-10  Ben Pfaff  <blp@gnu.org>
24031
24032         Add isnanf module.
24033         * lib/isnanf.m4: New file.
24034         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
24035         (gl_HAVE_ISNANF_IN_LIBM): New macro.
24036         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
24037         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
24038         * modules/isnanf: New file.
24039         * modules/isnanf-tests: New file.
24040         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
24041         files.
24042         * tests/test-isnanf-nolibm.c: factored most of its contents into
24043         new file tests/test-isnanf.h.
24044         * tests/test-isnanf.h: New file.
24045         * tests/test-isnanf.c: New file.
24046         * MODULES.html.sh: Mention new module.
24047         * doc/glibc-functions/isnanf.texi: Mention new module.
24048
24049 2008-07-10  Ben Pfaff  <blp@gnu.org>
24050
24051         Add isnand module.
24052         * lib/isnand.h: New file.
24053         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
24054         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
24055         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
24056         functionality also.
24057         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
24058         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
24059         (gl_HAVE_ISNAND_IN_LIBM): New macro.
24060         * modules/isnand: New file.
24061         * modules/isnand-tests: New file.
24062         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
24063         files.
24064         * tests/test-isnand-nolibm.c: factored most of its contents into
24065         new file tests/test-isnand.h.
24066         * tests/test-isnand.h: New file.
24067         * tests/test-isnand.c: New file.
24068         * MODULES.html.sh: Mention new module.
24069
24070 2008-07-10  Ben Pfaff  <blp@gnu.org>
24071
24072         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
24073         * lib/isnand.h: Rename lib/isnand-nolibm.h.
24074         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
24075         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
24076         * modules/isnanf-nolibm: Update references to renamed files.
24077         * modules/isnand-nolibm: Likewise.
24078         * modules/isnanf-nolibm-tests: Likewise.
24079         * modules/isnand-nolibm-tests: Likewise.
24080         * lib/frexp.c: Likewise.
24081         * lib/isfinite.c: Likewise.
24082         * lib/signbitd.c: Likewise.
24083         * lib/signbitf.c: Likewise.
24084         * lib/vasnprintf.c: Likewise.
24085         * tests/test-ceilf1.c: Likewise.
24086         * tests/test-ceilf2.c: Likewise.
24087         * tests/test-floorf1.c: Likewise.
24088         * tests/test-floorf2.c: Likewise.
24089         * tests/test-frexp.c: Likewise.
24090         * tests/test-round1.c: Likewise.
24091         * tests/test-round2.c: Likewise.
24092         * tests/test-roundf1.c: Likewise.
24093         * tests/test-strtod.c: Likewise.
24094         * tests/test-trunc1.c: Likewise.
24095         * tests/test-trunc2.c: Likewise.
24096         * tests/test-truncf1.c: Likewise.
24097         * tests/test-truncf2.c: Likewise.
24098         * NEWS: Mention the renamed header files.
24099
24100 2008-07-11  Jim Meyering  <meyering@redhat.com>
24101
24102         vc-list-files: make the last-resort awk code more portable
24103         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
24104         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
24105         does not support it.
24106
24107 2008-07-10  Eric Blake  <ebb9@byu.net>
24108
24109         Work with tar's bootstrap.
24110         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
24111         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
24112         an m4 comment.
24113
24114 2008-07-09  Jim Meyering  <meyering@redhat.com>
24115
24116         posix-shell.m4: fix typo that made this test malfunction
24117         * m4/posix-shell.m4: Remove capitalization in variable name.
24118
24119 2008-07-08  Bruno Haible  <bruno@clisp.org>
24120
24121         * m4/onceonly.m4: Update comments.
24122         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24123
24124 2008-07-04  Jim Meyering  <meyering@redhat.com>
24125
24126         * users.txt: Add vc-dwim.
24127         (bison, coreutils): Use the gitweb URL.
24128
24129 2008-07-03  Jim Meyering  <meyering@redhat.com>
24130
24131         * users.txt: Add libffcall.  From Sam Steingold.
24132
24133 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
24134
24135         getdate.y: do not ignore TZ with relative day, month or year offset
24136         * lib/getdate.y (get_date): Move the tz-handling block to follow the
24137         relative-date-handling, since otherwise, the latter would clobber the
24138         sole output (an updated Start value) of the tz-handling block.
24139         * tests/test-getdate.c: Tests for the fix
24140
24141 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24142
24143         Recognize 'foo_LIBRARIES += libgnu.a'.
24144         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
24145         makefile snippet has already specified an installation location,
24146         also using '+='.
24147
24148 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
24149
24150         getdate.y: factor out common actions
24151         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
24152         Use them in place of open-coded actions.
24153
24154 2008-07-01  Simon Josefsson  <simon@josefsson.org>
24155
24156         Add self-test for getdate module.
24157         * modules/getdate-tests: New file.
24158         * tests/test-getdate.c: New file.
24159
24160 2008-06-29  Bruno Haible  <bruno@clisp.org>
24161
24162         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
24163         .gitignore.
24164         Reported by Sylvain Beucler <beuc@beuc.net>.
24165
24166 2008-06-29  Bruno Haible  <bruno@clisp.org>
24167
24168         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
24169         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
24170
24171 2008-06-29  Bruno Haible  <bruno@clisp.org>
24172
24173         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
24174         EXTRA_DIST.
24175         Reported by Sylvain Beucler <beuc@beuc.net>.
24176
24177 2008-06-26  Jim Meyering  <meyering@redhat.com>
24178
24179         make several modules depend on the "open" module
24180         This provides slightly increased consistency when opening-for-write
24181         the name of a non-directory spelled with a trailing slash.
24182         * modules/chdir-safer: Likewise.
24183         * modules/chown: Likewise.
24184         * modules/clean-temp: Likewise.
24185         * modules/copy-file: Likewise.
24186         * modules/fchdir: Likewise.
24187         * modules/fcntl-safer: Likewise.
24188         * modules/pipe: Likewise.
24189         * modules/utime: Likewise.
24190         Prompted by Eric Blake and Bruno Haible.
24191
24192 2008-06-24  Andreas Schwab  <schwab@suse.de>
24193
24194         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
24195         literals can be used as initializers for global variables.
24196
24197 2008-06-23  Eric Blake  <ebb9@byu.net>
24198
24199         Make gnulib-cache.m4 easier to diff.
24200         * gnulib-tool (func_import): Allow newlines when reading cached
24201         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
24202
24203 2008-06-23  Bruno Haible  <bruno@clisp.org>
24204
24205         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
24206         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
24207         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
24208         m4/signalblocking.m4.
24209         (gl_PREREQ_SIGACTION): Don't invoke it.
24210         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
24211         gl_PREREQ_SIG_HANDLER_H.
24212         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24213         Don't check for sigaction here.
24214
24215 2008-06-23  Bruno Haible  <bruno@clisp.org>
24216
24217         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
24218         (install_handlers): Don't set the SA_RESETHAND flag.
24219
24220 2008-06-23  Bruno Haible  <bruno@clisp.org>
24221
24222         * m4/sigaction.m4: Comment fixes.
24223         * lib/signal.in.h: Likewise.
24224
24225 2008-06-23  Eric Blake  <ebb9@byu.net>
24226
24227         Fix typo.
24228         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24229
24230         Avoid SA_ namespace.
24231         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24232         Reported by Ralf Wildenhues.
24233
24234         Avoid test failure due to SA_RESTORER.
24235         * tests/test-sigaction.c (SA_MASK): New macro.
24236         (main): Avoid failing due to extension flags being set.
24237         Reported by Jim Meyering.
24238
24239         Revert use of sig-handler.h in sigprocmask.c.
24240         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24241         it requires the existence of struct sigaction.
24242         * lib/sigprocmask.c (handler_t): Restore typedef.
24243         (rpl_signal, old_handlers): Use local type.
24244
24245 2008-06-22  Bruno Haible  <bruno@clisp.org>
24246
24247         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24248         conditionally.
24249         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24250
24251 2008-06-22  Bruno Haible  <bruno@clisp.org>
24252
24253         * doc/posix-functions/siginterrupt.texi: Move note.
24254
24255         * lib/signal.in.h (SA_RESTART): New macro.
24256         * lib/sigaction.c: Update comment.
24257
24258         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24259
24260         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24261         (gl_PREREQ_SIGPROCMASK): Invoke it.
24262         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24263
24264         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24265
24266         * lib/sigprocmask.c: Update a comment.
24267
24268 2008-06-21  Eric Blake  <ebb9@byu.net>
24269
24270         Use sigaction module rather than signal().
24271         * modules/c-stack (Depends-on): Add sigaction.
24272         * modules/fatal-signal (Depends-on): Likewise.
24273         * modules/nanosleep (Depends-on): Likewise.
24274         * modules/sigprocmask (Files): Add sig-handler.h.
24275         * modules/sigaction (Files): Likewise.
24276         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24277         Eggert.
24278         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24279         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24280         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24281         (init_fatal_signals): Likewise.
24282         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24283         (siginterrupt): Delete fallback.
24284         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24285         instead.
24286         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24287         siginterrupt.
24288
24289         New module sigaction, for mingw.
24290         * modules/sigaction: New module...
24291         * modules/sigaction-tests: ...and its test.
24292         * m4/sigaction.m4: New file.
24293         * lib/sigaction.c: Likewise.
24294         * tests/test-sigaction.c: Likewise.
24295         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24296         * modules/signal (Makefile.am): Likewise.
24297         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24298         needed.
24299         * doc/posix-headers/signal.texi (signal.h): Mention provided
24300         types.
24301         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24302         that sigaction is preferable.
24303         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24304         module.
24305         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24306         sigaction.
24307
24308         Improve robustness of sigprocmask by overriding signal.
24309         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24310         is in use.
24311         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24312         (SIGKILL, SIGSTOP): Provide fallbacks.
24313         (rpl_signal): Implement.
24314         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24315         signal can be called inside handlers.
24316
24317         Fix nanosleep module on mingw.
24318         * modules/nanosleep (Depends-on): Add sys_select.
24319         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24320
24321         Fix licensing of sigprocmask.
24322         * modules/raise (License): Relicense as LGPL.
24323
24324 2008-06-21  Bruno Haible  <bruno@clisp.org>
24325
24326         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24327         result if it contains question marks.
24328         Reported by Michael Geng <linux@michaelgeng.de>.
24329
24330 2008-06-19  Bruno Haible  <bruno@clisp.org>
24331
24332         Fix CVS-ism.
24333         * doc/gnulib.texi: Include updated-stamp.texi.
24334         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24335         (updated-stamp.texi): New rule.
24336         (gnulib.info): Depend on it.
24337         * doc/.gitignore: Add updated-stamp.texi.
24338         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24339
24340 2008-06-19  Bruno Haible  <bruno@clisp.org>
24341
24342         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24343         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24344
24345 2008-06-19  Eric Blake  <ebb9@byu.net>
24346
24347         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24348         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24349         Reported by Stepan Kasal.
24350
24351 2008-06-18  Bruno Haible  <bruno@clisp.org>
24352
24353         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24354         Reported by Eric Blake.
24355
24356 2008-06-18  Eric Blake  <ebb9@byu.net>
24357
24358         Work around cygwin 1.5.25 strsignal bug.
24359         * tests/test-strsignal.c: Allow for const char *.
24360         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24361
24362 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24363
24364         * users.txt: Update URL to article and add author/date
24365         information.
24366
24367 2008-06-17  Bruno Haible  <bruno@clisp.org>
24368
24369         New macro gl_DISABLE_THREADS.
24370         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24371         if the user did not pass --enable-threads or --disable-threads option.
24372         (gl_DISABLE_THREADS): New macro.
24373         Reported by Eric Blake <ebb9@byu.net>.
24374
24375 2008-06-17  Bruno Haible  <bruno@clisp.org>
24376
24377         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24378         when the macro ignores it.
24379         Based on a patch by Eric Blake <ebb9@byu.net>.
24380
24381 2008-06-17  Bruno Haible  <bruno@clisp.org>
24382
24383         * modules/tls (License): Change to LGPLv2+.
24384         Reported by Eric Blake.
24385
24386 2008-06-17  Eric Blake  <ebb9@byu.net>
24387
24388         Simplify c-stack prerequisites.
24389         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24390         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24391         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24392         check.
24393         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24394         <sys/resource.h>.
24395
24396         Move c-stack test into testsuite.
24397         * modules/c-stack-tests: New file.
24398         * lib/c-stack.c [DEBUG]: Move test program...
24399         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24400         fail test if sigaltstack is lacking.
24401         * tests/test-c-stack.sh: New driver file.
24402
24403 2008-06-16  Eric Blake  <ebb9@byu.net>
24404
24405         Use raise module consistently.
24406         * modules/fatal-signal (Depends-on): Add raise.
24407         * modules/sigprocmask (Depends-on): Likewise.
24408         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24409         * lib/sigprocmask.c (sigprocmask): Likewise.
24410         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24411         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24412
24413         Fix compliance bug in sigpending.
24414         * lib/sigprocmask.c (sigpending): Return pending array via
24415         parameter, not return value.
24416
24417 2008-06-14  Eric Blake  <ebb9@byu.net>
24418
24419         Improve obstack-printf test code.
24420         * tests/test-obstack-printf.c (test_function): Fix comment, and
24421         simplify usage of obstack_* in macros.  Add a test for coverage.
24422         Reported by Bruno Haible.
24423
24424 2008-06-14  Bruno Haible  <bruno@clisp.org>
24425
24426         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24427         array size as a constant, not as a const variable.
24428         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24429         AC_USE_SYSTEM_EXTENSIONS.
24430         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24431         Test whether the obstack_printf function actually exists.
24432         * modules/obstack-printf (Depends-on): Add extensions.
24433         (Include): Remove obstack.h.
24434         * modules/obstack-printf-posix (Depends-on): Add extensions.
24435         (Include): Remove obstack.h.
24436
24437 2008-06-13  Eric Blake  <ebb9@byu.net>
24438
24439         Add obstack-printf and obstack-printf-posix modules.
24440         * modules/obstack-printf: New file.
24441         * modules/obstack-printf-posix: Likewise.
24442         * MODULES.html.sh (Misc): Mention them.
24443         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24444         Likewise.
24445         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24446         Likewise.
24447         * modules/stdio (Makefile.am): Accomodate new modules.
24448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24449         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24450         Declare.
24451         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24452         functions.
24453         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24454         (gl_REPLACE_OBSTACK_PRINTF): New macros
24455         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24456         * tests/test-obstack-printf.c: New file.
24457         * modules/obstack-printf-tests: Likewise.
24458         * modules/obstack-printf-posix-tests: Likewise.
24459
24460 2008-06-11  Bruno Haible  <bruno@clisp.org>
24461
24462         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24463         * lib/open.c: Include errno.h.
24464         (open): Fail when attempting to write to a file that has a trailing
24465         slash.
24466         * tests/test-open.c (main): Test against trailing slash bug.
24467         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24468
24469 2008-06-10  Bruno Haible  <bruno@clisp.org>
24470
24471         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24472         for $? to work inside the trap command, with various /bin/sh-s.
24473         * tests/test-vc-list-files-cvs.sh: Likewise.
24474
24475 2008-06-10  Bruno Haible  <bruno@clisp.org>
24476
24477         * lib/acl-internal.h: Don't include gettext.h here.
24478         * lib/set-mode-acl.c: Include gettext.h here.
24479         * lib/copy-acl.c: Likewise.
24480
24481 2008-06-10  Bruno Haible  <bruno@clisp.org>
24482
24483         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24484         * lib/wait-process.c (wait_subprocess): Likewise.
24485         * lib/execute.h (execute): Add termsigp argument.
24486         * lib/execute.c (execute): Likewise.
24487         * lib/csharpcomp.c (compile_csharp_using_pnet,
24488         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24489         * lib/csharpexec.c (execute_csharp_using_pnet,
24490         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24491         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24492         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24493         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24494         is_jikes_present): Update.
24495         * lib/javaexec.c (execute_java_class): Update.
24496         * lib/javaversion.c (execute_and_read_line): Update.
24497         * NEWS: Document the changes.
24498         Reported by Eric Blake.
24499
24500 2008-06-10  Eric Blake  <ebb9@byu.net>
24501
24502         Add missing include.
24503         * tests/test-strstr.c (includes): Add <signal.h>.
24504         * tests/test-strcasestr.c (includes): Likewise.
24505         * tests/test-memmem.c (includes): Likewise.
24506
24507 2008-06-10  Bruno Haible  <bruno@clisp.org>
24508
24509         * lib/wait-process.c (wait_subprocess): Add an assertion.
24510
24511 2008-06-10  Bruno Haible  <bruno@clisp.org>
24512
24513         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24514
24515 2008-06-10  Bruno Haible  <bruno@clisp.org>
24516
24517         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24518         using alarm().
24519         * tests/test-strcasestr.c (main): Likewise.
24520         * tests/test-strstr.c (main): Likewise.
24521
24522 2008-06-09  Bruno Haible  <bruno@clisp.org>
24523
24524         Work around the Solaris 10 ACE ACLs ABI change.
24525         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24526         declare if ACL_NO_TRIVIAL is present.
24527         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24528         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24529         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24530         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24531         define if ACL_NO_TRIVIAL is present.
24532         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24533         and use the current ABI.
24534         (file_has_acl): Use same #if condition as elsewhere.
24535         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24536         in use, and use the current ABI.
24537         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24538         Reported by Jim Meyering.
24539
24540 2008-06-09  Eric Blake  <ebb9@byu.net>
24541
24542         Work around environments that (stupidly) ignore SIGALRM.
24543         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24544         before using alarm().
24545         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24546         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24547         Reported by Ian Beckwith <ianb@erislabs.net>.
24548
24549         Produce autobuild blurb earlier in log.
24550         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24551
24552 2008-06-09  Jim Meyering  <meyering@redhat.com>
24553         and Ondřej Vašík  <ovasik@redhat.com>
24554
24555         utimens.c: correct kernel bug work-around
24556         Ondřej Vašík found that the invalid return value of 280 indicates
24557         failure, not success, and the kernel bug we're trying to work
24558         around affects not just the utimensat call, but also the fallback
24559         futimens call.
24560         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24561         not success.
24562         [HAVE_FUTIMENS]: Use the same work-around, here.
24563
24564 2008-06-09  Jim Meyering  <meyering@redhat.com>
24565
24566         add more guards around definition of ACE_-related code
24567         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24568         ALLOW and ACE_OWNER are also defined.
24569
24570 2008-06-08  Bruno Haible  <bruno@clisp.org>
24571
24572         * lib/acl-internal.h: Add me as co-author.
24573         * lib/file-has-acl.c: Likewise.
24574         * lib/set-mode-acl.c: Likewise.
24575         * lib/copy-acl.c: Likewise.
24576
24577 2008-06-08  Bruno Haible  <bruno@clisp.org>
24578
24579         Add support for AIX ACLs.
24580         * lib/acl-internal.h (acl_nontrivial): New declaration.
24581         * lib/file-has-acl.c (acl_nontrivial): New function.
24582         (file_has_acl): Add implementation using AIX 4 ACL API.
24583         * lib/set-mode-acl.c (qset_acl): Likewise.
24584         * lib/copy-acl.c (qcopy_acl): Likewise.
24585
24586 2008-06-08  Bruno Haible  <bruno@clisp.org>
24587
24588         Add support for HP-UX ACLs.
24589         * lib/acl-internal.h (acl_nontrivial): New declaration.
24590         * lib/file-has-acl.c (acl_nontrivial): New function.
24591         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24592         * lib/set-mode-acl.c (qset_acl): Likewise.
24593         * lib/copy-acl.c (qcopy_acl): Likewise.
24594
24595 2008-06-08  Bruno Haible  <bruno@clisp.org>
24596
24597         Add support for Cygwin ACLs.
24598         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24599         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24600         the chmod_or_fchmod call.
24601         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24602
24603 2008-06-08  Bruno Haible  <bruno@clisp.org>
24604
24605         Fix bug with setuid modes in Solaris 10+ code.
24606         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24607         succeeded, when the mode contains some special bits.
24608
24609 2008-06-08  Bruno Haible  <bruno@clisp.org>
24610
24611         Add support for Solaris 7..10 ACLs.
24612         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24613         declarations.
24614         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24615         functions.
24616         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24617         * lib/set-mode-acl.c (qset_acl): Likewise.
24618         * lib/copy-acl.c (qcopy_acl): Likewise.
24619
24620 2008-06-08  Bruno Haible  <bruno@clisp.org>
24621
24622         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24623         declaration.
24624         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24625         (acl_access_nontrivial): Remove MacOS X case.
24626         (file_has_acl): Use acl_extended_nontrivial.
24627         * lib/copy-acl.c (qcopy_acl): Likewise.
24628
24629 2008-06-08  Bruno Haible  <bruno@clisp.org>
24630
24631         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24632
24633 2008-06-08  Jim Meyering  <meyering@redhat.com>
24634
24635         * modules/acl (Maintainer): Add Bruno Haible.
24636
24637 2008-06-07  Bruno Haible  <bruno@clisp.org>
24638
24639         Improve support for Tru64 ACLs.
24640         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24641         ACL on OSF/1.
24642
24643 2008-06-07  Bruno Haible  <bruno@clisp.org>
24644
24645         Add support for MacOS X ACLs.
24646         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24647         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24648         * lib/set-mode-acl.c (qset_acl): Likewise.
24649         * lib/copy-acl.c (qcopy_acl): Likewise.
24650
24651 2008-06-07  Bruno Haible  <bruno@clisp.org>
24652
24653         Fix memory leak introduced on 2008-05-22.
24654         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24655         use.
24656
24657 2008-06-07  Bruno Haible  <bruno@clisp.org>
24658
24659         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24660         to construct an empty ACL.
24661
24662 2008-06-07  Bruno Haible  <bruno@clisp.org>
24663
24664         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24665         precisely.
24666         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24667
24668 2008-06-07  Bruno Haible  <bruno@clisp.org>
24669
24670         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24671         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24672
24673 2008-06-07  Bruno Haible  <bruno@clisp.org>
24674
24675         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24676         regardless of POSIX.
24677         * doc/posix-functions/_longjmp.texi: Likewise.
24678         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24679         SystemV platform in this case.
24680
24681 2008-06-06  Eric Blake  <ebb9@byu.net>
24682
24683         Document abort() bugs.
24684         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24685
24686         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24687         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24688         sigsetjmp.
24689         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24690         siglongjmp, but only as a macro.
24691         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24692         is obsolete.
24693         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24694
24695         Tweak documentation to cover cygwin argz bugs.
24696         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24697         argz bug fix; no code change needed since no cygwin releases
24698         occurred between the last fix and the bug being tested.
24699         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24700         module and recently fixed cygwin bugs.
24701         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24702         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24703         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24704         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24705         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24706         Likewise.
24707         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24708         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24709         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24710         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24711         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24712         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24713         Likewise.
24714
24715         Avoid gcc warning on cygwin.
24716         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24717         !ACL_NO_TRIVIAL]: Avoid unused variable.
24718
24719 2008-06-05  Eric Blake  <ebb9@byu.net>
24720
24721         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24722         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24723         git-version-gen fails to come up with a version.
24724         Reported by Simon Josefsson.
24725
24726 2008-06-05  Jim Meyering  <meyering@redhat.com>
24727             Paul Eggert  <eggert@cs.ucla.edu>
24728
24729         utimens.c: work around a probable Linux kernel bug
24730         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24731         appears to be a kernel bug that causes utimensat to return 280
24732         instead of 0, indicating success.
24733
24734 2008-06-04  Bruno Haible  <bruno@clisp.org>
24735
24736         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24737         2008-06-01 commit.
24738
24739 2008-06-04  Bruno Haible  <bruno@clisp.org>
24740
24741         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24742         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24743         (file_has_acl): Use it. Save errno afterwards.
24744         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24745
24746 2008-06-03  Bruno Haible  <bruno@clisp.org>
24747
24748         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24749         draft code. Simplify #ifs.
24750         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24751         Put Solaris code after POSIX-draft code. Fix comments regarding
24752         Solaris 10, HP-UX. Mention Cygwin.
24753         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24754
24755 2008-06-03  Eric Blake  <ebb9@byu.net>
24756
24757         Provide fallback for older kernels.
24758         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24759         Provide runtime fallback if kernel lacks support.
24760         Reported by Mike Frysinger.
24761
24762 2008-06-02  Bruno Haible  <bruno@clisp.org>
24763
24764         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24765         it exists.
24766
24767 2008-06-02  Bruno Haible  <bruno@clisp.org>
24768
24769         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24770         * lib/copy-acl.c (qcopy_acl): Update comment.
24771
24772 2008-06-02  Bruno Haible  <bruno@clisp.org>
24773
24774         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24775         like ACL APIs.
24776
24777 2008-06-02  Bruno Haible  <bruno@clisp.org>
24778
24779         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24780         * tests/test-set-mode-acl.sh: Likewise.
24781         * tests/test-copy-acl.sh: Likewise.
24782         * tests/test-copy-file.sh: Likewise.
24783
24784 2008-06-02  Bruno Haible  <bruno@clisp.org>
24785
24786         * tests/test-file-has-acl.sh: Remove unused code.
24787
24788 2008-06-01  Bruno Haible  <bruno@clisp.org>
24789
24790         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24791         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24792         messages.
24793         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24794
24795 2008-06-01  Bruno Haible  <bruno@clisp.org>
24796
24797         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24798         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24799         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24800         APIs.
24801         * modules/acl-tests (configure.ac): Remove tests now contained in
24802         m4/acl.m4.
24803
24804 2008-06-02  Jim Meyering  <meyering@redhat.com>
24805
24806         announce-gen: use a better key-server host name
24807         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24808         it may be more consistently reliable.  Suggested by Werner Koch
24809         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24810
24811 2008-06-01  Bruno Haible  <bruno@clisp.org>
24812
24813         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24814         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24815
24816 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24817
24818         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24819
24820 2008-06-01  Bruno Haible  <bruno@clisp.org>
24821
24822         New ACL tests.
24823         * tests/test-file-has-acl.sh: New file.
24824         * tests/test-file-has-acl.c: New file.
24825         * tests/test-set-mode-acl.sh: New file.
24826         * tests/test-set-mode-acl.c: New file.
24827         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24828         * tests/test-copy-acl.c: New file.
24829         * modules/acl-tests: New file, based on modules/copy-file-tests.
24830         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24831         (Depends-on): Add acl-tests.
24832         (configure.ac): Remove checks.
24833         (Makefile.am): Don't create test-sameacls program here any more.
24834
24835 2008-06-01  Bruno Haible  <bruno@clisp.org>
24836
24837         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24838         * tests/test-sameacls.c: Include progname.h.
24839         (main): Invoke set_program_name. Portability fixes for MacOS X,
24840         Solaris, HP-UX.
24841
24842 2008-06-01  Bruno Haible  <bruno@clisp.org>
24843
24844         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24845         function.
24846         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24847
24848 2008-06-01  Bruno Haible  <bruno@clisp.org>
24849
24850         * modules/rpmatch (Depends-on): Add strdup.
24851
24852 2008-06-01  Bruno Haible  <bruno@clisp.org>
24853
24854         * lib/pipe.c: Include unistd-safer.h.
24855         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24856         * modules/pipe (Depends-on): Add unistd-safer.
24857
24858 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24859
24860         * modules/autobuild (configure.ac): Call AB_INIT.
24861
24862 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24863
24864         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24865         Suggested by Bruno Haible <bruno@clisp.org>.
24866
24867 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24868
24869         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24870         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24871         <bruno@clisp.org>.
24872
24873 2008-05-29  Eric Blake  <ebb9@byu.net>
24874
24875         Prefer new POSIX 200x interfaces over futimesat.
24876         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24877         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24878         when available.
24879         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24880
24881 2008-05-28  Bruno Haible  <bruno@clisp.org>
24882
24883         * modules/stpcpy (License): Change to LGPLv2+.
24884         Requested by David Lutterkort <dlutter@redhat.com>.
24885
24886 2008-05-27  Bruno Haible  <bruno@clisp.org>
24887
24888         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24889         current mingw.
24890         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24891
24892 2008-05-27  Bruno Haible  <bruno@clisp.org>
24893
24894         * modules/iconv_open (Link): New section, from module 'iconv'.
24895         * modules/striconv (Link): Likewise.
24896         * modules/striconveh (Link): Likewise.
24897         * modules/xstriconv (Link): Likewise.
24898         * modules/unicodeio (Link): Likewise.
24899         * modules/propername (Link): Likewise.
24900         Reported by Jim Meyering.
24901
24902 2008-05-26  Jim Meyering  <meyering@redhat.com>
24903
24904         sha256: do not artificially restrict buffer length to be < 2^32
24905         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24906         uint32_t to size_t.
24907         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24908         to match.
24909
24910         avoid unaligned access errors, e.g., on sparc
24911         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24912         direct access through a possibly-unaligned uint64* pointer.
24913         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24914         direct access through a possibly-unaligned uint32* pointer.
24915         Prompted by this patch from Tom "spot" Callaway:
24916         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24917
24918         sha512.c: fix typo in comment
24919         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24920
24921 2008-05-25  Bruno Haible  <bruno@clisp.org>
24922
24923         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24924         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24925         (Makefile.am): Update lib_SOURCES.
24926
24927 2008-05-25  Bruno Haible  <bruno@clisp.org>
24928
24929         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24930
24931 2008-05-25  Jim Meyering  <meyering@redhat.com>
24932
24933         useless-if-before-free: freed expr may have white-space differences
24934         * build-aux/useless-if-before-free: Recognize cases in which the
24935         freed expression differs from the tested one in embedded white
24936         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24937         $1 was used, so we can't make any regexp shy.  Improved tests now
24938         detect this.
24939
24940         useless-if-before-free: accept white space in the expression.
24941         * build-aux/useless-if-before-free: For now, any white space
24942         in the expression must be identical in the free argument.
24943
24944         useless-if-before-free: efficiency tweak
24945         * build-aux/useless-if-before-free: Make the expression-matching
24946         regexp "shy".
24947         Make the *outer* regexp shy, not the expr-matching one.
24948
24949         update code-in-comment to accept cast of free arg
24950         * build-aux/useless-if-before-free: Update regexp.
24951
24952 2008-05-25  Bruno Haible  <bruno@clisp.org>
24953
24954         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24955         * modules/copy-file-tests (Files, Makefile.am): Update.
24956         * tests/test-copy-file.c (func_test_copy): Update.
24957
24958 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24959
24960         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24961
24962 2008-05-23  Bruno Haible  <bruno@clisp.org>
24963
24964         Improve support for ACLs on OSF/1.
24965         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24966         Remove fallback for unknown flavors of ACLs.
24967
24968 2008-05-22  Bruno Haible  <bruno@clisp.org>
24969
24970         Add support for ACLs on OSF/1.
24971         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24972         replacements.
24973         (acl_free_text): New macro fallback.
24974         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24975         acl_free.
24976         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24977         acl_free_text function. Require AC_C_INLINE.
24978
24979 2008-05-22  Bruno Haible  <bruno@clisp.org>
24980
24981         Make copy_acl work on MacOS X 10.5.
24982         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24983         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24984         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24985         If MODE_INSIDE_ACL, don't assume that every system has the same text
24986         representation for ACLs as FreeBSD.
24987         * lib/copy-acl.c (copy_acl): Add support for platforms with
24988         !MODE_INSIDE_ACL.
24989         * lib/file-has-acl.c (file_has_acl): Likewise.
24990         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24991         FreeBSD, MacOS X, or IRIX, respectively.
24992
24993 2008-05-22  Bruno Haible  <bruno@clisp.org>
24994
24995         * lib/acl.h: Don't include <sys/acl.h>.
24996         (GETACLCNT): Move fallback to lib/acl-internal.h.
24997         * lib/acl-internal.h: Include <sys/acl.h> here.
24998         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24999
25000 2008-05-22  Bruno Haible  <bruno@clisp.org>
25001
25002         Split off copy_acl function to separate file.
25003         * lib/copy-acl.c: New file, extracted from lib/acl.c.
25004         * lib/acl.c (copy_acl): Moved function to separate file.
25005         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
25006         * modules/acl (Files): Add lib/copy-acl.c.
25007         (Makefiles.am): Augment lib_SOURCES.
25008
25009 2008-05-22  Bruno Haible  <bruno@clisp.org>
25010
25011         * modules/copy-file-tests: New file.
25012         * tests/test-copy-file.sh: New file.
25013         * tests/test-copy-file.c: New file.
25014         * tests/test-copy-file-sameacls.c: New file.
25015
25016 2008-05-22  Eric Blake  <ebb9@byu.net>
25017
25018         Avoid gcc warning.
25019         * tests/test-memcmp.c (main): Pass NULL indirectly.
25020
25021 2008-05-21  Bruno Haible  <bruno@clisp.org>
25022
25023         Add reference doc about ACLs.
25024         * doc/acl-resources.txt: New file.
25025         * doc/acl-cygwin.txt: New file.
25026
25027 2008-05-21  Bruno Haible  <bruno@clisp.org>
25028
25029         Avoid one more warning from gcc.
25030         * lib/vasnprintf.c (IF_LINT): Update comments.
25031         (VASNPRINTF): Use it also for the 'prefix' array initializer.
25032
25033 2008-05-21  Jim Meyering  <meyering@redhat.com>
25034
25035         avoid a warning from gcc
25036         * lib/vasnprintf.c (IF_LINT): Define.
25037         (scale10_round_decimal_long_double):
25038         Use it to avoid a "may be used uninitialized" warning.
25039         (scale10_round_decimal_double): Likewise.
25040
25041 2008-05-21  Simon Josefsson  <simon@josefsson.org>
25042
25043         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
25044         declared.
25045
25046 2008-05-20  Bruno Haible  <bruno@clisp.org>
25047
25048         * tests/test-memcmp.c (main): Test also the sign of the result. Test
25049         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
25050
25051 2008-05-20  Simon Josefsson  <simon@josefsson.org>
25052
25053         * modules/memcmp-tests: New file.
25054         * tests/test-memcmp.c: New file.
25055
25056 2008-05-19  Bruno Haible  <bruno@clisp.org>
25057
25058         * modules/propername (Notice, configure.ac): Put quoted "..." into
25059         --keyword option.
25060         * lib/propername.h: Update comments accordingly.
25061         Reported by Eric Blake.
25062
25063 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
25064
25065         * modules/getpass-gnu (Depends-on): Add fseeko.
25066
25067 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25068
25069         * modules/base64-tests: New file.
25070
25071 2008-05-19  Bo Borgerson <gigabo@gmail.com>
25072
25073         * lib/base64.c (base64_decode_ctx): If a decode context structure
25074         was passed in use it to ignore newlines.  If a context structure
25075         was _not_ passed in, continue to treat newlines as garbage (this
25076         is the historical behavior).  Formerly base64_decode.
25077         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25078         takes a decode context structure.
25079         * lib/base64.h (base64_decode): Macro for four-argument calls.
25080         (base64_decode_alloc): Likewise.
25081         * lib/base64.c (base64_decode_ctx): If a decode context structure
25082         was passed in use it to ignore newlines.  If a context structure
25083         was _not_ passed in, continue to treat newlines as garbage (this
25084         is the historical behavior).  Formerly base64_decode.
25085         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25086         takes a decode context structure.
25087         * lib/base64.h (base64_decode): Macro for four-argument calls.
25088         (base64_decode_alloc): Likewise.
25089
25090 2008-05-19  Jim Meyering  <meyering@redhat.com>
25091
25092         avoid a warning from gcc
25093         * lib/trim.c (IF_LINT): Define.
25094         (trim2): Use it to avoid a "may be used uninitialized" warning.
25095
25096         Fix doc typo.
25097         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
25098
25099 2008-05-19  Bruno Haible  <bruno@clisp.org>
25100
25101         * doc/glibc-functions/getpass.texi: Document limits of other
25102         implementations.
25103
25104 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25105             Bruno Haible <bruno@clisp.org>
25106
25107         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
25108
25109 2008-05-18  Bruno Haible  <bruno@clisp.org>
25110
25111         * modules/propername: New file, from GNU gettext.
25112         * lib/propername.h: New file, from GNU gettext.
25113         * lib/propername.c: New file, from GNU gettext.
25114         * MODULES.html.sh (Internationalization functions): Add propername.
25115
25116 2008-05-16  Jim Meyering  <meyering@redhat.com>
25117             Bruno Haible  <bruno@clisp.org>
25118
25119         Avoid some warnings from "gcc -Wshadow".
25120         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
25121
25122 2008-05-15  Eric Blake  <ebb9@byu.net>
25123
25124         Extend previous patch to cygwin 1.7.0.
25125         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
25126         fast implementation in cygwin >= 1.7.0.
25127         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25128         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25129
25130 2008-05-15  Bruno Haible  <bruno@clisp.org>
25131
25132         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
25133         implementation in glibc >= 2.9.
25134         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25135         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25136
25137 2008-05-15  Bruno Haible  <bruno@clisp.org>
25138
25139         * MODULES.html.sh (Internationalization functions): Remove linebreak.
25140         (Unicode string functions): Add unilbrk/*.
25141         Reported by Karl Berry.
25142
25143 2008-05-15  Eric Blake  <ebb9@byu.net>
25144
25145         Fix violation of <stdbool.h> replacement in regex.
25146         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
25147         * lib/regexec.c (re_search_internal): Likewise.
25148         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
25149
25150 2008-05-15  Jim Meyering  <meyering@redhat.com>
25151
25152         avoid distracting test output when git or cvs is not found
25153         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
25154         * tests/test-vc-list-files-git.sh: Likewise.
25155
25156 2008-05-15  Eric Blake  <ebb9@byu.net>
25157
25158         Glibc finally accepted the memmem speedup code, bugzilla #5514.
25159         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
25160         glibc version.
25161         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25162         * doc/posix-functions/strstr.texi (strstr): Likewise.
25163         * lib/str-two-way.h (MAX): Sychronize with glibc.
25164
25165 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
25166
25167         * lib/regcomp.c (optimize_utf8): Add a note on why we test
25168         opr.ctx_type.
25169         (calc_first): Initialize constraint field.
25170         (duplicate_node_closure): Use it instead of special casing ANCHORS.
25171         Fix grammar.
25172         (duplicate_node): Merge constraint field for all node types.
25173         (calc_eclosure_iter): Look at constraint field for all node types.
25174         * lib/regex_internal.c (create_cd_newstate): Don't look at
25175         opr.ctx_type.
25176
25177 2008-05-14  Bruno Haible  <bruno@clisp.org>
25178
25179         Help GCC to do better code generation.
25180         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
25181         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25182         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
25183         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
25184         Declare with attribute 'malloc' if supported.
25185
25186 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
25187
25188         use "echo STR|wc -c" rather than unportable "expr length STR"
25189         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
25190         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
25191
25192 2008-05-14  Jim Meyering  <meyering@redhat.com>
25193
25194         use dd ibs=$n count=1 ... rather than less-portable head -c$n
25195         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
25196         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
25197         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
25198         via Collin Lasse.
25199
25200 2008-05-14  Eric Blake  <ebb9@byu.net>
25201
25202         Avoid quadratic growth in gl_LIBSOURCES.
25203         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
25204         Suggested by Bruno Haible.
25205
25206         Test xmemdup0.
25207         * modules/xmemdup0-tests: New file.
25208         * tests/test-xmemdup0.c: Likewise.
25209
25210 2008-05-13  Eric Blake  <ebb9@byu.net>
25211
25212         Split xmemdup0 into its own module.
25213         * modules/xmemdup0: New file.
25214         * lib/xmemdup0.h: Likewise.
25215         * lib/xmemdup0.c: Likewise.
25216         * MODULES.html.sh (Memory management functions): Add xmemdup0.
25217         * lib/xalloc.h (xmemdup0): Remove.
25218         * lib/xmalloc.c (xmemdup0): Likewise.
25219
25220 2008-05-13  Eric Blake  <ebb9@byu.net>
25221             Bruno Haible  <bruno@clisp.org>
25222
25223         Reduce number of forks required during autoconf.
25224         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25225         and gl_LIBSOURCES_DIR.
25226         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25227         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25228         m4_syscmd per file.
25229         <m4_foreach_w>: Move...
25230         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25231
25232 2008-05-13  Eric Blake  <ebb9@byu.net>
25233
25234         * gnulib-tool: Fix various comment typos.
25235
25236 2008-05-12  Bruno Haible  <bruno@clisp.org>
25237
25238         Tailor the linebreaking algorithm.
25239         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25240
25241 2008-05-12  Bruno Haible  <bruno@clisp.org>
25242
25243         Update to Unicode 5.0.0.
25244         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25245         LBP_JV, LBP_JT. Redistribute values.
25246         (unilbrk_table): Change size.
25247         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25248         Unicode TR#14 rev. 22.
25249         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25250         LBP_JV, LBP_JT. Redistribute values.
25251         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25252         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25253         Update.
25254         * lib/unilbrk/lbrkprop1.h: Regenerated.
25255         * lib/unilbrk/lbrkprop2.h: Regenerated.
25256         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25257         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25258         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25259         Likewise.
25260         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25261         Likewise.
25262         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25263         result.
25264         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25265         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25266         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25267         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25268         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25269         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25270
25271 2008-05-11  Bruno Haible  <bruno@clisp.org>
25272
25273         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25274
25275 2008-05-11  Bruno Haible  <bruno@clisp.org>
25276
25277         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25278         * modules/unilbrk/gen-lbrk: New file.
25279
25280 2008-05-11  Bruno Haible  <bruno@clisp.org>
25281
25282         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25283         * m4/sha512.m4 (gl_SHA512): Likewise.
25284
25285 2008-05-11  Jim Meyering  <meyering@redhat.com>
25286
25287         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25288         * modules/crypto/sha256: New file.
25289         * modules/crypto/sha512: Likewise.
25290         * lib/sha256.c: Likewise.
25291         * lib/sha256.h: Likewise.
25292         * lib/sha512.c: Likewise.
25293         * lib/sha512.h: Likewise.
25294         * lib/u64.h: Likewise.
25295         * m4/sha256.m4: Likewise.
25296         * m4/sha512.m4: Likewise.
25297         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25298
25299 2008-05-10  Bruno Haible  <bruno@clisp.org>
25300
25301         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25302         (Input/Output <stdio.h>): Add xprintf.
25303         (Signal handling <signal.h>): Add strsignal.
25304         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25305         (Core language properties): Add func.
25306         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25307         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25308         strings.
25309         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25310         (Input/output): New section.
25311         (File system functions): Add openat-die, stat-macros.
25312         (Networking functions): Add sockets.
25313         (Unicode string functions): Add unictype/*.
25314         (Support for building libraries and executables): Add gperf.
25315         (Support for building documentation): Add agpl-3.0.
25316         (Misc): Add nocrash.
25317
25318 2008-05-10  Bruno Haible  <bruno@clisp.org>
25319
25320         * modules/unictype/gen-ctype: New file.
25321
25322 2008-05-10  Jim Meyering  <meyering@redhat.com>
25323
25324         Make chdir-safer.c more efficient on a system with no symlinks.
25325         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25326         also if ELOOP is zero.  Suggested by Bruno Haible.
25327
25328         Make chdir-safer.c slightly safer.
25329         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25330         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25331
25332         Avoid compile failure on systems without ELOOP (like mingw).
25333         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25334         Reported by Bruno Haible.
25335
25336 2008-05-10  Bruno Haible  <bruno@clisp.org>
25337
25338         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25339         (is_utf8_encoding): Use a case-insensitive comparison.
25340         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25341         streq.
25342
25343 2008-05-10  Bruno Haible  <bruno@clisp.org>
25344
25345         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25346         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25347         * lib/unilbrk/ulc-common.h (iconv_string_length,
25348         iconv_string_keeping_offsets): Remove declarations.
25349         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25350         Don't include <iconv.h>, streq.h, xsize.h.
25351         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25352         conversion.
25353         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25354         <iconv.h>, streq.h, xsize.h.
25355         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25356         conversion.
25357         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25358         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25359         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25360         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25361
25362 2008-05-10  Bruno Haible  <bruno@clisp.org>
25363
25364         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25365         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25366
25367         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25368         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25369
25370         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25371         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25372
25373         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25374         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25375
25376         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25377         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25378
25379         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25380         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25381
25382         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25383         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25384
25385         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25386         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25387
25388 2008-05-10  Bruno Haible  <bruno@clisp.org>
25389
25390         Split up 'linebreak' module.
25391         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25392         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25393         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25394         modifications.
25395         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25396         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25397         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25398         lib/linebreak.c.
25399         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25400         lib/linebreak.c.
25401         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25402         lib/linebreak.c.
25403         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25404         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25405         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25406         lib/linebreak.c.
25407         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25408         lib/linebreak.c.
25409         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25410         lib/linebreak.c.
25411         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25412         lib/linebreak.c.
25413         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25414         lib/linebreak.c.
25415         * modules/unilbrk/base: New file.
25416         * modules/unilbrk/tables: New file.
25417         * modules/unilbrk/u8-possible-linebreaks: New file.
25418         * modules/unilbrk/u16-possible-linebreaks: New file.
25419         * modules/unilbrk/u32-possible-linebreaks: New file.
25420         * modules/unilbrk/ulc-common: New file.
25421         * modules/unilbrk/ulc-possible-linebreaks: New file.
25422         * modules/unilbrk/u8-width-linebreaks: New file.
25423         * modules/unilbrk/u16-width-linebreaks: New file.
25424         * modules/unilbrk/u32-width-linebreaks: New file.
25425         * modules/unilbrk/ulc-width-linebreaks: New file.
25426         * lib/linebreak.h: Remove file.
25427         * lib/linebreak.c: Remove file.
25428         * m4/linebreak.m4: Remove file.
25429         * modules/linebreak: Remove file.
25430         * NEWS: Mention the changes.
25431
25432 2008-05-09  Eric Blake  <ebb9@byu.net>
25433
25434         Add xmemdup0.
25435         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25436         implementation.
25437         * lib/xmalloc.c (xmemdup0): New C implementation.
25438
25439 2008-05-08  Bruno Haible  <bruno@clisp.org>
25440
25441         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25442
25443 2008-05-07  Eric Blake  <ebb9@byu.net>
25444
25445         Support cross-compilation of <wctype.h>.
25446         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25447         AC_CACHE_CHECK.
25448
25449 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25450
25451         * build-aux/vc-list-files: Add support for bzr.
25452
25453 2008-05-03  Jim Meyering  <meyering@redhat.com>
25454
25455         avoid failed assertion with tight malloc
25456         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25457
25458 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25459
25460         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25461         are needed from arpa/inet.h.
25462         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25463         Reported by Bruno Haible.
25464
25465 2008-05-02  Jim Meyering  <meyering@redhat.com>
25466
25467         avoid compilation error on FreeBSD 6
25468         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25469
25470 2008-05-01  Jim Meyering  <meyering@redhat.com>
25471
25472         useless-if-before-free: correct --help's exit status description
25473         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25474         for one or more matches, etc.  Reported by Bruno Haible.
25475
25476         vc-list-files: make the stand-alone gnulib test work
25477         * modules/vc-list-files-tests (configure.ac):
25478         Define and AC_SUBST abs_aux_dir.
25479         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25480         $(abs_top_srcdir) to each script and having each of them
25481         duplicate the work of setting PATH, set PATH here, using
25482         the new variable, abs_aux_dir instead.
25483         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25484         * tests/test-vc-list-files-git.sh: Likewise.
25485         Reported by Bruno Haible.
25486
25487 2008-05-01  Bruno Haible  <bruno@clisp.org>
25488
25489         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25490         reallocation. Rename 'done' to 'found_delimiter'.
25491
25492 2008-05-01  Jim Meyering  <meyering@redhat.com>
25493
25494         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25495         * build-aux/vc-list-files: Use `...`, not $(...).
25496
25497 2008-04-30  Jim Meyering  <meyering@redhat.com>
25498
25499         add tests for vc-list-files
25500         * modules/vc-list-files-tests: New module.
25501         * tests/test-vc-list-files-cvs.sh: New file.
25502         * tests/test-vc-list-files-git.sh: New file.
25503
25504         avoid a warning from gcc
25505         * lib/getndelim2.c (IF_LINT): Define.
25506         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25507
25508         vc-list-files: work properly with build-aux/cvsu, too
25509         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25510         to all cvs-based clauses.
25511
25512         vc-list-files: work properly in the CVS+awk case, too
25513         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25514
25515         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25516         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25517         take more than one file argument, so .  Add quotes, just in case $dir
25518         ever contains a shell meta-character.  Prompted by Soren Hansen in
25519         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25520
25521 2008-04-29  Eric Blake  <ebb9@byu.net>
25522
25523         Optimize getndelim2 to use block operations when possible.
25524         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25525         freadseek, and memchr2.
25526         * lib/getndelim2.c (getndelim2): Use them for block reads.
25527
25528 2008-04-29  Bruno Haible  <bruno@clisp.org>
25529
25530         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25531         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25532         * modules/inet_ntop (Depends-on): Add extensions.
25533         * modules/inet_pton (Depends-on): Likewise.
25534         Reported by Simon Josefsson.
25535
25536 2008-04-29  Jim Meyering  <meyering@redhat.com>
25537
25538         When the is more than one match in a block, match all of them.
25539         * build-aux/useless-if-before-free: Iterate through each block
25540         until there are no more matches.
25541
25542         Fix broken useless-if-before-free script.
25543         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25544         the expression to match cast of argument to free-like function.
25545
25546 2008-04-29  Eric Blake  <ebb9@byu.net>
25547
25548         Use new header.
25549         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25550
25551 2008-04-29  Jim Meyering  <meyering@redhat.com>
25552
25553         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25554         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25555         by gnulib to exist and to declare e.g., inet_ntop.
25556         Don't include "inet_ntop.h", now removed.
25557
25558         * m4/arpa_inet_h.m4: Remove trailing blanks.
25559
25560 2008-04-29  Eric Blake  <ebb9@byu.net>
25561
25562         Silence valgrind on safe reads beyond potential array bounds.
25563         * lib/rawmemchr.valgrind: New file.
25564         * lib/strchrnul.valgrind: Likewise.
25565         * modules/rawmemchr (Files): Distribute new file.
25566         * modules/strchrnul (Files): Likewise.
25567         Suggested by Bruno Haible.
25568
25569 2008-04-29  Bruno Haible  <bruno@clisp.org>
25570
25571         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25572         (inet_ntop, inet_pton): Change portability warning's wording.
25573         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25574         Invoke gl_CHECK_NEXT_HEADERS.
25575         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25576         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25577         set ARPA_INET_H.
25578         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25579         * modules/arpa_inet (Description): No longer only for systems that
25580         lack it.
25581         (Depends-on): Add include_next.
25582         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25583         HAVE_ARPA_INET_H.
25584
25585 2008-04-29  Jim Meyering  <meyering@redhat.com>
25586
25587         * modules/mkdir (License): Re-license as LGPLv2+.
25588
25589 2008-04-29  Bruno Haible  <bruno@clisp.org>
25590
25591         * modules/rawmemchr (Maintainer): Set to Eric.
25592         * modules/strchrnul (Maintainer): Likewise.
25593
25594 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25595
25596         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25597         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25598
25599         * modules/arpa_inet (arpa/inet.h): Use them.
25600
25601 2008-04-28  Eric Blake  <ebb9@byu.net>
25602
25603         Test getndelim2.
25604         * modules/getndelim2-tests: New file.
25605         * tests/test-getndelim2.c: Likewise.
25606         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25607         stream.
25608         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25609
25610         * MODULES.html.sh: Document new module.
25611
25612 2008-04-20  Bruno Haible  <bruno@clisp.org>
25613
25614         * lib/c-stack.c (die): Use raise.
25615         * modules/c-stack (Depends-on): Add raise.
25616
25617 2008-04-28  Bruno Haible  <bruno@clisp.org>
25618
25619         Expect rpmatch to be declared.
25620         * lib/yesno.c (rpmatch): Remove declaration.
25621
25622         Declare rpmatch.
25623         * lib/stdlib.in.h (rpmatch): New declaration.
25624         * lib/rpmatch.c: Include <stdlib.h> first.
25625         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25626         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25628         HAVE_RPMATCH.
25629         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25630         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25631         (Include): Set to <stdlib.h>.
25632         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25633         HAVE_RPMATCH.
25634         * NEWS: Document the change.
25635
25636 2008-04-28  Bruno Haible  <bruno@clisp.org>
25637
25638         Change rpmatch to use nl_langinfo when appropriate.
25639         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25640         (N_): New macro.
25641         (localized_pattern): New function/macro.
25642         (try): Remove match, nomatch arguments. Copy the pattern into safe
25643         memory before caching it.
25644         (rpmatch): Use localized_pattern. Add translator comments.
25645         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25646         Suggested by Eric Blake.
25647         * modules/rpmatch (Depends-on): Add stdbool.
25648
25649 2008-04-28  Eric Blake  <ebb9@byu.net>
25650
25651         Add rawmemchr module, matching glibc.
25652         * modules/string (Makefile.am): New indicator.
25653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25654         * lib/string.in.h (rawmemchr): Declare when appropriate.
25655         * modules/rawmemchr: New file.
25656         * m4/rawmemchr.m4: Likewise.
25657         * lib/rawmemchr.c: Likewise.
25658         * modules/rawmemchr-tests: Likewise.
25659         * tests/test-rawmemchr.c: Likewise.
25660         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25661         module.
25662         * modules/strchrnul (Depends-on): Add rawmemchr.
25663         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25664
25665         Whitespace cleanup.
25666         * tests/test-strchrnul.c: Reindent.
25667         * lib/strchrnul.c: Likewise.
25668
25669         Optimize and test strchrnul.
25670         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25671         * modules/strchrnul-tests: New file.
25672         * tests/test-strchrnul.c: Likewise.
25673
25674         Remove intprops dependency.
25675         * modules/memchr (Depends-on): Remove intprops.
25676         * modules/memrchr (Depends-on): Likewise.
25677         * modules/memchr2 (Depends-on): Likewise.
25678         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25679         * lib/memrchr.c (__memrchr): Likewise.
25680         * lib/memrchr2.c (memchr2): Likewise.
25681         Reported by Simon Josefsson.
25682
25683 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25684
25685         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25686         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25687
25688 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25689
25690         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25691
25692         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25693
25694         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25695
25696         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25697         declarations.
25698         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25699
25700         * m4/inet_pton.m4: Don't check for header files.
25701
25702         * m4/inet_ntop.m4: Don't check for header files.
25703
25704 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25705
25706         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25707         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25708         trigger for cygwin).
25709         Reported by Bruno Haible  <bruno@clisp.org>.
25710
25711 2008-04-28  Bruno Haible  <bruno@clisp.org>
25712
25713         * doc/posix-functions/strdup.texi: Mention mingw problem.
25714
25715 2008-04-27  Bruno Haible  <bruno@clisp.org>
25716
25717         * modules/stat-time-tests (Depends-on): Add sleep.
25718         * tests/test-stat-time.c (force_unlink): New function.
25719         (cleanup): Use it.
25720         (test_mtime): Remove the ctime related tests.
25721         (test_ctime): New function, containing the ctime related tests.
25722         (main): Call test_ctime, except on native Windows platforms.
25723
25724 2008-04-27  Bruno Haible  <bruno@clisp.org>
25725
25726         * lib/rpmatch.c (rpmatch): Add some comments.
25727         Reported by James Youngman <jay@gnu.org>.
25728
25729 2008-04-27  Bruno Haible  <bruno@clisp.org>
25730
25731         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25732         quiet NaNs.
25733
25734 2008-04-27  Bruno Haible  <bruno@clisp.org>
25735
25736         Make test-yesno.sh work on mingw.
25737         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25738         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25739         (main): Set stdin to binary mode.
25740         * modules/yesno-tests (Depends-on): Add binary-io.
25741
25742 2008-04-27  Bruno Haible  <bruno@clisp.org>
25743
25744         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25745         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25746         argument that lie outside the IEEE 854 domain.
25747         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25748         (gl_ISFINITE): Use it.
25749         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25750
25751 2008-04-27  Bruno Haible  <bruno@clisp.org>
25752
25753         Allow local renaming in config.h.
25754         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25755
25756 2008-04-27  Bruno Haible  <bruno@clisp.org>
25757
25758         * lib/memchr.c (__memchr): Change type of 'i'.
25759         * lib/memchr2.c (memchr2): Likewise.
25760
25761 2008-04-26  Eric Blake  <ebb9@byu.net>
25762         and Bruno Haible  <bruno@clisp.org>
25763
25764         Optimize and test memrchr.
25765         * modules/memrchr (Depends-on): Add intprops.
25766         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25767         * modules/memrchr-tests: New file.
25768         * tests/test-memrchr.c: New file.
25769
25770 2008-04-26  Bruno Haible  <bruno@clisp.org>
25771
25772         Add tentative support for DragonFly BSD.
25773         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25774         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25775         fp.
25776         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25777         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25778         * lib/fpurge.c (fpurge): Likewise.
25779         * lib/freadable.c (freaadable): Likewise.
25780         * lib/freadahead.c (freadahead): Likewise.
25781         * lib/freading.c (freading): Likewise.
25782         * lib/freadptr.c (freadptr): Likewise.
25783         * lib/freadseek.c (freadptrinc): Likewise.
25784         * lib/fseeko.c (fseeko): Likewise.
25785         * lib/fseterr.c (fseterr): Likewise.
25786         * lib/fwritable.c (fwritable): Likewise.
25787         * lib/fwriting.c (fwriting): Likewise.
25788
25789 2008-04-26  Bruno Haible  <bruno@clisp.org>
25790
25791         * lib/stdio-impl.h: New file.
25792         * lib/fbufmode.c: Include stdio-impl.h.
25793         (fbufmode): Use fp_, remove redundant #defines.
25794         * lib/fflush.c: Include stdio-impl.h.
25795         (clear_ungetc_buffer): Remove redundant #defines.
25796         * lib/fpurge.c: Include stdio-impl.h.
25797         (fpurge): Remove redundant #defines.
25798         * lib/freadable.c: Include stdio-impl.h.
25799         (freadable): Remove redundant #defines.
25800         * lib/freadahead.c: Include stdio-impl.h.
25801         (freadahead): Remove redundant #defines.
25802         * lib/freading.c: Include stdio-impl.h.
25803         (freading): Remove redundant #defines.
25804         * lib/freadptr.c: Include stdio-impl.h.
25805         (freadptr): Remove redundant #defines.
25806         * lib/freadseek.c: Include stdio-impl.h.
25807         (freadptrinc): Remove redundant #defines.
25808         * lib/fseeko.c: Include stdio-impl.h.
25809         (rpl_fseeko): Remove redundant #defines.
25810         * lib/fseterr.c: Include stdio-impl.h.
25811         (fseterr): Remove redundant #defines.
25812         * lib/fwritable.c: Include stdio-impl.h.
25813         (fwritable: Remove redundant #defines.
25814         * lib/fwriting.c: Include stdio-impl.h.
25815         (fwriting): Remove redundant #defines.
25816         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25817         * modules/fflush (Files): Likewise.
25818         * modules/fpurge (Files): Likewise.
25819         * modules/freadable (Files): Likewise.
25820         * modules/freadahead (Files): Likewise.
25821         * modules/freading (Files): Likewise.
25822         * modules/freadptr (Files): Likewise.
25823         * modules/freadseek (Files): Likewise.
25824         * modules/fseeko (Files): Likewise.
25825         * modules/fseterr (Files): Likewise.
25826         * modules/fwritable (Files): Likewise.
25827         * modules/fwriting (Files): Likewise.
25828
25829 2008-04-26  Bruno Haible  <bruno@clisp.org>
25830
25831         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25832         restore_seek_optimization, update_fpos_cache): New functions, extracted
25833         from rpl_fflush.
25834         (rpl_fflush): Use them.
25835         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25836         (gl_REPLACE_FFLUSH): Use it.
25837
25838 2008-04-26  Bruno Haible  <bruno@clisp.org>
25839
25840         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25841         on Solaris.
25842         * tests/test-xstrtoimax.sh: Likewise.
25843         * tests/test-xstrtoumax.sh: Likewise.
25844         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25845
25846 2008-04-26  Bruno Haible  <bruno@clisp.org>
25847
25848         * modules/memchr-tests: New file.
25849         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25850
25851 2008-04-26  Eric Blake  <ebb9@byu.net>
25852             Bruno Haible  <bruno@clisp.org>
25853
25854         * lib/memchr.c: Include intprops.h.
25855         (__memchr): Optimize parallel detection of matching bytes. Rename local
25856         variables. Add explanatory comments.
25857
25858 2008-04-26  Bruno Haible  <bruno@clisp.org>
25859
25860         Fix module 'memchr', broken since 2000-10-28.
25861         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25862
25863 2008-04-26  Bruno Haible  <bruno@clisp.org>
25864
25865         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25866         comments.
25867
25868 2008-04-25  Eric Blake  <ebb9@byu.net>
25869
25870         Use native fstatat on cygwin 1.7.0.
25871         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25872         first.
25873
25874 2008-04-23  Eric Blake  <ebb9@byu.net>
25875
25876         Improve memchr2 performance.
25877         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25878         NUL bytes.
25879         * modules/memchr2 (Depends-on): Use intprops.h.
25880
25881 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25882
25883         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25884         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25885         <blp@cs.stanford.edu>.
25886
25887 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25888
25889         * lib/arpa_inet.in.h: New file.
25890
25891         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25892         (Makefile.am): Sed in substitute header file.
25893
25894         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25895         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25896
25897         * modules/inet_ntop (configure.ac): Use
25898         gl_ARPA_INET_MODULE_INDICATOR.
25899
25900         * modules/inet_pton (configure.ac): Use
25901         gl_ARPA_INET_MODULE_INDICATOR.
25902
25903 2008-04-22  Jim Meyering  <meyering@redhat.com>
25904
25905         * modules/verify (License): Re-license as LGPLv2+.
25906
25907 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25908
25909         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25910         parameter to void* as per POSIX standard (MinGW uses char*).
25911
25912 2008-04-21  Bruno Haible  <bruno@clisp.org>
25913
25914         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25915         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25916         Define to replacements if REPLACE_ISWCNTRL is 1.
25917         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25918         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25919         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25920         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25921         what it fixes.
25922         * doc/posix-functions/iswalpha.texi: Likewise.
25923         * doc/posix-functions/iswblank.texi: Likewise.
25924         * doc/posix-functions/iswcntrl.texi: Likewise.
25925         * doc/posix-functions/iswdigit.texi: Likewise.
25926         * doc/posix-functions/iswgraph.texi: Likewise.
25927         * doc/posix-functions/iswlower.texi: Likewise.
25928         * doc/posix-functions/iswprint.texi: Likewise.
25929         * doc/posix-functions/iswpunct.texi: Likewise.
25930         * doc/posix-functions/iswspace.texi: Likewise.
25931         * doc/posix-functions/iswupper.texi: Likewise.
25932         * doc/posix-functions/iswxdigit.texi: Likewise.
25933         Reported by Alain Guibert.
25934
25935 2008-04-21  Bruno Haible  <bruno@clisp.org>
25936
25937         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25938         Patch by Alain Guibert.
25939
25940 2008-04-21  Bruno Haible  <bruno@clisp.org>
25941
25942         Fix test failures on mingw.
25943         * tests/test-xstrtol.c (print_no_progname): New function.
25944         (main): Install it in error_print_progname hook.
25945         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25946         * tests/test-xstrtoimax.sh: Likewise.
25947         * tests/test-xstrtoumax.sh: Likewise.
25948
25949 2008-04-21  Bruno Haible  <bruno@clisp.org>
25950
25951         Fix test failure on mingw.
25952         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25953
25954 2008-04-21  Bruno Haible  <bruno@clisp.org>
25955
25956         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25957         Actually assign a value.
25958
25959 2008-04-20  Bruno Haible  <bruno@clisp.org>
25960
25961         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25962         take 2.
25963         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25964         'canonicalize-lgpl' module is also used.
25965         * lib/canonicalize-lgpl.c: Undo last change.
25966         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25967
25968 2008-04-20  Bruno Haible  <bruno@clisp.org>
25969
25970         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25971         config.h. Provide _mkdir based fallback for mingw.
25972         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25973         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25974         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25975         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25976         rather than defining mkdir in config.h.
25977         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25978         (gl_SYS_STAT_H_DEFAULTS): New macro.
25979         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25980         HAVE_IO_H any more.
25981         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25982         HAVE_DECL_MKDIR and HAVE_IO_H.
25983
25984 2008-04-20  Bruno Haible  <bruno@clisp.org>
25985
25986         * lib/isapipe.c: Port to native Windows platforms.
25987
25988 2008-04-20  Bruno Haible  <bruno@clisp.org>
25989
25990         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25991
25992 2008-04-21  Eric Blake  <ebb9@byu.net>
25993
25994         Work around preprocessors that don't handle UINTMAX_MAX.
25995         * lib/memchr2.c (memchr2): Avoid embedded #if.
25996         Reported by Alain Guibert, fix suggested by Bruno Haible.
25997
25998 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25999
26000         * doc/posix-functions/strftime.texi (strftime): Explain better
26001         Windows incompatibility.  Suggested by Micah Cowan
26002         <micah@cowan.name>.
26003
26004 2008-04-20  Bruno Haible  <bruno@clisp.org>
26005
26006         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
26007         unistr/u8-mblen.
26008
26009 2008-04-20  Bruno Haible  <bruno@clisp.org>
26010
26011         Fix test failure on platforms with non-GNU iconv.
26012         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
26013         (U_TO_U8): Use it, rather than u16_to_u8.
26014         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
26015         units at the end of the input string.
26016         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
26017
26018 2008-04-20  Bruno Haible  <bruno@clisp.org>
26019
26020         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
26021         when the resulting length is 0.
26022         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
26023
26024 2008-04-20  Bruno Haible  <bruno@clisp.org>
26025
26026         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
26027         works.
26028         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
26029
26030 2008-04-20  Bruno Haible  <bruno@clisp.org>
26031
26032         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
26033         * modules/tsearch-tests (configure.ac): Test for initstate function.
26034
26035 2008-04-20  Bruno Haible  <bruno@clisp.org>
26036
26037         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
26038         for nlink_t if missing.
26039         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
26040
26041 2008-04-19  Bruno Haible  <bruno@clisp.org>
26042
26043         Work around snprintf bug on Linux libc5.
26044         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
26045         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26046         gl_SNPRINTF_SIZE1.
26047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26048         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
26049         that test failed.
26050         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
26051         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
26052         * modules/snprintf (Files): Add m4/printf.m4.
26053         * modules/vsnprintf (Files): Likewise.
26054         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
26055         * doc/posix-functions/vsnprintf.texi: Likewise.
26056
26057 2008-04-19  Bruno Haible  <bruno@clisp.org>
26058
26059         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
26060         from 0.0058 to less than 10^-7.
26061
26062 2008-04-19  Bruno Haible  <bruno@clisp.org>
26063
26064         Fix rounding when a precision is given.
26065         * lib/vasnprintf.c (is_borderline): New function.
26066         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
26067         9...9x.
26068         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
26069         %e, %g.
26070         * tests/test-vasprintf-posix.c (test_function): Likewise.
26071         * tests/test-snprintf-posix.h (test_function): Likewise.
26072         * tests/test-sprintf-posix.h (test_function): Likewise.
26073         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
26074         * tests/test-printf-posix.h (test_function): Likewise.
26075         * tests/test-printf-posix.output: Update.
26076         Reported by John Darrington <john@darrington.wattle.id.au> via
26077         Ben Pfaff <blp@cs.stanford.edu>.
26078
26079 2008-04-18  Simon Josefsson  <simon@josefsson.org>
26080
26081         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
26082         Suggested by Bruno Haible <bruno@clisp.org>.
26083
26084 2008-04-17  Bruno Haible  <bruno@clisp.org>
26085
26086         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
26087         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
26088         implementation.
26089         Patch by Bruce Merry <bmerry@gmail.com>.
26090
26091 2008-04-17  Simon Josefsson  <simon@josefsson.org>
26092
26093         * doc/posix-functions/strftime.texi (strftime): Mention that %e
26094         doesn't work under Windows.
26095
26096 2008-04-16  Bruno Haible  <bruno@clisp.org>
26097
26098         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
26099         New macros.
26100         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
26101         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
26102         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
26103         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
26104         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
26105         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
26106         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
26107         macros.
26108         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
26109         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
26110         Northern Sotho, Uighur.
26111
26112 2008-04-16  Bruno Haible  <bruno@clisp.org>
26113
26114         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
26115         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
26116         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
26117         Reported by Daniel Bergström <daniel@octocode.com>.
26118
26119 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
26120             Bruno Haible  <bruno@clisp.org>
26121
26122         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
26123         function.
26124         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
26125         New functions, mostly extracted from gl_locale_name_default.
26126         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
26127
26128 2008-04-16  Eric Blake  <ebb9@byu.net>
26129
26130         Adjust strtod detection to catch glibc 2.7 bug.
26131         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
26132         Reported by John Gatewood Ham.
26133
26134 2008-04-16  Bruno Haible  <bruno@clisp.org>
26135
26136         Add tentative support for Linux libc5.
26137         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
26138         * lib/fpurge.c (fpurge): Likewise.
26139         * lib/freadable.c (freadable): Likewise.
26140         * lib/freadahead.c (freadahead): Likewise.
26141         * lib/freading.c (freading): Likewise.
26142         * lib/freadptr.c (freadptr): Likewise.
26143         * lib/freadseek.c (freadptrinc): Likewise.
26144         * lib/fseeko.c (rpl_fseeko): Likewise.
26145         * lib/fseterr.c (fseterr): Likewise.
26146         * lib/fwritable.c (fwritable): Likewise.
26147         * lib/fwriting.c (fwriting): Likewise.
26148         Reported by Alain Guibert <alguibert+bts@free.fr>.
26149
26150 2008-04-15  Bruno Haible  <bruno@clisp.org>
26151
26152         * modules/mathl (configure.ac): Define module indicator.
26153
26154 2008-04-15  Bruno Haible  <bruno@clisp.org>
26155
26156         * lib/logl.c (logl): Remove unused variables.
26157
26158 2008-04-15  Bruno Haible  <bruno@clisp.org>
26159
26160         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
26161         fails.
26162
26163 2008-04-15  Bruno Haible  <bruno@clisp.org>
26164
26165         * lib/trim.c (trim2): Fix argument of isspace() macro.
26166
26167 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
26168
26169         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
26170         to 0.
26171         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
26172
26173 2008-04-14  Bruno Haible  <bruno@clisp.org>
26174
26175         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
26176         AC_LANG_PROGRAM argument.
26177         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
26178         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
26179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26180         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26181         * m4/math_h.m4 (gl_MATH_H): Likewise.
26182         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26183         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26184         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26185         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
26186         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26187         * m4/regex.m4 (gl_REGEX): Likewise.
26188         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
26189         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
26190         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26191         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
26192         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26193         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26194         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26195         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26196
26197 2008-04-14  Jim Meyering  <meyering@redhat.com>
26198
26199         test-strtod: fix typos: s/abs/fabs/
26200         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
26201
26202 2008-04-13  Bruno Haible  <bruno@clisp.org>
26203
26204         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
26205         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
26206         module is also used and while not building the reloc-wrapper.
26207
26208 2008-04-13  Bruno Haible  <bruno@clisp.org>
26209
26210         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
26211
26212 2008-04-13  Bruno Haible  <bruno@clisp.org>
26213
26214         Fix AIX compilation failure introduced on 2008-04-02.
26215         * tests/test-frexp.c (exp): Undefine before redefining.
26216         * tests/test-frexpl.c (exp): Likewise.
26217
26218 2008-04-13  Bruno Haible  <bruno@clisp.org>
26219
26220         Work around a HP-UX stdio bug.
26221         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26222         * tests/test-ftello.c (main): Likewise.
26223         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26224         * doc/posix-functions/ftello.texi: Likewise.
26225
26226 2008-04-13  Bruno Haible  <bruno@clisp.org>
26227
26228         Make test-signbit pass on HP-UX/hppa.
26229         * tests/test-signbit.c (minus_zerol): New variable.
26230         (test_signbitl): Use it.
26231
26232 2008-04-13  Bruno Haible  <bruno@clisp.org>
26233
26234         Make truncl work on OSF/1 4.0.
26235         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26236         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26237         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26239         HAVE_DECL_TRUNCL.
26240         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26241         HAVE_DECL_TRUNCL.
26242         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26243
26244 2008-04-13  Bruno Haible  <bruno@clisp.org>
26245
26246         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26247
26248 2008-04-13  Bruno Haible  <bruno@clisp.org>
26249
26250         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26251         expression, so as to avoid HP-UX 11 cc compiler bug.
26252
26253 2008-04-13  Bruno Haible  <bruno@clisp.org>
26254
26255         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26256
26257 2008-04-13  Bruno Haible  <bruno@clisp.org>
26258
26259         * lib/git-merge-changelog.c: Remove empty declaration outside of
26260         functions.
26261
26262 2008-04-13  Bruno Haible  <bruno@clisp.org>
26263
26264         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26265
26266 2008-04-13  Bruno Haible  <bruno@clisp.org>
26267
26268         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26269         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26270         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26271         also if it exists but lacks definitions of the SHUT_* macros.
26272         * modules/sys_socket (Description): Update.
26273         Reported by Elbert Pol <e.pol@chello.nl>.
26274
26275 2008-04-13  Bruno Haible  <bruno@clisp.org>
26276
26277         * lib/localcharset.c (OS2): Don't redefine if already defined.
26278         Reported by Elbert Pol <e.pol@chello.nl>.
26279
26280 2008-04-13  Bruno Haible  <bruno@clisp.org>
26281
26282         * lib/binary-io.h [__EMX__]: Include <io.h>.
26283         Reported by Elbert Pol <e.pol@chello.nl>.
26284
26285 2008-04-12  Bruno Haible  <bruno@clisp.org>
26286
26287         * lib/fpucw.h: Enable the definitions also for x86_64.
26288         Needed for NetBSD/x86_64.
26289         Reported by Thomas Klausner <tk@giga.or.at>.
26290
26291 2008-04-12  Bruno Haible  <bruno@clisp.org>
26292
26293         * tests/test-strtod.c: Include isnand.h.
26294         (main): Use isnand instead of isnan.
26295         Reported by Jim Meyering.
26296
26297 2008-04-12  Bruno Haible  <bruno@clisp.org>
26298
26299         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26300         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26301
26302 2008-04-12  Jim Meyering  <meyering@redhat.com>
26303
26304         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26305
26306 2008-04-12  Bruno Haible  <bruno@clisp.org>
26307
26308         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26309         Reported by Elbert Pol <e.pol@chello.nl>.
26310
26311 2008-04-12  Eric Blake  <ebb9@byu.net>
26312
26313         Work around Solaris 10 math.h bug.
26314         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26315         (gl_MATH_H_DEFAULTS): Set up default.
26316         * modules/math (Makefile.am): Replace new indicators.
26317         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26318         * tests/test-math.c (main): Test this.
26319         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26320         * doc/posix-headers/math.texi (math.h): Mention bug.
26321         Reported by Nelson H. F. Beebe and Jim Meyering.
26322
26323 2008-04-11  Bruno Haible  <bruno@clisp.org>
26324
26325         Adapt to future versions of Apple GCC.
26326         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26327         Reported by Peter O'Gorman <peter@pogma.com>.
26328
26329 2008-04-11  Bruno Haible  <bruno@clisp.org>
26330
26331         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26332
26333 2008-04-11  Bruno Haible  <bruno@clisp.org>
26334
26335         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26336
26337         * modules/getaddrinfo-tests (Makefile.am): Define
26338         test_getaddrinfo_LDADD.
26339
26340 2008-04-11  Bruno Haible  <bruno@clisp.org>
26341
26342         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26343         (init): Fix syntax error.
26344         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26345         is declared.
26346
26347 2008-04-11  Bruno Haible  <bruno@clisp.org>
26348
26349         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26350         * modules/glob (Depends-on): Add stdbool.
26351
26352 2008-04-11  Bruno Haible  <bruno@clisp.org>
26353
26354         * lib/trim.c: Include <string.h>.
26355
26356 2008-04-11  Eric Blake  <ebb9@byu.net>
26357
26358         Avoid compile failure on OS/2.
26359         * lib/regex_internal.h (internal_function): Disable optimization
26360         on OS/2 (__EMX__), where it caused compiler error.
26361         Reported by Elbert Pol.
26362
26363 2008-04-11  Bruno Haible  <bruno@clisp.org>
26364
26365         Flush the standard error stream before aborting. Needed on mingw.
26366         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26367         * tests/test-array_list.c (ASSERT): Likewise.
26368         * tests/test-array_oset.c (ASSERT): Likewise.
26369         * tests/test-avltree_list.c (ASSERT): Likewise.
26370         * tests/test-avltree_oset.c (ASSERT): Likewise.
26371         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26372         * tests/test-binary-io.c (ASSERT): Likewise.
26373         * tests/test-byteswap.c (ASSERT): Likewise.
26374         * tests/test-c-ctype.c (ASSERT): Likewise.
26375         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26376         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26377         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26378         * tests/test-c-strstr.c (ASSERT): Likewise.
26379         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26380         * tests/test-canonicalize.c (ASSERT): Likewise.
26381         * tests/test-carray_list.c (ASSERT): Likewise.
26382         * tests/test-ceilf1.c (ASSERT): Likewise.
26383         * tests/test-ceilf2.c (ASSERT): Likewise.
26384         * tests/test-ceill.c (ASSERT): Likewise.
26385         * tests/test-count-one-bits.c (ASSERT): Likewise.
26386         * tests/test-fbufmode.c (ASSERT): Likewise.
26387         * tests/test-fflush2.c (ASSERT): Likewise.
26388         * tests/test-floorf1.c (ASSERT): Likewise.
26389         * tests/test-floorf2.c (ASSERT): Likewise.
26390         * tests/test-floorl.c (ASSERT): Likewise.
26391         * tests/test-fopen.c (ASSERT): Likewise.
26392         * tests/test-fpending.c (ASSERT): Likewise.
26393         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26394         * tests/test-fpurge.c (ASSERT): Likewise.
26395         * tests/test-freadable.c (ASSERT): Likewise.
26396         * tests/test-freadahead.c (ASSERT): Likewise.
26397         * tests/test-freading.c (ASSERT): Likewise.
26398         * tests/test-freadptr.c (ASSERT): Likewise.
26399         * tests/test-freadptr2.c (ASSERT): Likewise.
26400         * tests/test-freadseek.c (ASSERT): Likewise.
26401         * tests/test-freopen.c (ASSERT): Likewise.
26402         * tests/test-frexp.c (ASSERT): Likewise.
26403         * tests/test-frexpl.c (ASSERT): Likewise.
26404         * tests/test-fseek.c (ASSERT): Likewise.
26405         * tests/test-fseeko.c (ASSERT): Likewise.
26406         * tests/test-fstrcmp.c (ASSERT): Likewise.
26407         * tests/test-ftell.c (ASSERT): Likewise.
26408         * tests/test-ftello.c (ASSERT): Likewise.
26409         * tests/test-func.c (ASSERT): Likewise.
26410         * tests/test-fwritable.c (ASSERT): Likewise.
26411         * tests/test-fwriting.c (ASSERT): Likewise.
26412         * tests/test-getdelim.c (ASSERT): Likewise.
26413         * tests/test-getline.c (ASSERT): Likewise.
26414         * tests/test-i-ring.c (ASSERT): Likewise.
26415         * tests/test-iconv-utf.c (ASSERT): Likewise.
26416         * tests/test-iconv.c (ASSERT): Likewise.
26417         * tests/test-isfinite.c (ASSERT): Likewise.
26418         * tests/test-isnand.c (ASSERT): Likewise.
26419         * tests/test-isnanf.c (ASSERT): Likewise.
26420         * tests/test-isnanl.h (ASSERT): Likewise.
26421         * tests/test-ldexpl.c (ASSERT): Likewise.
26422         * tests/test-linked_list.c (ASSERT): Likewise.
26423         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26424         * tests/test-localename.c (ASSERT): Likewise.
26425         * tests/test-lseek.c (ASSERT): Likewise.
26426         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26427         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26428         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26429         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26430         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26431         * tests/test-mbschr.c (ASSERT): Likewise.
26432         * tests/test-mbscspn.c (ASSERT): Likewise.
26433         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26434         * tests/test-mbspbrk.c (ASSERT): Likewise.
26435         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26436         * tests/test-mbsrchr.c (ASSERT): Likewise.
26437         * tests/test-mbsspn.c (ASSERT): Likewise.
26438         * tests/test-mbsstr1.c (ASSERT): Likewise.
26439         * tests/test-mbsstr2.c (ASSERT): Likewise.
26440         * tests/test-mbsstr3.c (ASSERT): Likewise.
26441         * tests/test-memchr2.c (ASSERT): Likewise.
26442         * tests/test-memmem.c (ASSERT): Likewise.
26443         * tests/test-open.c (ASSERT): Likewise.
26444         * tests/test-printf-frexp.c (ASSERT): Likewise.
26445         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26446         * tests/test-printf-posix.c (ASSERT): Likewise.
26447         * tests/test-quotearg.c (ASSERT): Likewise.
26448         * tests/test-rbtree_list.c (ASSERT): Likewise.
26449         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26450         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26451         * tests/test-round1.c (ASSERT): Likewise.
26452         * tests/test-roundf1.c (ASSERT): Likewise.
26453         * tests/test-roundl.c (ASSERT): Likewise.
26454         * tests/test-signbit.c (ASSERT): Likewise.
26455         * tests/test-sleep.c (ASSERT): Likewise.
26456         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26457         * tests/test-snprintf.c (ASSERT): Likewise.
26458         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26459         * tests/test-stat-time.c (ASSERT): Likewise.
26460         * tests/test-strcasestr.c (ASSERT): Likewise.
26461         * tests/test-strerror.c (ASSERT): Likewise.
26462         * tests/test-striconv.c (ASSERT): Likewise.
26463         * tests/test-striconveh.c (ASSERT): Likewise.
26464         * tests/test-striconveha.c (ASSERT): Likewise.
26465         * tests/test-strsignal.c (ASSERT): Likewise.
26466         * tests/test-strstr.c (ASSERT): Likewise.
26467         * tests/test-strtod.c (ASSERT): Likewise.
26468         * tests/test-trunc1.c (ASSERT): Likewise.
26469         * tests/test-trunc2.c (ASSERT): Likewise.
26470         * tests/test-truncf1.c (ASSERT): Likewise.
26471         * tests/test-truncf2.c (ASSERT): Likewise.
26472         * tests/test-truncl.c (ASSERT): Likewise.
26473         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26474         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26475         * tests/test-vasnprintf.c (ASSERT): Likewise.
26476         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26477         * tests/test-vasprintf.c (ASSERT): Likewise.
26478         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26479         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26480         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26481         * tests/test-vsnprintf.c (ASSERT): Likewise.
26482         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26483         * tests/test-wcwidth.c (ASSERT): Likewise.
26484         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26485         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26486         * tests/test-xvasprintf.c (ASSERT): Likewise.
26487         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26488         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26489         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26490         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26491         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26492         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26493         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26494         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26495         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26496         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26497         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26498         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26499         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26500         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26501         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26502         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26503         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26504         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26505         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26506         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26507         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26508         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26509         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26510         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26511         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26512         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26513         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26514         * tests/unictype/test-combining.c (ASSERT): Likewise.
26515         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26516         * tests/unictype/test-digit.c (ASSERT): Likewise.
26517         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26518         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26519         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26520         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26521         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26522         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26523         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26524         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26525         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26526         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26527         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26528         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26529         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26530         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26531         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26532         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26533         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26534         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26535         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26536         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26537         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26538         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26539         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26540         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26541         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26542         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26543         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26544         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26545         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26546         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26547         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26548         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26549         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26550         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26551         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26552         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26553         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26554         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26555         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26556         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26557         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26558         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26559         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26560         Reported by Eric Blake.
26561
26562 2008-04-11  Bruno Haible  <bruno@clisp.org>
26563
26564         * lib/wchar.in.h: Tweak comment.
26565
26566 2008-04-11  Bruno Haible  <bruno@clisp.org>
26567
26568         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26569         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26570         gl_COMMON.
26571         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26572
26573 2008-04-11  Bruno Haible  <bruno@clisp.org>
26574
26575         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26576
26577 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26578
26579         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26580         of attempting to use non-existing /dev/*random.  Based on patch
26581         from Adam Strzelecki <ono@java.pl> in
26582         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26583
26584 2008-04-08  Bruno Haible  <bruno@clisp.org>
26585
26586         Add tentative support for emx+gcc.
26587         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26588         * lib/fpurge.c (fpurge): Likewise.
26589         * lib/freadable.c (freadable): Likewise.
26590         * lib/freadahead.c (freadahead): Likewise.
26591         * lib/freading.c (freading): Likewise.
26592         * lib/freadptr.c (freadptr): Likewise.
26593         * lib/freadseek.c (freadptrinc): Likewise.
26594         * lib/fseeko.c (rpl_fseeko): Likewise.
26595         * lib/fseterr.c (fseterr): Likewise.
26596         * lib/fwritable.c (fwritable): Likewise.
26597         * lib/fwriting.c (fwriting): Likewise.
26598         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26599
26600 2008-04-09  Eric Blake  <ebb9@byu.net>
26601
26602         Avoid some autoconf warnings.
26603         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26604         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26605         * m4/afs.m4 (gl_AFS): Likewise.
26606         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26607         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26608         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26609         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26610         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26611         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26612         (AC_CHECK_DECLS_ONCE): Likewise.
26613         Rename file...
26614         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26615         gnulib-tool requires autoconf 2.59 or better.
26616         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26617
26618 2008-04-08  Eric Blake  <ebb9@byu.net>
26619
26620         Use 'git describe --match' if present (added in git 1.5.5).
26621         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26622         if possible.
26623
26624 2008-04-08  Bruno Haible  <bruno@clisp.org>
26625
26626         Add tentative support for OpenServer.
26627         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26628         _ptr, _cnt.
26629         * lib/fpurge.c (fpurge): Likewise.
26630         * lib/freadable.c (freadable): Likewise.
26631         * lib/freadahead.c (freadahead): Likewise.
26632         * lib/freading.c (freading): Likewise.
26633         * lib/freadptr.c (freadptr): Likewise.
26634         * lib/freadseek.c (freadptrinc): Likewise.
26635         * lib/fseeko.c (rpl_fseeko): Likewise.
26636         * lib/fseterr.c (fseterr): Likewise.
26637         * lib/fwritable.c (fwritable): Likewise.
26638         * lib/fwriting.c (fwriting): Likewise.
26639         Reported by Roger Cornelius <rac@tenzing.org> and
26640         Brian K. White <brian@aljex.com>.
26641
26642 2008-04-06  Jim Meyering  <meyering@redhat.com>
26643
26644         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26645
26646 2008-04-06  Bruno Haible  <bruno@clisp.org>
26647
26648         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26649         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26650         * tests/test-printf-posix.sh: Likewise.
26651         * tests/test-vfprintf-posix.sh: Likewise.
26652         * tests/test-vprintf-posix.sh: Likewise.
26653         * tests/test-xprintf-posix.sh: Likewise.
26654
26655 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26656
26657         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26658         hide error from 'ls', needed on OS/2.
26659         Report by Elbert Pol <elbert.pol@gmail.com>.
26660
26661 2008-04-04  Eric Blake  <ebb9@byu.net>
26662
26663         Make test-fseeko.c failures meaningful.
26664         * tests/test-fseeko.c: Print line number on failure.
26665         * tests/test-fseek.c: Likewise.
26666         Reported by Nelson H. F. Beebe.
26667
26668         Improve strtod bug detection check.
26669         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26670         required for Solaris 10.
26671         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26672
26673 2008-04-04  Bruno Haible  <bruno@clisp.org>
26674
26675         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26676         by m4/setenv.m4.
26677
26678 2008-04-03  Eric Blake  <ebb9@byu.net>
26679
26680         Ensure sane .version contents.
26681         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26682         version string.
26683         * build-aux/git-version-gen: Improve documentation.
26684
26685         Make GNU make output nicer.
26686         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26687         MAKECMDGOALS to enforce message for all command line targets.  Set
26688         srcdir for use in maint.mk.
26689
26690         Another maintainer tweak.
26691         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26692         a target that regenerates version.
26693
26694 2008-04-03  Jim Meyering  <meyering@redhat.com>
26695
26696         vc-list-files: don't cause coreutils "make po-check" failure
26697         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26698
26699 2008-04-03  Eric Blake  <ebb9@byu.net>
26700
26701         Allow VPATH usage of vc-list-files.
26702         * build-aux/vc-list-files (scriptversion): Add timestamp.
26703         (options): Add --help, --version, -C.
26704         (CVS): Support installed cvsu.
26705
26706 2008-04-02  Bruno Haible  <bruno@clisp.org>
26707
26708         Avoid some "statement with no effect" warnings from gcc.
26709         * tests/test-wctype.c (main): Explicitly ignore unused values.
26710         Reported by Jim Meyering.
26711
26712 2008-04-02  Jim Meyering  <meyering@redhat.com>
26713
26714         Avoid some warnings from "gcc -Wshadow".
26715         * tests/test-frexp.c (exp): Define to a different identifier.
26716         * tests/test-frexpl.c (exp): Likewise.
26717
26718 2008-04-03  Jim Meyering  <meyering@redhat.com>
26719
26720         bootstrap: remove dangling *.[ch] symlinks from lib
26721         * build-aux/bootstrap [dangling symlink removal]: Move find's
26722         -depth option to precede all others, to avoid a warning.
26723         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26724
26725 2008-04-02  Bruno Haible  <bruno@clisp.org>
26726
26727         Avoid some warnings from "gcc -Wshadow".
26728         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26729         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26730         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26731         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26732         Reported by Jim Meyering.
26733
26734 2008-04-01  Bruno Haible  <bruno@clisp.org>
26735
26736         Fix test to work on IRIX 6.5 with cc.
26737         * tests/test-math.c (numeric_equal): New function.
26738         (main): Use it.
26739
26740 2008-04-01  Bruno Haible  <bruno@clisp.org>
26741
26742         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26743
26744 2008-04-01  Bruno Haible  <bruno@clisp.org>
26745
26746         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26747         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26748         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26749         (Depends-on): Remove math.
26750
26751         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26752         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26753         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26754         (Depends-on): Remove math.
26755
26756         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26757         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26758         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26759         (Depends-on): Remove math.
26760         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26761         (Depends-on): Remove math.
26762
26763         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26764         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26765         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26766         (Depends-on): Remove math.
26767         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26768         (Depends-on): Remove math.
26769
26770         * tests/test-round1.c: Include nan.h.
26771         (main): Use NaNd instead of NAN.
26772         * modules/round-tests (Files): Add tests/nan.h.
26773
26774         * tests/test-trunc1.c: Include nan.h.
26775         (main): Use NaNd instead of NAN.
26776         * modules/trunc-tests (Files): Add tests/nan.h.
26777
26778         * tests/test-roundf1.c: Include nan.h.
26779         (main): Use NaNf instead of NAN.
26780         * modules/roundf-tests (Files): Add tests/nan.h.
26781
26782         * tests/test-truncf1.c: Include nan.h.
26783         (main): Use NaNf instead of NAN.
26784         * modules/truncf-tests (Files): Add tests/nan.h.
26785
26786         * tests/test-ceilf1.c: Include nan.h.
26787         (main): Use NaNf instead of NAN.
26788         * modules/ceilf-tests (Files): Add tests/nan.h.
26789
26790         * tests/test-floorf1.c: Include nan.h.
26791         (main): Use NaNf instead of NAN.
26792         * modules/floorf-tests (Files): Add tests/nan.h.
26793
26794         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26795         (main): Use NaNf instead of NAN.
26796         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26797
26798         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26799         (main): Use NaNd instead of NAN.
26800         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26801
26802         * tests/test-frexp.c: Include nan.h.
26803         (main): Use NaNd instead of NAN.
26804         * modules/frexp-tests (Files): Add tests/nan.h.
26805
26806         * lib/isnan.c: Don't include <math.h>.
26807         (FUNC): Don't use NAN macro.
26808         * modules/isnand-nolibm (Depends-on): Remove math.
26809         * modules/isnanf-nolibm (Depends-on): Remove math.
26810         * modules/isnanl (Depends-on): Remove math.
26811         * modules/isnanl-nolibm (Depends-on): Remove math.
26812
26813         * tests/nan.h: New file.
26814
26815 2008-04-01  Eric Blake  <ebb9@byu.net>
26816
26817         Fix typos.
26818         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26819         values to be the right type.
26820
26821         For now, cater to gnulib strtod inaccuracies.
26822         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26823         fractional results.  While not as nice from a QoI perspective, it
26824         is a quicker patch than correctly implementing decimal to binary
26825         rounding.
26826
26827 2008-03-31  Eric Blake  <ebb9@byu.net>
26828
26829         Guarantee a definition of NAN.
26830         * lib/math.in.h (NAN): Define if missing.
26831         * tests/test-math.c (main): Test it.
26832         * doc/posix-headers/math.texi (math.h): Document this.
26833         * lib/isnan.c (rpl_isnand): Use it.
26834         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26835         * tests/test-floorf1.c (NaN): Likewise.
26836         * tests/test-frexp.c (NaN): Likewise.
26837         * tests/test-isnand.c (NaN): Likewise.
26838         * tests/test-isnanf.c (NaN): Likewise.
26839         * tests/test-round1.c (NaN): Likewise.
26840         * tests/test-roundf1.c (NaN): Likewise.
26841         * tests/test-snprintf-posix.h (NaN): Likewise.
26842         * tests/test-sprintf-posix.h (NaN): Likewise.
26843         * tests/test-trunc1.c (NaN): Likewise.
26844         * tests/test-truncf1.c (NaN): Likewise.
26845         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26846         * tests/test-vasprintf-posix.c (NaN): Likewise.
26847         * modules/isnand-nolibm (Depends-on): Add math.
26848         * modules/isnanf-nolibm (Depends-on): Likewise.
26849         * modules/isnanl (Depends-on): Likewise.
26850         * modules/isnanl-nolibm (Depends-on): Likewise.
26851         * modules/snprintf-posix-tests (Depends-on): Likewise.
26852         * modules/sprintf-posix-tests (Depends-on): Likewise.
26853         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26854         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26855         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26856         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26857
26858 2008-03-31  Bruno Haible  <bruno@clisp.org>
26859
26860         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26861         * doc/posix-functions/strtod.texi: Likewise.
26862
26863 2008-03-31  Bruno Haible  <bruno@clisp.org>
26864
26865         * tests/test-strtod.c (main): Don't use C99 syntax.
26866
26867 2008-03-31  Bruno Haible  <bruno@clisp.org>
26868
26869         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26870         Reported by Eric Blake.
26871
26872 2008-03-31  Jim Meyering  <meyering@redhat.com>
26873
26874         Don't compare actual signbit return values.
26875         * tests/test-strtod.c (main): Rather, compare only their
26876         zero/non-zero nature.
26877
26878 2008-03-31  Eric Blake  <ebb9@byu.net>
26879
26880         More strtod documentation.
26881         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26882         failures as distinct bugs.
26883
26884 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26885
26886         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26887         Problem reported by Erik Benada in
26888         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26889
26890 2008-03-30  Bruno Haible  <bruno@clisp.org>
26891
26892         * tests/test-strtod.c: Add comments about which assertion fails on which
26893         platform.
26894         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26895
26896 2008-03-30  Eric Blake  <ebb9@byu.net>
26897
26898         Test signbit behavior on zeros.
26899         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26900         (test_signbitd, test_signbitl): Likewise.
26901
26902         More strtod touchups.
26903         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26904         sign of negative underflow, for now.  Use .5, not .1.
26905         * doc/posix-functions/strtod.texi (strtod): Mention these
26906         limitations.
26907         Reported by Jim Meyering.
26908
26909 2008-03-30  Bruno Haible  <bruno@clisp.org>
26910
26911         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26912         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26913
26914 2008-03-30  Bruno Haible  <bruno@clisp.org>
26915
26916         Avoid failure when attempting to return empty iconv results on some
26917         platforms.
26918         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26919         allocation, don't report ENOMEM when the resulting string is empty.
26920
26921 2008-03-30  Bruno Haible  <bruno@clisp.org>
26922
26923         Fix buffer overrun.
26924         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26925         Don't consider the width for tmp_length. Check count against tmp_length
26926         before doing the padding. Ensure enough allocation during padding.
26927
26928 2008-03-30  Eric Blake  <ebb9@byu.net>
26929
26930         strtod touchups.
26931         * lib/strtod.c (strtod): Avoid compiler warnings.
26932         Reported by Jim Meyering.
26933
26934 2008-03-30  Bruno Haible  <bruno@clisp.org>
26935
26936         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26937         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26938         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26939         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26940         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26941         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26942         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26943         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26944
26945         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26946         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26947         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26948         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26949         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26950         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26951         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26952         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26953
26954         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26955         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26956         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26957         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26958         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26959         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26960         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26961         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26962
26963         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26964         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26965
26966         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26967         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26968
26969         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26970         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26971
26972         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26973         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26974         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26975
26976         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26978         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26979
26980         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26981         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26982         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26983
26984         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26986         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26987
26988         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26989         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26990         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26991         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26992         (Depends-on): Add EOVERFLOW.
26993         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26994         (Depends-on): Add EOVERFLOW.
26995         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26996         (Depends-on): Add EOVERFLOW.
26997         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26998         (Depends-on): Add EOVERFLOW.
26999         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27000         (Depends-on): Add EOVERFLOW.
27001         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27002         (Depends-on): Add EOVERFLOW.
27003         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27004         (Depends-on): Add EOVERFLOW.
27005         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27006         (Depends-on): Add EOVERFLOW.
27007
27008         * lib/sprintf.c (EOVERFLOW): Remove fallback.
27009         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
27010         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
27011
27012         * lib/snprintf.c (EOVERFLOW): Remove fallback.
27013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
27014         * modules/snprintf (Depends-on): Add EOVERFLOW.
27015
27016         * lib/poll.c (EOVERFLOW): Remove fallback.
27017         * modules/poll (Depends-on): Add EOVERFLOW.
27018
27019         * lib/getugroups.c (EOVERFLOW): Remove fallback.
27020         * modules/getugroups (Depends-on): Add EOVERFLOW.
27021
27022         * lib/getdelim.c (EOVERFLOW): Remove fallback.
27023         * modules/getdelim (Depends-on): Add EOVERFLOW.
27024
27025         * lib/ftell.c (EOVERFLOW): Remove fallback.
27026         * modules/ftell (Depends-on): Add EOVERFLOW.
27027
27028         * lib/fprintf.c (EOVERFLOW): Remove fallback.
27029         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
27030         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
27031
27032         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
27033
27034         * modules/EOVERFLOW-tests: New file.
27035         * tests/test-EOVERFLOW.c: New file.
27036
27037         * modules/EOVERFLOW: New file.
27038         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
27039
27040 2008-03-30  Bruno Haible  <bruno@clisp.org>
27041
27042         Fix bug introduced on 2007-06-10.
27043         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
27044         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
27045
27046 2008-03-30  Bruno Haible  <bruno@clisp.org>
27047
27048         Improve freadseek's efficiency after ungetc.
27049         * lib/freadseek.c: Include freadahead.h.
27050         (freadptrinc): New function, extracted from freadseek.
27051         (freadseek): Use it in a loop. Use freadahead to determine the number
27052         of loop iterations.
27053         * modules/freadseek (Depends-on): Add freadahead.
27054         (configure.ac): Require AC_C_INLINE.
27055
27056 2008-03-30  Bruno Haible  <bruno@clisp.org>
27057
27058         * lib/freadseek.c (freadseek): Don't ignore the return value of
27059         freadptr.
27060
27061 2008-03-29  Eric Blake  <ebb9@byu.net>
27062
27063         Add hex float support.
27064         * modules/strtod (Depends-on): Add c-ctype.
27065         (Link): Mention POW_LIB.
27066         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
27067         whitespace between 'e' and exponent.
27068         * tests/test-strtod.c (main): Enable hex float tests.
27069         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
27070         now provides.
27071
27072         Document various strtod bugs, with some fixes.
27073         * doc/posix-functions/strtod.texi (strtod): Document bugs with
27074         "-0x", "inf", "nan", and hex constants.
27075         * doc/posix-functions/atof.texi (atof): Likewise.
27076         * modules/stdlib (Makefile.am): Support strtod.
27077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27078         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
27079         detect additional strtod bugs.
27080         * lib/stdlib.in.h (rpl_strtod): Add declarations.
27081         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
27082         bool where appropriate.  Parse 'inf' and 'nan'.
27083         * tests/test-strtod.c: New file.
27084         * modules/strtod (Depends-on): Add stdbool, stdlib.
27085         (configure.ac): Turn on module indicator.
27086         * modules/strtod-tests: New module.
27087
27088 2008-03-29  Eric Blake  <ebb9@byu.net>
27089
27090         Fix ftell on mingw.
27091         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
27092         * modules/ftell-tests (Depends-on): Add binary-io.
27093         * modules/ftello-tests (Depends-on): Likewise.
27094         * tests/test-ftell.c (main): Enhance test to cover behavior after
27095         ungetc.  Enforce binary mode.
27096         * tests/test-ftello.c (main): Likewise.
27097
27098         Pass test-freadseek on cygwin.
27099         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
27100         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
27101         ungetc buffer.
27102
27103         * tests/test-fflush2.c (main): Fix typo.
27104
27105 2008-03-29  Bruno Haible  <bruno@clisp.org>
27106
27107         * tests/test-fflush2.c (main): Temporarily disable the contents of
27108         this test.
27109         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
27110         Reported by Eric Blake.
27111
27112 2008-03-28  Simon Josefsson  <simon@josefsson.org>
27113
27114         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
27115         (GC_SHA224_DIGEST_SIZE): Add.
27116
27117         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
27118         (gc_hash_digest_length): Likewise.
27119         (gc_hash_buffer): Likewise.
27120
27121 2008-03-25  Bruno Haible  <bruno@clisp.org>
27122
27123         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
27124         detail which gettext release to use.
27125         Reported by Simon Josefsson.
27126
27127 2008-03-26  Jim Meyering  <meyering@redhat.com>
27128
27129         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
27130         * modules/gnumakefile (clean-GNUmakefile): Also, use
27131         test ... && ... || : syntax rather than if-then ... fi.
27132
27133         gnumakefile: Don't double-quote-expand $(VPATH) value.
27134         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
27135
27136 2008-03-24  Eric Blake  <ebb9@byu.net>
27137
27138         Alter GNUmakefile to install into top directory.
27139         * modules/maintainer-makefile: Split, and add dependency...
27140         * modules/gnumakefile: to this new module.
27141         * build-aux/GNUmakefile: Move...
27142         * top/GNUmakefile: ...here.
27143         * build-aux/maint.mk: Move...
27144         * top/maint.mk: ...here.
27145         * MODULES.html.sh (Support for maintaining...): Document new
27146         module.
27147
27148 2008-03-23  Bruno Haible  <bruno@clisp.org>
27149
27150         * gnulib-tool: New options --vc-files, --no-vc-files.
27151         (func_usage): Document them.
27152         (vc_files): New variable.
27153         (func_import): Consider vc_files.
27154         (func_create_testdir): Set vc_files to empty.
27155         Suggested by Jim Meyering and Karl Berry.
27156
27157 2008-03-23  Bruno Haible  <bruno@clisp.org>
27158
27159         Fix regex compilation error on HP-UX 11.
27160         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
27161         * modules/regex (Files): Add m4/mbstate_t.m4.
27162         Reported by Ton Voon <ton.voon@altinity.com>.
27163
27164 2008-03-23  Bruno Haible  <bruno@clisp.org>
27165
27166         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
27167
27168 2008-03-23  Eric Blake  <ebb9@byu.net>
27169             Bruno Haible  <bruno@clisp.org>
27170
27171         Install files from top/ in the destination directory.
27172         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27173         augmentation also for the files from top/.
27174         (func_import, func_create_testdir): Rewrite file names:
27175         top/filename -> filename.
27176
27177 2008-03-23  Bruno Haible  <bruno@clisp.org>
27178
27179         Tweak "gnulib --version" output.
27180         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
27181
27182 2008-03-23  Bruno Haible  <bruno@clisp.org>
27183
27184         Tweak "gnulib --version" output.
27185         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
27186         rather than contents of ChangeLog, when possible.
27187
27188 2008-03-21  Eric Blake  <ebb9@byu.net>
27189
27190         More --version tweaks.
27191         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
27192         date of last ChangeLog entry.
27193
27194 2008-03-21  Jim Meyering  <meyering@redhat.com>
27195
27196         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
27197
27198 2008-03-20  Eric Blake  <ebb9@byu.net>
27199
27200         VPATH fix.
27201         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
27202
27203 2008-03-20  Simon Josefsson  <simon@josefsson.org>
27204
27205         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
27206         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
27207
27208 2008-03-20  Eric Blake  <ebb9@byu.net>
27209
27210         Sync GNUmakefile with coreutils.
27211         * build-aux/GNUmakefile (have-Makefile): Rename...
27212         (_have-Makefile): ...to this, for namespace consideration.
27213         (GNUmakefile.cfg): Include, if present.
27214         (_autoreconf): Define a default.
27215         (_is-dist-target): New rule for rebuilds to pick up intra-release
27216         version.
27217         (maint-cfg.mk): Rename...
27218         (cfg.mk): ...to this.
27219
27220 2008-03-18  Jim Meyering  <meyering@redhat.com>
27221
27222         New script and module: mktempd
27223         * MODULES.html.sh (maint+release support): Add mktempd.
27224         * build-aux/mktempd: New file.
27225         * modules/mktempd: New file.
27226
27227 2008-03-15  Jim Meyering  <meyering@redhat.com>
27228
27229         Undo last change.
27230         * lib/sha1.c, lib/md5.c: 63 != ~63.
27231         Reported by Andreas Schwab.
27232
27233         sha1.c, md5.c: Hoist a redundant expression.
27234         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27235         "ctx->buflen" only once, before calling *_process_block.
27236         * lib/md5.c (md5_process_bytes): Likewise.
27237
27238 2008-03-14  Eric Blake  <ebb9@byu.net>
27239
27240         Bump copyright year in files generated by gnulib-tool.
27241         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27242         gnulib-tool, rather than hard-coding it.
27243
27244         Fix 'gnulib-tool --version' output to work with git.
27245         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27246         (startup): ...here.
27247         (func_version): Use it to invoke git-version-gen, rather than
27248         relying on CVS keyword expansion.  Modernize wording.
27249         (cvsdatestamp, last_checkin_date, version): Kill unused
27250         variables.
27251
27252 2008-03-12  Jim Meyering  <meyering@redhat.com>
27253
27254         Recognize optional cast of the argument to free.
27255         * build-aux/useless-if-before-free: Update regexps.
27256
27257         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27258
27259 2008-03-11  Bruno Haible  <bruno@clisp.org>
27260
27261         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27262         by a single package.
27263         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27264         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27265         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27266         Reported by Sam Steingold <sds@gnu.org>.
27267
27268 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27269
27270         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27271         repositories.
27272
27273 2008-03-11  Bruno Haible  <bruno@clisp.org>
27274
27275         Avoid conflicts between local macro definitions.
27276         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27277         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27278
27279 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27280             Bruno Haible  <bruno@clisp.org>
27281
27282         Make va_copy work with some version of xlc on AIX 5.1.
27283         * lib/stdarg.in.h: New file.
27284         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27285         On AIX, use a <stdarg.h> file substitute.
27286         * modules/stdarg (Files): Add lib/stdarg.in.h.
27287         (Depends-on): Add include_next.
27288         (Makefile.am): Build a stdarg.h substitute if requested.
27289         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27290
27291 2008-03-10  Bruno Haible  <bruno@clisp.org>
27292
27293         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27294         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27295         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27296
27297 2008-03-10  Bruno Haible  <bruno@clisp.org>
27298
27299         * modules/stdlib (Depends-on): Add include_next, remove
27300         absolute-header.
27301
27302 2008-03-09  Bruno Haible  <bruno@clisp.org>
27303
27304         * lib/freadahead.h (freadahead): Document more precisely.
27305         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27306         the sum of both buffer sizes.
27307         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27308         * NEWS: Document the change.
27309
27310 2008-03-09  Bruno Haible  <bruno@clisp.org>
27311
27312         Extend freadptr to return also the buffer size.
27313         * lib/freadptr.h (freadptr): Add sizep argument.
27314         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27315         (freadptr): Add sizep argument. Determine buffer size like freadahead
27316         does.
27317         * tests/test-freadptr.c: Don't include freadahead.h.
27318         (main): Adapt for new calling convention of freadptr.
27319         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27320         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27321         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27322         tests/test-freadptr2.sh.
27323         (Depends): Remove freadahead.
27324         (TESTS): Add test-freadptr2.sh.
27325         (check_PROGRAMS): Add test-freadptr2.
27326
27327 2008-03-09  Bruno Haible  <bruno@clisp.org>
27328
27329         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27330         Report and solution by Simon Josefsson.
27331
27332 2008-03-06  Bruno Haible  <bruno@clisp.org>
27333
27334         Make fflush after ungetc work on BSD platforms.
27335         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27336         * tests/test-fflush2.c: New file.
27337         * tests/test-fflush2.sh: New file.
27338         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27339         tests/test-fflush2.c.
27340         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27341         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27342
27343 2008-03-06  Eric Blake  <ebb9@byu.net>
27344
27345         Likewise for ftello.
27346         * modules/ftello (Dependencies): Add extensions.
27347         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27348
27349 2008-03-06  Bruno Haible  <bruno@clisp.org>
27350
27351         * modules/fseeko (Dependencies): Add extensions.
27352         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27353         Needed on glibc systems.
27354
27355 2008-03-06  Bruno Haible  <bruno@clisp.org>
27356
27357         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27358         email address.
27359         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27360
27361 2008-03-06  Bruno Haible  <bruno@clisp.org>
27362
27363         * users.txt: Add libgnupdf.
27364
27365 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27366
27367         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27368         (Header File Substitutes, Function Substitutes,
27369         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27370         (Build robot for gnulib): Fix typo.
27371
27372 2008-03-06  Bruno Haible  <bruno@clisp.org>
27373
27374         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27375         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27376
27377 2008-03-06  Bruno Haible  <bruno@clisp.org>
27378
27379         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27380         * doc/gnulib.texi: Include it.
27381
27382 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27383
27384         * modules/func (License): Change license to unlimited; there was
27385         no LGPL parts in the module anyway.
27386
27387 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27388
27389         * modules/__func__: Renamed to modules/func.
27390         * modules/__func__-tests: Renamed to modules/func-tests.
27391         * tests/test-__func__.c: Renamed to tests/test-func.c.
27392         * m4/__func__.m4: Renamed to m4/func.m4.
27393         * doc/gnulib.texi (__func__): Section renamed to func.
27394         Suggested by Eric Blake <ebb9@byu.net>.
27395
27396 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27397
27398         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27399         about __func__.  Make example self-contained.  Suggested by Eric
27400         Blake <ebb9@byu.net>.
27401
27402         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27403         Suggested by Eric Blake <ebb9@byu.net>.
27404
27405 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27406
27407         * modules/__func__: New file.
27408         * modules/__func__-tests: New file.
27409         * tests/test-__func__.c: New file.
27410         * m4/__func__.m4: New file.
27411         * doc/gnulib.texi (__func__): Document __func__ module.
27412
27413 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27414
27415         * modules/byteswap (License): Re-license as LGPLv2+.
27416
27417 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27418
27419         * doc/Makefile: Add pdf target.
27420
27421 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27422
27423         * modules/inline (License): Use 'unlimited', since there are only
27424         *.m4 files in this module.
27425
27426 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27427             Bruno Haible  <bruno@clisp.org>
27428
27429         Add support for HP C 7.1 on OpenVMS 8.3.
27430         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27431
27432 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27433
27434         Update VMS specifics.
27435         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27436
27437 2008-03-02  Jim Meyering  <meyering@redhat.com>
27438
27439         Remove the last dependency on the "free" module.
27440         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27441         Reported by Bob Proulx.
27442
27443         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27444
27445         Remove useless "if" tests before free.  Deprecate "free" module.
27446         * doc/posix-functions/free.texi: Mention that this
27447         module is no longer useful.
27448         * modules/free (Notice): Say this module is obsolete.
27449         * modules/readutmp (Depends-on): Remove free.
27450         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27451         * lib/putenv.c (putenv): Likewise.
27452         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27453         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27454         * tests/test-c-strcasestr.c (main): Likewise.
27455         * tests/test-c-strstr.c (main): Likewise.
27456         * tests/test-mbscasestr1.c (main): Likewise.
27457         * tests/test-mbscasestr2.c (main): Likewise.
27458         * tests/test-mbsstr1.c (main): Likewise.
27459         * tests/test-mbsstr2.c (main): Likewise.
27460         * tests/test-memmem.c (main): Likewise.
27461         * tests/test-strcasestr.c (main): Likewise.
27462         * tests/test-striconv.c (main): Likewise.
27463         * tests/test-striconveh.c (main): Likewise.
27464         * tests/test-striconveha.c (main): Likewise.
27465         * tests/test-strstr.c (main): Likewise.
27466
27467         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27468
27469         bootstrap: sync from coreutils again
27470         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27471
27472 2008-03-01  Jim Meyering  <meyering@redhat.com>
27473
27474         bootstrap: sync from coreutils
27475         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27476         also when the target doesn't exist.
27477
27478 2008-03-01  Eric Blake  <ebb9@byu.net>
27479
27480         Fix bugs in last patch.
27481         * lib/memchr2.c (memchr2): Fix typo.
27482         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27483         extension.
27484         Reported by Bruce Korb.
27485
27486         New module 'memchr2'.
27487         * modules/memchr2: New file.
27488         * modules/memchr2-tests: Likewise.
27489         * lib/memchr2.h: Likewise.
27490         * lib/memchr2.c: Likewise, based on memchr.c.
27491         * tests/test-memchr2.c: New test.
27492         * MODULES.html.sh (String handling): Add memchr2.
27493
27494 2008-02-29  Bruno Haible  <bruno@clisp.org>
27495
27496         * modules/freadseek-tests: New file.
27497         * tests/test-freadseek.sh: New file.
27498         * tests/test-freadseek.c: New file.
27499
27500         New module 'freadseek'.
27501         * modules/freadseek: New file.
27502         * lib/freadseek.h: New file.
27503         * lib/freadseek.c: New file.
27504         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27505
27506 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27507
27508         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27509         wydawca.
27510
27511         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27512         program_invocation_name and program_invocation_short_name are
27513         present.
27514
27515 2008-02-28  Bruno Haible  <bruno@clisp.org>
27516
27517         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27518         * tests/test-freadptr.sh: Also test non-seekable stdin.
27519
27520 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27521
27522         * build-aux/bootstrap (source_base, m4_base)
27523         (doc_base, tests_base): New variables.
27524         (gnulib_tool_options): Do not hardcode base directories, use
27525         the above variables instead.
27526
27527 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27528
27529         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27530
27531 2008-02-28  Bruno Haible  <bruno@clisp.org>
27532
27533         * modules/freadptr-tests: New file.
27534         * tests/test-freadptr.sh: New file.
27535         * tests/test-freadptr.c: New file.
27536
27537         New module 'freadptr'.
27538         * modules/freadptr: New file.
27539         * lib/freadptr.h: New file.
27540         * lib/freadptr.c: New file.
27541         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27542
27543 2008-02-26  Karl Berry  <karl@freefriends.org>
27544
27545         Sync from Libtool:
27546         * libltdl/argz.c (argz_add, argz_count): New functions.
27547         * libltdl/argz.in.h: Declare them.
27548         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27549
27550 2008-02-22  Bruno Haible  <bruno@clisp.org>
27551
27552         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27553         is a pointer type.  Needed for HP-UX 10.
27554         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27555         * doc/posix-functions/gmtime_r.texi: Likewise.
27556         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27557
27558 2008-02-24  Bruno Haible  <bruno@clisp.org>
27559
27560         * modules/environ-tests: New file.
27561         * tests/test-environ.c: New file.
27562
27563         New module 'environ'.
27564         * modules/environ: New file.
27565         * lib/unistd.in.h (environ): New declaration.
27566         * m4/environ.m4: New file.
27567         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27568         after use.
27569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27570         HAVE_DECL_ENVIRON.
27571         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27572         HAVE_DECL_ENVIRON.
27573         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27574         wrong claim that 'environ' is missing on some systems.
27575         * modules/execute (Depends-on): Add environ.
27576         * lib/execute.c (environ): Remove fallback declaration.
27577         * modules/pipe (Depends-on): Add environ.
27578         * lib/pipe.c (environ): Remove fallback declaration.
27579         * modules/setenv (Depends-on): Add environ.
27580         * lib/setenv.c (environ): Remove fallback declaration.
27581         * modules/unsetenv (Depends-on): Add environ.
27582         * lib/unsetenv.c (environ): Remove fallback declaration.
27583         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27584         m4/environ.m4.
27585         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27586         (gl_PREREQ_UNSETENV): Likewise.
27587
27588 2008-02-24  Bruno Haible  <bruno@clisp.org>
27589
27590         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27591
27592 2008-02-20  Bob Proulx  <bob@proulx.com>
27593
27594         Enable use of older two part flavor 'git describe'.
27595         * build-aux/git-version-gen: If using the older two part flavor of
27596         git version then recreate the third part now present in the
27597         newer three part flavor of git describe.
27598
27599 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27600
27601         * lib/fts.c (fts_build): Typo correction to comment.
27602
27603 2008-02-17  Bruno Haible  <bruno@clisp.org>
27604
27605         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27606         generating no-op conflicts.
27607
27608 2008-02-17  Bruno Haible  <bruno@clisp.org>
27609
27610         Speed up by 10%.
27611         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27612         result_entries, rather than an index-based loop.
27613
27614 2008-02-17  Bruno Haible  <bruno@clisp.org>
27615
27616         Speed up by 25%.
27617         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27618         'hashcode_cached'.
27619         (entry_create): New function.
27620         (entry_hashcode): Use the cached hashcode if possible.
27621         (read_changelog_file, try_split_merged_entry): Use entry_create.
27622
27623 2008-02-17  Bruno Haible  <bruno@clisp.org>
27624
27625         Speed up from O(n^2) to O(n) for long ChangeLog files.
27626         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27627         (read_changelog_file): Change implementation of entries_reversed list
27628         to rbtreehash.
27629         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27630
27631 2008-02-17  Bruno Haible  <bruno@clisp.org>
27632
27633         New option --split-merged-entry.
27634         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27635         (find_paragraph_end, try_split_merged_entry): New functions.
27636         (long_options): Add option --split-merged-entry.
27637         (usage): Document option --split-merged-entry.
27638         (main): Implement option --split-merged-entry.
27639         Reported by Eric Blake.
27640
27641 2008-02-17  Bruno Haible  <bruno@clisp.org>
27642
27643         * lib/git-merge-changelog.c: Include c-strstr.h.
27644         (main): Support the "git pull --rebase" situation.
27645         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27646         Reported by Eric Blake.
27647
27648 2008-02-16  Eric Blake  <ebb9@byu.net>
27649
27650         Avoid doubling \ in common case of "c-maybe" quoting style.
27651         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27652         eliding outer quotes.
27653         * lib/quotearg.h: Document this.
27654         * tests/test-quotearg.c (result_strings, inputs, results_g)
27655         (flag_results, locale_results): Test it by adding a new string to
27656         each test group.
27657         (compare_strings): Test new string.
27658
27659 2008-02-13  Eric Blake  <ebb9@byu.net>
27660
27661         Avoid trigraph quoting in default output.
27662         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27663         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27664         unless explicitly requested.
27665         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27666
27667 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27668
27669         Don't rely on signed integer overflowing to negative value.
27670         * lib/getugroups.c (getugroups): Include <limits.h>.
27671         Instead, compare against INT_MAX, and increment only if the test passes.
27672
27673 2008-02-13  Jim Meyering  <meyering@redhat.com>
27674         and Eric Blake  <ebb9@byu.net>
27675
27676         Avoid shadowing warning and compile errors on Linux.
27677         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27678         forwarding macros on Linux.
27679         (dcgettext): Define a stub, for Linux.
27680         (results_g, main): Avoid warnings.
27681
27682 2008-02-12  Eric Blake  <ebb9@byu.net>
27683
27684         Silence warning in last patch.
27685         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27686
27687         Quotearg part 4: add tests, fix c-maybe colon quoting.
27688         * lib/quotearg.h: Improve documentation.
27689         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27690         escapes when adding outer quotes.  When quoting trigraphs, use
27691         valid C notation.  When quoting NUL, omit extra characters if next
27692         character is not digit.  Alter prototype.
27693         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27694         callers.
27695         * modules/quotearg-tests: New module.
27696         * tests/test-quotearg.c: New test.
27697
27698 2008-02-07  Eric Blake  <ebb9@byu.net>
27699
27700         Quotearg part 3: add flag to control outer quote elision.
27701         * lib/quotearg.h (c_maybe_quoting_style): New style.
27702         (enum quoting_flags): Better documentation of flags.
27703         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27704         c-maybe style.
27705         (quotearg_buffer_restyled): Handle new flag to elide outer
27706         quotes.
27707
27708         Quotearg part 2: add flag that can control NUL elision.
27709         * lib/quotearg.h (set_quoting_flags): New prototype.
27710         * lib/quotearg.c (struct quoting_options): Add flag field.
27711         (set_quoting_flags): New function.
27712         (quotearg_buffer_restyled): Add flags parameter.
27713         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27714         (quotearg_n_options): Set the flag, since length cannot be
27715         returned.
27716         (quoting_options_from_style): Default flags correctly.
27717
27718         Quotearg part 1: more wrappers, restore quotearg_char state.
27719         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27720         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27721         (quotearg_colon_mem): New wrappers.
27722         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27723         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27724         functions.
27725         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27726         (quotearg_colon_mem): New functions.
27727
27728 2008-02-11  Bruno Haible  <bruno@clisp.org>
27729
27730         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27731         library in the current directory: it does not work with parallel make.
27732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27733
27734 2008-02-11  Bruno Haible  <bruno@clisp.org>
27735
27736         * .gitattributes: New file.
27737
27738 2008-02-11  Jim Meyering  <meyering@redhat.com>
27739
27740         useless-if-before-free: Fix reversed exit values.
27741         * build-aux/useless-if-before-free: Use correct values
27742         for EXIT_MATCH and EXIT_NO_MATCH.
27743
27744         * build-aux/useless-if-before-free: Close stdout carefully.
27745
27746 2008-02-10  Bruno Haible  <bruno@clisp.org>
27747
27748         New module 'git-merge-changelog'.
27749         * modules/git-merge-changelog: New file.
27750         * lib/git-merge-changelog.c: New file.
27751
27752 2008-02-10  Jim Meyering  <meyering@redhat.com>
27753
27754         useless-if-before-free: New option: --list (-l).
27755
27756         useless-if-before-free: Don't exit immediately upon open failure.
27757         * build-aux/useless-if-before-free: Exit 2 for errors.
27758         Upon failure to open a file, don't exit immediately.
27759         Rather, just warn and continue with any remaining files.
27760
27761 2008-02-10  Bruno Haible  <bruno@clisp.org>
27762
27763         New abstract list operation 'node_set_value'.
27764         * lib/gl_list.h (gl_list_node_set_value): New function.
27765         (struct gl_list_implementation): New field node_set_value.
27766         * lib/gl_list.c (gl_list_node_set_value): New function.
27767         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27768         (gl_array_list_implementation): Update.
27769         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27770         (gl_carray_list_implementation): Update.
27771         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27772         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27773         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27774         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27775         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27776         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27777         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27778         Update.
27779         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27780         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27781         (gl_sublist_list_implementation): Update.
27782
27783 2008-02-10  Bruno Haible  <bruno@clisp.org>
27784
27785         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27786         Needed when ELEMENT is #defined to 'some_type *'.
27787
27788 2008-02-10  Jim Meyering  <meyering@redhat.com>
27789
27790         New script and module: useless-if-before-free
27791         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27792         * build-aux/useless-if-before-free: New file.
27793         * modules/useless-if-before-free: New file.
27794
27795         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27796
27797         xstrtol_error: Fix typo.
27798         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27799         s/exit_failure/exit_status/.
27800
27801 2008-02-09  Jim Meyering  <meyering@redhat.com>
27802
27803         New script and module: gitlog-to-changelog
27804         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27805         * modules/gitlog-to-changelog: New file.
27806         * build-aux/gitlog-to-changelog: New file.
27807
27808 2008-02-08  Jim Meyering  <meyering@redhat.com>
27809
27810         Avoid two "parameter unused" warnings.
27811         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27812         Mark "st" as used.
27813
27814         Use "git COMMAND", not "git-COMMAND".
27815         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27816         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27817         * build-aux/git-version-gen: Use "git status", not "git-status".
27818
27819 2008-02-07  Bruno Haible  <bruno@clisp.org>
27820
27821         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27822         Avoids a crash on Windows Vista.
27823         Reported by Adam Strzelecki <ono@java.pl> via
27824         Simon Josefsson <simon@josefsson.org>.
27825
27826 2008-02-06  Bruno Haible  <bruno@clisp.org>
27827
27828         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27829         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27830         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27832         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27833         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27834         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27835         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27836         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27837         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27838         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27839         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27840         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27841         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27842         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27843         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27844         left-adjust flag.
27845         * tests/test-snprintf-posix.h (test_function): Likewise.
27846         * tests/test-sprintf-posix.h (test_function): Likewise.
27847         * tests/test-vasprintf-posix.c (test_function): Likewise.
27848         * doc/posix-functions/fprintf.texi: Update.
27849         * doc/posix-functions/printf.texi: Update.
27850         * doc/posix-functions/snprintf.texi: Update.
27851         * doc/posix-functions/sprintf.texi: Update.
27852         * doc/posix-functions/vfprintf.texi: Update.
27853         * doc/posix-functions/vprintf.texi: Update.
27854         * doc/posix-functions/vsnprintf.texi: Update.
27855         * doc/posix-functions/vsprintf.texi: Update.
27856         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27857
27858 2008-02-06  Bruno Haible  <bruno@clisp.org>
27859
27860         Fix bug introduced on 2008-01-26.
27861         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27862
27863 2008-02-06  Bruno Haible  <bruno@clisp.org>
27864
27865         Fix bug introduced on 2007-06-10.
27866         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27867         !NEED_PRINTF_FLAG_ZERO.
27868
27869 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27870
27871         getloadavg: use libperfstat on AIX5
27872         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27873
27874 2008-02-03  Bruno Haible  <bruno@clisp.org>
27875
27876         * lib/diffseq.h: Add comments about required #includes.
27877         Reported by Michael Biggs <gnulib@doubleplum.net>.
27878
27879 2008-02-01  Bruno Haible  <bruno@clisp.org>
27880
27881         * users.txt: Add gnuit.
27882
27883 2008-01-31  Bruno Haible  <bruno@clisp.org>
27884
27885         * lib/md4.c (set_uint32): Mark as inline.
27886         * lib/md5.c (set_uint32): Likewise.
27887         * lib/sha1.c (set_uint32): Likewise.
27888         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27889         * m4/md5.m4 (gl_MD5): Likewise.
27890         * m4/sha1.m4 (gl_SHA1): Likewise.
27891
27892 2008-01-31  Jim Meyering  <meyering@redhat.com>
27893
27894         Use "sizeof VAR", rather than a literal "4".
27895         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27896         * lib/md4.c (md4_read_ctx): Likewise.
27897         * lib/sha1.c (sha1_read_ctx): Likewise.
27898
27899 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27900
27901         * tests/test-sha1.c: New file, based on test-md5.c.
27902
27903         * modules/crypto/sha1-tests: New file.
27904
27905 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27906
27907         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27908
27909 2008-01-31  Jim Meyering  <meyering@redhat.com>
27910
27911         Prefer "sizeof v" over the equivalent "4".
27912         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27913         * lib/md5.c (set_uint32): Likewise.
27914         * lib/sha1.c (set_uint32): Likewise.
27915
27916 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27917
27918         * lib/sha1.c (set_uint32): Mark function as static.
27919
27920 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27921
27922         md2: clarify comments to say that alignment is not required.
27923         * lib/md2.h: Remove warning about alignment in comment.
27924         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27925         never been required.
27926
27927 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27928
27929         md4: adapt alignment constraint fix from sha1.
27930         * lib/md4.c (set_uint32): New function, from sha1.c
27931         (md4_read_ctx): Use it.
27932         (md4_finish_ctx): Doc fix.
27933         * lib/md4.h: Doc fix.
27934
27935 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27936
27937         md5: adapt alignment constraint fix from sha1.
27938         * lib/md5.c (set_uint32): New function, from sha1.c
27939         (md5_read_ctx): Use it.
27940         (md5_finish_ctx): Doc fix.
27941         * lib/md5.h: Doc fix.
27942
27943 2008-01-30  Peter Palfrader  <weasel@debian.org>
27944
27945         sha1: remove the result buffer alignment constraint
27946         * lib/sha1.c (set_uint32): New function.
27947         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27948         constraint.
27949         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27950         * lib/sha1.h: Likewise.
27951
27952 2008-01-30  Andreas Schwab  <schwab@suse.de>
27953             Bruno Haible  <bruno@clisp.org>
27954
27955         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27956         correct definition of LDBL_MIN_EXP.
27957
27958 2008-01-30  Karl Berry  <karl@gnu.org>
27959
27960         * config/srclist-update: try to preserve x bit on updates.
27961         * config/srclistvars.sh: update for karl.
27962
27963 2008-01-29  Jim Meyering  <meyering@redhat.com>
27964
27965         vasnprintf.c: Avoid warning about unused label
27966         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27967         "overflow" label definition and associated code with the
27968         same cpp condition that guards the sole use of that label.
27969
27970 2008-01-26  Bruno Haible  <bruno@clisp.org>
27971
27972         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27973         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27974         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27975         * lib/isnanl-nolibm.h (isnanl): Likewise.
27976         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27977
27978 2008-01-26  Bruno Haible  <bruno@clisp.org>
27979
27980         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27981         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27982
27983 2008-01-26  Bruno Haible  <bruno@clisp.org>
27984
27985         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27986         GCC >= 4.0 built-in.
27987         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27988
27989 2008-01-26  Bruno Haible  <bruno@clisp.org>
27990
27991         Rename isnan, applicable to 'double' only, to isnand.
27992         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27993         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27994         (configure.ac): Update.
27995         (Include): Replace "isnan.h" with "isnand.h".
27996         * m4/isnand.m4: Renamed from m4/isnan.m4.
27997         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27998         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27999         instead of isnan.c.
28000         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
28001         instead of HAVE_ISNAN_IN_LIBC.
28002         (isnand): Renamed from isnan.
28003         * lib/isnand.c: New file.
28004         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
28005         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
28006         (Makefile.am): Update.
28007         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
28008         Include isnand.h instead of isnan.h.
28009         (main): Test isnand instead of isnan.
28010         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
28011         isnan-nolibm.
28012         * modules/frexp (Depends-on): Likewise.
28013         * modules/frexp-tests (Depends-on): Likewise.
28014         * modules/frexp-nolibm (Depends-on): Likewise.
28015         * modules/frexp-nolibm-tests (Depends-on): Likewise.
28016         * modules/isfinite (Depends-on): Likewise.
28017         * modules/round-tests (Depends-on): Likewise.
28018         * modules/signbit (Depends-on): Likewise.
28019         * modules/signbit-tests (Depends-on): Likewise.
28020         * modules/snprintf-posix (Depends-on): Likewise.
28021         * modules/sprintf-posix (Depends-on): Likewise.
28022         * modules/trunc-tests (Depends-on): Likewise.
28023         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28024         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28025         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28026         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28027         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28028         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28029         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28030         * modules/vasnprintf-posix (Depends-on): Likewise.
28031         * modules/vasprintf-posix (Depends-on): Likewise.
28032         * modules/vfprintf-posix (Depends-on): Likewise.
28033         * modules/vsnprintf-posix (Depends-on): Likewise.
28034         * modules/vsprintf-posix (Depends-on): Likewise.
28035         * lib/frexp.c: Include isnand.h instead of isnan.h.
28036         (ISNAN): Set to isnand instead of isnan.
28037         * lib/isfinite.c: Include isnand.h instead of isnan.h.
28038         (gl_isfinited): Use isnand instead of isnan.
28039         * lib/signbitd.c: Include isnand.h instead of isnan.h.
28040         (gl_signbitd): Use isnand instead of isnan.
28041         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
28042         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
28043         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
28044         (main): Use isnand instead of isnan.
28045         * tests/test-round1.c: Include isnand.h.
28046         (main): Use isnand instead of isnan.
28047         * tests/test-round2.c: Include isnand.h instead of isnan.h.
28048         (ISNAN): Set to isnand instead of isnan.
28049         * tests/test-trunc1.c: Include isnand.h.
28050         (main): Use isnand instead of isnan.
28051         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
28052         (equal): Use isnand instead of isnan.
28053         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
28054         isnand-nolibm.
28055         * NEWS: Mention the change.
28056
28057 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28058             Bruno Haible  <bruno@clisp.org>
28059
28060         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
28061         the GCC builtins for signbits are present and set
28062         REPLACE_SIGNBIT_USING_GCC if so.
28063         * lib/math.in.h (signbit): Define using GCC builtins if
28064         REPLACE_SIGNBIT_USING_GCC is set.
28065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
28066         REPLACE_SIGNBIT_USING_GCC.
28067         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
28068
28069 2008-01-25  Jim Meyering  <meyering@redhat.com>
28070
28071         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
28072         * lib/poll.c: Include <config.h>, not "config.h".
28073         * tests/test-getaddrinfo.c: Likewise.
28074
28075 2008-01-25  Simon Josefsson  <simon@josefsson.org>
28076
28077         * modules/sockets-tests: New file.
28078
28079 2008-01-24  Simon Josefsson  <simon@josefsson.org>
28080
28081         * modules/sockets: New module, can be used to call WSA_Startup and
28082         WSA_Cleanup when needed.
28083
28084         * lib/sockets.h, lib/sockets.c: New files.
28085
28086         * m4/sockets.m4: New file.
28087
28088         * tests/test-sockets.c: New file.
28089
28090 2008-01-19  Bruno Haible  <bruno@clisp.org>
28091
28092         * doc/posix-headers: Renamed from doc/headers.
28093         * doc/posix-functions: Renamed from doc/functions.
28094         * doc/gnulib.texi: Update.
28095
28096 2008-01-19  Bruno Haible  <bruno@clisp.org>
28097
28098         * doc/glibc-functions/strcasestr.texi: Include contents of
28099         doc/functions/strcasestr.texi, fixing the list of platforms.
28100         * doc/functions/strcasestr.texi: Remove file.
28101
28102 2008-01-19  Bruno Haible  <bruno@clisp.org>
28103
28104         * doc/glibc-functions/memmem.texi: Include contents of
28105         doc/functions/memmem.texi.
28106         * doc/functions/memmem.texi: Remove file.
28107
28108 2008-01-18  Bruno Haible  <bruno@clisp.org>
28109
28110         * doc/glibc-functions/*.texi: New files.
28111         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
28112         to use the new files.
28113
28114 2008-01-17  Bruno Haible  <bruno@clisp.org>
28115
28116         * tests/test-gethostname.c (main): Fix printf statement.
28117
28118 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28119
28120         * modules/gethostname-tests: New file.
28121
28122         * tests/test-gethostname.c: New file.
28123
28124 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28125
28126         * lib/gethostname.c: Include string.h unconditionally, strncpy is
28127         used by the UNAME case.  Reported by Bruno Haible
28128         <bruno@clisp.org>.
28129
28130 2008-01-17  Eric Blake  <ebb9@byu.net>
28131
28132         Convert c-strcasestr to be more efficient.
28133         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
28134         (Depends-on): Add c-strcase, remove malloca, strnlen.
28135         * tests/test-c-strcasestr.c (main): Enhance test.
28136         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
28137
28138 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28139
28140         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
28141         Use it in creating po/Makevars.
28142
28143 2008-01-15  Simon Josefsson  <simon@josefsson.org>
28144
28145         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
28146         Applications that requires it should initialize libgcrypt
28147         manually.
28148
28149 2008-01-16  Simon Josefsson  <simon@josefsson.org>
28150
28151         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
28152
28153 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28154
28155         Fix problem with getdate on mingw32 reported by Simon Josefsson
28156         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
28157         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
28158         tzname", when deciding whether to declare tzname.
28159         * lib/strftime.c (tzname): Likewise.
28160
28161 2008-01-15  Bruno Haible  <bruno@clisp.org>
28162
28163         Work around a MacOS X 10.5 bug in frexpl().
28164         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
28165         * doc/functions/frexpl.texi: Document the bug.
28166         Reported by Elias Pipping <pipping@gentoo.org>.
28167
28168 2008-01-14  Eric Blake  <ebb9@byu.net>
28169
28170         Touch up previous patch.
28171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
28172         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
28173
28174         Convert strcasestr module to use Two-Way algorithm.
28175         * modules/strcasestr-simple: New module, based on the old
28176         strcasestr, but with Two-Way rather than KMP.
28177         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
28178         * lib/string.in.h (rpl_strcasestr): Declare.
28179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28180         performance.
28181         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
28182         * modules/string (Makefile.am): Support strcasestr.
28183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28184         * modules/strcasestr-tests (Depends-on): Check for alarm.
28185         * tests/test-strcasestr.c: Augment test.
28186         * lib/str-two-way.h: Clean up stray macro.
28187         * NEWS: Document new module.
28188         * MODULES.html.sh (string handling): Likewise.
28189         * doc/functions/strcasestr.texi: New file.
28190         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
28191         here, since it is not a POSIX function.
28192
28193 2008-01-14  Colin Watson  <cjwatson@debian.org>
28194             Bruno Haible  <bruno@clisp.org>
28195
28196         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
28197         works fine; if not, set REPLACE_STRSIGNAL.
28198         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
28199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28200         REPLACE_STRSIGNAL.
28201         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
28202         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
28203         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
28204
28205 2008-01-14  Bruno Haible  <bruno@clisp.org>
28206
28207         * modules/strsignal (Include): Change to <string.h>.
28208
28209 2008-01-14  Colin Watson  <cjwatson@debian.org>
28210
28211         * modules/argp (Notice): Add a notice recommending to change
28212         XGETTEXT_OPTIONS.
28213         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
28214
28215 2008-01-13  Colin Watson  <cjwatson@debian.org>
28216
28217         * modules/strsignal-tests: New file.
28218         * tests/test-strsignal.c: New file.
28219
28220         * lib/strsignal.c: New file, from glibc with modifications.
28221         * lib/siglist.h: New file, from glibc with modifications.
28222         * lib/string.in.h (strsignal): New declaration.
28223         * m4/strsignal.m4: New file.
28224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28225         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28226         * modules/strsignal: New file.
28227         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28228         HAVE_DECL_STRSIGNAL.
28229
28230 2008-01-13  Bruno Haible  <bruno@clisp.org>
28231
28232         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28233         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28234         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28235         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28236
28237 2008-01-13  Bruno Haible  <bruno@clisp.org>
28238
28239         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28240         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28241         * lib/argp.h (__attribute__): Likewise.
28242         * lib/c-stack.c (__attribute__): Likewise.
28243         * lib/error.h (__attribute__): Likewise.
28244         * lib/fts.c (__attribute__): Likewise.
28245         * lib/openat.h (__attribute__): Likewise.
28246         * lib/stdio.in.h (__attribute__): Likewise.
28247         * lib/string.in.h (__attribute__): Likewise.
28248         * lib/utimens.c (__attribute__): Likewise.
28249         * lib/vasnprintf.h (__attribute__): Likewise.
28250         * lib/xalloc.h (__attribute__): Likewise.
28251         * lib/xprintf.h (__attribute__): Likewise.
28252         * lib/xstrtol.h (__attribute__): Likewise.
28253         * lib/xvasprintf.h (__attribute__): Likewise.
28254
28255 2008-01-12  Bruno Haible  <bruno@clisp.org>
28256
28257         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28258         * doc/glibc-headers/a.out.texi: New file.
28259         * doc/glibc-headers/aliases.texi: New file.
28260         * doc/glibc-headers/alloca.texi: New file.
28261         * doc/glibc-headers/ar.texi: New file.
28262         * doc/glibc-headers/argp.texi: New file.
28263         * doc/glibc-headers/argz.texi: New file.
28264         * doc/glibc-headers/byteswap.texi: New file.
28265         * doc/glibc-headers/crypt.texi: New file.
28266         * doc/glibc-headers/endian.texi: New file.
28267         * doc/glibc-headers/envz.texi: New file.
28268         * doc/glibc-headers/err.texi: New file.
28269         * doc/glibc-headers/error.texi: New file.
28270         * doc/glibc-headers/execinfo.texi: New file.
28271         * doc/glibc-headers/fpu_control.texi: New file.
28272         * doc/glibc-headers/fstab.texi: New file.
28273         * doc/glibc-headers/fts.texi: New file.
28274         * doc/glibc-headers/getopt.texi: New file.
28275         * doc/glibc-headers/ieee754.texi: New file.
28276         * doc/glibc-headers/ifaddrs.texi: New file.
28277         * doc/glibc-headers/libintl.texi: New file.
28278         * doc/glibc-headers/mcheck.texi: New file.
28279         * doc/glibc-headers/mntent.texi: New file.
28280         * doc/glibc-headers/obstack.texi: New file.
28281         * doc/glibc-headers/paths.texi: New file.
28282         * doc/glibc-headers/printf.texi: New file.
28283         * doc/glibc-headers/pty.texi: New file.
28284         * doc/glibc-headers/resolv.texi: New file.
28285         * doc/glibc-headers/shadow.texi: New file.
28286         * doc/glibc-headers/sysexits.texi: New file.
28287         * doc/glibc-headers/ttyent.texi: New file.
28288
28289 2008-01-12  Jim Meyering  <meyering@redhat.com>
28290
28291         announce-gen: emit Gnulib's git-based version string.
28292         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28293         New option --gnulib-version=V, where V is expected to be
28294         the output of running git describe in the gnulib directory.
28295         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28296         not useful, and plan to stop publishing an xdelta file with each
28297         coreutils release.
28298
28299         * build-aux/announce-gen: Also check for lzma-compressed files.
28300
28301 2008-01-11  Bruno Haible  <bruno@clisp.org>
28302
28303         * tests/test-memmem.c (main): Increase maximum allowed time.
28304         * tests/test-strstr.c (main): Likewise.
28305
28306 2008-01-11  Bruno Haible  <bruno@clisp.org>
28307
28308         * doc/functions/memmem.texi: Add more precisions about platforms.
28309         * doc/functions/strstr.texi: Likewise.
28310
28311 2008-01-10  Eric Blake  <ebb9@byu.net>
28312
28313         * m4/strstr.m4: Delete cruft from copy-n-paste.
28314         Reported by Bruno Haible.
28315
28316 2008-01-10  Bruno Haible  <bruno@clisp.org>
28317
28318         Make c-strstr rely on strstr.
28319         * lib/c-strstr.c: Don't include str-kmp.h.
28320         (c_strstr): Define in terms of strstr.
28321         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28322         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28323
28324 2008-01-10  Bruno Haible  <bruno@clisp.org>
28325
28326         * doc/gnulib.texi (String Functions in C Locale): New section.
28327         * doc/c-ctype.texi: New file.
28328         * doc/c-strcase.texi: New file.
28329         * doc/c-strcaseeq.texi: New file.
28330         * doc/c-strcasestr.texi: New file.
28331         * doc/c-strstr.texi: New file.
28332         * doc/c-strtod.texi: New file.
28333         * doc/c-strtold.texi: New file.
28334
28335 2008-01-10  Eric Blake  <ebb9@byu.net>
28336
28337         * lib/relocatable.h: Fix a comment.
28338
28339 2008-01-10  Eric Blake  <ebb9@byu.net>
28340
28341         Share two-way algorithm.
28342         * lib/str-two-way.h: New file, merged from...
28343         * lib/memmem.c: ...here...
28344         * lib/strstr.c: ...and here.
28345         * modules/memmem (Files): Use it.
28346         * modules/strstr (Files): Likewise.
28347
28348         Avoid quadratic strstr implementations.
28349         * lib/strstr.c: New file.
28350         * m4/strstr.m4: Likewise.
28351         * modules/strstr: Likewise.
28352         * modules/strstr-tests: Likewise.
28353         * tests/test-strstr.c: Likewise.
28354         * lib/string.in.h (rpl_strstr): Declare.
28355         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28357         * modules/string (Makefile.am): Likewise.
28358         * MODULES.html.sh (string handling): Mention new module.
28359         * doc/functions/strstr.texi (strstr): Document the bug.
28360
28361 2008-01-10  Bruno Haible  <bruno@clisp.org>
28362
28363         * lib/relocatable.h (relocate): State whether result is freshly
28364         allocated or not.
28365         * lib/relocatable.c (relocate): Return a freshly allocated string
28366         instead of a pointer to a privately held string.
28367         Reported by Sylvain Beucler <beuc@gnu.org>.
28368
28369 2008-01-10  Colin Watson  <cjwatson@debian.org>
28370
28371         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28372         s/S_ISNLK/S_ISLNK/.
28373
28374 2008-01-09  Bruno Haible  <bruno@clisp.org>
28375
28376         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28377         and other files.
28378         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28379         if it's only a guess.
28380         * modules/memmem: Simplify by depending on memmem-simple.
28381
28382 2008-01-09  Bruno Haible  <bruno@clisp.org>
28383
28384         Work around OpenBSD 4.0 tdelete() bug.
28385         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28386         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28387         macros and don't redefine the enum values.
28388         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28389         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28390         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28391
28392 2008-01-09  Bruno Haible  <bruno@clisp.org>
28393
28394         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28395         (main): Don't perform the tests if setlocale did not install a UTF-8
28396         locale. Needed on OpenBSD 4.0.
28397         * modules/wcwidth-tests (Depends-on): Add localcharset.
28398
28399 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28400
28401         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28402         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28403         * NEWS: announce this.
28404         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28405
28406 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28407         and Eric Blake  <ebb9@byu.net>
28408
28409         Add memmem-simple module.
28410         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28411         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28412         * modules/memmem-simple: New file.
28413         * modules/memmem (Description): Tweak.
28414         * MODULES.html.sh (string handling): Mention new module.
28415         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28416         addressed by memmem-simple.
28417         * NEWS: Document the difference.
28418
28419 2008-01-09  Eric Blake  <ebb9@byu.net>
28420
28421         Give gcc some memmem optimization hints.
28422         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28423         (strcasestr): Declare as pure.
28424         * modules/memmem (Maintainer): Claim my implementation.
28425
28426 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28427
28428         Support AIX 6.1 and higher.
28429         * build-aux/config.libpath: Likewise.
28430         * build-aux/config.rpath: Likewise.
28431
28432 2008-01-08  Jim Meyering  <meyering@redhat.com>
28433             Bruno Haible  <bruno@clisp.org>
28434
28435         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28436         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28437         Reported by Peter Fales in
28438         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28439
28440 2008-01-08  Bruno Haible  <bruno@clisp.org>
28441
28442         * modules/unictype/category-of (Depends-on): Add
28443         unictype/category-none.
28444         * modules/unictype/category-and-tests (Depends-on): Add
28445         unictype/category-{L,N,Lu,Nd}.
28446         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28447         * modules/unictype/category-or-tests (Depends-on): Add
28448         unictype/category-{L,N}.
28449         * modules/unictype/category-name-tests (Depends-on): Add
28450         unictype/category-{Z,Nl}.
28451         Reported by Simon Josefsson.
28452
28453 2008-01-08  Bruno Haible  <bruno@clisp.org>
28454
28455         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28456         convention better.
28457         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28458         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28459         Reported by Peter Miller <millerp@canb.auug.org.au>.
28460
28461 2008-01-08  Eric Blake  <ebb9@byu.net>
28462
28463         Rewrite memmem to guarantee linear complexity without malloc.
28464         * lib/memmem.c (memmem): Use Two-Way rather than
28465         Knuth-Morris-Pratt, to allow O(1) space usage.
28466         (critical_factorization, two_way_short_needle)
28467         (two_way_long_needle): New functions.
28468         (knuth_morris_pratt): Delete.
28469         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28470         Add stdint.
28471         * tests/test-memmem.c (main): Add tests for periodic needle and
28472         sublinear performance.
28473         * doc/functions/memmem.texi (memmem): Document other deficiencies
28474         in cygwin and older glibc.
28475
28476 2008-01-08  Bruno Haible  <bruno@clisp.org>
28477
28478         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28479         augmentation.
28480
28481 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28482
28483         Add a configure time option: --disable-acl.
28484         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28485         AC_ARG_ENABLE(acl).
28486
28487 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28488
28489         * tests/test-localename.c: Don't include obsolete "setenv.h".
28490
28491         * modules/localename-tests (Depends-on): Need unsetenv.
28492
28493 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28494
28495         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28496
28497 2008-01-06  Colin Watson  <cjwatson@debian.org>
28498
28499         * users.txt: Add man-db.
28500
28501 2008-01-07  Bruno Haible  <bruno@clisp.org>
28502
28503         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28504         previous section name.
28505
28506 2008-01-07  Bruno Haible  <bruno@clisp.org>
28507
28508         * lib/progname.c (set_program_name): Don't strip off a leading
28509         "lt-" prefix outside a .libs directory.
28510         Suggested by Paul Eggert.
28511
28512 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28513             Bruno Haible  <bruno@clisp.org>
28514
28515         Improve memory cleanup in 'relocatable' module.
28516         * lib/relocatable.h (compute_curr_prefix): Change return type to
28517         'char *'.
28518         * lib/relocatable.c (compute_curr_prefix): Change return type to
28519         'char *'. Free curr_installdir after use.
28520         (relocate): Free curr_prefix_better after use.
28521         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28522
28523 2008-01-01  Bruno Haible  <bruno@clisp.org>
28524
28525         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28526         failure on older glibc systems.
28527         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28528
28529 2008-01-05  Eric Blake  <ebb9@byu.net>
28530
28531         Avoid quadratic system memmem.
28532         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28533         Reported by Ralf Wildenhues.
28534
28535         Fix memmem test for mingw.
28536         * modules/memmem-tests (configure.ac): Check for alarm.
28537         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28538         it.
28539         * doc/functions/memmem.texi: New file.
28540         * doc/gnulib.texi (Function Substitutes): Add memmem.
28541         Reported by Bruno Haible.
28542
28543 2008-01-04  Bruno Haible  <bruno@clisp.org>
28544
28545         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28546         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28547         gl_HEADER_STRING_H_DEFAULTS.
28548
28549 2008-01-04  Eric Blake  <ebb9@byu.net>
28550
28551         Shorten duration of memmem test.
28552         * tests/test-memmem.c (main): Use alarm to declare failure if test
28553         is taking too long.
28554         Reported by Ralf Wildenhues.
28555
28556 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28557
28558         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28559         string, needed by strerror.
28560
28561 2008-01-03  Colin Watson  <cjwatson@debian.org>
28562             Bruno Haible  <bruno@clisp.org>
28563
28564         * doc/gnulib-tool.texi (Localization): New section.
28565
28566 2008-01-02  Bruno Haible  <bruno@clisp.org>
28567
28568         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28569         variables to 'unsigned char *' type.
28570         Reported by Paul Eggert.
28571
28572 2008-01-02  Jim Meyering  <jim@meyering.net>
28573
28574         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28575
28576 2007-12-31  Jim Meyering  <jim@meyering.net>
28577
28578         Avoid use of private FTS type name.
28579         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28580
28581 2007-12-30  Karl Berry  <karl@gnu.org>
28582
28583         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28584         work around defect in Texinfo and/or the standalone Info browser.
28585
28586 2007-12-30  Bruno Haible  <bruno@clisp.org>
28587
28588         Unify 5 copies of the KMP code.
28589         * lib/str-kmp.h: New file.
28590         * lib/c-strcasestr.c: Include str-kmp.h.
28591         (knuth_morris_pratt): Remove function.
28592         (c_strcasestr): Update.
28593         * lib/c-strstr.c: Include str-kmp.h.
28594         (knuth_morris_pratt): Remove function.
28595         (c_strcasestr): Update.
28596         * lib/mbscasestr.c: Include str-kmp.h.
28597         (knuth_morris_pratt_unibyte): Remove function.
28598         * lib/mbsstr.c: Include str-kmp.h.
28599         (knuth_morris_pratt_unibyte): Remove function.
28600         * lib/strcasestr.c: Include str-kmp.h.
28601         (knuth_morris_pratt): Remove function.
28602         (strcasestr): Update.
28603         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28604         * modules/c-strstr (Files): Likewise.
28605         * modules/mbscasestr (Files): Likewise.
28606         * modules/mbsstr (Files): Likewise.
28607         * modules/strcasestr (Files): Likewise.
28608         Suggested by Paul Eggert.
28609
28610 2007-12-30  Bruno Haible  <bruno@clisp.org>
28611
28612         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28613         defined.
28614
28615 2007-12-30  Bruno Haible  <bruno@clisp.org>
28616
28617         * lib/xmalloca.h: Include xalloc.h.
28618         (xnmalloca): New macro.
28619
28620 2007-12-30  Bruno Haible  <bruno@clisp.org>
28621
28622         * lib/malloca.h (nmalloca): New macro.
28623         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28624         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28625         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28626         knuth_morris_pratt_multibyte): Likewise.
28627         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28628         knuth_morris_pratt_multibyte): Likewise.
28629         * lib/memmem.c (knuth_morris_pratt): Likewise.
28630         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28631
28632 2007-12-25  Bruno Haible  <bruno@clisp.org>
28633
28634         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28635         * lib/glob.c: Don't include openat.h.
28636         (link_exists2_p): Add back the code that deals with the
28637         !GLOB_ALTDIRFUNC case.
28638         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28639         let it do the filename concatenation.
28640         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28641         * modules/glob (Depends-on): Remove openat.
28642
28643 2007-12-31  Bruno Haible  <bruno@clisp.org>
28644
28645         * modules/dirfd (License): Change to LGPLv2+.
28646         Approved by Jim Meyering.
28647
28648 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28649
28650         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28651         when multiplying M by sizeof (size_t).
28652
28653 2007-12-10  Martin Lambers  <marlam@marlam.de>
28654
28655         Override getpagesize on mingw.
28656         * lib/getpagesize.c: New file.
28657         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28658         * modules/getpagesize (Files): Add lib/getpagesize.c.
28659         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28661         REPLACE_GETPAGESIZE.
28662         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28663
28664 2007-12-25  Bruno Haible  <bruno@clisp.org>
28665
28666         * modules/localcharset (Notice): New field.
28667         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28668         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28669
28670 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28671             Bruno Haible  <bruno@clisp.org>
28672
28673         Avoid using the syntax symbol() in formatted documentation.
28674         * MODULES.html.sh (func_module): When replacing symbol() with a
28675         hyperlink, remove the parentheses. Show an error if some remain.
28676         Recognize and render the '...' syntax.
28677         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28678         Rework. Add paragraph about GCC's inlining.
28679         * doc/alloca.texi: Likewise.
28680         * doc/error.texi: Remove parentheses from symbol reference.
28681         * doc/gnulib-intro.texi: Likewise.
28682         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28683         * modules/fnmatch (Description): Reword to say "the ... function".
28684         * modules/full-read (Description): Likewise.
28685         * modules/full-write (Description): Likewise.
28686         * modules/safe-read (Description): Likewise.
28687         * modules/safe-write (Description): Likewise.
28688         * modules/strchrnul (Description): Likewise.
28689         * modules/trim (Description): Likewise.
28690         * modules/error (Description): Remove parentheses from symbol
28691         references.
28692         * modules/verror (Description): Likewise.
28693         Reported by Karl Berry.
28694
28695 2007-12-25  Bruno Haible  <bruno@clisp.org>
28696
28697         Fixup after 2007-10-16 commit.
28698         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28699
28700 2007-12-24  Bruno Haible  <bruno@clisp.org>
28701
28702         Make --enable-relocatable work with DESTDIR.
28703         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28704         to compute installdir from destprog.
28705         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28706         also set the RELOC_DESTDIR variable.
28707         Reported by Левашев Иван <octagram@bluebottle.com>.
28708
28709 2007-12-24  Bruno Haible  <bruno@clisp.org>
28710
28711         Fix link error due to xalloc_die().
28712         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28713         of xreadlink.
28714         * lib/relocwrapper.c: Update comments.
28715         * build-aux/install-reloc: Remove xreadlink.c from file list.
28716         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28717         xreadlink.c.
28718         Reported by Левашев Иван <octagram@bluebottle.com>.
28719
28720 2007-12-24  Bruno Haible  <bruno@clisp.org>
28721
28722         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28723         * lib/setenv.h: Remove file.
28724         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28725         lib/setenv.h.
28726         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28727         (Depends-on): Add stdlib.
28728         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28729         gl_FUNC_UNSETENV.
28730         (Include): Replace setenv.h with <stdlib.h>.
28731         * modules/unsetenv: New file.
28732         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28733         * lib/unsetenv.c: Include <stdlib.h> first.
28734         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28735         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28736         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28737         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28738         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28739         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28741         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28742         * doc/functions/unsetenv.texi: Update.
28743         * modules/xsetenv (Depends-on): Add unsetenv.
28744         * modules/getdate (Depends-on): Likewise.
28745         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28746         * lib/xsetenv.c: Don't include setenv.h.
28747         * lib/getdate.y: Likewise.
28748         * lib/relocwrapper.c: Likewise.
28749         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28750         (Depends-on): Add stdlib.
28751         * NEWS: Mention the changes.
28752         Reported by Левашев Иван <octagram@bluebottle.com>.
28753
28754 2007-12-23  Bruno Haible  <bruno@clisp.org>
28755
28756         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28757         indentation.
28758
28759 2007-12-23  Bruno Haible  <bruno@clisp.org>
28760
28761         * lib/c-strcasestr.c: Add more comments.
28762         * lib/c-strstr.c: Likewise.
28763         * lib/mbscasestr.c: Likewise.
28764         * lib/mbsstr.c: Likewise.
28765         * lib/strcasestr.c: Likewise.
28766         * lib/memmem.c: Likewise.
28767
28768 2007-12-23  Bruno Haible  <bruno@clisp.org>
28769
28770         * tests/test-memmem.c: Include <string.h> first.
28771
28772 2007-12-22  Bruno Haible  <bruno@clisp.org>
28773
28774         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28775         the contents of $testsbase.
28776         Reported by Ralf Wildenhues.
28777
28778 2007-12-22  Bruno Haible  <bruno@clisp.org>
28779
28780         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28781         two variables local_ldadd_before, local_ldadd_last.
28782
28783 2007-12-20  Eric Blake  <ebb9@byu.net>
28784
28785         Work around circular library issue when cross-compiling.
28786         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28787         that progname.o does not need to pull in rpl_memcmp.
28788
28789 2007-12-19  Eric Blake  <ebb9@byu.net>
28790
28791         Fix memmem to avoid O(n^2) worst-case complexity.
28792         * lib/memmem.c (knuth_morris_pratt): New function.
28793         (memmem): Use it if first few naive iterations fail.
28794         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28795         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28796         * modules/memchr (License): Likewise.
28797         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28798         malloca.
28799         * tests/test-memmem.c: Rewrite, borrowing ideas from
28800         test-mbsstr1.c; the old version wouldn't even compile!
28801         * modules/memmem-tests: New file.
28802         * lib/string.in.h (rpl_memmem): Add declaration.
28803         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28805         REPLACE_MEMMEM.
28806
28807 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28808
28809         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28810         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28811         before any system include files, and undef after them all.  This
28812         should fix a problem on VMS reported by John E. Malmberg in
28813         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28814
28815 2007-12-17  Eric Blake  <ebb9@byu.net>
28816
28817         Revert addition of verify, for BSD/OS.
28818         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28819         can't handle large files, for the sake of obsolete platforms.
28820         * modules/fseeko (Depends-on): Remove verify.
28821         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28822         * doc/functions/ftello.texi (ftello): Likewise.
28823         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28824         Reported by Larry Jones.
28825
28826 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28827
28828         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28829         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28830
28831 2007-12-17  Jim Meyering  <meyering@redhat.com>
28832
28833         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28834         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28835         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28836         * modules/getcwd (Depends-on): Add openat.
28837         Reported by Petr Salinger.
28838
28839 2007-12-17  Bruno Haible  <bruno@clisp.org>
28840
28841         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28842         avoid a segmentation fault of the configure test on x86_64 systems.
28843
28844 2007-12-15  Jim Meyering  <meyering@redhat.com>
28845
28846         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28847
28848 2007-12-13  Eric Blake  <ebb9@byu.net>
28849
28850         Another fseek test.
28851         * tests/test-fseek.c (main): Also test ungetc handling.
28852         * tests/test-fseeko.c (main): Likewise.
28853         * modules/fseeko (Depends-on): Add verify.
28854         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28855         large.
28856         Reported by Larry Jones.
28857
28858         Fix fseeko on mingw.
28859         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28860         seek.
28861
28862         Beef up fseek tests.
28863         * tests/test-fseek.c (main): Also test eof handling.
28864         * tests/test-fseeko.c (main): Likewise.
28865         Reported by Larry Jones.
28866
28867 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28868
28869         Fix fseeko on BSD-based platforms.
28870         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28871         successful seek.
28872
28873 2007-12-12  Eric Blake  <ebb9@byu.net>
28874
28875         Allow circular dependency of separate libtests.a
28876         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28877         when use_libtests.
28878
28879 2007-12-11  Eric Blake  <ebb9@byu.net>
28880
28881         Fix bug with -0.0L in previous patch.
28882         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28883         * tests/test-isnan.c (main): Also test on zeroes.
28884         * tests/test-isnanf.c (main): Likewise.
28885         * tests/test-isnanl.h (main): Likewise.
28886
28887         Detect pseudo-denormals on x86 even when cross-compiling.
28888         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28889         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28890         invalid bit patterns that happen to satisfy ==.
28891
28892         Avoid link failures with separate libtests.a.
28893         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28894         last, to satisfy circular dependencies.
28895
28896 2007-12-11  Eric Blake  <ebb9@byu.net>
28897         and Bruno Haible  <bruno@clisp.org>
28898
28899         Fix OpenBSD 4.0 <float.h> handling of long double.
28900         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28901         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28902         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28903
28904 2007-12-11  Jim Meyering  <meyering@redhat.com>
28905
28906         * users.txt: Add libvirt.
28907
28908         Support versions of autoconf prior to 2.59c.
28909         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28910         if it is not already defined.
28911
28912 2007-12-09  Bruno Haible  <bruno@clisp.org>
28913
28914         Let 'gnulib-tool --import' collect sources needed for the tests in
28915         tests/ rather than in lib/.
28916         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28917         argument. If true, add rules to generate libtests.a, and put libtests.a
28918         into $(LDADD). Consider source files in subdirectories and set
28919         uses_subdirs.
28920         (func_emit_initmacro_start, func_emit_initmacro_end,
28921         func_emit_initmacro_done): Pass all arguments explicitly.
28922         (func_import): Determine two module lists main_modules,
28923         testsrelated_modules. Determine use_libtests. Determine two variables
28924         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28925         instead of just sed_transform_lib_file. Determine two variables
28926         main_files and testsrelated_files. Compute 'files' as the union of
28927         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28928         func_add_or_update. In the generated gnulib-comp.m4, collect the
28929         object files for tests/ in different variables than those for lib/.
28930         Substitute LIBTESTS_LIBDEPS.
28931         (func_create_testdir): Combine the uses_subdirs results from
28932         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28933
28934 2007-12-09  Bruno Haible  <bruno@clisp.org>
28935
28936         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28937         the build-aux directory.
28938
28939 2007-12-09  Bruno Haible  <bruno@clisp.org>
28940
28941         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28942         introduced on 2006-09-09.
28943
28944 2007-12-07  Jim Meyering  <meyering@redhat.com>
28945
28946         Let these macros work also with autoconf-2.59.
28947         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28948         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28949         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28950
28951 2007-12-06  Jim Meyering  <meyering@redhat.com>
28952
28953         Avoid a configure-time syntax error in gl_FUNC_ACL.
28954         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28955         function in each branch, before testing the cache variable.
28956
28957 2007-12-04  Eric Blake  <ebb9@byu.net>
28958
28959         Make scripts executable.
28960         * build-aux/config.guess: Add execute permissions.
28961         * build-aux/config.sub: Likewise.
28962         * build-aux/gendocs.sh: Likewise.
28963
28964         Fix frexp on mingw.
28965         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28966         cross-compiling.
28967         * doc/functions/frexp.texi (frexp): Document the bug.
28968
28969         Make cygwin fseeko check more reliable.
28970         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28971         version numbers, rather than unrelated feature check.
28972         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28973         * doc/functions/ftello.texi (ftello): Likewise.
28974         Reported by Bruno Haible.
28975
28976         * m4/strerror.m4: Bump version number.
28977
28978 2007-12-03  Bruno Haible  <bruno@clisp.org>
28979
28980         * doc/functions/mprotect.texi: Mention the mingw problem.
28981
28982 2007-12-03  Eric Blake  <ebb9@byu.net>
28983
28984         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28985         REPLACE_STRERROR is initialized before this macro.
28986
28987 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28988
28989         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28990         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28991         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28992         put -lsec in even for programs other than 'ls'.  This fixes a problem
28993         for gettext reported by Bruno Haible in
28994         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28995         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28996         Add support for Solaris 10.  This isn't efficient, but should get the
28997         job done for now.
28998
28999 2007-12-03  James Youngman  <jay@gnu.org>
29000
29001         * doc/regexprops-generic.texi: change "an close-group" to "a
29002         close-group" and "illegal" to "not allowed".
29003
29004 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29005
29006         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
29007         pr_byname.h. Needed for the rare case when the maintainer has done
29008         "make maintainer-clean" in the source directory and then attempts a
29009         build outside the source directory.
29010         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
29011         scripts_byname.h.
29012
29013 2007-12-02  Martin Lambers <marlam@marlam.de>
29014             Bruno Haible  <bruno@clisp.org>
29015
29016         * lib/getpagesize.h: Remove file.
29017         * lib/unistd.in.h: Include declaration of getpagesize here.
29018         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
29019         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
29020         HAVE_SYS_PARAM_H.
29021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
29022         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29023         * modules/getpagesize (Files): Remove lib/getpagesize.h.
29024         (Depends-on): Add unistd.
29025         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29026         (Include): Use <unistd.h> instead of getpagesize.h.
29027         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
29028         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29029         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
29030         gl_GETPAGESIZE invocation, already handled by module dependency.
29031         * lib/pagealign_alloc.c: Don't include getpagesize.h.
29032
29033 2007-12-02  Bruno Haible  <bruno@clisp.org>
29034
29035         * modules/strings-tests: New file.
29036         * tests/test-strings.c: New file.
29037
29038         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
29039         * lib/strings.in.h: New file.
29040         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
29041         * m4/strings_h.m4: New file.
29042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
29043         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
29044         * modules/strings: New file.
29045         * modules/string (Makefile.am): Update.
29046         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
29047         Reported by Karl Berry.
29048
29049 2007-12-01  Eric Blake  <ebb9@byu.net>
29050
29051         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
29052         accomodate fix in cygwin 1.5.25.
29053
29054 2007-12-01  Jim Meyering  <meyering@redhat.com>
29055
29056         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
29057         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
29058         that would inhibit utf8-optimization of a regexp containing line-
29059         or buffer-anchors, e.g., `^', `$'.
29060
29061 2007-11-30  Bruno Haible  <bruno@clisp.org>
29062
29063         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
29064         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
29065         glthread_recursive_lock_init.
29066         * lib/lock.c (glthread_recursive_lock_init)
29067         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
29068         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29069
29070 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29071
29072         New function qset_acl, like set_acl but with syscall semantics.
29073         * lib/acl.h (qset_acl): New decl.
29074         * lib/acl.c (qset_acl): New function.
29075         (set_acl): Use new function.  Use more-consistent diagnostics.
29076
29077 2007-11-28  Jim Meyering  <meyering@redhat.com>
29078
29079         * modules/physmem (License): Change from GPL to LGPLv2+.
29080
29081 2007-11-26  Bruno Haible  <bruno@clisp.org>
29082
29083         * lib/vasnprintf.c (decode_long_double): Don't abort if the
29084         'long double' type has excess precision.
29085         Reported by Jim Meyering in
29086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
29087
29088 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29089
29090         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
29091         Sync from <http://gnu.org/licenses>.
29092         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
29093         with license text from same location.
29094         * doc/maintain.texi, doc/standards.texi:  Sync from
29095         <http://savannah.gnu.org/projects/gnustandards>.
29096
29097 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
29098         and Jim Meyering  <meyering@redhat.com>
29099
29100         Adjust getdate' grammar to accept a slightly more regular language.
29101         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
29102         Before, the former was rejected.
29103         * lib/getdate.y (digits_to_date_time): New function, factored
29104         out of ...
29105         (number): ...here.  Just call digits_to_date_time.
29106         (hybrid): New non-terminal to handle an <unsigned number,
29107         signed relative offset> sequence consistently.
29108
29109 2007-11-18  Jim Meyering  <meyering@redhat.com>
29110
29111         Pull my changes from coreutils:
29112         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
29113         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
29114         use of $gnulib_tool_option_extras, so that it's separated from the
29115         preceding argument.
29116
29117         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
29118         * build-aux/bootstrap (cp_mark_as_generated): Create any required
29119         parent destination directories before copying a file into place.
29120
29121 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29122
29123         bootstrap: work also with 4-argument variant of AC_INIT
29124         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
29125
29126 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29127
29128         Port test-getaddrinfo to Solaris.
29129         Problem reported by Bruno Haible in
29130         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
29131         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
29132         explanation of setting 'hints'.
29133         Don't reject an implementation merely because it returns EAI_SERVICE.
29134         (EAI_SERVICE): Define to 0 if not defined.
29135
29136 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29137
29138         The license of gnu-make and posix-shell is now "GPLed build tool".
29139         * modules/gnu-make (License): Likewise.
29140         * modules/posix-shell (License): Likewise.
29141
29142         New module posix-shell, for determining a POSIX shell
29143         or perhaps something that is close enough to a POSIX shell.
29144         * m4/posix-shell.m4: New file.
29145         * modules/posix-shell: New file.
29146
29147         * MODULES.html.sh: Mention new module.
29148
29149         New module gnu-make, for determining whether we're using GNU Make.
29150         * m4/gnu-make.m4: New file.
29151         * modules/gnu-make: New file.
29152         * MODULES.html.sh: Mention new module.
29153
29154 2007-11-14  Jim Meyering  <meyering@redhat.com>
29155
29156         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
29157         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
29158         use this macro to create a function _definition_.
29159         Remove useless "#undef ARGMATCH_DIE".
29160
29161 2007-11-14  Bruno Haible  <bruno@clisp.org>
29162
29163         * lib/config.charset: Update for OpenBSD 4.1.
29164         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
29165
29166 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
29167
29168         Document 64-bit #if problems in stdint.texi.
29169         * doc/headers/stdint.texi (stdint.h): Mention problems with
29170         64-bit-#if, and how to work around them.
29171
29172         Don't insist on 'long long int' support in the preprocessor.  It
29173         breaks too many things.  For example, PRIdMAX still uses a 'long
29174         long int' format with the latest Sun compiler, even though
29175         HAVE_LONG_LONG_INT isn't defined due to that compiler's
29176         preprocessor problem.  This causes the latest coreutils to dump
29177         core on Solaris 10 sparc with the Sun C compiler.
29178         Instead, fix the 2007-10-16 problem in a different way, by evaluating
29179         the troublesome expressions at configure-time, not at #if-time.
29180         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
29181         preprocessor.
29182         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
29183         compile-time C checks, done at 'configure'-time.
29184         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
29185         * modules/inttypes (Makefile): Substitute the new symbols that
29186         gl_INTTYPES_H now generates.
29187         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
29188
29189 2007-11-12  Bruno Haible  <bruno@clisp.org>
29190
29191         Tests for Unicode character classification functions.
29192
29193         * modules/unictype/bidicategory-byname-tests: New file.
29194         * modules/unictype/bidicategory-name-tests: New file.
29195         * modules/unictype/bidicategory-of-tests: New file.
29196         * modules/unictype/bidicategory-test-tests: New file.
29197         * modules/unictype/block-list-tests: New file.
29198         * modules/unictype/block-of-tests: New file.
29199         * modules/unictype/block-test-tests: New file.
29200         * modules/unictype/category-C-tests: New file.
29201         * modules/unictype/category-Cc-tests: New file.
29202         * modules/unictype/category-Cf-tests: New file.
29203         * modules/unictype/category-Cn-tests: New file.
29204         * modules/unictype/category-Co-tests: New file.
29205         * modules/unictype/category-Cs-tests: New file.
29206         * modules/unictype/category-L-tests: New file.
29207         * modules/unictype/category-Ll-tests: New file.
29208         * modules/unictype/category-Lm-tests: New file.
29209         * modules/unictype/category-Lo-tests: New file.
29210         * modules/unictype/category-Lt-tests: New file.
29211         * modules/unictype/category-Lu-tests: New file.
29212         * modules/unictype/category-M-tests: New file.
29213         * modules/unictype/category-Mc-tests: New file.
29214         * modules/unictype/category-Me-tests: New file.
29215         * modules/unictype/category-Mn-tests: New file.
29216         * modules/unictype/category-N-tests: New file.
29217         * modules/unictype/category-Nd-tests: New file.
29218         * modules/unictype/category-Nl-tests: New file.
29219         * modules/unictype/category-No-tests: New file.
29220         * modules/unictype/category-P-tests: New file.
29221         * modules/unictype/category-Pc-tests: New file.
29222         * modules/unictype/category-Pd-tests: New file.
29223         * modules/unictype/category-Pe-tests: New file.
29224         * modules/unictype/category-Pf-tests: New file.
29225         * modules/unictype/category-Pi-tests: New file.
29226         * modules/unictype/category-Po-tests: New file.
29227         * modules/unictype/category-Ps-tests: New file.
29228         * modules/unictype/category-S-tests: New file.
29229         * modules/unictype/category-Sc-tests: New file.
29230         * modules/unictype/category-Sk-tests: New file.
29231         * modules/unictype/category-Sm-tests: New file.
29232         * modules/unictype/category-So-tests: New file.
29233         * modules/unictype/category-Z-tests: New file.
29234         * modules/unictype/category-Zl-tests: New file.
29235         * modules/unictype/category-Zp-tests: New file.
29236         * modules/unictype/category-Zs-tests: New file.
29237         * modules/unictype/category-and-not-tests: New file.
29238         * modules/unictype/category-and-tests: New file.
29239         * modules/unictype/category-byname-tests: New file.
29240         * modules/unictype/category-name-tests: New file.
29241         * modules/unictype/category-none-tests: New file.
29242         * modules/unictype/category-of-tests: New file.
29243         * modules/unictype/category-or-tests: New file.
29244         * modules/unictype/category-test-withtable-tests: New file.
29245         * modules/unictype/combining-class-tests: New file.
29246         * modules/unictype/ctype-alnum-tests: New file.
29247         * modules/unictype/ctype-alpha-tests: New file.
29248         * modules/unictype/ctype-blank-tests: New file.
29249         * modules/unictype/ctype-cntrl-tests: New file.
29250         * modules/unictype/ctype-digit-tests: New file.
29251         * modules/unictype/ctype-graph-tests: New file.
29252         * modules/unictype/ctype-lower-tests: New file.
29253         * modules/unictype/ctype-print-tests: New file.
29254         * modules/unictype/ctype-punct-tests: New file.
29255         * modules/unictype/ctype-space-tests: New file.
29256         * modules/unictype/ctype-upper-tests: New file.
29257         * modules/unictype/ctype-xdigit-tests: New file.
29258         * modules/unictype/decimal-digit-tests: New file.
29259         * modules/unictype/digit-tests: New file.
29260         * modules/unictype/mirror-tests: New file.
29261         * modules/unictype/numeric-tests: New file.
29262         * modules/unictype/property-alphabetic-tests: New file.
29263         * modules/unictype/property-ascii-hex-digit-tests: New file.
29264         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29265         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29266         * modules/unictype/property-bidi-block-separator-tests: New file.
29267         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29268         * modules/unictype/property-bidi-common-separator-tests: New file.
29269         * modules/unictype/property-bidi-control-tests: New file.
29270         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29271         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29272         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29273         * modules/unictype/property-bidi-european-digit-tests: New file.
29274         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29275         * modules/unictype/property-bidi-left-to-right-tests: New file.
29276         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29277         * modules/unictype/property-bidi-other-neutral-tests: New file.
29278         * modules/unictype/property-bidi-pdf-tests: New file.
29279         * modules/unictype/property-bidi-segment-separator-tests: New file.
29280         * modules/unictype/property-bidi-whitespace-tests: New file.
29281         * modules/unictype/property-byname-tests: New file.
29282         * modules/unictype/property-combining-tests: New file.
29283         * modules/unictype/property-composite-tests: New file.
29284         * modules/unictype/property-currency-symbol-tests: New file.
29285         * modules/unictype/property-dash-tests: New file.
29286         * modules/unictype/property-decimal-digit-tests: New file.
29287         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29288         * modules/unictype/property-deprecated-tests: New file.
29289         * modules/unictype/property-diacritic-tests: New file.
29290         * modules/unictype/property-extender-tests: New file.
29291         * modules/unictype/property-format-control-tests: New file.
29292         * modules/unictype/property-grapheme-base-tests: New file.
29293         * modules/unictype/property-grapheme-extend-tests: New file.
29294         * modules/unictype/property-grapheme-link-tests: New file.
29295         * modules/unictype/property-hex-digit-tests: New file.
29296         * modules/unictype/property-hyphen-tests: New file.
29297         * modules/unictype/property-id-continue-tests: New file.
29298         * modules/unictype/property-id-start-tests: New file.
29299         * modules/unictype/property-ideographic-tests: New file.
29300         * modules/unictype/property-ids-binary-operator-tests: New file.
29301         * modules/unictype/property-ids-trinary-operator-tests: New file.
29302         * modules/unictype/property-ignorable-control-tests: New file.
29303         * modules/unictype/property-iso-control-tests: New file.
29304         * modules/unictype/property-join-control-tests: New file.
29305         * modules/unictype/property-left-of-pair-tests: New file.
29306         * modules/unictype/property-line-separator-tests: New file.
29307         * modules/unictype/property-logical-order-exception-tests: New file.
29308         * modules/unictype/property-lowercase-tests: New file.
29309         * modules/unictype/property-math-tests: New file.
29310         * modules/unictype/property-non-break-tests: New file.
29311         * modules/unictype/property-not-a-character-tests: New file.
29312         * modules/unictype/property-numeric-tests: New file.
29313         * modules/unictype/property-other-alphabetic-tests: New file.
29314         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29315         * modules/unictype/property-other-grapheme-extend-tests: New file.
29316         * modules/unictype/property-other-id-continue-tests: New file.
29317         * modules/unictype/property-other-id-start-tests: New file.
29318         * modules/unictype/property-other-lowercase-tests: New file.
29319         * modules/unictype/property-other-math-tests: New file.
29320         * modules/unictype/property-other-uppercase-tests: New file.
29321         * modules/unictype/property-paired-punctuation-tests: New file.
29322         * modules/unictype/property-paragraph-separator-tests: New file.
29323         * modules/unictype/property-pattern-syntax-tests: New file.
29324         * modules/unictype/property-pattern-white-space-tests: New file.
29325         * modules/unictype/property-private-use-tests: New file.
29326         * modules/unictype/property-punctuation-tests: New file.
29327         * modules/unictype/property-quotation-mark-tests: New file.
29328         * modules/unictype/property-radical-tests: New file.
29329         * modules/unictype/property-sentence-terminal-tests: New file.
29330         * modules/unictype/property-soft-dotted-tests: New file.
29331         * modules/unictype/property-space-tests: New file.
29332         * modules/unictype/property-terminal-punctuation-tests: New file.
29333         * modules/unictype/property-test-tests: New file.
29334         * modules/unictype/property-titlecase-tests: New file.
29335         * modules/unictype/property-unassigned-code-value-tests: New file.
29336         * modules/unictype/property-unified-ideograph-tests: New file.
29337         * modules/unictype/property-uppercase-tests: New file.
29338         * modules/unictype/property-variation-selector-tests: New file.
29339         * modules/unictype/property-white-space-tests: New file.
29340         * modules/unictype/property-xid-continue-tests: New file.
29341         * modules/unictype/property-xid-start-tests: New file.
29342         * modules/unictype/property-zero-width-tests: New file.
29343         * modules/unictype/scripts-tests: New file.
29344         * modules/unictype/syntax-c-ident-tests: New file.
29345         * modules/unictype/syntax-c-whitespace-tests: New file.
29346         * modules/unictype/syntax-java-ident-tests: New file.
29347         * modules/unictype/syntax-java-whitespace-tests: New file.
29348         * tests/unictype/test-bidi_byname.c: New file.
29349         * tests/unictype/test-bidi_name.c: New file.
29350         * tests/unictype/test-bidi_of.c: New file.
29351         * tests/unictype/test-bidi_test.c: New file.
29352         * tests/unictype/test-block_list.c: New file.
29353         * tests/unictype/test-block_of.c: New file.
29354         * tests/unictype/test-block_test.c: New file.
29355         * tests/unictype/test-categ_and.c: New file.
29356         * tests/unictype/test-categ_and_not.c: New file.
29357         * tests/unictype/test-categ_byname.c: New file.
29358         * tests/unictype/test-categ_name.c: New file.
29359         * tests/unictype/test-categ_none.c: New file.
29360         * tests/unictype/test-categ_of.c: New file.
29361         * tests/unictype/test-categ_or.c: New file.
29362         * tests/unictype/test-categ_test_withtable.c: New file.
29363         * tests/unictype/test-combining.c: New file.
29364         * tests/unictype/test-decdigit.c: New file.
29365         * tests/unictype/test-digit.c: New file.
29366         * tests/unictype/test-mirror.c: New file.
29367         * tests/unictype/test-numeric.c: New file.
29368         * tests/unictype/test-pr_byname.c: New file.
29369         * tests/unictype/test-pr_test.c: New file.
29370         * tests/unictype/test-predicate-part1.h: New file.
29371         * tests/unictype/test-predicate-part2.h: New file.
29372         * tests/unictype/test-scripts.c: New file.
29373         * tests/unictype/test-sy_c_ident.c: New file.
29374         * tests/unictype/test-sy_java_ident.c: New file.
29375
29376         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29377         for Unicode 5.0.0.
29378         * tests/unictype/test-categ_Cc.c: Likewise.
29379         * tests/unictype/test-categ_Cf.c: Likewise.
29380         * tests/unictype/test-categ_Cn.c: Likewise.
29381         * tests/unictype/test-categ_Co.c: Likewise.
29382         * tests/unictype/test-categ_Cs.c: Likewise.
29383         * tests/unictype/test-categ_L.c: Likewise.
29384         * tests/unictype/test-categ_Ll.c: Likewise.
29385         * tests/unictype/test-categ_Lm.c: Likewise.
29386         * tests/unictype/test-categ_Lo.c: Likewise.
29387         * tests/unictype/test-categ_Lt.c: Likewise.
29388         * tests/unictype/test-categ_Lu.c: Likewise.
29389         * tests/unictype/test-categ_M.c: Likewise.
29390         * tests/unictype/test-categ_Mc.c: Likewise.
29391         * tests/unictype/test-categ_Me.c: Likewise.
29392         * tests/unictype/test-categ_Mn.c: Likewise.
29393         * tests/unictype/test-categ_N.c: Likewise.
29394         * tests/unictype/test-categ_Nd.c: Likewise.
29395         * tests/unictype/test-categ_Nl.c: Likewise.
29396         * tests/unictype/test-categ_No.c: Likewise.
29397         * tests/unictype/test-categ_P.c: Likewise.
29398         * tests/unictype/test-categ_Pc.c: Likewise.
29399         * tests/unictype/test-categ_Pd.c: Likewise.
29400         * tests/unictype/test-categ_Pe.c: Likewise.
29401         * tests/unictype/test-categ_Pf.c: Likewise.
29402         * tests/unictype/test-categ_Pi.c: Likewise.
29403         * tests/unictype/test-categ_Po.c: Likewise.
29404         * tests/unictype/test-categ_Ps.c: Likewise.
29405         * tests/unictype/test-categ_S.c: Likewise.
29406         * tests/unictype/test-categ_Sc.c: Likewise.
29407         * tests/unictype/test-categ_Sk.c: Likewise.
29408         * tests/unictype/test-categ_Sm.c: Likewise.
29409         * tests/unictype/test-categ_So.c: Likewise.
29410         * tests/unictype/test-categ_Z.c: Likewise.
29411         * tests/unictype/test-categ_Zl.c: Likewise.
29412         * tests/unictype/test-categ_Zp.c: Likewise.
29413         * tests/unictype/test-categ_Zs.c: Likewise.
29414         * tests/unictype/test-ctype_alnum.c: Likewise.
29415         * tests/unictype/test-ctype_alpha.c: Likewise.
29416         * tests/unictype/test-ctype_blank.c: Likewise.
29417         * tests/unictype/test-ctype_cntrl.c: Likewise.
29418         * tests/unictype/test-ctype_digit.c: Likewise.
29419         * tests/unictype/test-ctype_graph.c: Likewise.
29420         * tests/unictype/test-ctype_lower.c: Likewise.
29421         * tests/unictype/test-ctype_print.c: Likewise.
29422         * tests/unictype/test-ctype_punct.c: Likewise.
29423         * tests/unictype/test-ctype_space.c: Likewise.
29424         * tests/unictype/test-ctype_upper.c: Likewise.
29425         * tests/unictype/test-ctype_xdigit.c: Likewise.
29426         * tests/unictype/test-decdigit.h: Likewise.
29427         * tests/unictype/test-digit.h: Likewise.
29428         * tests/unictype/test-numeric.h: Likewise.
29429         * tests/unictype/test-pr_alphabetic.c: Likewise.
29430         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29431         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29432         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29433         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29434         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29435         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29436         * tests/unictype/test-pr_bidi_control.c: Likewise.
29437         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29438         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29439         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29440         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29441         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29442         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29443         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29444         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29445         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29446         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29447         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29448         * tests/unictype/test-pr_combining.c: Likewise.
29449         * tests/unictype/test-pr_composite.c: Likewise.
29450         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29451         * tests/unictype/test-pr_dash.c: Likewise.
29452         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29453         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29454         * tests/unictype/test-pr_deprecated.c: Likewise.
29455         * tests/unictype/test-pr_diacritic.c: Likewise.
29456         * tests/unictype/test-pr_extender.c: Likewise.
29457         * tests/unictype/test-pr_format_control.c: Likewise.
29458         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29459         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29460         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29461         * tests/unictype/test-pr_hex_digit.c: Likewise.
29462         * tests/unictype/test-pr_hyphen.c: Likewise.
29463         * tests/unictype/test-pr_id_continue.c: Likewise.
29464         * tests/unictype/test-pr_id_start.c: Likewise.
29465         * tests/unictype/test-pr_ideographic.c: Likewise.
29466         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29467         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29468         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29469         * tests/unictype/test-pr_iso_control.c: Likewise.
29470         * tests/unictype/test-pr_join_control.c: Likewise.
29471         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29472         * tests/unictype/test-pr_line_separator.c: Likewise.
29473         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29474         * tests/unictype/test-pr_lowercase.c: Likewise.
29475         * tests/unictype/test-pr_math.c: Likewise.
29476         * tests/unictype/test-pr_non_break.c: Likewise.
29477         * tests/unictype/test-pr_not_a_character.c: Likewise.
29478         * tests/unictype/test-pr_numeric.c: Likewise.
29479         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29480         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29481         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29482         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29483         * tests/unictype/test-pr_other_id_start.c: Likewise.
29484         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29485         * tests/unictype/test-pr_other_math.c: Likewise.
29486         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29487         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29488         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29489         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29490         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29491         * tests/unictype/test-pr_private_use.c: Likewise.
29492         * tests/unictype/test-pr_punctuation.c: Likewise.
29493         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29494         * tests/unictype/test-pr_radical.c: Likewise.
29495         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29496         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29497         * tests/unictype/test-pr_space.c: Likewise.
29498         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29499         * tests/unictype/test-pr_titlecase.c: Likewise.
29500         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29501         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29502         * tests/unictype/test-pr_uppercase.c: Likewise.
29503         * tests/unictype/test-pr_variation_selector.c: Likewise.
29504         * tests/unictype/test-pr_white_space.c: Likewise.
29505         * tests/unictype/test-pr_xid_continue.c: Likewise.
29506         * tests/unictype/test-pr_xid_start.c: Likewise.
29507         * tests/unictype/test-pr_zero_width.c: Likewise.
29508         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29509         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29510
29511 2007-11-12  Bruno Haible  <bruno@clisp.org>
29512
29513         Unicode character classification functions.
29514         * lib/unictype.h: New file.
29515         * modules/unictype/base: New file.
29516         * modules/unictype/category-L: New file.
29517         * modules/unictype/category-Lu: New file.
29518         * modules/unictype/category-Ll: New file.
29519         * modules/unictype/category-Lt: New file.
29520         * modules/unictype/category-Lm: New file.
29521         * modules/unictype/category-Lo: New file.
29522         * modules/unictype/category-M: New file.
29523         * modules/unictype/category-Mn: New file.
29524         * modules/unictype/category-Mc: New file.
29525         * modules/unictype/category-Me: New file.
29526         * modules/unictype/category-N: New file.
29527         * modules/unictype/category-Nd: New file.
29528         * modules/unictype/category-Nl: New file.
29529         * modules/unictype/category-No: New file.
29530         * modules/unictype/category-P: New file.
29531         * modules/unictype/category-Pc: New file.
29532         * modules/unictype/category-Pd: New file.
29533         * modules/unictype/category-Ps: New file.
29534         * modules/unictype/category-Pe: New file.
29535         * modules/unictype/category-Pi: New file.
29536         * modules/unictype/category-Pf: New file.
29537         * modules/unictype/category-Po: New file.
29538         * modules/unictype/category-S: New file.
29539         * modules/unictype/category-Sm: New file.
29540         * modules/unictype/category-Sc: New file.
29541         * modules/unictype/category-Sk: New file.
29542         * modules/unictype/category-So: New file.
29543         * modules/unictype/category-Z: New file.
29544         * modules/unictype/category-Zs: New file.
29545         * modules/unictype/category-Zl: New file.
29546         * modules/unictype/category-Zp: New file.
29547         * modules/unictype/category-C: New file.
29548         * modules/unictype/category-Cc: New file.
29549         * modules/unictype/category-Cf: New file.
29550         * modules/unictype/category-Cs: New file.
29551         * modules/unictype/category-Co: New file.
29552         * modules/unictype/category-Cn: New file.
29553         * modules/unictype/category-or: New file.
29554         * modules/unictype/category-of: New file.
29555         * modules/unictype/category-test: New file.
29556         * modules/unictype/category-test-withtable: New file.
29557         * modules/unictype/category-byname: New file.
29558         * modules/unictype/category-none: New file.
29559         * modules/unictype/category-and: New file.
29560         * modules/unictype/category-and-not: New file.
29561         * modules/unictype/category-name: New file.
29562         * modules/unictype/combining-class: New file.
29563         * modules/unictype/category-all: New file.
29564         * modules/unictype/bidicategory-all: New file.
29565         * modules/unictype/bidicategory-byname: New file.
29566         * modules/unictype/bidicategory-name: New file.
29567         * modules/unictype/bidicategory-of: New file.
29568         * modules/unictype/bidicategory-test: New file.
29569         * modules/unictype/decimal-digit: New file.
29570         * modules/unictype/digit: New file.
29571         * modules/unictype/numeric: New file.
29572         * modules/unictype/mirror: New file.
29573         * modules/unictype/property-white-space: New file.
29574         * modules/unictype/property-alphabetic: New file.
29575         * modules/unictype/property-other-alphabetic: New file.
29576         * modules/unictype/property-not-a-character: New file.
29577         * modules/unictype/property-default-ignorable-code-point: New file.
29578         * modules/unictype/property-other-default-ignorable-code-point: New
29579         file.
29580         * modules/unictype/property-deprecated: New file.
29581         * modules/unictype/property-logical-order-exception: New file.
29582         * modules/unictype/property-variation-selector: New file.
29583         * modules/unictype/property-private-use: New file.
29584         * modules/unictype/property-unassigned-code-value: New file.
29585         * modules/unictype/property-uppercase: New file.
29586         * modules/unictype/property-other-uppercase: New file.
29587         * modules/unictype/property-lowercase: New file.
29588         * modules/unictype/property-other-lowercase: New file.
29589         * modules/unictype/property-titlecase: New file.
29590         * modules/unictype/property-soft-dotted: New file.
29591         * modules/unictype/property-id-start: New file.
29592         * modules/unictype/property-other-id-start: New file.
29593         * modules/unictype/property-id-continue: New file.
29594         * modules/unictype/property-other-id-continue: New file.
29595         * modules/unictype/property-xid-start: New file.
29596         * modules/unictype/property-xid-continue: New file.
29597         * modules/unictype/property-pattern-white-space: New file.
29598         * modules/unictype/property-pattern-syntax: New file.
29599         * modules/unictype/property-join-control: New file.
29600         * modules/unictype/property-grapheme-base: New file.
29601         * modules/unictype/property-grapheme-extend: New file.
29602         * modules/unictype/property-other-grapheme-extend: New file.
29603         * modules/unictype/property-grapheme-link: New file.
29604         * modules/unictype/property-bidi-control: New file.
29605         * modules/unictype/property-bidi-left-to-right: New file.
29606         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29607         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29608         * modules/unictype/property-bidi-european-digit: New file.
29609         * modules/unictype/property-bidi-eur-num-separator: New file.
29610         * modules/unictype/property-bidi-eur-num-terminator: New file.
29611         * modules/unictype/property-bidi-arabic-digit: New file.
29612         * modules/unictype/property-bidi-common-separator: New file.
29613         * modules/unictype/property-bidi-block-separator: New file.
29614         * modules/unictype/property-bidi-segment-separator: New file.
29615         * modules/unictype/property-bidi-whitespace: New file.
29616         * modules/unictype/property-bidi-non-spacing-mark: New file.
29617         * modules/unictype/property-bidi-boundary-neutral: New file.
29618         * modules/unictype/property-bidi-pdf: New file.
29619         * modules/unictype/property-bidi-embedding-or-override: New file.
29620         * modules/unictype/property-bidi-other-neutral: New file.
29621         * modules/unictype/property-hex-digit: New file.
29622         * modules/unictype/property-ascii-hex-digit: New file.
29623         * modules/unictype/property-ideographic: New file.
29624         * modules/unictype/property-unified-ideograph: New file.
29625         * modules/unictype/property-radical: New file.
29626         * modules/unictype/property-ids-binary-operator: New file.
29627         * modules/unictype/property-ids-trinary-operator: New file.
29628         * modules/unictype/property-zero-width: New file.
29629         * modules/unictype/property-space: New file.
29630         * modules/unictype/property-non-break: New file.
29631         * modules/unictype/property-iso-control: New file.
29632         * modules/unictype/property-format-control: New file.
29633         * modules/unictype/property-dash: New file.
29634         * modules/unictype/property-hyphen: New file.
29635         * modules/unictype/property-punctuation: New file.
29636         * modules/unictype/property-line-separator: New file.
29637         * modules/unictype/property-paragraph-separator: New file.
29638         * modules/unictype/property-quotation-mark: New file.
29639         * modules/unictype/property-sentence-terminal: New file.
29640         * modules/unictype/property-terminal-punctuation: New file.
29641         * modules/unictype/property-currency-symbol: New file.
29642         * modules/unictype/property-math: New file.
29643         * modules/unictype/property-other-math: New file.
29644         * modules/unictype/property-paired-punctuation: New file.
29645         * modules/unictype/property-left-of-pair: New file.
29646         * modules/unictype/property-combining: New file.
29647         * modules/unictype/property-composite: New file.
29648         * modules/unictype/property-decimal-digit: New file.
29649         * modules/unictype/property-numeric: New file.
29650         * modules/unictype/property-diacritic: New file.
29651         * modules/unictype/property-extender: New file.
29652         * modules/unictype/property-ignorable-control: New file.
29653         * modules/unictype/property-test: New file.
29654         * modules/unictype/property-byname: New file.
29655         * modules/unictype/property-all: New file.
29656         * modules/unictype/scripts: New file.
29657         * modules/unictype/scripts-all: New file.
29658         * modules/unictype/block-of: New file.
29659         * modules/unictype/block-test: New file.
29660         * modules/unictype/block-list: New file.
29661         * modules/unictype/block-all: New file.
29662         * modules/unictype/syntax-c-whitespace: New file.
29663         * modules/unictype/syntax-java-whitespace: New file.
29664         * modules/unictype/syntax-c-ident: New file.
29665         * modules/unictype/syntax-java-ident: New file.
29666         * modules/unictype/ctype-alnum: New file.
29667         * modules/unictype/ctype-alpha: New file.
29668         * modules/unictype/ctype-cntrl: New file.
29669         * modules/unictype/ctype-digit: New file.
29670         * modules/unictype/ctype-graph: New file.
29671         * modules/unictype/ctype-lower: New file.
29672         * modules/unictype/ctype-print: New file.
29673         * modules/unictype/ctype-punct: New file.
29674         * modules/unictype/ctype-space: New file.
29675         * modules/unictype/ctype-upper: New file.
29676         * modules/unictype/ctype-xdigit: New file.
29677         * modules/unictype/ctype-blank: New file.
29678         * lib/unictype/bidi_byname.c: New file.
29679         * lib/unictype/bidi_name.c: New file.
29680         * lib/unictype/bidi_of.c: New file.
29681         * lib/unictype/bidi_test.c: New file.
29682         * lib/unictype/bitmap.h: New file.
29683         * lib/unictype/block_test.c: New file.
29684         * lib/unictype/blocks.c: New file.
29685         * lib/unictype/categ_C.c: New file.
29686         * lib/unictype/categ_Cc.c: New file.
29687         * lib/unictype/categ_Cf.c: New file.
29688         * lib/unictype/categ_Cn.c: New file.
29689         * lib/unictype/categ_Co.c: New file.
29690         * lib/unictype/categ_Cs.c: New file.
29691         * lib/unictype/categ_L.c: New file.
29692         * lib/unictype/categ_Ll.c: New file.
29693         * lib/unictype/categ_Lm.c: New file.
29694         * lib/unictype/categ_Lo.c: New file.
29695         * lib/unictype/categ_Lt.c: New file.
29696         * lib/unictype/categ_Lu.c: New file.
29697         * lib/unictype/categ_M.c: New file.
29698         * lib/unictype/categ_Mc.c: New file.
29699         * lib/unictype/categ_Me.c: New file.
29700         * lib/unictype/categ_Mn.c: New file.
29701         * lib/unictype/categ_N.c: New file.
29702         * lib/unictype/categ_Nd.c: New file.
29703         * lib/unictype/categ_Nl.c: New file.
29704         * lib/unictype/categ_No.c: New file.
29705         * lib/unictype/categ_P.c: New file.
29706         * lib/unictype/categ_Pc.c: New file.
29707         * lib/unictype/categ_Pd.c: New file.
29708         * lib/unictype/categ_Pe.c: New file.
29709         * lib/unictype/categ_Pf.c: New file.
29710         * lib/unictype/categ_Pi.c: New file.
29711         * lib/unictype/categ_Po.c: New file.
29712         * lib/unictype/categ_Ps.c: New file.
29713         * lib/unictype/categ_S.c: New file.
29714         * lib/unictype/categ_Sc.c: New file.
29715         * lib/unictype/categ_Sk.c: New file.
29716         * lib/unictype/categ_Sm.c: New file.
29717         * lib/unictype/categ_So.c: New file.
29718         * lib/unictype/categ_Z.c: New file.
29719         * lib/unictype/categ_Zl.c: New file.
29720         * lib/unictype/categ_Zp.c: New file.
29721         * lib/unictype/categ_Zs.c: New file.
29722         * lib/unictype/categ_and.c: New file.
29723         * lib/unictype/categ_and_not.c: New file.
29724         * lib/unictype/categ_byname.c: New file.
29725         * lib/unictype/categ_name.c: New file.
29726         * lib/unictype/categ_none.c: New file.
29727         * lib/unictype/categ_of.c: New file.
29728         * lib/unictype/categ_or.c: New file.
29729         * lib/unictype/categ_test.c: New file.
29730         * lib/unictype/combining.c: New file.
29731         * lib/unictype/ctype_alnum.c: New file.
29732         * lib/unictype/ctype_alpha.c: New file.
29733         * lib/unictype/ctype_blank.c: New file.
29734         * lib/unictype/ctype_cntrl.c: New file.
29735         * lib/unictype/ctype_digit.c: New file.
29736         * lib/unictype/ctype_graph.c: New file.
29737         * lib/unictype/ctype_lower.c: New file.
29738         * lib/unictype/ctype_print.c: New file.
29739         * lib/unictype/ctype_punct.c: New file.
29740         * lib/unictype/ctype_space.c: New file.
29741         * lib/unictype/ctype_upper.c: New file.
29742         * lib/unictype/ctype_xdigit.c: New file.
29743         * lib/unictype/decdigit.c: New file.
29744         * lib/unictype/digit.c: New file.
29745         * lib/unictype/identsyntaxmap.h: New file.
29746         * lib/unictype/mirror.c: New file.
29747         * lib/unictype/numeric.c: New file.
29748         * lib/unictype/pr_alphabetic.c: New file.
29749         * lib/unictype/pr_ascii_hex_digit.c: New file.
29750         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29751         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29752         * lib/unictype/pr_bidi_block_separator.c: New file.
29753         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29754         * lib/unictype/pr_bidi_common_separator.c: New file.
29755         * lib/unictype/pr_bidi_control.c: New file.
29756         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29757         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29758         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29759         * lib/unictype/pr_bidi_european_digit.c: New file.
29760         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29761         * lib/unictype/pr_bidi_left_to_right.c: New file.
29762         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29763         * lib/unictype/pr_bidi_other_neutral.c: New file.
29764         * lib/unictype/pr_bidi_pdf.c: New file.
29765         * lib/unictype/pr_bidi_segment_separator.c: New file.
29766         * lib/unictype/pr_bidi_whitespace.c: New file.
29767         * lib/unictype/pr_byname.c: New file.
29768         * lib/unictype/pr_byname.gperf: New file.
29769         * lib/unictype/pr_combining.c: New file.
29770         * lib/unictype/pr_composite.c: New file.
29771         * lib/unictype/pr_currency_symbol.c: New file.
29772         * lib/unictype/pr_dash.c: New file.
29773         * lib/unictype/pr_decimal_digit.c: New file.
29774         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29775         * lib/unictype/pr_deprecated.c: New file.
29776         * lib/unictype/pr_diacritic.c: New file.
29777         * lib/unictype/pr_extender.c: New file.
29778         * lib/unictype/pr_format_control.c: New file.
29779         * lib/unictype/pr_grapheme_base.c: New file.
29780         * lib/unictype/pr_grapheme_extend.c: New file.
29781         * lib/unictype/pr_grapheme_link.c: New file.
29782         * lib/unictype/pr_hex_digit.c: New file.
29783         * lib/unictype/pr_hyphen.c: New file.
29784         * lib/unictype/pr_id_continue.c: New file.
29785         * lib/unictype/pr_id_start.c: New file.
29786         * lib/unictype/pr_ideographic.c: New file.
29787         * lib/unictype/pr_ids_binary_operator.c: New file.
29788         * lib/unictype/pr_ids_trinary_operator.c: New file.
29789         * lib/unictype/pr_ignorable_control.c: New file.
29790         * lib/unictype/pr_iso_control.c: New file.
29791         * lib/unictype/pr_join_control.c: New file.
29792         * lib/unictype/pr_left_of_pair.c: New file.
29793         * lib/unictype/pr_line_separator.c: New file.
29794         * lib/unictype/pr_logical_order_exception.c: New file.
29795         * lib/unictype/pr_lowercase.c: New file.
29796         * lib/unictype/pr_math.c: New file.
29797         * lib/unictype/pr_non_break.c: New file.
29798         * lib/unictype/pr_not_a_character.c: New file.
29799         * lib/unictype/pr_numeric.c: New file.
29800         * lib/unictype/pr_other_alphabetic.c: New file.
29801         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29802         * lib/unictype/pr_other_grapheme_extend.c: New file.
29803         * lib/unictype/pr_other_id_continue.c: New file.
29804         * lib/unictype/pr_other_id_start.c: New file.
29805         * lib/unictype/pr_other_lowercase.c: New file.
29806         * lib/unictype/pr_other_math.c: New file.
29807         * lib/unictype/pr_other_uppercase.c: New file.
29808         * lib/unictype/pr_paired_punctuation.c: New file.
29809         * lib/unictype/pr_paragraph_separator.c: New file.
29810         * lib/unictype/pr_pattern_syntax.c: New file.
29811         * lib/unictype/pr_pattern_white_space.c: New file.
29812         * lib/unictype/pr_private_use.c: New file.
29813         * lib/unictype/pr_punctuation.c: New file.
29814         * lib/unictype/pr_quotation_mark.c: New file.
29815         * lib/unictype/pr_radical.c: New file.
29816         * lib/unictype/pr_sentence_terminal.c: New file.
29817         * lib/unictype/pr_soft_dotted.c: New file.
29818         * lib/unictype/pr_space.c: New file.
29819         * lib/unictype/pr_terminal_punctuation.c: New file.
29820         * lib/unictype/pr_test.c: New file.
29821         * lib/unictype/pr_titlecase.c: New file.
29822         * lib/unictype/pr_unassigned_code_value.c: New file.
29823         * lib/unictype/pr_unified_ideograph.c: New file.
29824         * lib/unictype/pr_uppercase.c: New file.
29825         * lib/unictype/pr_variation_selector.c: New file.
29826         * lib/unictype/pr_white_space.c: New file.
29827         * lib/unictype/pr_xid_continue.c: New file.
29828         * lib/unictype/pr_xid_start.c: New file.
29829         * lib/unictype/pr_zero_width.c: New file.
29830         * lib/unictype/scripts.c: New file.
29831         * lib/unictype/sy_c_ident.c: New file.
29832         * lib/unictype/sy_c_whitespace.c: New file.
29833         * lib/unictype/sy_java_ident.c: New file.
29834         * lib/unictype/sy_java_whitespace.c: New file.
29835
29836         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29837         Unicode 5.0.0.
29838         * lib/unictype/blocks.h: Likewise.
29839         * lib/unictype/categ_C.h: Likewise.
29840         * lib/unictype/categ_Cc.h: Likewise.
29841         * lib/unictype/categ_Cf.h: Likewise.
29842         * lib/unictype/categ_Cn.h: Likewise.
29843         * lib/unictype/categ_Co.h: Likewise.
29844         * lib/unictype/categ_Cs.h: Likewise.
29845         * lib/unictype/categ_L.h: Likewise.
29846         * lib/unictype/categ_Ll.h: Likewise.
29847         * lib/unictype/categ_Lm.h: Likewise.
29848         * lib/unictype/categ_Lo.h: Likewise.
29849         * lib/unictype/categ_Lt.h: Likewise.
29850         * lib/unictype/categ_Lu.h: Likewise.
29851         * lib/unictype/categ_M.h: Likewise.
29852         * lib/unictype/categ_Mc.h: Likewise.
29853         * lib/unictype/categ_Me.h: Likewise.
29854         * lib/unictype/categ_Mn.h: Likewise.
29855         * lib/unictype/categ_N.h: Likewise.
29856         * lib/unictype/categ_Nd.h: Likewise.
29857         * lib/unictype/categ_Nl.h: Likewise.
29858         * lib/unictype/categ_No.h: Likewise.
29859         * lib/unictype/categ_P.h: Likewise.
29860         * lib/unictype/categ_Pc.h: Likewise.
29861         * lib/unictype/categ_Pd.h: Likewise.
29862         * lib/unictype/categ_Pe.h: Likewise.
29863         * lib/unictype/categ_Pf.h: Likewise.
29864         * lib/unictype/categ_Pi.h: Likewise.
29865         * lib/unictype/categ_Po.h: Likewise.
29866         * lib/unictype/categ_Ps.h: Likewise.
29867         * lib/unictype/categ_S.h: Likewise.
29868         * lib/unictype/categ_Sc.h: Likewise.
29869         * lib/unictype/categ_Sk.h: Likewise.
29870         * lib/unictype/categ_Sm.h: Likewise.
29871         * lib/unictype/categ_So.h: Likewise.
29872         * lib/unictype/categ_Z.h: Likewise.
29873         * lib/unictype/categ_Zl.h: Likewise.
29874         * lib/unictype/categ_Zp.h: Likewise.
29875         * lib/unictype/categ_Zs.h: Likewise.
29876         * lib/unictype/categ_of.h: Likewise.
29877         * lib/unictype/combining.h: Likewise.
29878         * lib/unictype/ctype_alnum.h: Likewise.
29879         * lib/unictype/ctype_alpha.h: Likewise.
29880         * lib/unictype/ctype_blank.h: Likewise.
29881         * lib/unictype/ctype_cntrl.h: Likewise.
29882         * lib/unictype/ctype_digit.h: Likewise.
29883         * lib/unictype/ctype_graph.h: Likewise.
29884         * lib/unictype/ctype_lower.h: Likewise.
29885         * lib/unictype/ctype_print.h: Likewise.
29886         * lib/unictype/ctype_punct.h: Likewise.
29887         * lib/unictype/ctype_space.h: Likewise.
29888         * lib/unictype/ctype_upper.h: Likewise.
29889         * lib/unictype/ctype_xdigit.h: Likewise.
29890         * lib/unictype/decdigit.h: Likewise.
29891         * lib/unictype/digit.h: Likewise.
29892         * lib/unictype/mirror.h: Likewise.
29893         * lib/unictype/numeric.h: Likewise.
29894         * lib/unictype/pr_alphabetic.h: Likewise.
29895         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29896         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29897         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29898         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29899         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29900         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29901         * lib/unictype/pr_bidi_control.h: Likewise.
29902         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29903         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29904         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29905         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29906         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29907         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29908         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29909         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29910         * lib/unictype/pr_bidi_pdf.h: Likewise.
29911         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29912         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29913         * lib/unictype/pr_combining.h: Likewise.
29914         * lib/unictype/pr_composite.h: Likewise.
29915         * lib/unictype/pr_currency_symbol.h: Likewise.
29916         * lib/unictype/pr_dash.h: Likewise.
29917         * lib/unictype/pr_decimal_digit.h: Likewise.
29918         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29919         * lib/unictype/pr_deprecated.h: Likewise.
29920         * lib/unictype/pr_diacritic.h: Likewise.
29921         * lib/unictype/pr_extender.h: Likewise.
29922         * lib/unictype/pr_format_control.h: Likewise.
29923         * lib/unictype/pr_grapheme_base.h: Likewise.
29924         * lib/unictype/pr_grapheme_extend.h: Likewise.
29925         * lib/unictype/pr_grapheme_link.h: Likewise.
29926         * lib/unictype/pr_hex_digit.h: Likewise.
29927         * lib/unictype/pr_hyphen.h: Likewise.
29928         * lib/unictype/pr_id_continue.h: Likewise.
29929         * lib/unictype/pr_id_start.h: Likewise.
29930         * lib/unictype/pr_ideographic.h: Likewise.
29931         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29932         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29933         * lib/unictype/pr_ignorable_control.h: Likewise.
29934         * lib/unictype/pr_iso_control.h: Likewise.
29935         * lib/unictype/pr_join_control.h: Likewise.
29936         * lib/unictype/pr_left_of_pair.h: Likewise.
29937         * lib/unictype/pr_line_separator.h: Likewise.
29938         * lib/unictype/pr_logical_order_exception.h: Likewise.
29939         * lib/unictype/pr_lowercase.h: Likewise.
29940         * lib/unictype/pr_math.h: Likewise.
29941         * lib/unictype/pr_non_break.h: Likewise.
29942         * lib/unictype/pr_not_a_character.h: Likewise.
29943         * lib/unictype/pr_numeric.h: Likewise.
29944         * lib/unictype/pr_other_alphabetic.h: Likewise.
29945         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29946         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29947         * lib/unictype/pr_other_id_continue.h: Likewise.
29948         * lib/unictype/pr_other_id_start.h: Likewise.
29949         * lib/unictype/pr_other_lowercase.h: Likewise.
29950         * lib/unictype/pr_other_math.h: Likewise.
29951         * lib/unictype/pr_other_uppercase.h: Likewise.
29952         * lib/unictype/pr_paired_punctuation.h: Likewise.
29953         * lib/unictype/pr_paragraph_separator.h: Likewise.
29954         * lib/unictype/pr_pattern_syntax.h: Likewise.
29955         * lib/unictype/pr_pattern_white_space.h: Likewise.
29956         * lib/unictype/pr_private_use.h: Likewise.
29957         * lib/unictype/pr_punctuation.h: Likewise.
29958         * lib/unictype/pr_quotation_mark.h: Likewise.
29959         * lib/unictype/pr_radical.h: Likewise.
29960         * lib/unictype/pr_sentence_terminal.h: Likewise.
29961         * lib/unictype/pr_soft_dotted.h: Likewise.
29962         * lib/unictype/pr_space.h: Likewise.
29963         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29964         * lib/unictype/pr_titlecase.h: Likewise.
29965         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29966         * lib/unictype/pr_unified_ideograph.h: Likewise.
29967         * lib/unictype/pr_uppercase.h: Likewise.
29968         * lib/unictype/pr_variation_selector.h: Likewise.
29969         * lib/unictype/pr_white_space.h: Likewise.
29970         * lib/unictype/pr_xid_continue.h: Likewise.
29971         * lib/unictype/pr_xid_start.h: Likewise.
29972         * lib/unictype/pr_zero_width.h: Likewise.
29973         * lib/unictype/scripts.h: Likewise.
29974         * lib/unictype/scripts_byname.gperf: Likewise.
29975         * lib/unictype/sy_c_ident.h: Likewise.
29976         * lib/unictype/sy_c_whitespace.h: Likewise.
29977         * lib/unictype/sy_java_ident.h: Likewise.
29978         * lib/unictype/sy_java_whitespace.h: Likewise.
29979
29980         * lib/unictype/Makefile: New file.
29981         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29982         glibc.
29983         * lib/unictype/3level.h: New file, copied from glibc.
29984         * lib/unictype/3levelbit.h: New file.
29985
29986 2007-11-11  Bruno Haible  <bruno@clisp.org>
29987
29988         * modules/gperf: New file.
29989         * modules/iconv_open (Depends-on): Add it.
29990         (Makefile.am): Remove the GPERF definition.
29991
29992 2007-11-11  Bruno Haible  <bruno@clisp.org>
29993
29994         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29995         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29996
29997 2007-11-11  Bruno Haible  <bruno@clisp.org>
29998
29999         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
30000         (usage): Remove function.
30001
30002 2007-11-11  Bruno Haible  <bruno@clisp.org>
30003
30004         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
30005         gl_FUNC_CEILF_LIBS.
30006         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
30007         gl_FUNC_CEIL_LIBS.
30008         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
30009         gl_FUNC_CEILL_LIBS.
30010         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
30011         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
30012         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
30013
30014 2007-11-11  Bruno Haible  <bruno@clisp.org>
30015
30016         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
30017         roundf were declared but do not exist on functions.
30018         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
30019         roundl were declared but do not exist on functions.
30020         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
30021         HAVE_FLOORL_AND_CEILL, respectively.
30022         Needed for Sun C on Solaris 10.
30023
30024 2007-11-11  Bruno Haible  <bruno@clisp.org>
30025
30026         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
30027         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
30028         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
30029         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
30030         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
30031         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
30032         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
30033         HAVE_DECL_ROUNDF.
30034         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
30035         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
30036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
30037         of HAVE_DECL_ROUND*.
30038         * modules/math (Makefile.am): Update.
30039
30040 2007-11-10  Bruno Haible  <bruno@clisp.org>
30041
30042         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
30043         ptrdiff_t as m4/intl.m4.
30044
30045 2007-11-10  Jim Meyering  <meyering@redhat.com>
30046
30047         Avoid link failure for the argmatch test.
30048         * tests/test-argmatch.c (usage): Define function to avoid a link
30049         failure: argmatch_die requires a usage function.
30050
30051 2007-11-09  Bruno Haible  <bruno@clisp.org>
30052
30053         * doc/functions/snprintf.texi: Mention BeOS deficiency.
30054         * doc/functions/vsnprintf.texi: Likewise.
30055         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
30056         with a size argument < 2.
30057
30058 2007-11-09  Bruno Haible  <bruno@clisp.org>
30059
30060         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
30061         buffer. Fixes an inefficiency introduced on 2007-11-03.
30062
30063 2007-11-09  Bruno Haible  <bruno@clisp.org>
30064
30065         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
30066         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
30067
30068 2007-11-08  Jim Meyering  <meyering@redhat.com>
30069
30070         Change cache variable name prefix "jm_" to "gl_" everywhere.
30071         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
30072         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
30073         * m4/uptime.m4: s/gl_/jm_/
30074
30075 2007-11-07  Bruno Haible  <bruno@clisp.org>
30076
30077         Update to GNU gettext 0.17.
30078         * m4/intl.m4: Update to GNU gettext 0.17.
30079         * m4/po.m4: Likewise.
30080         * modules/gettext (Files): Remove m4/ulonglong.m4.
30081         (configure.ac): Require gettext infrastructure from version 0.17.
30082
30083 2007-11-06  Bruno Haible  <bruno@clisp.org>
30084
30085         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
30086         symbolic values are not defined in a public header.
30087         * lib/freadable.c (freadable) [QNX]: Likewise.
30088         * lib/freadahead.c (freadahead) [QNX]: Likewise.
30089         * lib/freading.c (freading) [QNX]: Likewise.
30090         * lib/fseterr.c (fseterr) [QNX]: Likewise.
30091         * lib/fwritable.c (fwritable) [QNX]: Likewise.
30092         * lib/fwriting.c (fwriting) [QNX]: Likewise.
30093         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
30094         Reported by Alain Magloire.
30095
30096         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
30097
30098 2007-11-05  Bruno Haible  <bruno@clisp.org>
30099
30100         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
30101         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
30102         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
30103         Reported by Eric Blake.
30104
30105 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30106             Bruno Haible  <bruno@clisp.org>
30107
30108         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
30109         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
30110         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
30111         (malloc): Undefine also before including <stdlib.h>.
30112         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
30113         Needed on OSF/1 4.0.
30114
30115 2007-11-05  Jim Meyering  <meyering@redhat.com>
30116
30117         git-version-gen: sync from coreutils.
30118         * build-aux/git-version-gen: Add comments.
30119         Change the first '-' to '.' in the snapshot version string,
30120         e.g., 6.9-377-08144 -> 6.9.377-08144
30121         Remove first parameter.
30122         Don't declare a version "-dirty" merely because a time
30123         stamp has changed.
30124
30125 2007-11-04  Bruno Haible  <bruno@clisp.org>
30126
30127         * lib/lock.h: Protect all macro definitions containing an 'if'
30128         statement through a "do { ... } while (0)".
30129         * lib/tls.h: Likewise.
30130
30131 2007-11-04  Bruno Haible  <bruno@clisp.org>
30132
30133         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
30134
30135 2007-11-04  Bruno Haible  <bruno@clisp.org>
30136
30137         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
30138         * modules/fprintf-posix (Depends-on): Add nocrash.
30139         * modules/snprintf-posix (Depends-on): Likewise.
30140         * modules/sprintf-posix (Depends-on): Likewise.
30141         * modules/vasnprintf-posix (Depends-on): Likewise.
30142         * modules/vasprintf-posix (Depends-on): Likewise.
30143         * modules/vfprintf-posix (Depends-on): Likewise.
30144         * modules/vsnprintf-posix (Depends-on): Likewise.
30145         * modules/vsprintf-posix (Depends-on): Likewise.
30146         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30147         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30148         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30149         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30150         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30151         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30152         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30153
30154 2007-11-04  Bruno Haible  <bruno@clisp.org>
30155
30156         * modules/nocrash: New file.
30157         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
30158         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
30159
30160 2007-11-04  Bruno Haible  <bruno@clisp.org>
30161
30162         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
30163         precision handling.
30164         * tests/test-vasprintf-posix.c (test_function): Likewise.
30165         * tests/test-snprintf-posix.h (test_function): Likewise.
30166         * tests/test-sprintf-posix.h (test_function): Likewise.
30167
30168         Fix *printf behaviour for large precisions on mingw and BeOS.
30169         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
30170         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
30171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
30172         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30174         gl_PRINTF_PRECISION and test its result. Invoke
30175         gl_PREREQ_VASNPRINTF_PRECISION.
30176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30183         * doc/functions/fprintf.texi: Update.
30184         * doc/functions/printf.texi: Update.
30185         * doc/functions/snprintf.texi: Update.
30186         * doc/functions/sprintf.texi: Update.
30187         * doc/functions/vfprintf.texi: Update.
30188         * doc/functions/vprintf.texi: Update.
30189         * doc/functions/vsnprintf.texi: Update.
30190         * doc/functions/vsprintf.texi: Update.
30191
30192 2007-11-04  Bruno Haible  <bruno@clisp.org>
30193
30194         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
30195
30196 2007-11-04  Bruno Haible  <bruno@clisp.org>
30197
30198         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
30199         Reported by Sylvain Beucler <beuc@gnu.org>.
30200
30201 2007-11-03  Bruno Haible  <bruno@clisp.org>
30202
30203         * tests/test-fprintf-posix2.sh: New file.
30204         * tests/test-fprintf-posix2.c: New file.
30205         * modules/fprintf-posix-tests (Files): Add them.
30206         (TESTS): Add test-fprintf-posix2.sh.
30207         (configure.ac): Check for getrlimit and setrlimit.
30208         (check_PROGRAMS): Add test-fprintf-posix2.
30209
30210         * tests/test-printf-posix2.sh: New file.
30211         * tests/test-printf-posix2.c: New file.
30212         * modules/printf-posix-tests (Files): Add them.
30213         (TESTS): Add test-printf-posix2.sh.
30214         (configure.ac): Check for getrlimit and setrlimit.
30215         (check_PROGRAMS): Add test-printf-posix2.
30216
30217         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
30218         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
30219         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
30220         (decode_double): New function, copied from decode_long_double.
30221         (scale10_round_decimal_decoded): New function, extracted from
30222         scale10_round_decimal_long_double.
30223         (scale10_round_decimal_long_double): Use it.
30224         (scale10_round_decimal_double): New function.
30225         (floorlog10): New function.
30226         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30228         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30230         gl_PRINTF_ENOMEM and test its result. Invoke
30231         gl_PREREQ_VASNPRINTF_ENOMEM.
30232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30233         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30234         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30236         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30238         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30239         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
30240         * modules/snprintf-posix (Depends-on): Likewise.
30241         * modules/sprintf-posix (Depends-on): Likewise.
30242         * modules/vasnprintf-posix (Depends-on): Likewise.
30243         * modules/vasprintf-posix (Depends-on): Likewise.
30244         * modules/vfprintf-posix (Depends-on): Likewise.
30245         * modules/vsnprintf-posix (Depends-on): Likewise.
30246         * modules/vsprintf-posix (Depends-on): Likewise.
30247         * doc/functions/fprintf.texi: Update.
30248         * doc/functions/printf.texi: Update.
30249         * doc/functions/snprintf.texi: Update.
30250         * doc/functions/sprintf.texi: Update.
30251         * doc/functions/vfprintf.texi: Update.
30252         * doc/functions/vprintf.texi: Update.
30253         * doc/functions/vsnprintf.texi: Update.
30254         * doc/functions/vsprintf.texi: Update.
30255
30256 2007-11-03  Bruno Haible  <bruno@clisp.org>
30257
30258         * modules/frexp-nolibm-tests: New file.
30259
30260         * modules/frexp-nolibm: New file.
30261         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30262
30263 2007-11-03  Bruno Haible  <bruno@clisp.org>
30264
30265         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30266         value is C99 compliant.
30267         Needed for OSF/1 5.1.
30268
30269 2007-11-03  Bruno Haible  <bruno@clisp.org>
30270
30271         Fix out-of-memory handling of vasnprintf.
30272         * lib/printf-parse.c: Include <errno.h>.
30273         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30274         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30275         is already set.
30276
30277 2007-11-02  Eric Blake  <ebb9@byu.net>
30278
30279         Fix tests on cygwin.
30280         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30281
30282 2007-11-01  Bruno Haible  <bruno@clisp.org>
30283
30284         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30285         warning.
30286         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30287         needed for POSIX compatibility.
30288
30289 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30290
30291         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30292         for compatibility with GNU.
30293
30294 2007-11-01  Bruno Haible  <bruno@clisp.org>
30295
30296         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30297         (putenv): Renamed from rpl_putenv. Change argument type from
30298         'const char *' to 'char *'.
30299         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30300         of defining putenv in config.h, just set REPLACE_PUTENV.
30301         * modules/putenv (Depends-on): Add stdlib.
30302         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30303         (Include): Use <stdlib.h>.
30304         * lib/stdlib.in.h (putenv): New declaration.
30305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30306         REPLACE_PUTENV.
30307         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30308         REPLACE_PUTENV.
30309         Needed for MacOS X 10.5.0.
30310         Reported by Peter O'Gorman <peter@pogma.com>.
30311
30312 2007-11-01  Jim Meyering  <meyering@redhat.com>
30313
30314         Treat an empty date string exactly like "0".
30315         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30316         if the remaining date string (to be parsed) is empty, use "0".
30317         Reported by Mischa Molhoek and discussed in this thread:
30318         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30319
30320 2007-10-31  Bruno Haible  <bruno@clisp.org>
30321
30322         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30323         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30324         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30325         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30326         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30327         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30328
30329 2007-10-31  Bruno Haible  <bruno@clisp.org>
30330
30331         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30332         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30333         (AC_TYPE_LONG_LONG_INT): Use it.
30334         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30335         it as well.
30336         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30337         to m4/longlong.m4.
30338         * modules/stdint (Files): Remove m4/ulonglong.m4.
30339         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30340         m4/ulonglong.m4.
30341         * modules/strtoumax (Files): Likewise.
30342
30343 2007-10-30  Bruno Haible  <bruno@clisp.org>
30344
30345         * modules/xvasprintf-posix: New file.
30346         Suggested by Eric Blake.
30347
30348 2007-10-30  Bruno Haible  <bruno@clisp.org>
30349
30350         * modules/xprintf-posix-tests: New file.
30351         * tests/test-xprintf-posix.sh: New file.
30352         * tests/test-xprintf-posix.c: New file.
30353         * tests/test-xfprintf-posix.c: New file.
30354
30355         * modules/xprintf-posix: New file.
30356
30357 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30358
30359         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30360         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30361         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30362
30363 2007-10-29  Bruno Haible  <bruno@clisp.org>
30364
30365         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30366         contain the special marker '_cv_'.
30367         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30368         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30369         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30370         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30371         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30372         Reported by Ralf Wildenhues.
30373
30374 2007-10-29  Bruno Haible  <bruno@clisp.org>
30375
30376         * gnulib-tool (func_import): When --lgpl is not specified, set
30377         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30378         GPLv3.
30379         Reported by Simon Josefsson.
30380
30381 2007-10-28  Bruno Haible  <bruno@clisp.org>
30382
30383         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30384         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30385         HAVE_DECL_ISFINITE.
30386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30387         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30388         HAVE_DECL_ISFINITE.
30389
30390 2007-10-28  Bruno Haible  <bruno@clisp.org>
30391
30392         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30393         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30394
30395 2007-10-28  Bruno Haible  <bruno@clisp.org>
30396
30397         Fix link errors with Sun C 5.0 on Solaris 10.
30398         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30399         function is declared but not present in the compiler's libm.
30400         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30401         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30402         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30403         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30404         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30405         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30406         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30408         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30409         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30410         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30411         HAVE_DECL_FLOORL.
30412
30413 2007-10-28  Bruno Haible  <bruno@clisp.org>
30414
30415         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30416         gl_FUNC_FLOORL. Cache the result.
30417         (gl_FUNC_FLOORL): Use it.
30418         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30419         gl_FUNC_CEILL. Cache the result.
30420         (gl_FUNC_CEILL): Use it.
30421
30422         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30423         gl_FUNC_FLOOR. Cache the result.
30424         (gl_FUNC_FLOOR): Use it.
30425         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30426         gl_FUNC_CEIL. Cache the result.
30427         (gl_FUNC_CEIL): Use it.
30428
30429         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30430         gl_FUNC_FLOORF. Cache the result.
30431         (gl_FUNC_FLOORF): Use it.
30432         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30433         gl_FUNC_CEILF. Cache the result.
30434         (gl_FUNC_CEILF): Use it.
30435
30436 2007-10-28  Bruno Haible  <bruno@clisp.org>
30437
30438         * gnulib-tool: Allow specifying the LGPL version number through
30439         --lgpl=2 or --lgpl=3.
30440         (func_usage): Document --lgpl with argument.
30441         Handle --lgpl=... arguments.
30442         (func_import): Recognize also gl_LGPL calls with an argument. When
30443         --lgpl=2 is used and the module's license is just LGPL, report an
30444         error. Set sed_transform_lib_file according to the lgpl variable. In
30445         the generated files, use --lgpl or gl_LGPL invocations with argument,
30446         if necessary.
30447         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30448         an LGPv2+ license.
30449         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30450         gl_LGPL macro.
30451
30452 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30453             Bruno Haible  <bruno@clisp.org>
30454
30455         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30456         (u16_uctomb_aux): Likewise.
30457         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30458         !HAVE_INLINE.
30459         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30460
30461 2007-10-28  Bruno Haible  <bruno@clisp.org>
30462
30463         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30464         Invoke AM_GETTEXT_OPTION if it exists.
30465         * modules/vasprintf: Likewise.
30466         * modules/verror: Likewise.
30467         * modules/xprintf: Likewise.
30468         * modules/xvasprintf: Likewise.
30469
30470 2007-10-27  Ben Pfaff  <blp@gnu.org>
30471
30472         * lib/math.in.h: Define isfinite macro and prototypes for
30473         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30474         implementations.
30475         * m4/math_h.m4: New substitutions for isfinite module.
30476         * lib/isfinite.c: New file.
30477         * m4/isfinite.m4: New file.
30478         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30479         * modules/isfinite: New file.
30480         * modules/isfinite-tests: New file.
30481         * tests/tests-isfinite.c: New file.
30482         * doc/functions/isfinite.texi: Mention isfinite module.
30483         * MODULES.html.sh: Mention new module.
30484
30485 2007-10-27  Ben Pfaff  <blp@gnu.org>
30486
30487         Ralf Wildenhues reported that Tru64 4.0D declares the round
30488         functions but does not have definitions.
30489         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30490         cannot be found in any library, set the output variable to
30491         "missing" instead of "".
30492         * m4/round.m4: Also use our substitute if we cannot find round in
30493         any library, even if it is declared.
30494         * m4/roundf.m4: Likewise for roundf.
30495         * m4/roundl.m4: Likewise for roundl.
30496         * lib/math.in.h: Undefine roundf, round, roundl before defining
30497         their replacements, to allow for hypothetical systems where these
30498         may be defined as macros but not available in libraries.
30499
30500 2007-10-27  Bruno Haible  <bruno@clisp.org>
30501
30502         * doc/gnulib.texi: Invoke @firstparagraphindent.
30503         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30504         changes in gnulib.
30505         (Source changes): New section.
30506
30507 2007-10-26  Bruno Haible  <bruno@clisp.org>
30508
30509         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30510         borrowed from autoconf.
30511
30512 2007-10-26  Bruno Haible  <bruno@clisp.org>
30513
30514         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30515         strerror returned the empty string. Needed on HP-UX 11.00.
30516
30517 2007-10-24  Micah Cowan  <micah@cowan.name>
30518
30519         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30520         * build-aux/bootstrap: Remove support for now-unnecessary option,
30521         --cvs-user, and envvars CVS_USER, CVS_RSH.
30522
30523 2007-10-24  Jim Meyering  <meyering@redhat.com>
30524
30525         Avoid diagnostics from sha1sum when there is no cached checksum.
30526         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30527         if the po.s1 file hasn't been created yet.
30528
30529         * build-aux/bootstrap: Sync from coreutils:
30530         2007-10-24  Jim Meyering  <meyering@redhat.com>
30531         Get gnulib from the git repository, not from an obsolete cvs one.
30532         * build-aux/bootstrap: Suggestion from Micah Cowan.
30533         2007-10-04  Jim Meyering  <jim@meyering.net>
30534         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30535         (update_po_files): Work also when there are no .po files in po/.
30536
30537 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30538
30539         * README: Append ".git" to git and cg examples.
30540         Problem reported by Benoit Sigoure.
30541
30542 2007-10-23  Micah Cowan  <micah@cowan.name>
30543
30544         * users.txt: Add wget.
30545
30546 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30547
30548         Fix linking of some unistdio tests on FreeBSD.
30549         * modules/unistdio/u16-vsnprintf-tests
30550         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30551         * modules/unistdio/u16-vsprintf-tests
30552         (test_u16_vsnprintf1_LDADD): Likewise.
30553         * modules/unistdio/u32-vsnprintf-tests
30554         (test_u32_vsnprintf1_LDADD): Likewise.
30555         * modules/unistdio/u32-vsprintf-tests
30556         (test_u32_vsprintf1_LDADD): Likewise.
30557         * modules/unistdio/u8-vsnprintf-tests
30558         (test_u8_vsnprintf1_LDADD): Likewise.
30559         * modules/unistdio/u8-vsprintf-tests
30560         (test_u8_vsprintf1_LDADD): Likewise.
30561         * modules/unistdio/ulc-vsnprintf-tests
30562         (test_ulc_vsnprintf1_LDADD): Likewise.
30563         * modules/unistdio/ulc-vsprintf-tests
30564         (test_ulc_vsprintf1_LDADD): Likewise.
30565
30566         Fix linking of some uniconv tests on FreeBSD.
30567         * modules/uniconv/u16-conv-from-enc-tests
30568         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30569         * modules/uniconv/u16-conv-to-enc-tests
30570         (test_u16_conv_to_enc_LDADD): Likewise.
30571         * modules/uniconv/u16-strconv-from-enc-tests
30572         (test_u16_strconv_from_enc_LDADD): Likewise.
30573         * modules/uniconv/u16-strconv-to-enc-tests
30574         (test_u16_strconv_to_enc_LDADD): Likewise.
30575         * modules/uniconv/u32-conv-from-enc-tests
30576         (test_u32_conv_from_enc_LDADD): Likewise.
30577         * modules/uniconv/u32-conv-to-enc-tests
30578         (test_u32_conv_to_enc_LDADD): Likewise.
30579         * modules/uniconv/u32-strconv-from-enc-tests
30580         (test_u32_strconv_from_enc_LDADD): Likewise.
30581         * modules/uniconv/u32-strconv-to-enc-tests
30582         (test_u32_strconv_to_enc_LDADD): Likewise.
30583         * modules/uniconv/u8-conv-from-enc-tests
30584         (test_u8_conv_from_enc_LDADD): Likewise.
30585         * modules/uniconv/u8-conv-to-enc-tests
30586         (test_u8_conv_to_enc_LDADD): Likewise.
30587         * modules/uniconv/u8-strconv-from-enc-tests
30588         (test_u8_strconv_from_enc_LDADD): Likewise.
30589         * modules/uniconv/u8-strconv-to-enc-tests
30590         (test_u8_strconv_to_enc_LDADD): Likewise.
30591
30592 2007-10-22  Bruno Haible  <bruno@clisp.org>
30593
30594         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30595         size.
30596
30597 2007-10-22  Eric Blake  <ebb9@byu.net>
30598
30599         Tweak x*printf documentation.
30600         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30601         variable name and comments.
30602         Suggested by Bruno Haible.
30603
30604 2007-10-22  Bruno Haible  <bruno@clisp.org>
30605
30606         * lib/acl.c (copy_acl): Fix file name in comment.
30607
30608 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30609
30610         Fix Tru64 problem with stdbool.h.
30611         * lib/stdbool.in.h (false, true):
30612         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30613         Don't declare as an enum in this situation; it runs afoul of Tru64.
30614         Problem reported by Steven M. Schweda in
30615         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30616
30617 2007-10-22  Eric Blake  <ebb9@byu.net>
30618
30619         Also wrap vf?printf.
30620         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30621         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30622         (xvprintf, xvfprintf): New functions.
30623
30624 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30625
30626         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30627         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30628
30629         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30630         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30631
30632 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30633
30634         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30635         by Bruno Haible.
30636
30637 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30638
30639         * lib/getloadavg.c
30640         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30641         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30642
30643         * tests/test-i-ring.c: Work for C89.
30644
30645 2007-10-22  Bruno Haible  <bruno@clisp.org>
30646
30647         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30648         -1u, in preprocessor expression, so that we don't test for the bug
30649         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30651
30652 2007-10-22  Eric Blake  <ebb9@byu.net>
30653
30654         * tests/test-yesno.sh: Silence stderr during test.
30655
30656 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30657
30658         * modules/crypto/gc-camellia: New file.
30659
30660         * m4/gc-camellia.m4: New file.
30661
30662         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30663
30664         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30665
30666 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30667
30668         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30669         --help to stdout.  Reported by sms@antinode.org (Steven
30670         M. Schweda).
30671
30672 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30673
30674         * users.txt: Fix link to libksba.
30675
30676 2007-10-21  Ben Pfaff  <blp@gnu.org>
30677
30678         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30679         round.c roundf implementation that depends on floorf and ceilf to
30680         be tested unconditionally.
30681
30682 2007-10-21  Ben Pfaff  <blp@gnu.org>
30683
30684         * m4/check-libm-func.m4: Removed.
30685         * m4/check-math-lib.m4: New file.
30686         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30687         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30688         definition and lack of AC_LIBOBJ([roundf]).
30689         * m4/roundl.m4: Ditto, and similarly for roundl.
30690         * modules/round: Reference new m4 file.
30691         * modules/roundf: Ditto.
30692         * modules/roundl: Ditto.
30693         * tests/test-round2.c (main): Use ROUND instead of round.
30694         Bug report from Bruno Haible.
30695
30696 2007-10-21  Bruno Haible  <bruno@clisp.org>
30697
30698         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30699         context.
30700
30701 2007-10-21  Bruno Haible  <bruno@clisp.org>
30702
30703         * tests/test-wcwidth.c (main): Allow negative result for some control
30704         characters.
30705
30706         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30707         Needed on OSF/1 5.1.
30708
30709 2007-10-21  Bruno Haible  <bruno@clisp.org>
30710
30711         * tests/test-floorf1.c: Include isnanf.h.
30712         (main): Use isnanf() instead of isnan().
30713         * tests/test-ceilf1.c: Include isnanf.h.
30714         (main): Use isnanf() instead of isnan().
30715         * tests/test-truncf1.c: Include isnanf.h.
30716         (main): Use isnanf() instead of isnan().
30717         * tests/test-roundf1.c: Include isnanf.h.
30718         (main): Use isnanf() instead of isnan().
30719
30720 2007-10-21  Eric Blake  <ebb9@byu.net>
30721
30722         * users.txt: Update URL for m4.
30723
30724 2007-10-21  Bruno Haible  <bruno@clisp.org>
30725
30726         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30727
30728 2007-10-21  Bruno Haible  <bruno@clisp.org>
30729
30730         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30731         Git's management files if the CVS files are not present.
30732
30733 2007-10-20  Bruno Haible  <bruno@clisp.org>
30734
30735         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30736         gcc-3.4.x.
30737
30738 2007-10-20  Ben Pfaff  <blp@gnu.org>
30739
30740         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30741         implementations.
30742         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30743         * lib/round.c: New file.
30744         * lib/roundf.c: New file.
30745         * lib/roundl.c: New file.
30746         * m4/round.m4: New file.
30747         * m4/roundf.m4: New file.
30748         * m4/roundl.m4: New file.
30749         * m4/check-libm-func-m4: New file.
30750         * modules/math: Replace round, roundf, roundl related @VARS@ in
30751         math.in.h.
30752         * modules/round: New file.
30753         * modules/round-tests: New file.
30754         * modules/roundf: New file.
30755         * modules/roundf-tests: New file.
30756         * modules/roundl: New file.
30757         * modules/roundl-tests: New file.
30758         * tests/test-round1.c: New file.
30759         * tests/test-round2.c: New file.
30760         * tests/test-roundf1.c: New file.
30761         * tests/test-roundf2.c: New file.
30762         * tests/test-roundl.c: New file.
30763         * doc/functions/round.texi: Mention round module.
30764         * doc/functions/roundf.texi: Mention roundf module.
30765         * doc/functions/roundl.texi: Mention roundl module.
30766         * MODULES.html.sh: Mention new modules.
30767         Thanks to Bruno Haible for suggestions.
30768
30769 2007-10-20  Jim Meyering  <meyering@redhat.com>
30770
30771         * lib/xprintf.c: Include <config.h> unconditionally.
30772
30773         Change xprintf's license to GPL.
30774         * modules/xprintf (License): s/LGPL/GPL/, since this module
30775         depends on modules (exit and exitfail) which are GPL.
30776         Suggestion from Bruno Haible.
30777
30778         xprintf fixes.
30779         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30780         Use a clearer diagnostic.
30781         Patch from Bruno Haible.
30782
30783 2007-10-20  Bruno Haible  <bruno@clisp.org>
30784
30785         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30786         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30787         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30788
30789 2007-10-20  Bruno Haible  <bruno@clisp.org>
30790
30791         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30792         precision in the comparison result > x - 1 or similar.
30793         * tests/test-ceilf2.c (correct_result_p): Likewise.
30794         * tests/test-truncf2.c (correct_result_p): Likewise.
30795         * tests/test-trunc2.c (correct_result_p): Likewise.
30796         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30797
30798 2007-10-20  Bruno Haible  <bruno@clisp.org>
30799
30800         * modules/ceil: New file.
30801         * m4/ceil.m4: New file.
30802         * doc/functions/ceil.texi: Mention the 'ceil' module.
30803
30804 2007-10-20  Bruno Haible  <bruno@clisp.org>
30805
30806         * modules/floor: New file.
30807         * m4/floor.m4: New file.
30808         * doc/functions/floor.texi: Mention the 'floor' module.
30809
30810 2007-10-20  Bruno Haible  <bruno@clisp.org>
30811
30812         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30813         of %a.
30814         * modules/floorf-tests (Depends-on): Likewise.
30815         * modules/truncf-tests (Depends-on): Likewise.
30816         * modules/trunc-tests (Depends-on): Likewise.
30817         Reported by Ben Pfaff.
30818
30819 2007-10-19  Jim Meyering  <meyering@redhat.com>
30820
30821         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30822         Don't bother testing specific errno values.  Just test ferror.
30823
30824         New module: xprintf
30825         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30826
30827 2007-10-19  Bruno Haible  <bruno@clisp.org>
30828
30829         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30830         syntax.
30831         * modules/javaexec (Makefile.am): Likewise.
30832         * modules/relocatable-prog (Makefile.am): Likewise.
30833         Suggested by Jim Meyering.
30834
30835 2007-10-18  Bruno Haible  <bruno@clisp.org>
30836
30837         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30838         Reported by Jim Meyering.
30839
30840 2007-10-18  Eric Blake  <ebb9@byu.net>
30841
30842         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30843
30844 2007-10-18  Bruno Haible  <bruno@clisp.org>
30845
30846         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30847         the format string into writable memory. Needed in Fortify conditions.
30848
30849 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30850             Bruno Haible  <bruno@clisp.org>
30851
30852         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30853         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30854         * modules/trim (Depends-on): Add mbchar.
30855         (configure.ac): Add gl_FUNC_MBRTOWC.
30856         (Makefile.am): Augment lib_SOURCES.
30857
30858 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30859
30860         Modify glob.c to use fstatat and dirfd, to simplify it.
30861         Suggested by Eric Blake.
30862         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30863         Don't include <stdbool.h>; not used.
30864         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30865         (link_exists_p): Simplify implementation, since we can now assume
30866         dirfd and fstatat.
30867         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30868
30869 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30870
30871         * gnulib-tool (func_get_dependencies): Fix sed script to
30872         match only tests.
30873
30874 2007-10-17  Bruno Haible  <bruno@clisp.org>
30875
30876         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30877         allow locale names without encoding suffix.
30878         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30879         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30880
30881 2007-10-16  Bruno Haible  <bruno@clisp.org>
30882
30883         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30884         * lib/getgroups.c (getgroups): Likewise.
30885         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30886
30887 2007-10-16  Bruno Haible  <bruno@clisp.org>
30888
30889         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30890         * modules/malloc-posix (License): Likewise.
30891         * modules/realloc-posix (License): Likewise.
30892         * modules/calloc-posix (License): Likewise.
30893         * modules/intprops (License): Change from GPL to LGPL, with
30894         Paul Eggert's approval.
30895
30896 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30897
30898         Merge glibc changes into lib/glob.c.
30899
30900         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30901         2007-10-15 04:59:03 UTC.  Here are the changes:
30902
30903         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30904
30905         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30906
30907         * lib/glob.c: Add some branch prediction throughout.
30908
30909         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30910
30911         [BZ #5103]
30912         * lib/glob.c (glob): Recognize patterns starting \/.
30913
30914         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30915
30916         [BZ #3996]
30917         * lib/glob.c (attribute_hidden): Define if not defined.
30918         (glob): Unescape dirname, filename or username when needed and not
30919         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30920         is NULL.  Handle unescaped [ in pattern without closing ].
30921         Don't pass GLOB_CHECK down to recursive glob for directories.
30922         (__glob_pattern_type): New function.
30923         (__glob_pattern_p): Implement using __glob_pattern_type.
30924         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30925         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30926         Remove unreachable code.
30927
30928         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30929
30930         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30931         explain why there are no leaks.
30932
30933         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30934
30935         [BZ #3253]
30936         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30937         time, rather allocate increasingly bigger arrays of pointers, if
30938         possible with alloca, if too large with malloc.
30939
30940 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30941
30942         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30943         Problem reported by H.Merijn Brand in
30944         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30945         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30946         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30947
30948 2007-10-15  Bruno Haible  <bruno@clisp.org>
30949
30950         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30951         with explicit rpl_ prefix.
30952         * lib/fopen.c (fopen): Likewise.
30953         * lib/freopen.c (freopen): Likewise.
30954         * lib/iconv.c (iconv): Likewise.
30955         * lib/iconv_close.c (iconv_close): Likewise.
30956
30957 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30958
30959         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30960
30961 2007-10-15  Bruno Haible  <bruno@clisp.org>
30962
30963         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30964         <stddef.h> instead of <stdlib.h> since we only need NULL.
30965         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30966
30967 2007-10-15  Bruno Haible  <bruno@clisp.org>
30968
30969         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30970         Replace paragraph talking about LIBOBJS.
30971         Reported by Colin Watson <cjwatson@debian.org>.
30972
30973 2007-10-15  Bruno Haible  <bruno@clisp.org>
30974
30975         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30976         <stdlib.h> before using NULL.
30977
30978 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30979
30980         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30981         Reported by Albert Chin <china@thewrittenword.com>.
30982
30983 2007-10-14  Bruno Haible  <bruno@clisp.org>
30984
30985         * modules/iconv_open-utf-tests: New file.
30986         * tests/test-iconv-utf.c: New file.
30987
30988         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30989         * modules/iconv_open-utf: New file.
30990         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30991         (iconv, iconv_close): New declarations.
30992         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30993         be defined.
30994         (iconv_open): Add special handling of conversion between UTF-8 and
30995         UTF-{16,32}{BE,LE}.
30996         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30997         * lib/iconv_close.c: New file.
30998         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30999         gl_FUNC_ICONV_OPEN.
31000         (gl_FUNC_ICONV_OPEN): Use it.
31001         (gl_FUNC_ICONV_OPEN_UTF): New macro.
31002         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
31003         and REPLACE_ICONV_UTF.
31004         * modules/iconv_open (Depends-on): Add c-strcase.
31005         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
31006         ICONV_CONST.
31007         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
31008
31009 2007-10-13  Albert Chin  <china@thewrittenword.com>
31010             Bruno Haible  <bruno@clisp.org>
31011
31012         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
31013         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
31014
31015 2007-10-13  Bruno Haible  <bruno@clisp.org>
31016
31017         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
31018         defined, use the ISO C99 inline semantics.
31019         * lib/argp.h (ARGP_EI): Likewise.
31020
31021 2007-10-13  Bruno Haible  <bruno@clisp.org>
31022
31023         Handle 'inline' change in gcc 4.3.0.
31024         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
31025         argp_fmtstream_write, argp_fmtstream_set_lmargin,
31026         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
31027         argp_fmtstream_point): Disable 'extern' declaration if the function
31028         definition is going to be provided inline.
31029         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
31030         semantics, not the ISO C99 inline semantics.
31031         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
31032         'extern' declaration if the function definition is going to be provided
31033         inline.
31034         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
31035         the GNU C inline semantics, not the ISO C99 inline semantics. With
31036         GCC 4.2, avoid a warning.
31037
31038 2007-10-13  Bruno Haible  <bruno@clisp.org>
31039
31040         * lib/freading.h (freading): Enable the use of __freading for
31041         glibc >= 2.7.
31042         * lib/freading.c (freading): Likewise.
31043
31044 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31045
31046         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
31047         "warning: C99 inline functions are not supported; using GNU89".
31048
31049 2007-10-12  Bruno Haible  <bruno@clisp.org>
31050
31051         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
31052         of 2.
31053         * tests/test-ceilf2.c: New file.
31054         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
31055
31056         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
31057         * modules/ceilf-tests: Update.
31058
31059 2007-10-12  Bruno Haible  <bruno@clisp.org>
31060
31061         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
31062         of 2.
31063         * tests/test-floorf2.c: New file.
31064         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
31065
31066         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
31067         * modules/floorf-tests: Update.
31068
31069 2007-10-12  Bruno Haible  <bruno@clisp.org>
31070
31071         * tests/test-trunc2.c: New file.
31072         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
31073
31074         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
31075         * modules/trunc-tests: Update.
31076
31077 2007-10-12  Bruno Haible  <bruno@clisp.org>
31078
31079         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
31080         of 2.
31081         * tests/test-truncf2.c: New file.
31082         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
31083
31084         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
31085         * modules/truncf-tests: Update.
31086
31087 2007-10-11  Eric Blake  <ebb9@byu.net>
31088
31089         Don't claim strerror is broken on Interix.
31090         * doc/functions/strerror.texi (strerror): Known broken systems are
31091         now Solaris 8, and not Interix.
31092         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
31093         Interix on cross-compile.
31094         Reported by Martin Koeppe in
31095         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
31096
31097 2007-10-11  Bruno Haible  <bruno@clisp.org>
31098
31099         * modules/i-ring-tests: New file.
31100         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
31101         instead of assert.
31102
31103 2007-10-11  Bruno Haible  <bruno@clisp.org>
31104
31105         * modules/filenamecat-tests: New file.
31106         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
31107         * lib/filenamecat.c: Remove test code.
31108
31109 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31110
31111         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
31112
31113         * lib/strerror.c: Include <string.h> always, to test interface,
31114         and to remove the need for the dummy.
31115         Include intprops.h to compute width instead of doing it ourselves
31116         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
31117         (strerror): Define it to return NULL if there's no system strerror.
31118         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
31119         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
31120         ancient pre-strerror Unix systems well any more.  Saying "unknown
31121         system error" is enough.
31122         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
31123         simpler strerror.c implementation.
31124         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
31125         Simplify the tests to reflect the simpler strerror implementation.
31126         * modules/strerror (Depends-on): Add intprops.
31127
31128 2007-10-09  Eric Blake  <ebb9@byu.net>
31129
31130         Silence test-fpending.
31131         * modules/fpending-tests (Files): Add wrapper script.
31132         * tests/test-fpending.sh: New file.
31133
31134 2007-10-09  Bruno Haible  <bruno@clisp.org>
31135
31136         * MODULES.html.sh (func_module): Don't create a hyperlink for
31137         function names like 'printf_frexp'.
31138         (Misc): Add crc, memxor.
31139         (Characteristics of floating types): New section.
31140         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
31141         isnanf-nolibm, signbit, trunc, truncf, truncl.
31142         (Enhancements for ISO C 99 functions): New subsection Input/output.
31143         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
31144         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
31145         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
31146         (Compatibility checks for POSIX:2001 functions): Add clock-time.
31147         (Enhancements for POSIX:2001 functions): Add chdir-long.
31148         (File system functions): Add areadlink, chdir-safer, read-file.
31149         Remove cycle-check.
31150         (File system as inode set): New section.
31151         (Date and time): Add gethrxtime.
31152         (Multithreading): Add openmp.
31153         (Internationalization functions): Add localename.
31154         (Unicode string functions): Add unistr/u*-mbsnlen.
31155         (Support for maintaining and releasing projects): Add git-version-gen.
31156         (Lone files): Remove directories.
31157
31158 2007-10-08  Ben Pfaff  <blp@gnu.org>
31159
31160         * lib/xmalloca.h: Fix typo in comment.
31161
31162 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31163
31164         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
31165         when avoiding problems with integer overflow.  Use a portable test
31166         instead.
31167
31168 2007-10-08  Simon Josefsson  <simon@josefsson.org>
31169
31170         * modules/dummy (License): Change to LGPLv2+.
31171         * modules/float (License): Likewise
31172         * modules/realloc (License): Likewise
31173         * modules/stdlib (License): Likewise
31174
31175 2007-10-07  Bruno Haible  <bruno@clisp.org>
31176
31177         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
31178         * floor.c (TWO_MANT_DIG): Likewise.
31179         * ceil.c (TWO_MANT_DIG): Likewise.
31180         Reported by Ben Pfaff.
31181
31182 2007-10-07  Bruno Haible  <bruno@clisp.org>
31183
31184         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
31185         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
31186         * lib/frexp.c (FUNC): Likewise.
31187         * lib/printf-frexp.h (printf_frexp): Likewise.
31188         * lib/printf-frexpl.h (printf_frexpl): Likewise.
31189         * lib/printf-frexp.c (FUNC): Likewise.
31190         Suggested by Jim Meyering.
31191
31192 2007-10-07  Jim Meyering  <meyering@redhat.com>
31193
31194         Make xnanosleep's integer overflow test more robust.
31195         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
31196         so that gcc-4.3.0 doesn't optimize away this test for overflow.
31197
31198 2007-10-07  Bruno Haible  <bruno@clisp.org>
31199
31200         * NEWS: Mention the license change.
31201
31202         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
31203         abbreviations in the modules files.
31204
31205         Change copyright notice from GPLv2+ to GPLv3+.
31206         * README: Change copyright notice.
31207         * MODULES.html.sh: Likewise.
31208         * build-aux/bootstrap.conf: Likewise.
31209         * build-aux/config.libpath: Likewise.
31210         * build-aux/csharpcomp.sh.in: Likewise.
31211         * build-aux/csharpexec.sh.in: Likewise.
31212         * build-aux/install-reloc: Likewise.
31213         * build-aux/javacomp.sh.in: Likewise.
31214         * build-aux/javaexec.sh.in: Likewise.
31215         * build-aux/ldd.sh.in: Likewise.
31216         * build-aux/reloc-ldflags: Likewise.
31217         * build-aux/relocatable.sh.in: Likewise.
31218         * build-aux/x-to-1.in: Likewise.
31219         * check-module: Likewise.
31220         * config/srclistvars.sh: Likewise.
31221         * gnulib-tool: Likewise.
31222         * lib/acl-internal.h: Likewise.
31223         * lib/acl.c: Likewise.
31224         * lib/acl.h: Likewise.
31225         * lib/acl_entries.c: Likewise.
31226         * lib/areadlink-with-size.c: Likewise.
31227         * lib/areadlink.c: Likewise.
31228         * lib/areadlink.h: Likewise.
31229         * lib/argmatch.c: Likewise.
31230         * lib/argmatch.h: Likewise.
31231         * lib/argp-ba.c: Likewise.
31232         * lib/argp-eexst.c: Likewise.
31233         * lib/argp-fmtstream.c: Likewise.
31234         * lib/argp-fmtstream.h: Likewise.
31235         * lib/argp-fs-xinl.c: Likewise.
31236         * lib/argp-help.c: Likewise.
31237         * lib/argp-namefrob.h: Likewise.
31238         * lib/argp-parse.c: Likewise.
31239         * lib/argp-pin.c: Likewise.
31240         * lib/argp-pv.c: Likewise.
31241         * lib/argp-pvh.c: Likewise.
31242         * lib/argp-xinl.c: Likewise.
31243         * lib/argp.h: Likewise.
31244         * lib/at-func.c: Likewise.
31245         * lib/atanl.c: Likewise.
31246         * lib/backupfile.c: Likewise.
31247         * lib/backupfile.h: Likewise.
31248         * lib/basename.c: Likewise.
31249         * lib/binary-io.h: Likewise.
31250         * lib/byteswap.in.h: Likewise.
31251         * lib/c-stack.c: Likewise.
31252         * lib/c-stack.h: Likewise.
31253         * lib/c-strcasestr.c: Likewise.
31254         * lib/c-strcasestr.h: Likewise.
31255         * lib/c-strstr.c: Likewise.
31256         * lib/c-strstr.h: Likewise.
31257         * lib/c-strtod.c: Likewise.
31258         * lib/calloc.c: Likewise.
31259         * lib/canon-host.c: Likewise.
31260         * lib/canon-host.h: Likewise.
31261         * lib/canonicalize-lgpl.c: Likewise.
31262         * lib/canonicalize.c: Likewise.
31263         * lib/canonicalize.h: Likewise.
31264         * lib/ceil.c: Likewise.
31265         * lib/ceilf.c: Likewise.
31266         * lib/ceill.c: Likewise.
31267         * lib/chdir-long.c: Likewise.
31268         * lib/chdir-long.h: Likewise.
31269         * lib/chdir-safer.c: Likewise.
31270         * lib/chdir-safer.h: Likewise.
31271         * lib/chown.c: Likewise.
31272         * lib/classpath.c: Likewise.
31273         * lib/classpath.h: Likewise.
31274         * lib/clean-temp.c: Likewise.
31275         * lib/clean-temp.h: Likewise.
31276         * lib/cloexec.c: Likewise.
31277         * lib/close-stream.c: Likewise.
31278         * lib/closein.c: Likewise.
31279         * lib/closein.h: Likewise.
31280         * lib/closeout.c: Likewise.
31281         * lib/closeout.h: Likewise.
31282         * lib/concat-filename.c: Likewise.
31283         * lib/copy-file.c: Likewise.
31284         * lib/copy-file.h: Likewise.
31285         * lib/count-one-bits.h: Likewise.
31286         * lib/crc.c: Likewise.
31287         * lib/crc.h: Likewise.
31288         * lib/creat-safer.c: Likewise.
31289         * lib/csharpcomp.c: Likewise.
31290         * lib/csharpcomp.h: Likewise.
31291         * lib/csharpexec.c: Likewise.
31292         * lib/csharpexec.h: Likewise.
31293         * lib/cycle-check.c: Likewise.
31294         * lib/cycle-check.h: Likewise.
31295         * lib/diacrit.c: Likewise.
31296         * lib/diacrit.h: Likewise.
31297         * lib/diffseq.h: Likewise.
31298         * lib/dirchownmod.c: Likewise.
31299         * lib/dirent.in.h: Likewise.
31300         * lib/dirfd.c: Likewise.
31301         * lib/dirfd.h: Likewise.
31302         * lib/dirname.c: Likewise.
31303         * lib/dirname.h: Likewise.
31304         * lib/dummy.c: Likewise.
31305         * lib/dup-safer.c: Likewise.
31306         * lib/dup2.c: Likewise.
31307         * lib/eealloc.h: Likewise.
31308         * lib/error.c: Likewise.
31309         * lib/error.h: Likewise.
31310         * lib/euidaccess.c: Likewise.
31311         * lib/exclude.c: Likewise.
31312         * lib/exclude.h: Likewise.
31313         * lib/execute.c: Likewise.
31314         * lib/execute.h: Likewise.
31315         * lib/exitfail.c: Likewise.
31316         * lib/exitfail.h: Likewise.
31317         * lib/expl.c: Likewise.
31318         * lib/fatal-signal.c: Likewise.
31319         * lib/fatal-signal.h: Likewise.
31320         * lib/fbufmode.c: Likewise.
31321         * lib/fbufmode.h: Likewise.
31322         * lib/fchdir.c: Likewise.
31323         * lib/fchmodat.c: Likewise.
31324         * lib/fchownat.c: Likewise.
31325         * lib/fcntl--.h: Likewise.
31326         * lib/fcntl-safer.h: Likewise.
31327         * lib/fcntl.in.h: Likewise.
31328         * lib/fd-safer.c: Likewise.
31329         * lib/fflush.c: Likewise.
31330         * lib/file-has-acl.c: Likewise.
31331         * lib/file-set.c: Likewise.
31332         * lib/file-type.c: Likewise.
31333         * lib/file-type.h: Likewise.
31334         * lib/fileblocks.c: Likewise.
31335         * lib/filemode.c: Likewise.
31336         * lib/filemode.h: Likewise.
31337         * lib/filename.h: Likewise.
31338         * lib/filenamecat.c: Likewise.
31339         * lib/filenamecat.h: Likewise.
31340         * lib/findprog.c: Likewise.
31341         * lib/findprog.h: Likewise.
31342         * lib/float.in.h: Likewise.
31343         * lib/floor.c: Likewise.
31344         * lib/floorf.c: Likewise.
31345         * lib/floorl.c: Likewise.
31346         * lib/fopen-safer.c: Likewise.
31347         * lib/fopen.c: Likewise.
31348         * lib/fpending.c: Likewise.
31349         * lib/fpending.h: Likewise.
31350         * lib/fprintf.c: Likewise.
31351         * lib/fprintftime.h: Likewise.
31352         * lib/fpucw.h: Likewise.
31353         * lib/fpurge.c: Likewise.
31354         * lib/fpurge.h: Likewise.
31355         * lib/freadable.c: Likewise.
31356         * lib/freadable.h: Likewise.
31357         * lib/freadahead.c: Likewise.
31358         * lib/freadahead.h: Likewise.
31359         * lib/freading.c: Likewise.
31360         * lib/freading.h: Likewise.
31361         * lib/free.c: Likewise.
31362         * lib/freopen.c: Likewise.
31363         * lib/frexp.c: Likewise.
31364         * lib/frexpl.c: Likewise.
31365         * lib/fseek.c: Likewise.
31366         * lib/fseterr.c: Likewise.
31367         * lib/fseterr.h: Likewise.
31368         * lib/fstatat.c: Likewise.
31369         * lib/fstrcmp.c: Likewise.
31370         * lib/fstrcmp.h: Likewise.
31371         * lib/fsusage.c: Likewise.
31372         * lib/fsusage.h: Likewise.
31373         * lib/ftell.c: Likewise.
31374         * lib/ftello.c: Likewise.
31375         * lib/fts-cycle.c: Likewise.
31376         * lib/fts.c: Likewise.
31377         * lib/fts_.h: Likewise.
31378         * lib/full-read.c: Likewise.
31379         * lib/full-read.h: Likewise.
31380         * lib/full-write.c: Likewise.
31381         * lib/full-write.h: Likewise.
31382         * lib/fwritable.c: Likewise.
31383         * lib/fwritable.h: Likewise.
31384         * lib/fwriteerror.c: Likewise.
31385         * lib/fwriteerror.h: Likewise.
31386         * lib/fwriting.c: Likewise.
31387         * lib/fwriting.h: Likewise.
31388         * lib/gcd.c: Likewise.
31389         * lib/gcd.h: Likewise.
31390         * lib/getcwd.c: Likewise.
31391         * lib/getdate.h: Likewise.
31392         * lib/getdate.y: Likewise.
31393         * lib/getdomainname.c: Likewise.
31394         * lib/getdomainname.h: Likewise.
31395         * lib/getgroups.c: Likewise.
31396         * lib/gethostname.c: Likewise.
31397         * lib/gethrxtime.c: Likewise.
31398         * lib/gethrxtime.h: Likewise.
31399         * lib/getloadavg.c: Likewise.
31400         * lib/getndelim2.c: Likewise.
31401         * lib/getndelim2.h: Likewise.
31402         * lib/getnline.c: Likewise.
31403         * lib/getnline.h: Likewise.
31404         * lib/getopt.c: Likewise.
31405         * lib/getopt.in.h: Likewise.
31406         * lib/getopt1.c: Likewise.
31407         * lib/getopt_int.h: Likewise.
31408         * lib/getpagesize.h: Likewise.
31409         * lib/getsubopt.c: Likewise.
31410         * lib/gettime.c: Likewise.
31411         * lib/getugroups.c: Likewise.
31412         * lib/getugroups.h: Likewise.
31413         * lib/getusershell.c: Likewise.
31414         * lib/gl_anyavltree_list1.h: Likewise.
31415         * lib/gl_anyavltree_list2.h: Likewise.
31416         * lib/gl_anyhash_list1.h: Likewise.
31417         * lib/gl_anyhash_list2.h: Likewise.
31418         * lib/gl_anylinked_list1.h: Likewise.
31419         * lib/gl_anylinked_list2.h: Likewise.
31420         * lib/gl_anyrbtree_list1.h: Likewise.
31421         * lib/gl_anyrbtree_list2.h: Likewise.
31422         * lib/gl_anytree_list1.h: Likewise.
31423         * lib/gl_anytree_list2.h: Likewise.
31424         * lib/gl_anytree_oset.h: Likewise.
31425         * lib/gl_anytreehash_list1.h: Likewise.
31426         * lib/gl_anytreehash_list2.h: Likewise.
31427         * lib/gl_array_list.c: Likewise.
31428         * lib/gl_array_list.h: Likewise.
31429         * lib/gl_array_oset.c: Likewise.
31430         * lib/gl_array_oset.h: Likewise.
31431         * lib/gl_avltree_list.c: Likewise.
31432         * lib/gl_avltree_list.h: Likewise.
31433         * lib/gl_avltree_oset.c: Likewise.
31434         * lib/gl_avltree_oset.h: Likewise.
31435         * lib/gl_avltreehash_list.c: Likewise.
31436         * lib/gl_avltreehash_list.h: Likewise.
31437         * lib/gl_carray_list.c: Likewise.
31438         * lib/gl_carray_list.h: Likewise.
31439         * lib/gl_linked_list.c: Likewise.
31440         * lib/gl_linked_list.h: Likewise.
31441         * lib/gl_linkedhash_list.c: Likewise.
31442         * lib/gl_linkedhash_list.h: Likewise.
31443         * lib/gl_list.c: Likewise.
31444         * lib/gl_list.h: Likewise.
31445         * lib/gl_oset.c: Likewise.
31446         * lib/gl_oset.h: Likewise.
31447         * lib/gl_rbtree_list.c: Likewise.
31448         * lib/gl_rbtree_list.h: Likewise.
31449         * lib/gl_rbtree_oset.c: Likewise.
31450         * lib/gl_rbtree_oset.h: Likewise.
31451         * lib/gl_rbtreehash_list.c: Likewise.
31452         * lib/gl_rbtreehash_list.h: Likewise.
31453         * lib/gl_sublist.c: Likewise.
31454         * lib/gl_sublist.h: Likewise.
31455         * lib/group-member.c: Likewise.
31456         * lib/group-member.h: Likewise.
31457         * lib/hard-locale.c: Likewise.
31458         * lib/hard-locale.h: Likewise.
31459         * lib/hash-pjw.c: Likewise.
31460         * lib/hash-pjw.h: Likewise.
31461         * lib/hash-triple.c: Likewise.
31462         * lib/hash.c: Likewise.
31463         * lib/hash.h: Likewise.
31464         * lib/human.c: Likewise.
31465         * lib/human.h: Likewise.
31466         * lib/i-ring.c: Likewise.
31467         * lib/i-ring.h: Likewise.
31468         * lib/idcache.c: Likewise.
31469         * lib/imaxabs.c: Likewise.
31470         * lib/imaxdiv.c: Likewise.
31471         * lib/inet_pton.c: Likewise.
31472         * lib/inet_pton.h: Likewise.
31473         * lib/intprops.h: Likewise.
31474         * lib/inttostr.c: Likewise.
31475         * lib/inttostr.h: Likewise.
31476         * lib/inttypes.in.h: Likewise.
31477         * lib/isapipe.c: Likewise.
31478         * lib/isdir.c: Likewise.
31479         * lib/isnan.c: Likewise.
31480         * lib/isnan.h: Likewise.
31481         * lib/isnanf.c: Likewise.
31482         * lib/isnanf.h: Likewise.
31483         * lib/isnanl-nolibm.h: Likewise.
31484         * lib/isnanl.c: Likewise.
31485         * lib/isnanl.h: Likewise.
31486         * lib/javacomp.c: Likewise.
31487         * lib/javacomp.h: Likewise.
31488         * lib/javaexec.c: Likewise.
31489         * lib/javaexec.h: Likewise.
31490         * lib/javaversion.c: Likewise.
31491         * lib/javaversion.h: Likewise.
31492         * lib/javaversion.java: Likewise.
31493         * lib/lbrkprop.h: Likewise.
31494         * lib/lchmod.h: Likewise.
31495         * lib/lchown.c: Likewise.
31496         * lib/ldexpl.c: Likewise.
31497         * lib/linebreak.c: Likewise.
31498         * lib/linebreak.h: Likewise.
31499         * lib/linebuffer.c: Likewise.
31500         * lib/linebuffer.h: Likewise.
31501         * lib/locale.in.h: Likewise.
31502         * lib/logl.c: Likewise.
31503         * lib/long-options.c: Likewise.
31504         * lib/long-options.h: Likewise.
31505         * lib/lstat.c: Likewise.
31506         * lib/lstat.h: Likewise.
31507         * lib/math.in.h: Likewise.
31508         * lib/mbchar.c: Likewise.
31509         * lib/mbchar.h: Likewise.
31510         * lib/mbfile.h: Likewise.
31511         * lib/mbiter.h: Likewise.
31512         * lib/mbscasecmp.c: Likewise.
31513         * lib/mbscasestr.c: Likewise.
31514         * lib/mbschr.c: Likewise.
31515         * lib/mbscspn.c: Likewise.
31516         * lib/mbslen.c: Likewise.
31517         * lib/mbsncasecmp.c: Likewise.
31518         * lib/mbsnlen.c: Likewise.
31519         * lib/mbspbrk.c: Likewise.
31520         * lib/mbspcasecmp.c: Likewise.
31521         * lib/mbsrchr.c: Likewise.
31522         * lib/mbssep.c: Likewise.
31523         * lib/mbsspn.c: Likewise.
31524         * lib/mbsstr.c: Likewise.
31525         * lib/mbstok_r.c: Likewise.
31526         * lib/mbswidth.c: Likewise.
31527         * lib/mbswidth.h: Likewise.
31528         * lib/mbuiter.h: Likewise.
31529         * lib/memcasecmp.c: Likewise.
31530         * lib/memcasecmp.h: Likewise.
31531         * lib/memchr.c: Likewise.
31532         * lib/memcmp.c: Likewise.
31533         * lib/memcoll.c: Likewise.
31534         * lib/memcoll.h: Likewise.
31535         * lib/memcpy.c: Likewise.
31536         * lib/memrchr.c: Likewise.
31537         * lib/mkancesdirs.c: Likewise.
31538         * lib/mkdir-p.c: Likewise.
31539         * lib/mkdir-p.h: Likewise.
31540         * lib/mkdir.c: Likewise.
31541         * lib/mkdirat.c: Likewise.
31542         * lib/mkdtemp.c: Likewise.
31543         * lib/mkstemp-safer.c: Likewise.
31544         * lib/mkstemp.c: Likewise.
31545         * lib/modechange.c: Likewise.
31546         * lib/modechange.h: Likewise.
31547         * lib/mountlist.c: Likewise.
31548         * lib/mountlist.h: Likewise.
31549         * lib/mpsort.c: Likewise.
31550         * lib/nanosleep.c: Likewise.
31551         * lib/obstack.c: Likewise.
31552         * lib/obstack.h: Likewise.
31553         * lib/open-safer.c: Likewise.
31554         * lib/open.c: Likewise.
31555         * lib/openat-die.c: Likewise.
31556         * lib/openat-priv.h: Likewise.
31557         * lib/openat-proc.c: Likewise.
31558         * lib/openat.c: Likewise.
31559         * lib/openat.h: Likewise.
31560         * lib/pagealign_alloc.c: Likewise.
31561         * lib/pagealign_alloc.h: Likewise.
31562         * lib/physmem.c: Likewise.
31563         * lib/physmem.h: Likewise.
31564         * lib/pipe-safer.c: Likewise.
31565         * lib/pipe.c: Likewise.
31566         * lib/pipe.h: Likewise.
31567         * lib/posixtm.c: Likewise.
31568         * lib/posixtm.h: Likewise.
31569         * lib/posixver.c: Likewise.
31570         * lib/printf-frexp.c: Likewise.
31571         * lib/printf-frexp.h: Likewise.
31572         * lib/printf-frexpl.c: Likewise.
31573         * lib/printf-frexpl.h: Likewise.
31574         * lib/printf.c: Likewise.
31575         * lib/progname.c: Likewise.
31576         * lib/progname.h: Likewise.
31577         * lib/progreloc.c: Likewise.
31578         * lib/putenv.c: Likewise.
31579         * lib/quote.c: Likewise.
31580         * lib/quote.h: Likewise.
31581         * lib/quotearg.c: Likewise.
31582         * lib/quotearg.h: Likewise.
31583         * lib/raise.c: Likewise.
31584         * lib/readline.c: Likewise.
31585         * lib/readline.h: Likewise.
31586         * lib/readlink.c: Likewise.
31587         * lib/readtokens.c: Likewise.
31588         * lib/readtokens.h: Likewise.
31589         * lib/readtokens0.c: Likewise.
31590         * lib/readtokens0.h: Likewise.
31591         * lib/readutmp.c: Likewise.
31592         * lib/readutmp.h: Likewise.
31593         * lib/realloc.c: Likewise.
31594         * lib/relocwrapper.c: Likewise.
31595         * lib/rename-dest-slash.c: Likewise.
31596         * lib/rename.c: Likewise.
31597         * lib/rmdir.c: Likewise.
31598         * lib/rpmatch.c: Likewise.
31599         * lib/safe-read.c: Likewise.
31600         * lib/safe-read.h: Likewise.
31601         * lib/safe-write.c: Likewise.
31602         * lib/safe-write.h: Likewise.
31603         * lib/same-inode.h: Likewise.
31604         * lib/same.c: Likewise.
31605         * lib/same.h: Likewise.
31606         * lib/save-cwd.c: Likewise.
31607         * lib/save-cwd.h: Likewise.
31608         * lib/savedir.c: Likewise.
31609         * lib/savedir.h: Likewise.
31610         * lib/savewd.c: Likewise.
31611         * lib/savewd.h: Likewise.
31612         * lib/search.in.h: Likewise.
31613         * lib/setenv.c: Likewise.
31614         * lib/setenv.h: Likewise.
31615         * lib/settime.c: Likewise.
31616         * lib/sh-quote.c: Likewise.
31617         * lib/sh-quote.h: Likewise.
31618         * lib/sig2str.c: Likewise.
31619         * lib/sig2str.h: Likewise.
31620         * lib/signal.in.h: Likewise.
31621         * lib/signbitd.c: Likewise.
31622         * lib/signbitf.c: Likewise.
31623         * lib/signbitl.c: Likewise.
31624         * lib/sigprocmask.c: Likewise.
31625         * lib/sincosl.c: Likewise.
31626         * lib/sleep.c: Likewise.
31627         * lib/sprintf.c: Likewise.
31628         * lib/sqrtl.c: Likewise.
31629         * lib/stat-time.h: Likewise.
31630         * lib/stdio--.h: Likewise.
31631         * lib/stdio-safer.h: Likewise.
31632         * lib/stdlib--.h: Likewise.
31633         * lib/stdlib-safer.h: Likewise.
31634         * lib/stdlib.in.h: Likewise.
31635         * lib/stpcpy.c: Likewise.
31636         * lib/stpncpy.c: Likewise.
31637         * lib/strchrnul.c: Likewise.
31638         * lib/strcspn.c: Likewise.
31639         * lib/strerror.c: Likewise.
31640         * lib/strftime.c: Likewise.
31641         * lib/strftime.h: Likewise.
31642         * lib/striconveh.c: Likewise.
31643         * lib/striconveh.h: Likewise.
31644         * lib/striconveha.c: Likewise.
31645         * lib/striconveha.h: Likewise.
31646         * lib/stripslash.c: Likewise.
31647         * lib/strnlen1.c: Likewise.
31648         * lib/strnlen1.h: Likewise.
31649         * lib/strtod.c: Likewise.
31650         * lib/strtoimax.c: Likewise.
31651         * lib/strtok_r.c: Likewise.
31652         * lib/strtol.c: Likewise.
31653         * lib/strtoll.c: Likewise.
31654         * lib/strtoul.c: Likewise.
31655         * lib/strtoull.c: Likewise.
31656         * lib/sysexits.in.h: Likewise.
31657         * lib/tempname.c: Likewise.
31658         * lib/tempname.h: Likewise.
31659         * lib/timespec.h: Likewise.
31660         * lib/tls.c: Likewise.
31661         * lib/tls.h: Likewise.
31662         * lib/tmpdir.c: Likewise.
31663         * lib/tmpdir.h: Likewise.
31664         * lib/tmpfile-safer.c: Likewise.
31665         * lib/tmpfile.c: Likewise.
31666         * lib/trigl.c: Likewise.
31667         * lib/trigl.h: Likewise.
31668         * lib/trim.c: Likewise.
31669         * lib/trim.h: Likewise.
31670         * lib/trunc.c: Likewise.
31671         * lib/truncf.c: Likewise.
31672         * lib/truncl.c: Likewise.
31673         * lib/tsearch.c: Likewise.
31674         * lib/unicodeio.c: Likewise.
31675         * lib/unicodeio.h: Likewise.
31676         * lib/unistd--.h: Likewise.
31677         * lib/unistd-safer.h: Likewise.
31678         * lib/unistdio/ulc-fprintf.c: Likewise.
31679         * lib/unistdio/ulc-vfprintf.c: Likewise.
31680         * lib/unlinkdir.c: Likewise.
31681         * lib/unlinkdir.h: Likewise.
31682         * lib/unlocked-io.h: Likewise.
31683         * lib/unsetenv.c: Likewise.
31684         * lib/userspec.c: Likewise.
31685         * lib/utime.c: Likewise.
31686         * lib/utimecmp.c: Likewise.
31687         * lib/utimecmp.h: Likewise.
31688         * lib/utimens.c: Likewise.
31689         * lib/verify.h: Likewise.
31690         * lib/verror.c: Likewise.
31691         * lib/verror.h: Likewise.
31692         * lib/version-etc-fsf.c: Likewise.
31693         * lib/version-etc.c: Likewise.
31694         * lib/version-etc.h: Likewise.
31695         * lib/vfprintf.c: Likewise.
31696         * lib/vprintf.c: Likewise.
31697         * lib/vsprintf.c: Likewise.
31698         * lib/w32spawn.h: Likewise.
31699         * lib/wait-process.c: Likewise.
31700         * lib/wait-process.h: Likewise.
31701         * lib/wcwidth.c: Likewise.
31702         * lib/write-any-file.c: Likewise.
31703         * lib/xalloc-die.c: Likewise.
31704         * lib/xalloc.h: Likewise.
31705         * lib/xasprintf.c: Likewise.
31706         * lib/xgetcwd.c: Likewise.
31707         * lib/xgetcwd.h: Likewise.
31708         * lib/xgetdomainname.c: Likewise.
31709         * lib/xgetdomainname.h: Likewise.
31710         * lib/xgethostname.c: Likewise.
31711         * lib/xmalloc.c: Likewise.
31712         * lib/xmalloca.c: Likewise.
31713         * lib/xmalloca.h: Likewise.
31714         * lib/xmemcoll.c: Likewise.
31715         * lib/xnanosleep.c: Likewise.
31716         * lib/xreadlink.c: Likewise.
31717         * lib/xreadlink.h: Likewise.
31718         * lib/xsetenv.c: Likewise.
31719         * lib/xsetenv.h: Likewise.
31720         * lib/xstriconv.c: Likewise.
31721         * lib/xstriconv.h: Likewise.
31722         * lib/xstrndup.c: Likewise.
31723         * lib/xstrndup.h: Likewise.
31724         * lib/xstrtod.c: Likewise.
31725         * lib/xstrtod.h: Likewise.
31726         * lib/xstrtol-error.c: Likewise.
31727         * lib/xstrtol.c: Likewise.
31728         * lib/xstrtol.h: Likewise.
31729         * lib/xtime.h: Likewise.
31730         * lib/xvasprintf.c: Likewise.
31731         * lib/xvasprintf.h: Likewise.
31732         * lib/yesno.c: Likewise.
31733         * lib/yesno.h: Likewise.
31734         * posix-modules: Likewise.
31735         * tests/test-alloca-opt.c: Likewise.
31736         * tests/test-arcfour.c: Likewise.
31737         * tests/test-arctwo.c: Likewise.
31738         * tests/test-argmatch.c: Likewise.
31739         * tests/test-argp-2.sh: Likewise.
31740         * tests/test-argp.c: Likewise.
31741         * tests/test-arpa_inet.c: Likewise.
31742         * tests/test-array_list.c: Likewise.
31743         * tests/test-array_oset.c: Likewise.
31744         * tests/test-atexit.c: Likewise.
31745         * tests/test-avltree_list.c: Likewise.
31746         * tests/test-avltree_oset.c: Likewise.
31747         * tests/test-avltreehash_list.c: Likewise.
31748         * tests/test-base64.c: Likewise.
31749         * tests/test-binary-io.c: Likewise.
31750         * tests/test-byteswap.c: Likewise.
31751         * tests/test-c-ctype.c: Likewise.
31752         * tests/test-c-strcasecmp.c: Likewise.
31753         * tests/test-c-strcasestr.c: Likewise.
31754         * tests/test-c-strncasecmp.c: Likewise.
31755         * tests/test-c-strstr.c: Likewise.
31756         * tests/test-canonicalize-lgpl.c: Likewise.
31757         * tests/test-canonicalize.c: Likewise.
31758         * tests/test-carray_list.c: Likewise.
31759         * tests/test-ceilf.c: Likewise.
31760         * tests/test-ceill.c: Likewise.
31761         * tests/test-count-one-bits.c: Likewise.
31762         * tests/test-crc.c: Likewise.
31763         * tests/test-dirname.c: Likewise.
31764         * tests/test-fbufmode.c: Likewise.
31765         * tests/test-fcntl.c: Likewise.
31766         * tests/test-fflush.c: Likewise.
31767         * tests/test-floorf.c: Likewise.
31768         * tests/test-floorl.c: Likewise.
31769         * tests/test-fopen.c: Likewise.
31770         * tests/test-fprintf-posix.c: Likewise.
31771         * tests/test-fprintf-posix.h: Likewise.
31772         * tests/test-fpurge.c: Likewise.
31773         * tests/test-freadable.c: Likewise.
31774         * tests/test-freadahead.c: Likewise.
31775         * tests/test-freading.c: Likewise.
31776         * tests/test-freopen.c: Likewise.
31777         * tests/test-frexp.c: Likewise.
31778         * tests/test-frexpl.c: Likewise.
31779         * tests/test-fseek.c: Likewise.
31780         * tests/test-fseeko.c: Likewise.
31781         * tests/test-fseterr.c: Likewise.
31782         * tests/test-fstrcmp.c: Likewise.
31783         * tests/test-ftell.c: Likewise.
31784         * tests/test-ftello.c: Likewise.
31785         * tests/test-fwritable.c: Likewise.
31786         * tests/test-fwriting.c: Likewise.
31787         * tests/test-getaddrinfo.c: Likewise.
31788         * tests/test-getpass.c: Likewise.
31789         * tests/test-gettimeofday.c: Likewise.
31790         * tests/test-hmac-md5.c: Likewise.
31791         * tests/test-hmac-sha1.c: Likewise.
31792         * tests/test-iconv.c: Likewise.
31793         * tests/test-iconvme.c: Likewise.
31794         * tests/test-inttypes.c: Likewise.
31795         * tests/test-isnan.c: Likewise.
31796         * tests/test-isnanf.c: Likewise.
31797         * tests/test-isnanl-nolibm.c: Likewise.
31798         * tests/test-isnanl.c: Likewise.
31799         * tests/test-isnanl.h: Likewise.
31800         * tests/test-ldexpl.c: Likewise.
31801         * tests/test-linked_list.c: Likewise.
31802         * tests/test-linkedhash_list.c: Likewise.
31803         * tests/test-locale.c: Likewise.
31804         * tests/test-localename.c: Likewise.
31805         * tests/test-lock.c: Likewise.
31806         * tests/test-lseek.c: Likewise.
31807         * tests/test-malloca.c: Likewise.
31808         * tests/test-math.c: Likewise.
31809         * tests/test-mbscasecmp.c: Likewise.
31810         * tests/test-mbscasestr1.c: Likewise.
31811         * tests/test-mbscasestr2.c: Likewise.
31812         * tests/test-mbscasestr3.c: Likewise.
31813         * tests/test-mbscasestr4.c: Likewise.
31814         * tests/test-mbschr.c: Likewise.
31815         * tests/test-mbscspn.c: Likewise.
31816         * tests/test-mbsncasecmp.c: Likewise.
31817         * tests/test-mbspbrk.c: Likewise.
31818         * tests/test-mbspcasecmp.c: Likewise.
31819         * tests/test-mbsrchr.c: Likewise.
31820         * tests/test-mbsspn.c: Likewise.
31821         * tests/test-mbsstr1.c: Likewise.
31822         * tests/test-mbsstr2.c: Likewise.
31823         * tests/test-mbsstr3.c: Likewise.
31824         * tests/test-md5.c: Likewise.
31825         * tests/test-memmem.c: Likewise.
31826         * tests/test-netinet_in.c: Likewise.
31827         * tests/test-open.c: Likewise.
31828         * tests/test-printf-frexp.c: Likewise.
31829         * tests/test-printf-frexpl.c: Likewise.
31830         * tests/test-printf-posix.c: Likewise.
31831         * tests/test-printf-posix.h: Likewise.
31832         * tests/test-rbtree_list.c: Likewise.
31833         * tests/test-rbtree_oset.c: Likewise.
31834         * tests/test-rbtreehash_list.c: Likewise.
31835         * tests/test-read-file.c: Likewise.
31836         * tests/test-rijndael.c: Likewise.
31837         * tests/test-search.c: Likewise.
31838         * tests/test-signbit.c: Likewise.
31839         * tests/test-sleep.c: Likewise.
31840         * tests/test-snprintf-posix.c: Likewise.
31841         * tests/test-snprintf-posix.h: Likewise.
31842         * tests/test-snprintf.c: Likewise.
31843         * tests/test-sprintf-posix.c: Likewise.
31844         * tests/test-sprintf-posix.h: Likewise.
31845         * tests/test-stat-time.c: Likewise.
31846         * tests/test-stdbool.c: Likewise.
31847         * tests/test-stdint.c: Likewise.
31848         * tests/test-stdio.c: Likewise.
31849         * tests/test-stdlib.c: Likewise.
31850         * tests/test-stpncpy.c: Likewise.
31851         * tests/test-strcasestr.c: Likewise.
31852         * tests/test-striconv.c: Likewise.
31853         * tests/test-striconveh.c: Likewise.
31854         * tests/test-striconveha.c: Likewise.
31855         * tests/test-string.c: Likewise.
31856         * tests/test-sys_select.c: Likewise.
31857         * tests/test-sys_socket.c: Likewise.
31858         * tests/test-sys_stat.c: Likewise.
31859         * tests/test-sys_time.c: Likewise.
31860         * tests/test-sysexits.c: Likewise.
31861         * tests/test-time.c: Likewise.
31862         * tests/test-tls.c: Likewise.
31863         * tests/test-trunc.c: Likewise.
31864         * tests/test-truncf.c: Likewise.
31865         * tests/test-truncl.c: Likewise.
31866         * tests/test-unistd.c: Likewise.
31867         * tests/test-vasnprintf-posix.c: Likewise.
31868         * tests/test-vasnprintf-posix2.c: Likewise.
31869         * tests/test-vasnprintf.c: Likewise.
31870         * tests/test-vasprintf-posix.c: Likewise.
31871         * tests/test-vasprintf.c: Likewise.
31872         * tests/test-verify.c: Likewise.
31873         * tests/test-vfprintf-posix.c: Likewise.
31874         * tests/test-vprintf-posix.c: Likewise.
31875         * tests/test-vsnprintf-posix.c: Likewise.
31876         * tests/test-vsnprintf.c: Likewise.
31877         * tests/test-vsprintf-posix.c: Likewise.
31878         * tests/test-wchar.c: Likewise.
31879         * tests/test-wctype.c: Likewise.
31880         * tests/test-wcwidth.c: Likewise.
31881         * tests/test-xstrtol.c: Likewise.
31882         * tests/test-xvasprintf.c: Likewise.
31883         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31884         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31885         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31886         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31887         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31888         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31889         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31890         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31891         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31892         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31893         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31894         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31895         * tests/uniname/test-uninames.c: Likewise.
31896         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31897         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31898         * tests/unistdio/test-u16-printf1.h: Likewise.
31899         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31900         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31901         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31902         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31903         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31904         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31905         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31906         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31907         * tests/unistdio/test-u32-printf1.h: Likewise.
31908         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31909         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31910         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31911         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31912         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31913         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31914         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31915         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31916         * tests/unistdio/test-u8-printf1.h: Likewise.
31917         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31918         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31919         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31920         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31921         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31922         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31923         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31924         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31925         * tests/unistdio/test-ulc-printf1.h: Likewise.
31926         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31927         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31928         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31929         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31930         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31931         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31932         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31933         * tests/uniwidth/test-u16-width.c: Likewise.
31934         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31935         * tests/uniwidth/test-u32-width.c: Likewise.
31936         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31937         * tests/uniwidth/test-u8-width.c: Likewise.
31938         * tests/uniwidth/test-uc_width.c: Likewise.
31939         * config/srclist-update: Likewise.
31940         (fixlicense): Update to GPLv3+.
31941
31942         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31943         * tests/test-tsearch.c: Change copyright notice.
31944
31945         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31946         * lib/c-strcaseeq.h: Change copyright notice.
31947         * lib/streq.h: Likewise.
31948         * lib/uniconv.h: Likewise.
31949         * lib/uniconv/u-conv-from-enc.h: Likewise.
31950         * lib/uniconv/u-conv-to-enc.h: Likewise.
31951         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31952         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31953         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31954         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31955         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31956         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31957         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31958         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31959         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31960         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31961         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31962         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31963         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31964         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31965         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31966         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31967         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31968         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31969         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31970         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31971         * lib/uniname.h: Likewise.
31972         * lib/uniname/uniname.c: Likewise.
31973         * lib/unistdio.h: Likewise.
31974         * lib/unistdio/u-asnprintf.h: Likewise.
31975         * lib/unistdio/u-asprintf.h: Likewise.
31976         * lib/unistdio/u-printf-args.c: Likewise.
31977         * lib/unistdio/u-printf-args.h: Likewise.
31978         * lib/unistdio/u-printf-parse.h: Likewise.
31979         * lib/unistdio/u-snprintf.h: Likewise.
31980         * lib/unistdio/u-sprintf.h: Likewise.
31981         * lib/unistdio/u-vasprintf.h: Likewise.
31982         * lib/unistdio/u-vsnprintf.h: Likewise.
31983         * lib/unistdio/u-vsprintf.h: Likewise.
31984         * lib/unistdio/u16-asnprintf.c: Likewise.
31985         * lib/unistdio/u16-asprintf.c: Likewise.
31986         * lib/unistdio/u16-printf-parse.c: Likewise.
31987         * lib/unistdio/u16-snprintf.c: Likewise.
31988         * lib/unistdio/u16-sprintf.c: Likewise.
31989         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31990         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31991         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31992         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31993         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31994         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31995         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31996         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31997         * lib/unistdio/u16-vasnprintf.c: Likewise.
31998         * lib/unistdio/u16-vasprintf.c: Likewise.
31999         * lib/unistdio/u16-vsnprintf.c: Likewise.
32000         * lib/unistdio/u16-vsprintf.c: Likewise.
32001         * lib/unistdio/u32-asnprintf.c: Likewise.
32002         * lib/unistdio/u32-asprintf.c: Likewise.
32003         * lib/unistdio/u32-printf-parse.c: Likewise.
32004         * lib/unistdio/u32-snprintf.c: Likewise.
32005         * lib/unistdio/u32-sprintf.c: Likewise.
32006         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
32007         * lib/unistdio/u32-u32-asprintf.c: Likewise.
32008         * lib/unistdio/u32-u32-snprintf.c: Likewise.
32009         * lib/unistdio/u32-u32-sprintf.c: Likewise.
32010         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
32011         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
32012         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
32013         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
32014         * lib/unistdio/u32-vasnprintf.c: Likewise.
32015         * lib/unistdio/u32-vasprintf.c: Likewise.
32016         * lib/unistdio/u32-vsnprintf.c: Likewise.
32017         * lib/unistdio/u32-vsprintf.c: Likewise.
32018         * lib/unistdio/u8-asnprintf.c: Likewise.
32019         * lib/unistdio/u8-asprintf.c: Likewise.
32020         * lib/unistdio/u8-printf-parse.c: Likewise.
32021         * lib/unistdio/u8-snprintf.c: Likewise.
32022         * lib/unistdio/u8-sprintf.c: Likewise.
32023         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
32024         * lib/unistdio/u8-u8-asprintf.c: Likewise.
32025         * lib/unistdio/u8-u8-snprintf.c: Likewise.
32026         * lib/unistdio/u8-u8-sprintf.c: Likewise.
32027         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
32028         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
32029         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
32030         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
32031         * lib/unistdio/u8-vasnprintf.c: Likewise.
32032         * lib/unistdio/u8-vasprintf.c: Likewise.
32033         * lib/unistdio/u8-vsnprintf.c: Likewise.
32034         * lib/unistdio/u8-vsprintf.c: Likewise.
32035         * lib/unistdio/ulc-asnprintf.c: Likewise.
32036         * lib/unistdio/ulc-asprintf.c: Likewise.
32037         * lib/unistdio/ulc-printf-parse.c: Likewise.
32038         * lib/unistdio/ulc-snprintf.c: Likewise.
32039         * lib/unistdio/ulc-sprintf.c: Likewise.
32040         * lib/unistdio/ulc-vasnprintf.c: Likewise.
32041         * lib/unistdio/ulc-vasprintf.c: Likewise.
32042         * lib/unistdio/ulc-vsnprintf.c: Likewise.
32043         * lib/unistdio/ulc-vsprintf.c: Likewise.
32044         * lib/unistr.h: Likewise.
32045         * lib/unistr/u-cpy-alloc.h: Likewise.
32046         * lib/unistr/u-cpy.h: Likewise.
32047         * lib/unistr/u-endswith.h: Likewise.
32048         * lib/unistr/u-move.h: Likewise.
32049         * lib/unistr/u-set.h: Likewise.
32050         * lib/unistr/u-startswith.h: Likewise.
32051         * lib/unistr/u-stpcpy.h: Likewise.
32052         * lib/unistr/u-stpncpy.h: Likewise.
32053         * lib/unistr/u-strcat.h: Likewise.
32054         * lib/unistr/u-strcpy.h: Likewise.
32055         * lib/unistr/u-strcspn.h: Likewise.
32056         * lib/unistr/u-strdup.h: Likewise.
32057         * lib/unistr/u-strlen.h: Likewise.
32058         * lib/unistr/u-strncat.h: Likewise.
32059         * lib/unistr/u-strncpy.h: Likewise.
32060         * lib/unistr/u-strnlen.h: Likewise.
32061         * lib/unistr/u-strpbrk.h: Likewise.
32062         * lib/unistr/u-strspn.h: Likewise.
32063         * lib/unistr/u-strstr.h: Likewise.
32064         * lib/unistr/u-strtok.h: Likewise.
32065         * lib/unistr/u16-check.c: Likewise.
32066         * lib/unistr/u16-chr.c: Likewise.
32067         * lib/unistr/u16-cmp.c: Likewise.
32068         * lib/unistr/u16-cpy-alloc.c: Likewise.
32069         * lib/unistr/u16-cpy.c: Likewise.
32070         * lib/unistr/u16-endswith.c: Likewise.
32071         * lib/unistr/u16-mblen.c: Likewise.
32072         * lib/unistr/u16-mbsnlen.c: Likewise.
32073         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32074         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32075         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32076         * lib/unistr/u16-mbtouc.c: Likewise.
32077         * lib/unistr/u16-mbtoucr.c: Likewise.
32078         * lib/unistr/u16-move.c: Likewise.
32079         * lib/unistr/u16-next.c: Likewise.
32080         * lib/unistr/u16-prev.c: Likewise.
32081         * lib/unistr/u16-set.c: Likewise.
32082         * lib/unistr/u16-startswith.c: Likewise.
32083         * lib/unistr/u16-stpcpy.c: Likewise.
32084         * lib/unistr/u16-stpncpy.c: Likewise.
32085         * lib/unistr/u16-strcat.c: Likewise.
32086         * lib/unistr/u16-strchr.c: Likewise.
32087         * lib/unistr/u16-strcmp.c: Likewise.
32088         * lib/unistr/u16-strcpy.c: Likewise.
32089         * lib/unistr/u16-strcspn.c: Likewise.
32090         * lib/unistr/u16-strdup.c: Likewise.
32091         * lib/unistr/u16-strlen.c: Likewise.
32092         * lib/unistr/u16-strmblen.c: Likewise.
32093         * lib/unistr/u16-strmbtouc.c: Likewise.
32094         * lib/unistr/u16-strncat.c: Likewise.
32095         * lib/unistr/u16-strncmp.c: Likewise.
32096         * lib/unistr/u16-strncpy.c: Likewise.
32097         * lib/unistr/u16-strnlen.c: Likewise.
32098         * lib/unistr/u16-strpbrk.c: Likewise.
32099         * lib/unistr/u16-strrchr.c: Likewise.
32100         * lib/unistr/u16-strspn.c: Likewise.
32101         * lib/unistr/u16-strstr.c: Likewise.
32102         * lib/unistr/u16-strtok.c: Likewise.
32103         * lib/unistr/u16-to-u32.c: Likewise.
32104         * lib/unistr/u16-to-u8.c: Likewise.
32105         * lib/unistr/u16-uctomb-aux.c: Likewise.
32106         * lib/unistr/u16-uctomb.c: Likewise.
32107         * lib/unistr/u32-check.c: Likewise.
32108         * lib/unistr/u32-chr.c: Likewise.
32109         * lib/unistr/u32-cmp.c: Likewise.
32110         * lib/unistr/u32-cpy-alloc.c: Likewise.
32111         * lib/unistr/u32-cpy.c: Likewise.
32112         * lib/unistr/u32-endswith.c: Likewise.
32113         * lib/unistr/u32-mblen.c: Likewise.
32114         * lib/unistr/u32-mbsnlen.c: Likewise.
32115         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32116         * lib/unistr/u32-mbtouc.c: Likewise.
32117         * lib/unistr/u32-mbtoucr.c: Likewise.
32118         * lib/unistr/u32-move.c: Likewise.
32119         * lib/unistr/u32-next.c: Likewise.
32120         * lib/unistr/u32-prev.c: Likewise.
32121         * lib/unistr/u32-set.c: Likewise.
32122         * lib/unistr/u32-startswith.c: Likewise.
32123         * lib/unistr/u32-stpcpy.c: Likewise.
32124         * lib/unistr/u32-stpncpy.c: Likewise.
32125         * lib/unistr/u32-strcat.c: Likewise.
32126         * lib/unistr/u32-strchr.c: Likewise.
32127         * lib/unistr/u32-strcmp.c: Likewise.
32128         * lib/unistr/u32-strcpy.c: Likewise.
32129         * lib/unistr/u32-strcspn.c: Likewise.
32130         * lib/unistr/u32-strdup.c: Likewise.
32131         * lib/unistr/u32-strlen.c: Likewise.
32132         * lib/unistr/u32-strmblen.c: Likewise.
32133         * lib/unistr/u32-strmbtouc.c: Likewise.
32134         * lib/unistr/u32-strncat.c: Likewise.
32135         * lib/unistr/u32-strncmp.c: Likewise.
32136         * lib/unistr/u32-strncpy.c: Likewise.
32137         * lib/unistr/u32-strnlen.c: Likewise.
32138         * lib/unistr/u32-strpbrk.c: Likewise.
32139         * lib/unistr/u32-strrchr.c: Likewise.
32140         * lib/unistr/u32-strspn.c: Likewise.
32141         * lib/unistr/u32-strstr.c: Likewise.
32142         * lib/unistr/u32-strtok.c: Likewise.
32143         * lib/unistr/u32-to-u16.c: Likewise.
32144         * lib/unistr/u32-to-u8.c: Likewise.
32145         * lib/unistr/u32-uctomb.c: Likewise.
32146         * lib/unistr/u8-check.c: Likewise.
32147         * lib/unistr/u8-chr.c: Likewise.
32148         * lib/unistr/u8-cmp.c: Likewise.
32149         * lib/unistr/u8-cpy-alloc.c: Likewise.
32150         * lib/unistr/u8-cpy.c: Likewise.
32151         * lib/unistr/u8-endswith.c: Likewise.
32152         * lib/unistr/u8-mblen.c: Likewise.
32153         * lib/unistr/u8-mbsnlen.c: Likewise.
32154         * lib/unistr/u8-mbtouc-aux.c: Likewise.
32155         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32156         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32157         * lib/unistr/u8-mbtouc.c: Likewise.
32158         * lib/unistr/u8-mbtoucr.c: Likewise.
32159         * lib/unistr/u8-move.c: Likewise.
32160         * lib/unistr/u8-next.c: Likewise.
32161         * lib/unistr/u8-prev.c: Likewise.
32162         * lib/unistr/u8-set.c: Likewise.
32163         * lib/unistr/u8-startswith.c: Likewise.
32164         * lib/unistr/u8-stpcpy.c: Likewise.
32165         * lib/unistr/u8-stpncpy.c: Likewise.
32166         * lib/unistr/u8-strcat.c: Likewise.
32167         * lib/unistr/u8-strchr.c: Likewise.
32168         * lib/unistr/u8-strcmp.c: Likewise.
32169         * lib/unistr/u8-strcpy.c: Likewise.
32170         * lib/unistr/u8-strcspn.c: Likewise.
32171         * lib/unistr/u8-strdup.c: Likewise.
32172         * lib/unistr/u8-strlen.c: Likewise.
32173         * lib/unistr/u8-strmblen.c: Likewise.
32174         * lib/unistr/u8-strmbtouc.c: Likewise.
32175         * lib/unistr/u8-strncat.c: Likewise.
32176         * lib/unistr/u8-strncmp.c: Likewise.
32177         * lib/unistr/u8-strncpy.c: Likewise.
32178         * lib/unistr/u8-strnlen.c: Likewise.
32179         * lib/unistr/u8-strpbrk.c: Likewise.
32180         * lib/unistr/u8-strrchr.c: Likewise.
32181         * lib/unistr/u8-strspn.c: Likewise.
32182         * lib/unistr/u8-strstr.c: Likewise.
32183         * lib/unistr/u8-strtok.c: Likewise.
32184         * lib/unistr/u8-to-u16.c: Likewise.
32185         * lib/unistr/u8-to-u32.c: Likewise.
32186         * lib/unistr/u8-uctomb-aux.c: Likewise.
32187         * lib/unistr/u8-uctomb.c: Likewise.
32188         * lib/unitypes.h: Likewise.
32189         * lib/uniwidth.h: Likewise.
32190         * lib/uniwidth/cjk.h: Likewise.
32191         * lib/uniwidth/u16-strwidth.c: Likewise.
32192         * lib/uniwidth/u16-width.c: Likewise.
32193         * lib/uniwidth/u32-strwidth.c: Likewise.
32194         * lib/uniwidth/u32-width.c: Likewise.
32195         * lib/uniwidth/u8-strwidth.c: Likewise.
32196         * lib/uniwidth/u8-width.c: Likewise.
32197         * lib/uniwidth/width.c: Likewise.
32198
32199 2007-10-07  Bruno Haible  <bruno@clisp.org>
32200
32201         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
32202         The file is still under LGPL (see modules/inttypes).
32203
32204 2007-10-06  Bruno Haible  <bruno@clisp.org>
32205
32206         * modules/trunc (Dependencies): Add 'extensions'.
32207         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
32208         Reported by Ben Pfaff <blp@gnu.org>.
32209
32210 2007-10-06  Bruno Haible  <bruno@clisp.org>
32211
32212         * modules/freopen-tests: New file.
32213         * tests/test-freopen.c: New file.
32214
32215         * modules/fopen-tests: New file.
32216         * tests/test-fopen.c: New file.
32217
32218         * modules/fopen: New file.
32219         * lib/fopen.c: New file.
32220         * m4/fopen.m4: New file.
32221         * modules/freopen: New file.
32222         * lib/freopen.c: New file.
32223         * m4/freopen.m4: New file.
32224         * lib/stdio.in.h (fopen, freopen): New declarations.
32225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32226         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32227         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32228         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32229         * doc/functions/fopen.texi: Mention the 'fopen' module.
32230         * doc/functions/freopen.texi: Mention the 'freopen' module.
32231
32232 2007-10-06  Bruno Haible  <bruno@clisp.org>
32233
32234         * modules/open-tests: New file.
32235         * tests/test-open.c: New file.
32236
32237         * modules/open: New file.
32238         * lib/open.c: New file.
32239         * m4/open.m4: New file.
32240         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32241         lib/open.c does.
32242         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32243         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32244         macros.
32245         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32246         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32247         REPLACE_OPEN.
32248         * doc/functions/open.texi: Mention the 'open' module.
32249
32250 2007-10-04  Bruno Haible  <bruno@clisp.org>
32251
32252         * modules/ceill-tests: New file.
32253         * tests/test-ceill.c: New file.
32254
32255         * modules/ceill: New file.
32256         * lib/ceill.c: Replace entire file.
32257         * m4/ceill.m4: New file.
32258         * lib/math.in.h (ceill): Replace declaration.
32259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32260         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32261         * doc/functions/ceill.texi: Mention the 'ceill' module.
32262         * modules/mathl (Files): Remove lib/ceill.c.
32263         (Depends-on): Add ceill.
32264
32265 2007-10-04  Bruno Haible  <bruno@clisp.org>
32266
32267         * modules/ceilf-tests: New file.
32268         * tests/test-ceilf.c: New file.
32269
32270         * modules/ceilf: New file.
32271         * lib/ceil.c: New file.
32272         * lib/ceilf.c: New file.
32273         * m4/ceilf.m4: New file.
32274         * lib/math.in.h (ceilf): New declaration.
32275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32276         HAVE_DECL_CEILF.
32277         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32278         HAVE_DECL_CEILF.
32279         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32280
32281 2007-10-04  Bruno Haible  <bruno@clisp.org>
32282
32283         * modules/floorl-tests: New file.
32284         * tests/test-floorl.c: New file.
32285
32286         * modules/floorl: New file.
32287         * lib/floorl.c: Replace entire file.
32288         * m4/floorl.m4: New file.
32289         * lib/math.in.h (floorl): Replace declaration.
32290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32291         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32292         * doc/functions/floorl.texi: Mention the 'floorl' module.
32293         * modules/mathl (Files): Remove lib/floorl.c.
32294         (Depends-on): Add floorl.
32295
32296 2007-10-04  Bruno Haible  <bruno@clisp.org>
32297
32298         * modules/floorf-tests: New file.
32299         * tests/test-floorf.c: New file.
32300
32301         * modules/floorf: New file.
32302         * lib/floor.c: New file.
32303         * lib/floorf.c: New file.
32304         * m4/floorf.m4: New file.
32305         * lib/math.in.h (floorf): New declaration.
32306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32307         HAVE_DECL_FLOORF.
32308         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32309         HAVE_DECL_FLOORF.
32310         * doc/functions/floorf.texi: Mention the 'floorf' module.
32311
32312 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32313             Bruno Haible  <bruno@clisp.org>
32314
32315         Advertise for the Git server instead of the CVS server.
32316         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32317         repository instead of the CVS one.
32318         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32319         about all VCS systems generically.
32320         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32321
32322 2007-10-04  Bruno Haible  <bruno@clisp.org>
32323
32324         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32325         means.
32326         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32327
32328 2007-10-04  Bruno Haible  <bruno@clisp.org>
32329
32330         * modules/truncl-tests: New file.
32331         * tests/test-truncl.c: New file.
32332
32333         * modules/truncl: New file.
32334         * lib/truncl.c: New file.
32335         * m4/truncl.m4: New file.
32336         * lib/math.in.h (truncl): New declaration.
32337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32338         HAVE_DECL_TRUNCL.
32339         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32340         HAVE_DECL_TRUNCL.
32341         * doc/functions/truncl.texi: Mention the 'truncl' module.
32342
32343 2007-10-04  Bruno Haible  <bruno@clisp.org>
32344
32345         * modules/truncf-tests: New file.
32346         * tests/test-truncf.c: New file.
32347
32348         * modules/truncf: New file.
32349         * lib/trunc.c: Make paramerizable through USE_* macros.
32350         * lib/truncf.c: New file.
32351         * m4/truncf.m4: New file.
32352         * lib/math.in.h (truncf): New declaration.
32353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32354         HAVE_DECL_TRUNCF.
32355         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32356         HAVE_DECL_TRUNCF.
32357         * doc/functions/truncf.texi: Mention the 'truncf' module.
32358
32359 2007-10-03  Bruno Haible  <bruno@clisp.org>
32360
32361         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32362         augmentation also for tests modules.
32363         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32364         * modules/atexit-tests (Makefile.am): Likewise.
32365         * modules/binary-io-tests (Makefile.am): Likewise.
32366         * modules/c-strcase-tests (Makefile.am): Likewise.
32367         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32368         * modules/canonicalize-tests (Makefile.am): Likewise.
32369         * modules/closein-tests (Makefile.am): Likewise.
32370         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32371         * modules/freadahead-tests (Makefile.am): Likewise.
32372         * modules/fseek-tests (Makefile.am): Likewise.
32373         * modules/fseeko-tests (Makefile.am): Likewise.
32374         * modules/ftell-tests (Makefile.am): Likewise.
32375         * modules/ftello-tests (Makefile.am): Likewise.
32376         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32377         * modules/isnanl-tests (Makefile.am): Likewise.
32378         * modules/lseek-tests (Makefile.am): Likewise.
32379         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32380         * modules/mbscasestr-tests (Makefile.am): Likewise.
32381         * modules/mbschr-tests (Makefile.am): Likewise.
32382         * modules/mbscspn-tests (Makefile.am): Likewise.
32383         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32384         * modules/mbspbrk-tests (Makefile.am): Likewise.
32385         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32386         * modules/mbsrchr-tests (Makefile.am): Likewise.
32387         * modules/mbsspn-tests (Makefile.am): Likewise.
32388         * modules/mbsstr-tests (Makefile.am): Likewise.
32389         * modules/printf-posix-tests (Makefile.am): Likewise.
32390         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32391         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32392         * modules/tsearch-tests (Makefile.am): Likewise.
32393         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32394         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32395         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32396         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32397         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32398         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32399         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32400         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32401         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32402         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32403         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32404         * modules/xstrtol-tests (Makefile.am): Likewise.
32405         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32406         * modules/yesno-tests (Makefile.am): Likewise.
32407
32408 2007-10-03  Bruno Haible  <bruno@clisp.org>
32409
32410         * modules/trunc-tests: New file.
32411         * tests/test-trunc.c: New file.
32412
32413         * modules/trunc: New file.
32414         * lib/trunc.c: New file.
32415         * m4/trunc.m4: New file.
32416         * lib/math.in.h (trunc): New declaration.
32417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32418         HAVE_DECL_TRUNC.
32419         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32420         HAVE_DECL_TRUNC.
32421         * doc/functions/trunc.texi: Mention the 'trunc' module.
32422
32423 2007-10-03  Bruno Haible  <bruno@clisp.org>
32424
32425         * tests/test-fpending.c: New file, mostly copied
32426         from coreutils/lib/t-fpending.c.
32427         * modules/fpending-tests: New file.
32428
32429 2007-10-03  Bruno Haible  <bruno@clisp.org>
32430
32431         Port the stdio extensions to QNX (untested).
32432         * lib/fseterr.c (fseterr): Add support for QNX.
32433         * lib/fbufmode.c (fbufmode): Likewise.
32434         * lib/freadable.c (freadable): Likewise.
32435         * lib/fwritable.c (fwritable): Likewise.
32436         * lib/freading.c (freading): Likewise.
32437         * lib/fwriting.c (fwriting): Likewise.
32438         * lib/freadahead.c (freadahed): Likewise.
32439         * lib/fpurge.c (fpurge): Likewise.
32440         * lib/fseeko.c (rpl_fseeko): Likewise.
32441
32442 2007-10-03  Bruno Haible  <bruno@clisp.org>
32443             Jim Meyering  <jim@meyering.net>
32444             Eric Blake  <ebb9@byu.net>
32445
32446         * doc/relocatable.texi: Use @command instead of @program.
32447
32448 2007-10-02  Jim Meyering  <jim@meyering.net>
32449
32450         Perform one more "_.h" -> ".in.h" substitution.
32451         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32452         instead of unistd_.h here, too.
32453
32454 2007-10-01  Bruno Haible  <bruno@clisp.org>
32455
32456         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32457         Needed for the alloca-opt module.
32458
32459 2007-09-30  Bruno Haible  <bruno@clisp.org>
32460
32461         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32462         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32463         alloca_.h.
32464         * lib/argz.in.h: Renamed from lib/argz_.h.
32465         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32466         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32467         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32468         byteswap_.h.
32469         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32470         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32471         dirent_.h.
32472         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32473         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32474         fcntl_.h.
32475         * lib/float.in.h: Renamed from lib/float_.h.
32476         * modules/float (Files, Makefile.am): Use float.in.h instead of
32477         float_.h.
32478         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32479         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32480         fnmatch_.h.
32481         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32482         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32483         getopt_.h.
32484         * lib/glob.in.h: Renamed from lib/glob_.h.
32485         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32486         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32487         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32488         iconv_.h.
32489         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32490         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32491         inttypes_.h.
32492         * lib/locale.in.h: Renamed from lib/locale_.h.
32493         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32494         locale_.h.
32495         * lib/math.in.h: Renamed from lib/math_.h.
32496         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32497         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32498         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32499         of netinet_in_.h. Add dependency.
32500         * lib/poll.in.h: Renamed from lib/poll_.h.
32501         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32502         * lib/search.in.h: Renamed from lib/search_.h.
32503         * modules/search (Files, Makefile.am): Use search.in.h instead of
32504         search_.h.
32505         * lib/signal.in.h: Renamed from lib/signal_.h.
32506         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32507         _signal.h.
32508         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32509         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32510         stdbool_.h.
32511         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32512         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32513         stdint_.h.
32514         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32515         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32516         stdio_.h.
32517         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32518         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32519         stdlib_.h.
32520         * lib/string.in.h: Renamed from lib/string_.h.
32521         * modules/string (Files, Makefile.am): Use string.in.h instead of
32522         string_.h.
32523         * doc/gnulib-tool.texi (Initial import): Update.
32524         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32525         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32526         of sys_select_.h. Add dependency.
32527         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32528         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32529         of sys_socket_.h.
32530         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32531         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32532         sys_stat_.h.
32533         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32534         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32535         sys_time_.h.
32536         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32537         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32538         sysexits_.h.
32539         * lib/time.in.h: Renamed from lib/time_.h.
32540         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32541         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32542         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32543         unistd_.h.
32544         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32545         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32546         wchar_.h.
32547         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32548         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32549         wctype_.h.
32550         * build-aux/bootstrap (slurp): Update.
32551         * lib/.cppi-disable: Update.
32552
32553 2007-09-30  Bruno Haible  <bruno@clisp.org>
32554
32555         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32556         Needed on BeOS.
32557
32558 2007-09-30  Bruno Haible  <bruno@clisp.org>
32559
32560         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32561
32562 2007-09-29  Bruno Haible  <bruno@clisp.org>
32563
32564         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32565
32566 2007-09-29  Bruno Haible  <bruno@clisp.org>
32567
32568         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32569         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32570         * build-aux/install-reloc: Compile also areadlink.c.
32571         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32572
32573 2007-09-29  Bruno Haible  <bruno@clisp.org>
32574
32575         * gnulib-tool (func_emit_initmacro_done): Indentation.
32576
32577 2007-09-29  Bruno Haible  <bruno@clisp.org>
32578
32579         * README: Add CVS checkout update instructions.
32580         Info from Bob Proulx <bob@proulx.com>.
32581
32582 2007-09-28  Eric Blake  <ebb9@byu.net>
32583
32584         Provide move-if-change.
32585         * build-aux/move-if-change: New file, based on best practice
32586         rather than any canonical upstream location.
32587
32588 2007-09-28  Jim Meyering  <jim@meyering.net>
32589
32590         Fix canonicalize loop-detection corner case.
32591         Do not attempt to stat the symlink values stored via seen_triple.
32592         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32593         on linux-2.6.18, (but not 2.6.22).
32594         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32595         triple_compare.  The former compares dev,ino,filename, while the latter
32596         would actually stat dirname(filename) when dev and ino were equal.
32597         * lib/hash-triple.c: Install <string.h>.
32598         (STREQ): Define.
32599         (triple_compare_ino_str): New function.
32600         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32601
32602 2007-09-28  Eric Blake  <ebb9@byu.net>
32603
32604         Enforce that AC_REPLACE_FUNCS files exist.
32605         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32606         override check for typos.
32607
32608         Fix test-closein on Solaris 10.
32609         * tests/test-closein.c (main): Don't assume stdin can be inherited
32610         closed on all systems.
32611         * tests/test-closein.sh: Likewise.
32612         Reported by Piotr Tarnowski.
32613
32614 2007-09-28  Jim Meyering  <jim@meyering.net>
32615
32616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32617
32618 2007-09-27  Jim Meyering  <jim@meyering.net>
32619
32620         canonicalize: Avoid a false-positive cycle failure.
32621         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32622         Sort.  Remove cycle-check.
32623         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32624         not cycle-check.h.
32625         (seen_triple): New function.
32626         (canonicalize_filename_mode): Use it instead of cycle-check.
32627         * tests/test-canonicalize.c: Add a test for this bug.
32628         * tests/test-canonicalize.sh: Set up and run the test.
32629
32630         New module, file-set, from coreutils.
32631         * modules/file-set: Define it.
32632         * lib/file-set.c, lib/file-set.h: Implement.
32633
32634         New module, hash-triple, from coreutils.
32635         * modules/hash-triple: Define it.
32636         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32637
32638 2007-09-25  Eric Blake  <ebb9@byu.net>
32639
32640         Fix strerror on Interix.
32641         * lib/string_.h (strerror): Declare replacement.
32642         * doc/functions/strerror.texi (strerror): Document the Interix
32643         shortcoming.
32644         * modules/string (Makefile.am): Support new hooks.
32645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32646         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32647         gl_FUNC_STRERROR_SEPARATE.
32648         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32649         * lib/strerror.c (rpl_strerror): Provide replacement.
32650         * modules/strerror (Depends-on): Add string.
32651         (configure.ac): Detect use of module.
32652         * tests/test-strerror.c: New file.
32653         * modules/strerror-tests: New test module.
32654         * modules/argp (Depends-on): Add strerror.
32655         * modules/error (Depends-on): Likewise.
32656         Reported by Martin Koeppe.
32657
32658 2007-09-24  Bruno Haible  <bruno@clisp.org>
32659
32660         * README: Update git instructions.
32661
32662 2007-09-24  Eric Blake  <ebb9@byu.net>
32663
32664         Revert fpending breakage from 2007-09-08.
32665         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32666         __fpending.c.
32667
32668 2007-09-24  Jim Meyering  <jim@meyering.net>
32669
32670         filenamecat.c: Add a test.
32671         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32672         showing how the function works when DIR is the empty string.
32673
32674 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32675
32676         * tests/test-canonicalize.sh: Turn on executable bit.
32677
32678 2007-09-19  Eric Blake  <ebb9@byu.net>
32679
32680         * README: Update CVS instructions.
32681
32682 2007-09-18  Bruno Haible  <bruno@clisp.org>
32683
32684         * modules/areadlink: New file.
32685         * lib/areadlink.h (areadlink): New declaration.
32686         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32687
32688 2007-09-17  Jim Meyering  <jim@meyering.net>
32689
32690         * lib/savewd.c (ESTALE) [!defined]: Define.
32691         Reported to be required on Interix by Martin Koeppe.
32692
32693 2007-09-17  Bruno Haible  <bruno@clisp.org>
32694
32695         * gnulib-tool (func_version): Use $version.
32696
32697 2007-09-16  Bruno Haible  <bruno@clisp.org>
32698
32699         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32700         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32701         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32702         Reported by Greg Schafer <gschafer@zip.com.au>.
32703
32704 2007-09-15  Bruno Haible  <bruno@clisp.org>
32705
32706         * gnulib-tool (sed): Try a little harder to make bash understand the
32707         alias.
32708         Reported by Bruce Korb <bruce.korb@gmail.com>.
32709
32710 2007-09-13  Eric Blake  <ebb9@byu.net>
32711
32712         * ChangeLog: Remove conflict markers.
32713
32714 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32715
32716         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32717         Reported by Bruno Haible <bruno@clisp.org>.
32718
32719 2007-09-12  Bruno Haible  <bruno@clisp.org>
32720
32721         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32722         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32723         is not defined.
32724
32725 2007-09-12  Eric Blake  <ebb9@byu.net>
32726
32727         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32728         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32729         Autoconf definition.
32730         * modules/euidaccess (Depends-on): Add extensions, for
32731         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32732         * modules/fnmatch (Depends-on): Likewise.
32733         * modules/getaddrinfo (Depends-on): Likewise.
32734         * modules/getdelim (Depends-on): Likewise.
32735         * modules/getline (Depends-on): Likewise.
32736         * modules/getsubopt (Depends-on): Likewise.
32737         * modules/gettext (Depends-on): Likewise.
32738         * modules/group-member (Depends-on): Likewise.
32739         * modules/mbchar (Depends-on): Likewise.
32740         * modules/memmem (Depends-on): Likewise.
32741         * modules/mempcpy (Depends-on): Likewise.
32742         * modules/memrchr (Depends-on): Likewise.
32743         * modules/pagealign_alloc (Depends-on): Likewise.
32744         * modules/readutmp (Depends-on): Likewise.
32745         * modules/stpcpy (Depends-on): Likewise.
32746         * modules/stpncpy (Depends-on): Likewise.
32747         * modules/strchrnul (Depends-on): Likewise.
32748         * modules/strndup (Depends-on): Likewise.
32749         * modules/strsep (Depends-on): Likewise.
32750         * modules/strverscmp (Depends-on): Likewise.
32751         * modules/vasprintf (Depends-on): Likewise.
32752         * modules/wcwidth (Depends-on): Likewise.
32753         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32754         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32755         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32757         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32758         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32759         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32760         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32761         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32762         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32763         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32764         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32765         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32766         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32767         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32768         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32769         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32770         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32771         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32772         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32773         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32774         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32775         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32776         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32777         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32778         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32779         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32780         so that lock.m4 can be used in gettext without extensions module.
32781
32782 2007-09-11  Bruno Haible  <bruno@clisp.org>
32783
32784         * m4/isc-posix.m4: Remove file.
32785         Suggested by Eric Blake.
32786
32787 2007-09-11  Eric Blake  <ebb9@byu.net>
32788
32789         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32790
32791 2007-09-10  Bruno Haible  <bruno@clisp.org>
32792
32793         * posix-modules: Fix typo in error message.
32794         Reported by Matt <mkraai@beckman.com>.
32795
32796 2007-09-09  Bruno Haible  <bruno@clisp.org>
32797
32798         * doc/functions/getdelim.texi: Update list of platforms lacking the
32799         function.
32800         * doc/functions/getline.texi: Likewise.
32801
32802 2007-09-09  Jim Meyering  <jim@meyering.net>
32803
32804         * lib/hash.c (hash_initialize): Detect calloc failure.
32805         Reported by Bruno Haible.
32806
32807 2007-09-09  Bruno Haible  <bruno@clisp.org>
32808
32809         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32810         malloc or realloc fails.
32811
32812 2007-09-09  Bruno Haible  <bruno@clisp.org>
32813
32814         * modules/getcwd (Depends-on): Add malloc-posix.
32815         * modules/glob (Depends-on): Likewise.
32816         * modules/putenv (Depends-on): Likewise.
32817         * modules/strdup (Depends-on): Likewise.
32818         * modules/getdelim (Depends-on): Add realloc-posix.
32819         * modules/read-file (Depends-on): Likewise.
32820
32821 2007-09-09  Bruno Haible  <bruno@clisp.org>
32822
32823         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32824         (gl_FUNC_MALLOC_POSIX): Require it.
32825         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32826         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32827         * modules/realloc (Files): Add m4/malloc.m4.
32828         * modules/calloc (Files): Likewise.
32829
32830 2007-09-09  Bruno Haible  <bruno@clisp.org>
32831
32832         * modules/malloc-posix: New file.
32833         * modules/malloc (Depends-on): Add malloc-posix.
32834         * lib/malloc.c: Include errno.h.
32835         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32836         and a POSIX-compatible malloc into a single function. Set ENOMEM
32837         when returning NULL.
32838         * m4/malloc.m4: New file.
32839         * doc/functions/malloc.texi: Mention the malloc-posix module.
32840         * lib/stdlib_.h (malloc): New declaration.
32841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32842         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32843         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32844         and HAVE_MALLOC_POSIX.
32845
32846 2007-09-09  Bruno Haible  <bruno@clisp.org>
32847
32848         * modules/realloc-posix: New file.
32849         * modules/realloc (Depends-on): Add realloc-posix.
32850         * lib/realloc.c: Include errno.h.
32851         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32852         and a POSIX-compatible realloc into a single function. Set ENOMEM
32853         when returning NULL.
32854         * m4/realloc.m4: New file.
32855         * doc/functions/realloc.texi: Mention the realloc-posix module.
32856         * lib/stdlib_.h (realloc): New declaration.
32857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32858         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32859         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32860         and HAVE_REALLOC_POSIX.
32861
32862 2007-09-09  Bruno Haible  <bruno@clisp.org>
32863
32864         * modules/calloc-posix: New file.
32865         * modules/calloc (Depends-on): Add calloc-posix.
32866         * lib/calloc.c: Include errno.h.
32867         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32868         and a POSIX-compatible calloc into a single function. Set ENOMEM
32869         when returning NULL.
32870         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32871         * doc/functions/calloc.texi: Mention the calloc-posix module.
32872         * lib/stdlib_.h (calloc): New declaration.
32873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32874         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32875         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32876         and HAVE_CALLOC_POSIX.
32877
32878 2007-09-09  Bruno Haible  <bruno@clisp.org>
32879
32880         Allow for modules to show an arbitrary notice.
32881         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32882         * gnulib-tool: New option --extract-notice.
32883         (func_usage): Document it.
32884         (sed_extract_prog): Update.
32885         (func_get_notice): New function.
32886         (func_modules_notice): New function.
32887         (func_import, func_create_testdir): Invoke it.
32888         Suggested by Jim Meyering.
32889
32890 2007-09-09  Bruno Haible  <bruno@clisp.org>
32891
32892         * gnulib-tool: New options --verbose, --quiet.
32893         (func_usage): Document them.
32894         (verbose): New variable.
32895         (func_execute_command): New function.
32896         (func_import): Don't show the module list and the file list if
32897         $verbose < 0.
32898         (func_create_testdir): Likewise. Use func_execute_command.
32899         (func_create_megatestdir): Use func_execute_command.
32900
32901 2007-09-08  Bruno Haible  <bruno@clisp.org>
32902
32903         * gnulib-tool (func_import): Prefer rsync over wget when available,
32904         for fetching the PO files.
32905
32906 2007-09-08  Bruno Haible  <bruno@clisp.org>
32907
32908         * posix-modules: New file. Portions copied from gnulib-tool.
32909         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32910
32911 2007-09-08  Jim Meyering  <jim@meyering.net>
32912
32913         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32914         * lib/fpending.h: Rename from __fpending.h.
32915         * lib/fpending.c: Rename from __fpending.c.
32916         Include "fpending.h", not "__fpending.h".
32917         * lib/__fpending.h, lib/__fpending.c: Remove files.
32918         * modules/fpending (Files): Reflect new file names.
32919         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32920
32921 2007-09-08  Bruno Haible  <bruno@clisp.org>
32922
32923         * m4/inttypes-h.m4: Remove stub file.
32924
32925 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32926
32927         * doc/headers/stdint.texi: Discuss #include_next issue.
32928
32929 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32930
32931         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32932
32933 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32934
32935         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32936         in variable name.
32937
32938 2007-09-03  Jim Meyering  <jim@meyering.net>
32939
32940         New module: git-version-gen.
32941         * modules/git-version-gen: New file.
32942
32943         Import changes from coreutils for bootstrap script.
32944
32945         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32946
32947         bootstrap: uses rsync to download the .po files
32948         * build-aux/bootstrap (po_download_command_format): New global.
32949         (download_po_files): Use rsync.
32950         (update_po_files): Don't remove .po files after download,
32951         so future rsync runs can take advantage of the copies.
32952
32953         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32954
32955         Solve the unnecessary-.po-file-regeneration problem once and for all.
32956         * build-aux/bootstrap (download_po_files): New function, renamed from
32957         get_translations.  Now, downloads, but doesn't update LINGUAS.
32958         (update_po_files): New function.
32959
32960         bootstrap: Ignore more.
32961         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32962         uniwidth to e.g., lib/.gitignore.
32963         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32964
32965         * build-aux/bootstrap: New setting: vc_ignore.
32966         (insert_sorted_if_absent): Create $file if absent.
32967         Adapt to new, possibly empty, list: $vc_ignore.
32968
32969         bootstrap: generate more ignorable names
32970         * build-aux/bootstrap (slurp): When generating ignorable names,
32971         also map .sin to .sed, .gperf to .c, and .y to .c.
32972
32973 2007-09-03  Jim Meyering  <jim@meyering.net>
32974
32975         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32976         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32977
32978 2007-09-02  Bruno Haible  <bruno@clisp.org>
32979
32980         Fix mis-recognition of 'mcs' on QNX 6.
32981         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32982         output contains the string "Mono".
32983         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32984         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32985
32986 2007-09-01  Bruno Haible  <bruno@clisp.org>
32987
32988         Fix collision between uniwidth/* and linebreak modules.
32989         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32990         u32_width): Remove declarations.
32991         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32992         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32993         streq3, streq2, streq1, streq0): Remove functions.
32994         (STREQ): Remove macro.
32995         (is_cjk_encoding): Remove function.
32996         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32997         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32998         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32999         * NEWS: Document the change.
33000
33001 2007-09-01  Bruno Haible  <bruno@clisp.org>
33002
33003         * lib/streq.h: Add double-inclusion guard.
33004
33005 2007-09-01  Karl Berry  <karl@gnu.org>
33006
33007         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
33008
33009 2007-08-28  Jim Meyering  <jim@meyering.net>
33010
33011         Rename mreadlink_with_size to areadlink_with_size.
33012         * NEWS: Document the change.
33013         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
33014         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
33015         * lib/mreadlink.h: Rename this to...
33016         * lib/areadlink.h: ...this.
33017         * modules/mreadlink-with-size: Rename this to...
33018         * modules/areadlink-with-size: ...this.
33019         * lib/canonicalize.c: Reflect the renaming.
33020         * modules/canonicalize: Likewise.
33021
33022 2007-08-26  Bruno Haible  <bruno@clisp.org>
33023
33024         * gnulib-tool (func_import): When deciding which files to remove,
33025         consider also dangling symbolic links.
33026         Reported by Eric Blake.
33027
33028 2007-08-26  Bruno Haible  <bruno@clisp.org>
33029
33030         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
33031
33032 2007-08-23  Simon Josefsson  <simon@josefsson.org>
33033
33034         * lib/readline.c: Don't include getline.h, the prototype is now
33035         found in stdio.h.
33036
33037 2007-08-23  Jim Meyering  <jim@meyering.net>
33038
33039         Getdelim touchup.
33040         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
33041         around the funlockfile call, since funlockfile never sets errno.
33042         Don't set errno upon failed realloc.
33043
33044 2007-08-22  Eric Blake  <ebb9@byu.net>
33045
33046         Getline touchups.
33047         * lib/getdelim.c (getdelim): Revert regression that required *n to
33048         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
33049         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
33050         getdelim, rather than whether implementation is missing.
33051         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
33052         * lib/stdio_.h (getline): Also declare if replacement is
33053         required.
33054         * doc/functions/getdelim.texi: New file.
33055         * doc/functions/getline.texi: Likewise.
33056         * doc/gnulib.texi (Function Substitutes): Add new files.
33057         Reported by Bruno Haible.
33058
33059 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
33060
33061         * users.txt: Add Guile.
33062
33063 2007-08-22  Eric Blake  <ebb9@byu.net>
33064
33065         * tests/test-getdelim.c (main): Use remove, not unlink.
33066         * tests/test-getline.c (main): Likewise.
33067
33068         Move getline and getdelim into stdio.h, per POSIX 200x.
33069         * modules/getline (Files): Remove getline.h.
33070         (Depends-on): Add stdio.
33071         (configure.ac): Add module indicator.
33072         * modules/getdelim (Files): Remove getdelim.h.
33073         (Depends-on): Add stdio.
33074         (configure.ac): Add module indicator.
33075         * modules/stdio (Makefile.am): Work with new indicators.
33076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33077         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
33078         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33079         * lib/getdelim.h: Delete.
33080         * lib/getline.h: Delete.
33081         * lib/stdio_.h (getdelim, getline): Declare.
33082         * modules/getdelim-tests: New module.
33083         * modules/getline-tests: Likewise.
33084         * tests/test-getdelim.c: New file.
33085         * tests/test-getline.c: Likewise.
33086         * NEWS: Document the change.
33087         * lib/getline.c: Update choice of header.
33088         * lib/csharpcomp.c: Likewise.
33089         * lib/getpass.c: Likewise.
33090         * lib/javacomp.c: Likewise.
33091         * lib/javaversion.c: Likewise.
33092         * lib/yesno.c: Likewise.
33093         * lib/getdelim.c: Likewise.
33094         (getdelim): Set errno on failure, and avoid memory leak.
33095
33096 2007-08-19  Bruno Haible  <bruno@clisp.org>
33097
33098         * modules/closein (Depends-on): Add freadahead.
33099         * lib/closein.c: Include freadahead.h.
33100         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
33101         is zero.
33102
33103 2007-08-19  Bruno Haible  <bruno@clisp.org>
33104
33105         * modules/freadahead-tests: New file.
33106         * tests/test-freadahead.sh: New file.
33107         * tests/test-freadahead.c: New file.
33108
33109         * modules/freadahead: New file.
33110         * lib/freadahead.h: New file.
33111         * lib/freadahead.c: New file.
33112         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
33113         fbufmode, fpurge, freadable, fwritable.
33114
33115 2007-08-19  Eric Blake  <ebb9@byu.net>
33116
33117         Test yesno in combination with closein.
33118         * lib/yesno.c (yesno): Document use of stdin.
33119         * modules/yesno-tests (Files): New module.
33120         * tests/test-yesno.c (main): New file.
33121         * tests/test-yesno.sh: Likewise.
33122
33123 2007-08-19  Bruno Haible  <bruno@clisp.org>
33124
33125         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
33126         * lib/fseeko.c (rpl_fseeko): Likewise.
33127         * lib/fseterr.c (fseterr): Likewise.
33128
33129 2007-08-19  Bruno Haible  <bruno@clisp.org>
33130
33131         * tests/test-lseek.c (main): Disable a test for BeOS.
33132         * doc/functions/lseek.texi: Document the BeOS bug.
33133
33134 2007-08-19  Bruno Haible  <bruno@clisp.org>
33135             Eric Blake  <ebb9@byu.net>
33136
33137         * lib/lseek.c: Include <sys/stat.h>.
33138         (rpl_lseek): Add workaround code also for Unix platforms.
33139         Needed for BeOS.
33140         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
33141         * doc/functions/lseek.texi: Document BeOS definiency.
33142
33143 2007-08-18  Bruno Haible  <bruno@clisp.org>
33144
33145         * modules/fstrcmp-tests: New file.
33146         * tests/test-fstrcmp.c: New file.
33147
33148 2007-08-18  Bruno Haible  <bruno@clisp.org>
33149
33150         * modules/fstrcmp: New file, from GNU gettext with modifications.
33151         * lib/fstrcmp.h: New file, from GNU gettext.
33152         * lib/fstrcmp.c: New file, from GNU gettext.
33153         * MODULES.html.sh (String handling): Add fstrcmp.
33154
33155 2007-08-18  Bruno Haible  <bruno@clisp.org>
33156
33157         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
33158         'bool'.
33159         (diag, compareseq): Remove const from the ctxt argument.
33160         (USE_HEURISTIC): Undefine at the end.
33161
33162 2007-08-18  Jim Meyering  <jim@meyering.net>
33163
33164         New file: lib/idcache.h
33165         * NEWS: Mention the addition.
33166         * modules/idcache (Files): Add lib/idcache.h
33167         * lib/idcache.c: Include "idcache.h".
33168         Don't include <sys/types.h>.
33169         Add a FIXME comment.
33170         Move file-scoped "static" declarations to the top.
33171         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
33172
33173 2007-08-17  Bruno Haible  <bruno@clisp.org>
33174         and Paul Eggert  <eggert@cs.ucla.edu>
33175
33176         * MODULES.html.sh: Add diffseq.
33177         * modules/diffseq: New file.
33178         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
33179         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
33180
33181 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33182
33183         Import changes from coreutils for bootstrap script.
33184
33185         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
33186
33187         * build-aux/bootstrap (slurp): Work even in environments where
33188         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
33189         current code does not slurp files whose names start with ".", and
33190         this looks like it might be a troublesome area.
33191
33192         2007-07-11  Jim Meyering  <jim@meyering.net>
33193
33194         If there's a GPL vN copyright comment, require that N == 3.
33195
33196         2007-07-08  Jim Meyering  <jim@meyering.net>
33197
33198         Run the coreutils-specific code only if tests/Makefile.am.in exists.
33199         * build-aux/bootstrap (mam_template): Move definition out of loop.
33200
33201         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
33202
33203         * build-aux/bootstrap (symlink_to_dir): Rename function from
33204         symlink_to_gnulib.  Add a directory parameter.  Update all
33205         callers.
33206         (cp_mark_as_generated): Also check for -- and link to -- files in
33207         gl/.
33208
33209         2007-07-08  Jim Meyering  <jim@meyering.net>
33210
33211         Adapt to deeper hierarchy in gnulib.
33212         * build-aux/bootstrap (symlink_to_dir): If the destination
33213         directory doesn't exist, create it. This is required at least for
33214         "lib/uniwidth/cjk.h".
33215
33216         2007-05-15  Jim Meyering  <jim@meyering.net>
33217
33218         * build-aux/bootstrap: Now that generated Makefile.am files
33219         are no longer under version control, they must be created at
33220         bootstrap time.
33221
33222 2007-08-14  Ben Pfaff  <blp@gnu.org>
33223
33224         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33225
33226 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33227
33228         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33229         given the changes below.
33230         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33231         even on hosts that have padding bits beyond the supported 64.
33232
33233 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33234
33235         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33236         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33237         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33238         depends on it.
33239         (xstrtol_error): Remove.
33240         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33241         but with a different signature.
33242         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33243         * lib/xstrtol-error.c: Include exitfail.h.
33244         (xstrtol_fatal): New function, with a different signature from the
33245         old xstrtol_error, so that the caller need not worry about passing
33246         in an exit status, or about storage management of the option argument.
33247         (xstrtol_error): Now a static function.  Redo signature to
33248         implement xstrtol_fatal.  Output the correct number of hyphens in
33249         front of the option so that the caller need not worry about
33250         storage management.
33251         (N_): New macro.
33252         (_): Remove; not used now.
33253         * modules/xstrtol: Depend on getopt.
33254         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33255         of old STRTOL_FATAL_ERROR macro.
33256         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33257         of test program.
33258         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33259         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33260
33261 2007-08-08  Eric Blake  <ebb9@byu.net>
33262
33263         * lib/xstrtol-error.c: Add missing include.
33264
33265         Move xstrtol messages into gnulib domain, when --pobase is used.
33266         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33267         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33268         * modules/xstrtol (Files): Distribute new file.
33269         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33270         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33271         * tests/test-xstrtol.c: ...into new file.
33272         * tests/test-xstrtoul.c: Also test xstrtoul.
33273         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33274         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33275         * tests/test-xstrtol.sh: Drive the tests.
33276         * tests/test-xstrtoimax.sh: Likewise.
33277         * tests/test-xstrtoumax.sh: Likewise.
33278         * modules/xstrtol-tests: New module.
33279         * modules/xstrtoimax-tests: Likewise.
33280         * modules/xstrtoumax-tests: Likewise.
33281
33282 2007-08-08  Jim Meyering  <jim@meyering.net>
33283
33284         New function: mfile_name_concat.
33285         * lib/filenamecat.c (mfile_name_concat): New function, just like
33286         file_name_concat, but return NULL upon failure rather than exiting
33287         with a diagnostic.
33288         * lib/filenamecat.h: Declare it.
33289
33290 2007-08-07  Bruno Haible  <bruno@clisp.org>
33291
33292         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33293         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33294         warning from gcc.
33295         Reported by Eric Blake.
33296
33297 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33298
33299         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33300         * modules/crypto/arcfour (License): Likewise.
33301         * modules/crypto/des-tests (License): Likewise.
33302         * modules/crypto/gc-arctwo-tests (License): Likewise.
33303         * modules/crypto/gc-des-tests (License): Likewise.
33304         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33305         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33306         * modules/crypto/gc-md2-tests (License): Likewise.
33307         * modules/crypto/gc-md4-tests (License): Likewise.
33308         * modules/crypto/gc-md5-tests (License): Likewise.
33309         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33310         * modules/crypto/gc-rijndael-tests (License): Likewise.
33311         * modules/crypto/gc-sha1-tests (License): Likewise.
33312         * modules/crypto/gc-tests (License): Likewise.
33313         * modules/crypto/hmac-md5 (License): Likewise.
33314         * modules/crypto/hmac-sha1 (License): Likewise.
33315         * modules/crypto/md2-tests (License): Likewise.
33316         * modules/crypto/md4-tests (License): Likewise.
33317         * modules/crypto/md5 (License): Likewise.
33318         * modules/crypto/rijndael (License): Likewise.
33319         * modules/crypto/sha1 (License): Likewise.
33320         * modules/memxor (License): Likewise.
33321
33322 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33323         and Bruno Haible  <bruno@clisp.org>
33324
33325         * NEWS: Describe interface changes to human, xstrtol.
33326         * lib/human.h: Include <xstrtol.h>.
33327         (human_options): Return enum strtol_error, not int.  Remove
33328         bool arg; take int * instead.
33329         * lib/human.c: Don't include "gettext.h".
33330         (_): Remove; no longer used.
33331         Don't include <xstrtol.h>, since human.h does it.
33332         (human_options): Adjust to abovementioned interface changes.
33333         Do not report error to stderr; that's now the caller's
33334         responsibility.
33335         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33336         interface change.
33337         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33338         Str, Argument_type_string.  All uses changed.  Put " argument"
33339         in diagnostics to make them clearer.  Change wording of suffix
33340         message for clarity.
33341         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33342         Argument_type_string.
33343         (STRTOL_FATAL_WARN): Remove; no longer used.
33344         * modules/human (Depends-on): Remove gettext-h.
33345
33346 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33347
33348         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33349
33350 2007-07-31  Bruno Haible  <bruno@clisp.org>
33351
33352         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33353         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33354         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33355
33356 2007-07-31  Bruno Haible  <bruno@clisp.org>
33357
33358         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33359         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33360
33361 2007-07-30  Bruno Haible  <bruno@clisp.org>
33362
33363         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33364         * modules/c-ctype (License): Likewise.
33365         * modules/c-strcase (License): Likewise.
33366         * modules/check-version (License): Likewise.
33367         * modules/iconv (License): Likewise.
33368         * modules/iconv_open (License): Likewise.
33369         * modules/read-file (License): Likewise.
33370         * modules/striconv (License): Likewise.
33371         * modules/strverscmp (License): Likewise.
33372         * modules/vasprintf (License): Likewise.
33373         * modules/crypto/des (License): Likewise.
33374         * modules/crypto/gc (License): Likewise.
33375         * modules/crypto/gc-arcfour (License): Likewise.
33376         * modules/crypto/gc-arctwo (License): Likewise.
33377         * modules/crypto/gc-des (License): Likewise.
33378         * modules/crypto/gc-hmac-md5 (License): Likewise.
33379         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33380         * modules/crypto/gc-md2 (License): Likewise.
33381         * modules/crypto/gc-md4 (License): Likewise.
33382         * modules/crypto/gc-md5 (License): Likewise.
33383         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33384         * modules/crypto/gc-random (License): Likewise.
33385         * modules/crypto/gc-rijndael (License): Likewise.
33386         * modules/crypto/gc-sha1 (License): Likewise.
33387         * modules/crypto/md2 (License): Likewise.
33388         * modules/crypto/md4 (License): Likewise.
33389
33390 2007-07-30  Jim Meyering  <jim@meyering.net>
33391
33392         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33393         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33394         it has valid stat data.  This bug would cause du not to count the
33395         sizes of inaccessible directories.
33396         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33397         in <http://bugzilla.redhat.com/250077>.
33398
33399 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33400             Bruno Haible  <bruno@clisp.org>
33401
33402         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33403         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33404         #include_next, gives a diagnostic about it, but reports no error in
33405         the exit code.
33406         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33407
33408 2007-07-24  Ben Pfaff  <blp@gnu.org>
33409
33410         Improve name: "count-one-bits" is better than "popcount".
33411         * MODULES.html.sh: Update name.
33412         * lib/popcount.h: Renamed lib/count-one-bits.h.
33413         (popcount): Renamed count_one_bits.
33414         (popcountl): Renamed count_one_bits_l.
33415         (popcountll): Renamed count_one_bits_ll.
33416         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33417         * modules/popcount: Renamed module/count-one-bits.
33418         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33419         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33420
33421 2007-07-23  Ben Pfaff  <blp@gnu.org>
33422
33423         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33424         better code generation, and add U to large constants to avoid
33425         warnings, in non-GCC case.
33426         Suggested by Bruno Haible.
33427
33428 2007-07-23  Ben Pfaff  <blp@gnu.org>
33429
33430         * lib/popcount.h: Use verify_true instead of if...abort.
33431         * modules/popcount: Depend on verify module.
33432         Suggested by Jim Meyering.
33433
33434 2007-07-23  Bruno Haible  <bruno@clisp.org>
33435
33436         * gnulib-tool (func_import): Create a .cvsignore file also when the
33437         directory is not yet in CVS but the toplevel directory is. When
33438         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33439         Reported by Karl Berry.
33440
33441 2007-07-22  Ben Pfaff  <blp@gnu.org>
33442
33443         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33444         case.
33445         Suggested by Eric Blake.
33446
33447 2007-07-22  Ben Pfaff  <blp@gnu.org>
33448
33449         New module: popcount.
33450         * MODULES.html.sh: Add popcount.
33451         * modules/popcount: New file.
33452         * modules/popcount-tests: New file.
33453         * tests/test-popcount.c: New file.
33454         * lib/popcount.h: New file.
33455         * m4/popcount.m4: New file.
33456
33457 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33458
33459         * build-aux/announce-gen: Update to GPLv3.
33460
33461         * build-aux/config.guess: Update from config.
33462
33463 2007-07-21  Bruno Haible  <bruno@clisp.org>
33464
33465         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33466         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33467
33468 2007-07-20  Jim Meyering  <jim@meyering.net>
33469
33470         * check-module: Diagnose a self-dependency.
33471
33472 2007-07-19  Bruno Haible  <bruno@clisp.org>
33473
33474         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33475         empty.
33476         Reported by Eric Blake.
33477
33478 2007-07-18  Bruno Haible  <bruno@clisp.org>
33479
33480         * gnulib-tool: New options --po-base, --po-domain.
33481         (func_usage): Document them.
33482         (pobase, po_domain): New variables.
33483         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33484         DEFAULT_TEXT_DOMAIN.
33485         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33486         (func_import): Consider pobase and po_domain. Create a po/ directory.
33487         (func_create_testdir): Set pobase and po_domain to empty.
33488         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33489         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33490
33491 2007-07-18  Bruno Haible  <bruno@clisp.org>
33492
33493         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33494         EXTRA_DIST augmentation for files in build-aux/.
33495
33496 2007-07-16  Bruno Haible  <bruno@clisp.org>
33497
33498         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33499         * modules/getdelim (License): Likewise.
33500
33501 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33502
33503         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33504         * modules/d-type (License): Likewise.
33505         * modules/extensions (License): Likewise.
33506         * modules/fnmatch (License): Likewise.
33507         * modules/fseeko (License): Likewise.
33508         * modules/getaddrinfo (License): Likewise.
33509         * modules/getline (License): Likewise.
33510         * modules/getlogin_r (License): Likewise.
33511         * modules/getpass (License): Likewise.
33512         * modules/gettimeofday (License): Likewise.
33513         * modules/glob (License): Likewise.
33514         * modules/inet_ntop (License): Likewise.
33515         * modules/malloc (License): Likewise.
33516         * modules/malloca (License): Likewise.
33517         * modules/memmem (License): Likewise.
33518         * modules/mempcpy (License): Likewise.
33519         * modules/memset (License): Likewise.
33520         * modules/minmax (License): Likewise.
33521         * modules/mktime (License): Likewise.
33522         * modules/netinet_in (License): Likewise.
33523         * modules/pathmax (License): Likewise.
33524         * modules/poll (License): Likewise.
33525         * modules/regex (License): Likewise.
33526         * modules/snprintf (License): Likewise.
33527         * modules/stdbool (License): Likewise.
33528         * modules/stdint (License): Likewise.
33529         * modules/stdio (License): Likewise.
33530         * modules/strcase (License): Likewise.
33531         * modules/strcasestr (License): Likewise.
33532         * modules/strdup (License): Likewise.
33533         * modules/string (License): Likewise.
33534         * modules/strndup (License): Likewise.
33535         * modules/strnlen (License): Likewise.
33536         * modules/strpbrk (License): Likewise.
33537         * modules/strptime (License): Likewise.
33538         * modules/strsep (License): Likewise.
33539         * modules/sys_select (License): Likewise.
33540         * modules/sys_socket (License): Likewise.
33541         * modules/sys_stat (License): Likewise.
33542         * modules/sys_time (License): Likewise.
33543         * modules/time (License): Likewise.
33544         * modules/time_r (License): Likewise.
33545         * modules/timegm (License): Likewise.
33546         * modules/unistd (License): Likewise.
33547         * modules/vsnprintf (License): Likewise.
33548         * modules/wctype (License): Likewise.
33549
33550 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33551
33552         * modules/argz (License): LGPLv2+.
33553
33554 2007-07-15  Karl Berry  <karl@gnu.org>
33555
33556         * doc/gnulib.texi: revise node structure per new fdl.texi.
33557
33558 2007-07-14  Bruno Haible  <bruno@clisp.org>
33559
33560         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33561         the output file.
33562         * lib/uniname/uninames.h: Regenerated.
33563
33564 2007-07-14  Karl Berry  <karl@gnu.org>
33565
33566         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33567         omitting sectioning and index commands.
33568
33569 2007-07-13  Bruno Haible  <bruno@clisp.org>
33570
33571         New gnulib-tool option --more-symlinks.
33572         * gnulib-tool (func_usage): Document --more-symlinks.
33573         (do_copyrights): New variable.
33574         Recognize option --more-symlinks.
33575         (func_import): Don't add a copyright notice transform to
33576         sed_transform_lib_file if do_copyrights is empty.
33577
33578 2007-07-13  Bruno Haible  <bruno@clisp.org>
33579
33580         * lib/vasnprintf.c (decimal_point_char): Define also if
33581         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33582         && !NEED_PRINTF_DIRECTIVE_A.
33583         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33584         Gary V. Vaughan <gary@gnu.org>.
33585
33586 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33587
33588         * lib/inttypes_.h: Undo previous change, since it was fixed
33589         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33590
33591 2007-07-13  Bruno Haible  <bruno@clisp.org>
33592
33593         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33594         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33595
33596 2007-07-13  Jim Meyering  <jim@meyering.net>
33597
33598         df: Don't fail for Tru64's "file-on-file mount".
33599         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33600         so we fall through and use statfs instead.  Details here:
33601         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33602         Reported by Albert Chin.
33603
33604 2007-07-13  Bruno Haible  <bruno@clisp.org>
33605
33606         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33607         * modules/configmake (License): Likewise.
33608         * modules/gettext (License): Likewise.
33609         * modules/gettext-h (License): Likewise.
33610         * modules/include_next (License): Likewise.
33611         * modules/link-warning (License): Likewise.
33612         * modules/localcharset (License): Likewise.
33613         * modules/localename (License): Likewise.
33614         * modules/lock (License): Likewise.
33615         * modules/relocatable-lib-lgpl (License): Likewise.
33616         * modules/size_max (License): Likewise.
33617         * modules/vasnprintf (License): Likewise.
33618         * modules/wchar (License): Likewise.
33619         * modules/xsize (License): Likewise.
33620
33621 2007-07-13  Bruno Haible  <bruno@clisp.org>
33622
33623         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33624         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33625
33626 2007-07-12  Bruno Haible  <bruno@clisp.org>
33627
33628         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33629         in the modules files.
33630
33631 2007-07-11  Karl Berry  <karl@gnu.org>
33632
33633         * MODULES.html.sh (func_module): use
33634          sed -e '\|^'"${includefile}"'$|d'
33635          instead of /.../d, to avoid errors on $includefile's containing /.
33636
33637 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33638
33639         * gnulib-tool (func_import): Avoid duplication of --avoid
33640         statements
33641         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33642         names to `_' in variable names.
33643
33644 2007-07-10  Eric Blake  <ebb9@byu.net>
33645
33646         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33647         * NEWS: Document this change.
33648
33649 2007-07-08  Bruno Haible  <bruno@clisp.org>
33650
33651         Update to Unicode 5.0.
33652         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33653         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33654         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33655         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33656         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33657         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33658         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33659         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33660         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33661         U+10A3F, U+1D242..U+1D244.
33662         (nonspacing_table_ind): Update.
33663         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33664         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33665
33666 2007-07-08  Bruno Haible  <bruno@clisp.org>
33667
33668         Update to Unicode 5.0.
33669         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33670         code transform. Extend the name index field of unicode_name_to_code and
33671         unicode_code_to_name from 16 to 24 bits.
33672         * lib/uniname/uniname.c (unicode_character_name,
33673         unicode_name_character): Add the range 0x12xxx to the code transform.
33674         * lib/uniname/uninames.h: Regenerated.
33675         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33676
33677 2007-07-07  Bruno Haible  <bruno@clisp.org>
33678
33679         * modules/wcwidth-tests: New file.
33680         * tests/test-wcwidth.c: New file.
33681
33682         Work around MacOS X wcwidth() bug.
33683         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33684         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33685         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33686         original wcwidth in non-UTF-8 locales.
33687         * modules/wcwidth (Depends-on): Add localcharset, streq,
33688         uniwidth/width.
33689         * doc/functions/wcwidth.texi: Update.
33690
33691 2007-07-07  Bruno Haible  <bruno@clisp.org>
33692
33693         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33694         (wcwidth): New declaration.
33695         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33696         macros.
33697         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33698         here. Prepare for creating <wchar.h> unconditionally.
33699         * modules/wchar (Depends-on): Add link-warning.
33700         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33701         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33702         * lib/wcwidth.h: Remove file.
33703         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33704         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33705         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33706         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33707         (Include): Replace wcwidth.h with <wchar.h>.
33708         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33709         * lib/mbchar.h: Don't include wcwidth.h.
33710         * lib/mbswidth.c: Likewise.
33711         * NEWS: Mention the change.
33712
33713 2007-07-07  Bruno Haible  <bruno@clisp.org>
33714
33715         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33716         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33717         definition with an external declaration.
33718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33719         defined as a function. Remove AC_C_INLINE requirement.
33720         * modules/wcwidth (Files): Add lib/wcwidth.c.
33721         (Makefile.am): Remove redundant statement.
33722
33723 2007-07-07  Bruno Haible  <bruno@clisp.org>
33724
33725         * MODULES.html.sh (Unicode string functions): Add the new modules.
33726
33727         * tests/uniwidth/test-u32-strwidth.c: New file.
33728         * modules/uniwidth/u32-strwidth-tests: New file.
33729
33730         * lib/uniwidth/u32-strwidth.c: New file.
33731         * modules/uniwidth/u32-strwidth: New file.
33732
33733         * tests/uniwidth/test-u16-strwidth.c: New file.
33734         * modules/uniwidth/u16-strwidth-tests: New file.
33735
33736         * lib/uniwidth/u16-strwidth.c: New file.
33737         * modules/uniwidth/u16-strwidth: New file.
33738
33739         * tests/uniwidth/test-u8-strwidth.c: New file.
33740         * modules/uniwidth/u8-strwidth-tests: New file.
33741
33742         * lib/uniwidth/u8-strwidth.c: New file.
33743         * modules/uniwidth/u8-strwidth: New file.
33744
33745         * tests/uniwidth/test-u32-width.c: New file.
33746         * modules/uniwidth/u32-width-tests: New file.
33747
33748         * lib/uniwidth/u32-width.c: New file.
33749         * modules/uniwidth/u32-width: New file.
33750
33751         * tests/uniwidth/test-u16-width.c: New file.
33752         * modules/uniwidth/u16-width-tests: New file.
33753
33754         * lib/uniwidth/u16-width.c: New file.
33755         * modules/uniwidth/u16-width: New file.
33756
33757         * tests/uniwidth/test-u8-width.c: New file.
33758         * modules/uniwidth/u8-width-tests: New file.
33759
33760         * lib/uniwidth/u8-width.c: New file.
33761         * modules/uniwidth/u8-width: New file.
33762
33763         * tests/uniwidth/test-uc_width.c: New file.
33764         * modules/uniwidth/width-tests: New file.
33765
33766         * lib/uniwidth/width.c: New file, from GNU libiconv.
33767         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33768         * modules/uniwidth/width: New file.
33769
33770         * lib/uniwidth.h: New file, from GNU libiconv.
33771         * modules/uniwidth/base: New file.
33772
33773 2007-07-07  Bruno Haible  <bruno@clisp.org>
33774
33775         * lib/uniname.h: New file, from GNU gettext.
33776         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33777         * lib/uniname/uninames.h: New file, from GNU gettext.
33778         * lib/uniname/uniname.c: New file, from GNU gettext.
33779         * tests/uniname/test-uninames.sh: New file.
33780         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33781         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33782         * modules/uniname/base: New file.
33783         * modules/uniname/uniname: New file.
33784         * modules/uniname/uniname-tests: New file.
33785         * MODULES.html.sh (Unicode string functions): Add the new modules.
33786
33787 2007-07-06  Bruno Haible  <bruno@clisp.org>
33788
33789         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33790
33791 2007-07-06  Bruno Haible  <bruno@clisp.org>
33792
33793         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33794         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33795         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33796         include <sys/time.h>.
33797         Reported by Eric Blake.
33798
33799 2007-07-06  Eric Blake  <ebb9@byu.net>
33800
33801         Fix testing canonicalize on cygwin.
33802         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33803         Revert patch from 2007-06-19.
33804         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33805         canonicalize module is also in use.
33806         * tests/test-canonicalize.c: New file.
33807         * tests/test-canonicalize.sh: Likewise.
33808         * modules/canonicalize-tests: Likewise.
33809
33810 2007-07-06  Jim Meyering  <jim@meyering.net>
33811
33812         * lib/getugroups.c (getugroups): Detect getgrent failure.
33813         Adjust comment to reflect reality: this function may return -1.
33814
33815 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33816
33817         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33818         the new TP address.
33819         (usage): Fix typo
33820         (gnulib_mk): New variable.
33821
33822 2007-07-05  Jim Meyering  <jim@meyering.net>
33823
33824         Don't let endgrent clobber errno, no matter how improbable.
33825         * lib/getugroups.c (getugroups): Save and restore errno around
33826         endgrent call.
33827
33828         Close the group DB even when failing with 2^31 or more members.
33829         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33830
33831 2007-07-04  Jim Meyering  <jim@meyering.net>
33832
33833         * lib/getugroups.h: New file.
33834         * lib/getugroups.c: Include "getugroups.h".
33835         Remove uses of "register" keyword.
33836         Move local variable, "cp", down into scope where used.
33837         Give "username" parameter the "const" attribute.
33838         * modules/getugroups (Files): Add lib/getugroups.h
33839
33840 2007-07-04  Karl Berry  <karl@gnu.org>
33841
33842         * MODULES.html.sh (func_all_modules): Complete rename of
33843         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33844
33845 2007-07-02  Bruno Haible  <bruno@clisp.org>
33846
33847         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33848         mode, when inttypes.h comes from gnulib.
33849         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33850
33851 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33852
33853         * NEWS: Mention lgpl module name change.
33854
33855         * modules/lgpl-2.1: Renamed from lgpl.
33856
33857         * NEWS: Mention gpl module name change.
33858
33859         * modules/gpl-3.0: New file, based on gpl-2.0.
33860
33861         * modules/gpl-2.0: Renamed from gpl.
33862
33863         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33864         doc/gpl-2.0.texi.
33865
33866 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33867
33868         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33869         #define __STDC_LIMIT_MACROS temporarily while including
33870         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33871         Problem reported by Joel E. Denny in
33872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33873
33874 2007-07-01  Bruno Haible  <bruno@clisp.org>
33875
33876         * lib/unistdio.h: New file.
33877         * lib/unistdio/u-asnprintf.h: New file.
33878         * lib/unistdio/u-asprintf.h: New file.
33879         * lib/unistdio/u-printf-args.c: New file.
33880         * lib/unistdio/u-printf-args.h: New file.
33881         * lib/unistdio/u-printf-parse.h: New file.
33882         * lib/unistdio/u-snprintf.h: New file.
33883         * lib/unistdio/u-sprintf.h: New file.
33884         * lib/unistdio/u-vasprintf.h: New file.
33885         * lib/unistdio/u-vsnprintf.h: New file.
33886         * lib/unistdio/u-vsprintf.h: New file.
33887         * lib/unistdio/ulc-asnprintf.c: New file.
33888         * lib/unistdio/ulc-asprintf.c: New file.
33889         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33890         * lib/unistdio/ulc-printf-parse.c: New file.
33891         * lib/unistdio/ulc-snprintf.c: New file.
33892         * lib/unistdio/ulc-sprintf.c: New file.
33893         * lib/unistdio/ulc-vasnprintf.c: New file.
33894         * lib/unistdio/ulc-vasprintf.c: New file.
33895         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33896         * lib/unistdio/ulc-vsnprintf.c: New file.
33897         * lib/unistdio/ulc-vsprintf.c: New file.
33898         * lib/unistdio/u8-asnprintf.c: New file.
33899         * lib/unistdio/u8-asprintf.c: New file.
33900         * lib/unistdio/u8-printf-parse.c: New file.
33901         * lib/unistdio/u8-snprintf.c: New file.
33902         * lib/unistdio/u8-sprintf.c: New file.
33903         * lib/unistdio/u8-vasnprintf.c: New file.
33904         * lib/unistdio/u8-vasprintf.c: New file.
33905         * lib/unistdio/u8-vsnprintf.c: New file.
33906         * lib/unistdio/u8-vsprintf.c: New file.
33907         * lib/unistdio/u8-u8-asnprintf.c: New file.
33908         * lib/unistdio/u8-u8-asprintf.c: New file.
33909         * lib/unistdio/u8-u8-snprintf.c: New file.
33910         * lib/unistdio/u8-u8-sprintf.c: New file.
33911         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33912         * lib/unistdio/u8-u8-vasprintf.c: New file.
33913         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33914         * lib/unistdio/u8-u8-vsprintf.c: New file.
33915         * lib/unistdio/u16-asnprintf.c: New file.
33916         * lib/unistdio/u16-asprintf.c: New file.
33917         * lib/unistdio/u16-printf-parse.c: New file.
33918         * lib/unistdio/u16-snprintf.c: New file.
33919         * lib/unistdio/u16-sprintf.c: New file.
33920         * lib/unistdio/u16-vasnprintf.c: New file.
33921         * lib/unistdio/u16-vasprintf.c: New file.
33922         * lib/unistdio/u16-vsnprintf.c: New file.
33923         * lib/unistdio/u16-vsprintf.c: New file.
33924         * lib/unistdio/u16-u16-asnprintf.c: New file.
33925         * lib/unistdio/u16-u16-asprintf.c: New file.
33926         * lib/unistdio/u16-u16-snprintf.c: New file.
33927         * lib/unistdio/u16-u16-sprintf.c: New file.
33928         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33929         * lib/unistdio/u16-u16-vasprintf.c: New file.
33930         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33931         * lib/unistdio/u16-u16-vsprintf.c: New file.
33932         * lib/unistdio/u32-asnprintf.c: New file.
33933         * lib/unistdio/u32-asprintf.c: New file.
33934         * lib/unistdio/u32-printf-parse.c: New file.
33935         * lib/unistdio/u32-snprintf.c: New file.
33936         * lib/unistdio/u32-sprintf.c: New file.
33937         * lib/unistdio/u32-vasnprintf.c: New file.
33938         * lib/unistdio/u32-vasprintf.c: New file.
33939         * lib/unistdio/u32-vsnprintf.c: New file.
33940         * lib/unistdio/u32-vsprintf.c: New file.
33941         * lib/unistdio/u32-u32-asnprintf.c: New file.
33942         * lib/unistdio/u32-u32-asprintf.c: New file.
33943         * lib/unistdio/u32-u32-snprintf.c: New file.
33944         * lib/unistdio/u32-u32-sprintf.c: New file.
33945         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33946         * lib/unistdio/u32-u32-vasprintf.c: New file.
33947         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33948         * lib/unistdio/u32-u32-vsprintf.c: New file.
33949         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33950         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33951         * tests/unistdio/test-ulc-printf1.h: New file.
33952         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33953         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33954         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33955         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33956         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33957         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33958         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33959         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33960         * tests/unistdio/test-u8-asnprintf1.c: New file.
33961         * tests/unistdio/test-u8-asnprintf1.h: New file.
33962         * tests/unistdio/test-u8-printf1.h: New file.
33963         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33964         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33965         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33966         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33967         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33968         * tests/unistdio/test-u8-vasprintf1.c: New file.
33969         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33970         * tests/unistdio/test-u8-vsprintf1.c: New file.
33971         * tests/unistdio/test-u16-asnprintf1.c: New file.
33972         * tests/unistdio/test-u16-asnprintf1.h: New file.
33973         * tests/unistdio/test-u16-printf1.h: New file.
33974         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33975         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33976         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33977         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33978         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33979         * tests/unistdio/test-u16-vasprintf1.c: New file.
33980         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33981         * tests/unistdio/test-u16-vsprintf1.c: New file.
33982         * tests/unistdio/test-u32-asnprintf1.c: New file.
33983         * tests/unistdio/test-u32-asnprintf1.h: New file.
33984         * tests/unistdio/test-u32-printf1.h: New file.
33985         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33986         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33987         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33988         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33989         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33990         * tests/unistdio/test-u32-vasprintf1.c: New file.
33991         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33992         * tests/unistdio/test-u32-vsprintf1.c: New file.
33993         * modules/unistdio/base: New file.
33994         * modules/unistdio/u-printf-args: New file.
33995         * modules/unistdio/ulc-asnprintf: New file.
33996         * modules/unistdio/ulc-asprintf: New file.
33997         * modules/unistdio/ulc-fprintf: New file.
33998         * modules/unistdio/ulc-printf-parse: New file.
33999         * modules/unistdio/ulc-snprintf: New file.
34000         * modules/unistdio/ulc-sprintf: New file.
34001         * modules/unistdio/ulc-vasnprintf: New file.
34002         * modules/unistdio/ulc-vasprintf: New file.
34003         * modules/unistdio/ulc-vfprintf: New file.
34004         * modules/unistdio/ulc-vsnprintf: New file.
34005         * modules/unistdio/ulc-vsprintf: New file.
34006         * modules/unistdio/u8-asnprintf: New file.
34007         * modules/unistdio/u8-asprintf: New file.
34008         * modules/unistdio/u8-printf-parse: New file.
34009         * modules/unistdio/u8-snprintf: New file.
34010         * modules/unistdio/u8-sprintf: New file.
34011         * modules/unistdio/u8-vasnprintf: New file.
34012         * modules/unistdio/u8-vasprintf: New file.
34013         * modules/unistdio/u8-vsnprintf: New file.
34014         * modules/unistdio/u8-vsprintf: New file.
34015         * modules/unistdio/u8-u8-asnprintf: New file.
34016         * modules/unistdio/u8-u8-asprintf: New file.
34017         * modules/unistdio/u8-u8-snprintf: New file.
34018         * modules/unistdio/u8-u8-sprintf: New file.
34019         * modules/unistdio/u8-u8-vasnprintf: New file.
34020         * modules/unistdio/u8-u8-vasprintf: New file.
34021         * modules/unistdio/u8-u8-vsnprintf: New file.
34022         * modules/unistdio/u8-u8-vsprintf: New file.
34023         * modules/unistdio/u16-asnprintf: New file.
34024         * modules/unistdio/u16-asprintf: New file.
34025         * modules/unistdio/u16-printf-parse: New file.
34026         * modules/unistdio/u16-snprintf: New file.
34027         * modules/unistdio/u16-sprintf: New file.
34028         * modules/unistdio/u16-vasnprintf: New file.
34029         * modules/unistdio/u16-vasprintf: New file.
34030         * modules/unistdio/u16-vsnprintf: New file.
34031         * modules/unistdio/u16-vsprintf: New file.
34032         * modules/unistdio/u16-u16-asnprintf: New file.
34033         * modules/unistdio/u16-u16-asprintf: New file.
34034         * modules/unistdio/u16-u16-snprintf: New file.
34035         * modules/unistdio/u16-u16-sprintf: New file.
34036         * modules/unistdio/u16-u16-vasnprintf: New file.
34037         * modules/unistdio/u16-u16-vasprintf: New file.
34038         * modules/unistdio/u16-u16-vsnprintf: New file.
34039         * modules/unistdio/u16-u16-vsprintf: New file.
34040         * modules/unistdio/u32-asnprintf: New file.
34041         * modules/unistdio/u32-asprintf: New file.
34042         * modules/unistdio/u32-printf-parse: New file.
34043         * modules/unistdio/u32-snprintf: New file.
34044         * modules/unistdio/u32-sprintf: New file.
34045         * modules/unistdio/u32-vasnprintf: New file.
34046         * modules/unistdio/u32-vasprintf: New file.
34047         * modules/unistdio/u32-vsnprintf: New file.
34048         * modules/unistdio/u32-vsprintf: New file.
34049         * modules/unistdio/u32-u32-asnprintf: New file.
34050         * modules/unistdio/u32-u32-asprintf: New file.
34051         * modules/unistdio/u32-u32-snprintf: New file.
34052         * modules/unistdio/u32-u32-sprintf: New file.
34053         * modules/unistdio/u32-u32-vasnprintf: New file.
34054         * modules/unistdio/u32-u32-vasprintf: New file.
34055         * modules/unistdio/u32-u32-vsnprintf: New file.
34056         * modules/unistdio/u32-u32-vsprintf: New file.
34057         * modules/unistdio/ulc-asnprintf-tests: New file.
34058         * modules/unistdio/ulc-vasnprintf-tests: New file.
34059         * modules/unistdio/ulc-vasprintf-tests: New file.
34060         * modules/unistdio/ulc-vsnprintf-tests: New file.
34061         * modules/unistdio/ulc-vsprintf-tests: New file.
34062         * modules/unistdio/u8-asnprintf-tests: New file.
34063         * modules/unistdio/u8-vasnprintf-tests: New file.
34064         * modules/unistdio/u8-vasprintf-tests: New file.
34065         * modules/unistdio/u8-vsnprintf-tests: New file.
34066         * modules/unistdio/u8-vsprintf-tests: New file.
34067         * modules/unistdio/u16-asnprintf-tests: New file.
34068         * modules/unistdio/u16-vasnprintf-tests: New file.
34069         * modules/unistdio/u16-vasprintf-tests: New file.
34070         * modules/unistdio/u16-vsnprintf-tests: New file.
34071         * modules/unistdio/u16-vsprintf-tests: New file.
34072         * modules/unistdio/u32-asnprintf-tests: New file.
34073         * modules/unistdio/u32-vasnprintf-tests: New file.
34074         * modules/unistdio/u32-vasprintf-tests: New file.
34075         * modules/unistdio/u32-vsnprintf-tests: New file.
34076         * modules/unistdio/u32-vsprintf-tests: New file.
34077         * MODULES.html.sh (Unicode string functions): Add the new modules.
34078
34079 2007-07-01  Bruno Haible  <bruno@clisp.org>
34080
34081         * lib/sprintf.c (sprintf): Limit the available length estimation,
34082         to avoid address wraparound.
34083         * lib/vsprintf.c (vsprintf): Likewise.
34084         * modules/sprintf-posix (Dependencies): Add stdint.
34085         * modules/vsprintf-posix (Dependencies): Likewise.
34086
34087 2007-07-01  Bruno Haible  <bruno@clisp.org>
34088
34089         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
34090         Windows PATH as well. Conservative double-quoting. Comments.
34091
34092 2007-07-01  Bruno Haible  <bruno@clisp.org>
34093             Eric Blake  <ebb9@byu.net>
34094             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34095
34096         * gnulib-tool (self_abspathname): Fix algorithm to cope with
34097         empty components in $PATH, denoting '.'.
34098
34099 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34100
34101         * gnulib-tool: Fix indentation.
34102         (func_create_megatestdir): Likewise.
34103         Report by Bruno Haible.
34104
34105 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34106
34107         Sync from Automake.
34108         * build-aux/gnupload: Fix shell portability issues with for loops.
34109         Report by Karl Berry.
34110
34111 2007-06-29  Simon Josefsson  <simon@josefsson.org>
34112
34113         * build-aux/maint.mk (POURL): Use translationproject.org.
34114
34115 2007-06-27  Simon Josefsson  <simon@josefsson.org>
34116             Bruno Haible  <bruno@clisp.org>
34117
34118         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
34119         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
34120         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
34121         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
34122         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
34123
34124 2007-06-27  Bruno Haible  <bruno@clisp.org>
34125
34126         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
34127         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
34128
34129 2007-06-26  Karl Berry  <karl@gnu.org>
34130
34131         * MODULES.html.sh: remove xreadlink-with-size.
34132
34133 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34134
34135         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
34136         method that I hope also handles the double-include problem noted
34137         by Bruno Haible in
34138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
34139
34140 2007-06-23  Bruno Haible  <bruno@clisp.org>
34141
34142         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34143         Don't let the 'mostlyclean' target fail if the last subdirectory could
34144         not be removed.
34145         Reported by Karl Berry.
34146
34147 2007-06-23  Bruno Haible  <bruno@clisp.org>
34148
34149         * gnulib-tool (echo): Add a speedier workaround for ksh.
34150         * tests/test-echo.sh: Likewise.
34151
34152 2007-06-23  Bruno Haible  <bruno@clisp.org>
34153
34154         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
34155         * tests/test-echo.sh: Likewise.
34156
34157 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34158
34159         * gnulib-tool (IFS): Initialize early, so we don't set it to
34160         empty later.
34161         (self_abspathname): Rewrite algorithm to set it, reindent.
34162         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
34163         (func_create_megatestdir): Merge some sed scripts.
34164
34165 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34166
34167         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
34168         exposed by Sun Studio 11 cc on Solaris 8.
34169
34170 2007-06-22  Bruno Haible  <bruno@clisp.org>
34171
34172         * gnulib-tool (echo): Ensure the echo primitive does not interpret
34173         backslashes.
34174         * tests/test-echo.sh: New file.
34175
34176 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34177
34178         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
34179         simplify `sed_replace_build_aux' scripts, they are portable but
34180         echoing them with `echo' is not.
34181         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
34182
34183 2007-06-21  Karl Berry  <karl@gnu.org>
34184
34185         * config/srclist.txt: guess we can't handle the licenses via
34186         srclist at the moment.
34187
34188 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34189
34190         * MODULES.html.sh: Add include_next.
34191         * modules/include_next: New file.
34192
34193 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34194
34195         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
34196         INCLUDE_NEXT.
34197         (gl_CHECK_NEXT_HEADERS): New macro.
34198         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
34199         the obsolescent gl_ABSOLUTE_HEADER.
34200         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
34201         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
34202         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34203         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34204         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34205         * m4/math_h.m4 (gl_MATH_H): Likewise.
34206         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34207         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34208         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34209         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34210         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34211         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34212         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34213         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34214         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34216         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34217         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34218         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
34219         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34220         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34221         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34222         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34223         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34224         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34225         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34226         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34227         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34228         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34229         * lib/float_.h: Likewise.
34230         * lib/inttypes_.h: Likewise.
34231         * lib/math_.h: Likewise.
34232         * lib/search_.h: Likewise.
34233         * lib/signal_.h: Likewise.
34234         * lib/stdint_.h: Likewise.
34235         * lib/stdio_.h: Likewise.
34236         * lib/stdlib_.h: Likewise.
34237         * lib/string_.h: Likewise.
34238         * lib/sys_stat_.h: Likewise.
34239         * lib/sys_time_.h: Likewise.
34240         * lib/time_.h: Likewise.
34241         * lib/unistd_.h: Likewise.
34242         * lib/wchar_.h: Likewise.
34243         * lib/wctype_.h: Likewise.
34244         * lib/dirent_.h: Likewise.
34245         * lib/iconv_.h: Likewise.
34246         * lib/locale_.h: Likewise.
34247         * lib/netinet_in_.h: Likewise.
34248         * lib/sys_select_.h: Likewise.
34249         * lib/sys_socket_.h: Likewise.
34250         * lib/sysexits_.h: Likewise.
34251         * modules/fcntl (Depends-on): Depend on include_next, not
34252         absolute_header.
34253         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34254         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34255         * modules/fchdir: Likewise.
34256         * modules/float: Likewise.
34257         * modules/iconv_open: Likewise.
34258         * modules/inttypes: Likewise.
34259         * modules/locale: Likewise.
34260         * modules/math: Likewise.
34261         * modules/netinet_in: Likewise.
34262         * modules/search: Likewise.
34263         * modules/signal: Likewise.
34264         * modules/stdint: Likewise.
34265         * modules/stdio: Likewise.
34266         * modules/stdlib: Likewise.
34267         * modules/string: Likewise.
34268         * modules/sys_select: Likewise.
34269         * modules/sys_socket: Likewise.
34270         * modules/sys_stat: Likewise.
34271         * modules/sys_time: Likewise.
34272         * modules/sysexits: Likewise.
34273         * modules/time: Likewise.
34274         * modules/unistd: Likewise.
34275         * modules/wchar: Likewise.
34276         * modules/wctype: Likewise.
34277         * modules/sys_stat: Change maintainer to "all".
34278         * modules/unistd: Likewise.
34279
34280 2007-06-20  Karl Berry  <karl@gnu.org>
34281
34282         * config/srclist.txt: track www changes in license files.
34283
34284 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34285
34286         * build-aux/bootstrap: Remove stray dot.
34287         Make sure build_aux settings are honored when linking
34288         gnulib_extra_files.
34289
34290 2007-06-19  Eric Blake  <ebb9@byu.net>
34291
34292         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34293         Allow compilation on cygwin.
34294
34295 2007-06-19  Jim Meyering  <jim@meyering.net>
34296
34297         xreadlink-with-size: Remove module.  No longer used.
34298         Ex-callers now use xreadlink or mreadlink-with-size.
34299         * modules/xreadlink-with-size: Remove module.
34300         * lib/xreadlink-with-size.c: Remove file.
34301         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34302         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34303         just before the function definition *is* accurate.
34304
34305         Eliminate one way canonicalize_filename_mode could exit.
34306         * lib/canonicalize.c (canonicalize_filename_mode):
34307         Use mreadlink_with_size, not xreadlink_with_size.
34308
34309 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34310
34311         Detect porting problems to FreeBSD/arm, which has time_t wider than
34312         long int.  Original problem reported for GNU diff by Xin Li in
34313         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34314         * modules/getdate (Depends-on): Add intprops, verify.
34315         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34316         is an integer type no wider than long int.
34317
34318 2007-06-18  Jim Meyering  <jim@meyering.net>
34319
34320         New module: mreadlink-with-size.
34321         * MODULES.html.sh: Add mreadlink-with-size.
34322         * modules/mreadlink-with-size: New module
34323         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34324         not xreadlink-with-size.
34325         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34326
34327 2007-06-16  Bruno Haible  <bruno@clisp.org>
34328
34329         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34330         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34331         Reported by Gary V. Vaughan <gary@gnu.org>.
34332
34333 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34334
34335         Revamp lchown so that it lives in unistd.h where it belongs.
34336         * lib/lchown.h: Remove.
34337         * lib/dirchownmod.c: Don't include lib/lchown.h.
34338         * lib/fchownat.c: Likewise.
34339         * lib/openat.c: Likewise.
34340         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34341         does not follow symlinks.
34342         (EOPNOTSUPP): Define if not defined.
34343         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34344         is defined to 0.
34345         (lchown): New decl.
34346         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34347         Do not check for lchown decl.
34348         Set REPLACE_LCHOWN.
34349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34350         REPLACE_LCHOWN.
34351         * modules/chown: Make it clear it follows symlinks.
34352         * modules/lchown: Make it clear it doesn't follow symlinks.
34353         (Files): Remove lib/lchown.h
34354         (Depends-on): Add unistd.
34355         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34356         (Include): Include <unistd.h>, not "lchown.h".
34357         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34358         REPLACE_LCHOWN.
34359
34360 2007-06-15  Jim Meyering  <jim@meyering.net>
34361
34362         Change license (GPL to LGPL) of fsusage and dependents.
34363         * modules/fsusage (License): Change to LGPL.
34364         * modules/full-read (License): Likewise.
34365         * modules/full-write (License): Likewise.
34366         * modules/safe-read (License): Likewise.
34367         * modules/safe-write (License): Likewise.
34368
34369 2007-06-14  Ben Pfaff  <blp@gnu.org>
34370
34371         Missing part of allocsa -> malloca transition.
34372         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34373         gl_MALLOCA.
34374
34375 2007-06-12  Bruno Haible  <bruno@clisp.org>
34376
34377         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34378         to ia64, x86_64, i386.
34379         Reported by Eric Blake.
34380
34381 2007-06-12  Bruno Haible  <bruno@clisp.org>
34382
34383         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34384         cross-compiling to x86_64.
34385
34386 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34387
34388         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34389         glitch reported by Ralf Wildenhues in
34390         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34391
34392         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34393         Vin Shelton.
34394
34395 2007-06-11  Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34398         replacement string.
34399         Reported by Eric Blake.
34400
34401 2007-06-10  Bruno Haible  <bruno@clisp.org>
34402
34403         Prepare vasnprintf code for use with Unicode strings.
34404         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34405         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34406         TYPE_U32_STRING.
34407         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34408         a_u32_string variants.
34409         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34410         * lib/printf-args.c: Don't include config.h and the specification
34411         header if PRINTF_FETCHARGS is already defined.
34412         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34413         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34414         TYPE_U16_STRING, TYPE_U32_STRING.
34415         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34416         u16_directive, u16_directives, u32_directive, u32_directives): New
34417         types.
34418         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34419         New declarations.
34420         * lib/printf-parse.c: Don't include config.h and the specification
34421         header if PRINTF_PARSE is already defined. Eliminate the set of
34422         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34423         them now. Include c-ctype.h.
34424         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34425         directive and CHAR_T_ONLY_ASCII.
34426         * lib/vasnprintf.c: Don't include config.h and the specification header
34427         if VASNPRINTF is already defined.
34428         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34429         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34430         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34431         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34432         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34433         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34434         code accordingly.
34435         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34436         pad_ourselves also in this case, with the 'c' and 's' directives, and
34437         with a different notion of "width".
34438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34439
34440 2007-06-10  Bruno Haible  <bruno@clisp.org>
34441
34442         * modules/unistr/u32-mbsnlen: New file.
34443         * lib/unistr/u32-mbsnlen.c: New file.
34444
34445         * modules/unistr/u16-mbsnlen: New file.
34446         * lib/unistr/u16-mbsnlen.c: New file.
34447
34448         * modules/unistr/u8-mbsnlen: New file.
34449         * lib/unistr/u8-mbsnlen.c: New file.
34450
34451         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34452         declarations.
34453
34454 2007-06-10  Bruno Haible  <bruno@clisp.org>
34455
34456         * lib/string_.h (mbsnlen): New declaration.
34457         * lib/mbsnlen.c: New file.
34458         * m4/mbsnlen.m4: New file.
34459         * modules/mbsnlen: New file.
34460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34461         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34462         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34463
34464 2007-06-10  Bruno Haible  <bruno@clisp.org>
34465
34466         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34467
34468 2007-06-10  Bruno Haible  <bruno@clisp.org>
34469
34470         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34471         * lib/mbuiter.h: Likewise.
34472
34473 2007-06-10  Bruno Haible  <bruno@clisp.org>
34474
34475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34476         declaration.
34477
34478 2007-06-10  Karl Berry  <karl@gnu.org>
34479
34480         * config/srclist.txt: remove gettext entries, Bruno prefers
34481         to update individually.
34482
34483 2007-06-10  Bruno Haible  <bruno@clisp.org>
34484
34485         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34486         'maxlen'. Ensure only length + width bytes are allocated, not
34487         length + 1 + width.
34488
34489 2007-06-09  Bruno Haible  <bruno@clisp.org>
34490
34491         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34492         (CHAR_T): Remove macro.
34493         (VASNPRINTF): Update.
34494
34495 2007-06-09  Bruno Haible  <bruno@clisp.org>
34496
34497         * MODULES.html.sh (Unicode string functions): Add the new modules.
34498
34499         * modules/uniconv/u32-conv-to-enc: New file.
34500         * lib/uniconv/u32-conv-to-enc.c: New file.
34501         * modules/uniconv/u32-conv-to-enc-tests: New file.
34502         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34503
34504         * modules/uniconv/u16-conv-to-enc: New file.
34505         * lib/uniconv/u16-conv-to-enc.c: New file.
34506         * lib/uniconv/u-conv-to-enc.h: New file.
34507         * modules/uniconv/u16-conv-to-enc-tests: New file.
34508         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34509
34510         * modules/uniconv/u8-conv-to-enc: New file.
34511         * lib/uniconv/u8-conv-to-enc.c: New file.
34512         * modules/uniconv/u8-conv-to-enc-tests: New file.
34513         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34514
34515         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34516         u32_conv_to_encoding): New declarations.
34517
34518 2007-06-09  Bruno Haible  <bruno@clisp.org>
34519
34520         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34521
34522 2007-06-09  Bruno Haible  <bruno@clisp.org>
34523
34524         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34525         * modules/malloca: Renamed from modules/allocsa, updated.
34526         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34527         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34528         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34529         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34530         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34531         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34532         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34533         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34534         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34535         * modules/c-strcasestr (Depends-on): Update.
34536         * lib/c-strcasestr.c: Update.
34537         * modules/c-strstr (Depends-on): Update.
34538         * lib/c-strstr.c: Update.
34539         * modules/canonicalize-lgpl (Depends-on): Update.
34540         * lib/canonicalize-lgpl.c: Update.
34541         * modules/clean-temp (Depends-on): Update.
34542         * lib/clean-temp.c: Update.
34543         * modules/csharpcomp (Depends-on): Update.
34544         * lib/csharpcomp.c: Update.
34545         * modules/csharpexec (Depends-on): Update.
34546         * lib/csharpexec.c: Update.
34547         * modules/javacomp (Depends-on): Update.
34548         * lib/javacomp.c: Update.
34549         * modules/javaexec (Depends-on): Update.
34550         * lib/javaexec.c: Update.
34551         * modules/mbscasestr (Depends-on): Update.
34552         * lib/mbscasestr.c: Update.
34553         * modules/mbsstr (Depends-on): Update.
34554         * lib/mbsstr.c: Update.
34555         * modules/setenv (Depends-on): Update.
34556         * lib/setenv.c: Update.
34557         * modules/strcasestr (Depends-on): Update.
34558         * lib/strcasestr.c: Update.
34559         * modules/striconveha (Depends-on): Update.
34560         * lib/striconveha.c: Update.
34561         * modules/relocatable-prog-wrapper (Files): Update.
34562         * lib/relocwrapper.c: Update.
34563         * build-aux/install-reloc: Update.
34564         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34565
34566 2007-06-08  Bruno Haible  <bruno@clisp.org>
34567
34568         Port to uClibc.
34569         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34570         * lib/fpurge.c (fpurge): Likewise.
34571         * lib/freading.c (freading): Likewise.
34572         * lib/fseeko.c (rpl_fseeko): Likewise.
34573         * lib/fseterr.c (fseterr): Likewise.
34574         * lib/fwriting.c (fwriting): Likewise.
34575         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34576
34577 2007-06-08  Bruno Haible  <bruno@clisp.org>
34578
34579         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34580         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34581         * modules/gettext (Files): Add m4/intlmacosx.m4.
34582
34583 2007-06-07  Bruno Haible  <bruno@clisp.org>
34584
34585         * modules/localename-tests: New file.
34586         * tests/test-localename.c: New file.
34587
34588         New module 'localename'.
34589         * lib/localename.h: New file.
34590         * lib/localename.c: New file, from GNU gettext.
34591         * m4/localename.m4: New file.
34592         * modules/localename: New file.
34593
34594 2007-06-07  Bruno Haible  <bruno@clisp.org>
34595
34596         Work around the lack of <wchar.h> on some builds of uClibc.
34597         * doc/headers/wchar.texi: Update.
34598         * lib/wchar_.h: Include <wchar.h> only if it exists.
34599         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34600         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34601         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34602         doesn't exist.
34603         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34604         * modules/mbfile (Depends-on): Add wchar.
34605         * modules/mbiter (Depends-on): Likewise.
34606         * modules/mbuiter (Depends-on): Likewise.
34607         Reported by Simon Josefsson.
34608
34609 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34610
34611         Work around problem reported by Steven M. Schweda in
34612         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34613         Tru64 5.1B with the Compaq compiler environment installed declares
34614         an 'isblank' function but does not define it in the C library.
34615         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34616         * lib/regex_internal.h (isblank): Likewise.
34617         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34619
34620 2007-06-05  Bruno Haible  <bruno@clisp.org>
34621
34622         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34623         ia64.
34624         * modules/printf-safe: New file.
34625         * modules/fprintf-posix (Depends-on): Add printf-safe.
34626         * modules/printf-posix (Depends-on): Likewise.
34627         * modules/snprintf-posix (Depends-on): Likewise.
34628         * modules/sprintf-posix (Depends-on): Likewise.
34629         * modules/vasnprintf-posix (Depends-on): Likewise.
34630         * modules/vasprintf-posix (Depends-on): Likewise.
34631         * modules/vfprintf-posix (Depends-on): Likewise.
34632         * modules/vprintf-posix (Depends-on): Likewise.
34633         * modules/vsnprintf-posix (Depends-on): Likewise.
34634         * modules/vsprintf-posix (Depends-on): Likewise.
34635         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34636         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34637         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34638         "no" on i386, x86_64, ia64.
34639         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34640         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34641         on i386, x86_64, ia64.
34642         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34643         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34644         on i386, x86_64, ia64.
34645         * tests/test-vasnprintf-posix.c: Include float.h.
34646         (LDBL80_WORDS): New macro.
34647         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34648         on i386, x86_64, ia64.
34649         * tests/test-vasprintf-posix.c: Include float.h.
34650         (LDBL80_WORDS): New macro.
34651         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34652         on i386, x86_64, ia64.
34653         * tests/test-snprintf-posix.c: Include float.h.
34654         * tests/test-sprintf-posix.c: Likewise.
34655         * tests/test-vsnprintf-posix.c: Likewise.
34656         * tests/test-vsprintf-posix.c: Likewise.
34657
34658 2007-06-05  Bruno Haible  <bruno@clisp.org>
34659
34660         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34661         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34662         non-IEEE numbers on i386, x86_64, ia64.
34663         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34664         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34665         * tests/test-isnanl.h: Include float.h.
34666         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34667
34668 2007-06-05  Bruno Haible  <bruno@clisp.org>
34669
34670         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34671         also the %a / %A. Handle the %a / %A code before this extra handling.
34672
34673 2007-06-05  Bruno Haible  <bruno@clisp.org>
34674
34675         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34676         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34677
34678 2007-06-05  Bruno Haible  <bruno@clisp.org>
34679
34680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34681         typo in variable name.
34682
34683 2007-06-05  Eric Blake  <ebb9@byu.net>
34684
34685         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34686         Reported by Simon Josefsson.
34687
34688 2007-06-04  Bruno Haible  <bruno@clisp.org>
34689
34690         Avoid test failures on some PowerPC platforms.
34691         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34692         Define differently for PowerPC.
34693         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34694         Reported by Gary V. Vaughan <gary@gnu.org>.
34695
34696 2007-06-02  Bruno Haible  <bruno@clisp.org>
34697
34698         Fix test-stdint failure on FreeBSD/ia64.
34699         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34700         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34701         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34702         * doc/headers/stdint.texi: Update.
34703
34704 2007-06-01  Bruno Haible  <bruno@clisp.org>
34705
34706         * tests/test-binary-io.c (main): Pass a third argument to open().
34707         Reported by Gary V. Vaughan <gary@gnu.org>.
34708
34709 2007-06-01  Bruno Haible  <bruno@clisp.org>
34710
34711         * doc/functions/frexpl.texi: Update for mingw.
34712
34713 2007-06-01  Bruno Haible  <bruno@clisp.org>
34714
34715         * tests/test-lseek.c (main): Disable test of errno for invalid third
34716         argument.
34717         * doc/functions/lseek.texi: Update.
34718         Reported by Gary V. Vaughan <gary@gnu.org>.
34719
34720 2007-05-28  Bruno Haible  <bruno@clisp.org>
34721
34722         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34723
34724 2007-05-31  Eric Blake  <ebb9@byu.net>
34725
34726         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34727         cross compiling.
34728
34729 2007-05-30  Eric Blake  <ebb9@byu.net>
34730         and Bruno Haible  <bruno@clisp.org>
34731
34732         Work around mingw test failures exposed by m4-1.4.9b.
34733         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34734         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34735         moment.
34736
34737 2007-05-30  Bruno Haible  <bruno@clisp.org>
34738
34739         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34740         assuming that they are closed. Needed on HP-UX 11.
34741
34742 2007-05-29  Bruno Haible  <bruno@clisp.org>
34743
34744         Fix a problem with #include_next.
34745         * lib/dirent_.h: Split the double-inclusion guard.
34746         * lib/fcntl_.h: Likewise.
34747         * lib/float_.h: Likewise.
34748         * lib/iconv_.h: Likewise.
34749         * lib/inttypes_.h: Likewise.
34750         * lib/locale_.h: Likewise.
34751         * lib/math_.h: Likewise.
34752         * lib/netinet_in_.h: Likewise.
34753         * lib/search_.h: Likewise.
34754         * lib/signal_.h: Likewise.
34755         * lib/stdint_.h: Likewise.
34756         * lib/stdio_.h: Likewise.
34757         * lib/stdlib_.h: Likewise.
34758         * lib/string_.h: Likewise.
34759         * lib/sys_select_.h: Likewise.
34760         * lib/sys_socket_.h: Likewise.
34761         * lib/sys_stat_.h: Likewise.
34762         * lib/sys_time_.h: Likewise.
34763         * lib/sysexits_.h: Likewise.
34764         * lib/time_.h: Likewise.
34765         * lib/unistd_.h: Likewise.
34766         * lib/wchar_.h: Likewise.
34767         * lib/wctype_.h: Likewise.
34768
34769 2007-05-29  Bruno Haible  <bruno@clisp.org>
34770
34771         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34772         for the moment.
34773
34774 2007-05-29  Bruno Haible  <bruno@clisp.org>
34775
34776         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34777         invocation.
34778         Reported by Eric Blake.
34779
34780 2007-05-29  Bruno Haible  <bruno@clisp.org>
34781
34782         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34783         compiling case.
34784
34785 2007-05-29  Eric Blake  <ebb9@byu.net>
34786             Bruno Haible  <bruno@clisp.org>
34787
34788         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34789         cross compiles.
34790
34791 2007-05-28  Eric Blake  <ebb9@byu.net>
34792
34793         * modules/closein-tests (test_closein_LDADD): Support test on
34794         cygwin with libtool.
34795
34796 2007-05-28  Bruno Haible  <bruno@clisp.org>
34797
34798         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34799         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34800         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34801         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34802         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34803         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34804         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34805         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34806         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34807
34808 2007-05-28  Eric Blake  <ebb9@byu.net>
34809
34810         Unconditionally include <config.h> in unit tests.
34811         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34812         * tests/test-allocsa.c, tests/test-arcfour.c,
34813         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34814         tests/test-array_list.c, tests/test-array_oset.c,
34815         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34816         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34817         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34818         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34819         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34820         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34821         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34822         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34823         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34824         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34825         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34826         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34827         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34828         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34829         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34830         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34831         test-md5.c, test-memmem.c, test-printf-posix.c,
34832         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34833         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34834         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34835         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34836         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34837         test-vasnprintf-posix2.c, test-vasnprintf.c,
34838         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34839         test-vfprintf-posix.c, test-vprintf-posix.c,
34840         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34841         test-xvasprintf.c: Likewise.
34842
34843 2007-05-28  Bruno Haible  <bruno@clisp.org>
34844
34845         * gnulib-tool (func_import): Remember the --with-tests command-line
34846         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34847         Reported by Eric Blake.
34848
34849 2007-05-28  Bruno Haible  <bruno@clisp.org>
34850
34851         * modules/ftell-tests: New file.
34852         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34853         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34854
34855         * lib/ftell.c: New file.
34856         * modules/ftell: New file.
34857         * m4/ftell.m4: New file.
34858         * doc/functions/ftell.texi: Update.
34859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34860         REPLACE_FTELL.
34861         * lib/stdio_.h (rpl_ftell): New declaration.
34862         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34863         REPLACE_FTELL.
34864
34865 2007-05-28  Eric Blake  <ebb9@byu.net>
34866
34867         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34868
34869 2007-05-28  Bruno Haible  <bruno@clisp.org>
34870
34871         * modules/fseek-tests: New file.
34872         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34873         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34874
34875         * lib/fseek.c: New file.
34876         * modules/fseek: New file.
34877         * m4/fseek.m4: New file.
34878         * doc/functions/fseek.texi: Update.
34879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34880         REPLACE_FSEEK.
34881         * lib/stdio_.h (rpl_fseek): New declaration.
34882         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34883         REPLACE_FSEEK.
34884
34885 2007-05-28  Bruno Haible  <bruno@clisp.org>
34886
34887         * lib/stdio_.h (fflush): More comments.
34888
34889 2007-05-28  Bruno Haible  <bruno@clisp.org>
34890
34891         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34892         runtime test.
34893
34894 2007-05-28  Eric Blake  <ebb9@byu.net>
34895
34896         Improve lseek module.
34897         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34898         * lib/unistd_.h (lseek): Scale back link warning message.
34899         * tests/test-lseek.c: Beef up test.
34900         * tests/test-lseek.sh: Exercise more facets of lseek.
34901         Reported by Bruno Haible.
34902
34903 2007-05-28  Bruno Haible  <bruno@clisp.org>
34904
34905         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34906         to define.
34907
34908 2007-05-27  Bruno Haible  <bruno@clisp.org>
34909
34910         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34911
34912 2007-05-27  Bruno Haible  <bruno@clisp.org>
34913
34914         * modules/openmp: New file.
34915         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34916         Noah Misch.
34917
34918 2007-05-26  Bruno Haible  <bruno@clisp.org>
34919
34920         * modules/chdir-long (Depends-on): Add fchdir.
34921         * modules/chdir-safer (Depends-on): Likewise.
34922         * modules/fts (Depends-on): Likewise.
34923         * modules/fts-lgpl (Depends-on): Likewise.
34924         * modules/openat (Depends-on): Likewise.
34925         * modules/savewd (Depends-on): Likewise.
34926
34927 2007-05-24  Eric Blake  <ebb9@byu.net>
34928
34929         Fix lseek on mingw.
34930         * modules/lseek: New module.
34931         * m4/lseek.m4: New file.
34932         * lib/lseek.c: New file.
34933         * modules/lseek-tests: New file.
34934         * tests/test-lseek.c: New file.
34935         * tests/test-lseek.sh: New file.
34936         * MODULES.html.sh: Document lseek module.
34937         * modules/fflush (Depends-on): Add lseek, fseeko.
34938         * modules/fseeko (Depends-on): Likewise.
34939         * modules/ftello (Depends-on): Likewise.
34940         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34941         broken.
34942         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34943         broken.
34944         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34945         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34946         * lib/ftello.c (rpl_ftello): Likewise.
34947         * tests/test-fseeko.c (main): Test this.
34948         * tests/test-fseeko.sh: Likewise.
34949         * tests/test-ftello.c (main): Likewise.
34950         * tests/test-ftello.sh: Likewise.
34951         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34952         implies replacing fseek.
34953         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34954         HAVE_FTELLO.
34955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34956         * modules/unistd (Makefile.am): Likewise.
34957         * lib/unistd_.h (lseek): Declare a replacement.
34958         * doc/functions/lseek.texi (lseek): Document this fix.
34959         * doc/functions/fseek.texi (fseek): Likewise.
34960         * doc/functions/ftell.texi (ftell): Likewise.
34961
34962 2007-05-24  Bruno Haible  <bruno@clisp.org>
34963
34964         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34965         in the printed representation of a NaN.
34966         * tests/test-vasprintf-posix.c (test_function): Likewise.
34967         * tests/test-snprintf-posix.h (test_function): Likewise.
34968         * tests/test-sprintf-posix.h (test_function): Likewise.
34969         Reported by Eric Blake.
34970
34971 2007-05-23  Eric Blake  <ebb9@byu.net>
34972
34973         Fix fseeko/ftello on cygwin 1.5.24.
34974         * doc/functions/fseeko.texi (fseeko): Document the fix.
34975         * doc/functions/ftello.texi (ftello): Document the fix.
34976         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34977         * doc/functions/stdout.text (stdout): New file.
34978         * doc/functions/stderr.text (stderr): New file.
34979         * doc/gnulib.texi (Function Substitutes): Use new files.
34980         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34981         prior to 1.7.0.
34982         * tests/test-ftello.c (main): Likewise for ftello.
34983         * tests/test-fseeko.sh: New file.
34984         * tests/test-ftello.sh: New file.
34985         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34986         with seekable stdin.
34987         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34988         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34989         (gl_REPLACE_FSEEKO): New macro.
34990         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34991         * modules/fseeko (Files): Distribute fseeko.c.
34992         * modules/ftello (Files): Distribute ftello.c.
34993         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34994         mode.
34995         * lib/ftello.c (rpl_ftello): New file.
34996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34997         fseeko, ftello.
34998         (gl_STDIN_LARGE_OFFSET): New macro.
34999         * modules/stdio (Makefile.am): Perform the replacement.
35000         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
35001
35002 2007-05-23  Bruno Haible  <bruno@clisp.org>
35003
35004         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
35005         GNULIB_POSIXCHECK is defined.
35006
35007 2007-05-21  Bruno Haible  <bruno@clisp.org>
35008
35009         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
35010         Check also the output for NaN arguments. When cross-compiling, guess
35011         no on IRIX.
35012         * lib/vasnprintf.c: Update comments.
35013         * tests/test-vasnprintf-posix.c (strisnan): New function.
35014         (test_function): Use it.
35015         * tests/test-vasprintf-posix.c (strisnan): New function.
35016         (test_function): Use it.
35017         * tests/test-snprintf-posix.h (strisnan): New function.
35018         (test_function): Use it.
35019         * tests/test-sprintf-posix.h (strisnan): New function.
35020         (test_function): Use it.
35021         Reported by Eric Blake.
35022
35023 2007-05-20  Bruno Haible  <bruno@clisp.org>
35024
35025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
35026         numbers that fails on BeOS.
35027         * doc/functions/frexpl.texi: Update.
35028
35029 2007-05-20  Jim Meyering  <jim@meyering.net>
35030
35031         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
35032         forced upon us by glibc-2.6.
35033
35034 2007-05-20  Bruno Haible  <bruno@clisp.org>
35035
35036         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
35037         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
35038         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
35039         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
35040         NEED_PRINTF_INFINITE.
35041         (is_infinitel): New function.
35042         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
35043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
35044         gl_PREREQ_VASNPRINTF_INFINITE.
35045         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
35046         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35047         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
35048         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
35049         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
35050         gl_PREREQ_VASNPRINTF_INFINITE.
35051         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35052         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35053         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35054         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35055         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35056         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35058         * doc/functions/fprintf.texi: Update.
35059         * doc/functions/printf.texi: Update.
35060         * doc/functions/snprintf.texi: Update.
35061         * doc/functions/sprintf.texi: Update.
35062         * doc/functions/vfprintf.texi: Update.
35063         * doc/functions/vprintf.texi: Update.
35064         * doc/functions/vsnprintf.texi: Update.
35065         * doc/functions/vsprintf.texi: Update.
35066
35067 2007-05-20  Bruno Haible  <bruno@clisp.org>
35068
35069         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
35070         was not found in libc.
35071         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
35072
35073 2007-05-20  Bruno Haible  <bruno@clisp.org>
35074
35075         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35076         printed as "-nan" instead of "nan".
35077         * tests/test-vasprintf-posix.c (test_function): Likewise.
35078         * tests/test-snprintf-posix.h (test_function): Likewise.
35079         * tests/test-sprintf-posix.h (test_function): Likewise.
35080         Needed for HP-UX 11.
35081
35082 2007-05-20  Jim Meyering  <jim@meyering.net>
35083
35084         Fix buggy test for the fchownat-deref bug.
35085         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
35086         symlink required for the run-test.  Without it, this test would
35087         always declare that fchownat doesn't work, and client code would
35088         unnecessarily use the replacement function with fixed libc.
35089         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
35090         Reported by Greg Schafer.
35091
35092 2007-05-19  Bruno Haible  <bruno@clisp.org>
35093
35094         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
35095         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
35096         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
35097         Needed for IRIX 6.5 and Solaris 2.5.1.
35098
35099 2007-05-19  Bruno Haible  <bruno@clisp.org>
35100
35101         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
35102         (test_function): Skip tests involving -0.0 on platforms where
35103         -0.0 = 0.0.
35104         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
35105         (test_function): Skip tests involving -0.0 on platforms where
35106         -0.0 = 0.0.
35107         * tests/test-snprintf-posix.h (have_minus_zero): New function.
35108         (test_function): Skip tests involving -0.0 on platforms where
35109         -0.0 = 0.0.
35110         * tests/test-sprintf-posix.h (have_minus_zero): New function.
35111         (test_function): Skip tests involving -0.0 on platforms where
35112         -0.0 = 0.0.
35113         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
35114         tests.
35115         * tests/test-printf-posix.h (test_function): Likewise.
35116         * tests/test-printf-posix.output: Remove all -0.0 related results.
35117         Needed for IRIX 6.5.
35118
35119 2007-05-19  Bruno Haible  <bruno@clisp.org>
35120
35121         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35122         printed as "nan0x7fffffff" instead of "nan".
35123         * tests/test-vasprintf-posix.c (test_function): Likewise.
35124         * tests/test-snprintf-posix.h (test_function): Likewise.
35125         * tests/test-sprintf-posix.h (test_function): Likewise.
35126         * tests/test-fprintf-posix.h (NaN): Remove macro.
35127         (test_function): Remove all NaN related tests.
35128         * tests/test-printf-posix.h (NaN): Remove macro.
35129         (test_function): Remove all NaN related tests.
35130         * tests/test-printf-posix.output: Remove all NaN related results.
35131         Needed for IRIX 6.5.
35132
35133 2007-05-19  Bruno Haible  <bruno@clisp.org>
35134
35135         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
35136         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
35137
35138 2007-05-19  Bruno Haible  <bruno@clisp.org>
35139
35140         * lib/float_.h: New file.
35141         * m4/float_h.m4: New file.
35142         * modules/float: New file.
35143         * modules/isnanl (Dependencies): Add float.
35144         * modules/isnanl-nolibm (Dependencies): Likewise.
35145         * modules/mathl (Dependencies): Likewise.
35146         * modules/printf-frexpl (Dependencies): Likewise.
35147         * modules/signbit (Dependencies): Likewise.
35148         * modules/vasnprintf (Dependencies): Likewise.
35149         * doc/headers/float.texi: Update.
35150
35151 2007-05-19  Jim Meyering  <jim@meyering.net>
35152
35153         * lib/utimens.c (gl_futimens): Rename from futimens,
35154         now that glibc-2.6 declares futimens.
35155         * lib/utimens.h: Likewise.
35156
35157 2007-05-19  Bruno Haible  <bruno@clisp.org>
35158
35159         Avoid test failures on mingw.
35160         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
35161         * tests/test-printf-posix.sh: Likewise.
35162         * tests/test-vfprintf-posix.sh: Likewise.
35163         * tests/test-vprintf-posix.sh: Likewise.
35164
35165 2007-05-19  Bruno Haible  <bruno@clisp.org>
35166
35167         Fix *printf result for NaN, Inf, -0.0 on mingw.
35168         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
35169         * lib/vasnprintf.c: Include math.h and isnan.h.
35170         (is_infinite_or_zero): New function.
35171         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
35172         values in the %f, %F, %e, %E, %g, %G directives.
35173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
35174         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35175         gl_PRINTF_INFINITE and test its result. Invoke
35176         gl_PREREQ_VASNPRINTF_INFINITE.
35177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35178         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35179         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35181         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35183         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35184         * doc/functions/fprintf.texi: Update.
35185         * doc/functions/printf.texi: Update.
35186         * doc/functions/snprintf.texi: Update.
35187         * doc/functions/sprintf.texi: Update.
35188         * doc/functions/vfprintf.texi: Update.
35189         * doc/functions/vprintf.texi: Update.
35190         * doc/functions/vsnprintf.texi: Update.
35191         * doc/functions/vsprintf.texi: Update.
35192
35193 2007-05-19  Bruno Haible  <bruno@clisp.org>
35194
35195         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
35196         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
35197         Instead of multiplying with 10^k, set extra_zeroes to k.
35198         (scale10_round_long_double): Remove function.
35199
35200 2007-05-18  Bruno Haible  <bruno@clisp.org>
35201
35202         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
35203         introduced on 2007-05-06.
35204
35205 2007-05-18  Bruno Haible  <bruno@clisp.org>
35206
35207         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
35208         %g directives.
35209         * tests/test-vasprintf-posix.c (test_function): Likewise.
35210         * tests/test-snprintf-posix.h (test_function): Likewise.
35211         * tests/test-sprintf-posix.h (test_function): Likewise.
35212
35213 2007-05-18  Bruno Haible  <bruno@clisp.org>
35214
35215         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
35216         (strmatch): New function.
35217         (test_function): Test the %f directive on numbers of various exponents.
35218         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
35219         (strmatch): New function.
35220         (test_function): Test the %f directive on numbers of various exponents.
35221         * tests/test-snprintf-posix.h (strmatch): New function.
35222         (test_function): Test the %f directive on numbers of various exponents.
35223         * tests/test-sprintf-posix.h (strmatch): New function.
35224         (test_function): Test the %f directive on numbers of various exponents.
35225         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35226         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35227         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35228         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35229
35230 2007-05-18  Bruno Haible  <bruno@clisp.org>
35231
35232         Add support for 'long double' number output.
35233         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35234         * lib/vasnprintf.c: Include math.h and float+.h.
35235         (mp_limb_t): New type.
35236         (GMP_LIMB_BITS): New macro.
35237         (mp_twolimb_t): New type.
35238         (GMP_TWOLIMB_BITS): New macro.
35239         (mpn_t): New type.
35240         (multiply, divide, convert_to_decimal, decode_long_double,
35241         scale10_round_long_double, scale10_round_decimal_long_double,
35242         floorlog10l): New functions.
35243         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35244         for the %f, %F, %e, %E, %g, %G directives.
35245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35246         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35247         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35248         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35249         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35250         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35251         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35252         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35253         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35254         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35255         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35256         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35257         * modules/snprintf-posix (Depends-on): Likewise.
35258         * modules/sprintf-posix (Depends-on): Likewise.
35259         * modules/vasnprintf-posix (Depends-on): Likewise.
35260         * modules/vasprintf-posix (Depends-on): Likewise.
35261         * modules/vfprintf-posix (Depends-on): Likewise.
35262         * modules/vsnprintf-posix (Depends-on): Likewise.
35263         * modules/vsprintf-posix (Depends-on): Likewise.
35264         * modules/vasnprintf (Files): Add lib/float+.h.
35265         * doc/functions/fprintf.texi: Update.
35266         * doc/functions/printf.texi: Update.
35267         * doc/functions/snprintf.texi: Update.
35268         * doc/functions/sprintf.texi: Update.
35269         * doc/functions/vfprintf.texi: Update.
35270         * doc/functions/vprintf.texi: Update.
35271         * doc/functions/vsnprintf.texi: Update.
35272         * doc/functions/vsprintf.texi: Update.
35273
35274 2007-05-18  Bruno Haible  <bruno@clisp.org>
35275
35276         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35277
35278 2007-05-18  Bruno Haible  <bruno@clisp.org>
35279
35280         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35281         for printing 64-bit integers. Needed for mingw.
35282
35283 2007-05-18  Bruno Haible  <bruno@clisp.org>
35284
35285         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35286         gl_FUNC_FREXPL_WORKS.
35287         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35288
35289 2007-05-18  Bruno Haible  <bruno@clisp.org>
35290
35291         * modules/frexpl-nolibm-tests: New file.
35292
35293         * modules/frexpl-nolibm: New file.
35294         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35295
35296 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35297
35298         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35299         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35300         GCC 4.2, which otherwise issues a lot of warnings.
35301         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35302         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35303         Likewise.
35304         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35305         * modules/iconv_open (iconv.h): Likewise.
35306         * modules/locale (locale.h): Likewise.
35307         * modules/netinet_in (netinet/in.h): Likewise.
35308         * modules/sys_select (sys_select.h): Likewise.
35309         * modules/sys_socket (sys/socket.h): Likewise.
35310         * modules/sys_stat (sys/stat.h): Likewise.
35311         * modules/sysexits (sysexits.h): Likewise.
35312         * modules/unistd (unistd.h): Likewise.
35313
35314 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35315
35316         * modules/closein-tests (Makefile.am): Distribute
35317         `test-closein.sh'.
35318
35319 2007-05-17  Bruno Haible  <bruno@clisp.org>
35320
35321         * tests/test-printf-posix.output: Renamed from
35322         tests/test-fprintf-posix.out.
35323         * modules/fprintf-posix-tests: Update.
35324         * modules/printf-posix-tests: Update.
35325         * modules/vfprintf-posix-tests: Update.
35326         * modules/vprintf-posix-tests: Update.
35327         * tests/test-fprintf-posix.sh: Update.
35328         * tests/test-printf-posix.sh: Update.
35329         * tests/test-vfprintf-posix.sh: Update.
35330         * tests/test-vprintf-posix.sh: Update.
35331         Reported by Ralf Wildenhues.
35332
35333 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35334
35335         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35336         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35337         GCC 4.2, which otherwise issues a lot of warnings.
35338         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35339         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35340         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35341         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35342         it should no longer be needed.
35343         * lib/string_.h: Likewise.
35344         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35345         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35346         * modules/inttypes (inttypes.h): Likewise.
35347         * modules/math (math.h): Likewise.
35348         * modules/search (search.h): Likewise.
35349         * modules/signal (signal.h): Likewise.
35350         * modules/stdint (stdint.h): Likewise.
35351         * modules/stdio (stdio.h): Likewise.
35352         * modules/stdlib (stdlib.h): Likewise.
35353         * modules/string (string.h): Likewise.
35354         * modules/sys_time (sys/time.h): Likewise.
35355         * modules/time (time.h): Likewise.
35356         * modules/wchar (wchar.h): Likewise.
35357         * modules/wctype (wtype.h): Likewise.
35358
35359 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35360
35361         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35362
35363 2007-05-13  Bruno Haible  <bruno@clisp.org>
35364
35365         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35366         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35367         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35368         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35369         (gl_PREREQ_STRTOK_R): Don't require it here.
35370
35371 2007-05-13  Bruno Haible  <bruno@clisp.org>
35372
35373         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35374         when used in C++ mode.
35375
35376 2007-05-12  Bruno Haible  <bruno@clisp.org>
35377
35378         * lib/linebuffer.h: Tweak doc.
35379         * lib/linebuffer.c: Likewise.
35380
35381 2007-05-12  James Youngman  <jay@gnu.org>
35382
35383         * lib/linebuffer.c (readlinebuffer_delim): New function,
35384         like readlinebuffer, but use a caller-specified delimiter.
35385         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35386         as the delimiter.
35387         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35388
35389 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35390
35391         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35392         * modules/openat (Files): Remove openat-die.c.
35393         (Depends-on): Add openat-die.
35394         * modules/openat-die: New module.
35395
35396 2007-05-06  Bruno Haible  <bruno@clisp.org>
35397
35398         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35399         Update with info about Cygwin.
35400         * doc/functions/fprintf.texi: Update.
35401         * doc/functions/printf.texi: Update.
35402         * doc/functions/snprintf.texi: Update.
35403         * doc/functions/sprintf.texi: Update.
35404         * doc/functions/vfprintf.texi: Update.
35405         * doc/functions/vprintf.texi: Update.
35406         * doc/functions/vsnprintf.texi: Update.
35407         * doc/functions/vsprintf.texi: Update.
35408         Reported by Eric Blake.
35409
35410 2007-05-06  Bruno Haible  <bruno@clisp.org>
35411
35412         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35413         padding ourselves for the floating-point directives.
35414         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35416         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35417         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35418         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35419         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35421         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35423         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35426         * tests/test-snprintf-posix.h (test_function): Also check the width
35427         and some flags in the %f directive.
35428         * tests/test-sprintf-posix.h (test_function): Likewise.
35429         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35430         * tests/test-vasprintf-posix.c (test_function): Likewise.
35431         * doc/functions/fprintf.texi: Update.
35432         * doc/functions/printf.texi: Update.
35433         * doc/functions/snprintf.texi: Update.
35434         * doc/functions/sprintf.texi: Update.
35435         * doc/functions/vfprintf.texi: Update.
35436         * doc/functions/vprintf.texi: Update.
35437         * doc/functions/vsnprintf.texi: Update.
35438         * doc/functions/vsprintf.texi: Update.
35439
35440 2007-05-06  Bruno Haible  <bruno@clisp.org>
35441
35442         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35443         pass the ' flag character to sprintf or snprintf.
35444         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35446         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35447         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35448         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35453         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35456         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35457         flag.
35458         * tests/test-sprintf-posix.h (test_function): Likewise.
35459         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35460         * tests/test-vasprintf-posix.c (test_function): Likewise.
35461         * doc/functions/fprintf.texi: Update.
35462         * doc/functions/printf.texi: Update.
35463         * doc/functions/snprintf.texi: Update.
35464         * doc/functions/sprintf.texi: Update.
35465         * doc/functions/vfprintf.texi: Update.
35466         * doc/functions/vprintf.texi: Update.
35467         * doc/functions/vsnprintf.texi: Update.
35468         * doc/functions/vsprintf.texi: Update.
35469
35470 2007-05-01  Bruno Haible  <bruno@clisp.org>
35471
35472         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35473
35474 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35475
35476         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35477         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35478
35479 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35480
35481         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35482         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35484
35485 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35486
35487         * lib/argp-help.c (struct hol_entry): New member `ord'.
35488         (HOL_ENTRY_PTRCMP): Use ord for comparison
35489         (hol_sort): Initialize ord.
35490
35491 2007-05-01  Bruno Haible  <bruno@clisp.org>
35492
35493         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35494         Reported by Eric Blake.
35495         * doc/gnulib.texi (Function Substitutes): Update.
35496
35497 2007-05-01  Bruno Haible  <bruno@clisp.org>
35498
35499         * doc/functions.texi: Remove file, now redundant through
35500         doc/functions/*.texi.
35501
35502 2007-05-01  Bruno Haible  <bruno@clisp.org>
35503
35504         * modules/argp (Depends-on): Add sleep.
35505
35506 2007-05-01  Bruno Haible  <bruno@clisp.org>
35507
35508         * modules/sleep-tests: New file.
35509         * tests/test-sleep.c: New file.
35510
35511         * modules/sleep: New file.
35512         * lib/sleep.c: New file.
35513         * m4/sleep.m4: New file.
35514         * lib/unistd_.h (sleep): New declaration.
35515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35516         HAVE_SLEEP.
35517         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35518         * doc/functions/sleep.texi: Document the sleep module.
35519
35520 2007-05-01  Bruno Haible  <bruno@clisp.org>
35521
35522         * lib/sigprocmask.h: Remove file.
35523         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35524         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35525         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35526         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35527         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35528         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35529         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35530         HAVE_SIGSET_T as a shell variable.
35531         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35532         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35533         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35534         (Depends-on): Add signal. Remove verify.
35535         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35536         (Include): Mention <signal.h> instead of sigprocmask.h.
35537         * NEWS: Mention the change.
35538         * lib/fatal-signal.c: Don't include sigprocmask.h.
35539
35540 2007-05-01  Bruno Haible  <bruno@clisp.org>
35541
35542         * modules/signal: New file.
35543         * lib/signal_.h: New file.
35544         * m4/signal_h.m4: New file.
35545
35546 2007-05-01  Bruno Haible  <bruno@clisp.org>
35547
35548         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35549         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35550         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35551         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35552
35553 2007-05-01  Bruno Haible  <bruno@clisp.org>
35554
35555         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35556         configure time.
35557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35558         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35559         * modules/sys_stat (Makefile.am): Substitute their values into
35560         sys/stat.h.
35561
35562 2007-05-01  Bruno Haible  <bruno@clisp.org>
35563
35564         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35565         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35566         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35567
35568 2007-05-01  Bruno Haible  <bruno@clisp.org>
35569
35570         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35571         'assert' module here.
35572
35573 2007-05-01  Bruno Haible  <bruno@clisp.org>
35574
35575         * doc/functions/*.texi: New files.
35576         * doc/functions/google-ranking.txt: New file.
35577         * doc/gnulib.texi (Function Substitutes): New chapter.
35578         (ctime, inet_ntoa): Remove sections.
35579         * doc/ctime.texi: Remove file.
35580         * doc/inet_ntoa.texi: Remove file.
35581         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35582         dependencies.
35583         (%.info): New rule, specifying a --reference-limit.
35584
35585 2007-05-01  Bruno Haible  <bruno@clisp.org>
35586
35587         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35588
35589 2007-05-01  Bruno Haible  <bruno@clisp.org>
35590
35591         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35592         the portability of 'mkdir' to mingw systems.
35593
35594 2007-05-01  Bruno Haible  <bruno@clisp.org>
35595
35596         * doc/headers/google-ranking.txt: New file.
35597
35598 2007-04-30  Eric Blake  <ebb9@byu.net>
35599
35600         Prefer fseeko to fseek.
35601         * modules/getpass (Depends-on): Add fseeko.
35602         * lib/getpass.c (getpass): Use fseeko, not fseek.
35603
35604 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35605
35606         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35607         assumes the sorting is stable, while most qsort implementations
35608         are not.  Use argument addresses to ensure they never compare as
35609         equal.
35610
35611         * tests/test-argp-2.sh (usage-indent test): Fix output
35612         (func_compare): Restore diff options
35613         * tests/test-argp.c: Restore #include "progname.h"
35614
35615 2007-04-29  Bruno Haible  <bruno@clisp.org>
35616
35617         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35619         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35621         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35622         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35623         (TESTS, check_PROGRAMS): Add test-snprintf.
35624         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35625         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35626         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35627         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35628         assertions that fail on HP-UX, OSF/1, or IRIX.
35629         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35630
35631 2007-04-29  Bruno Haible  <bruno@clisp.org>
35632
35633         * MODULES.html.sh (posix_functions): Remove 'contents'.
35634
35635 2007-04-29  Karl Berry  <karl@gnu.org>
35636
35637         * config/srclist.txt (gendocs_template_min): new entry.
35638
35639 2007-04-29  Bruno Haible  <bruno@clisp.org>
35640
35641         Work around fpurge bug on BSD systems.
35642         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35643         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35644         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35645         fpurge to rpl_fpurge if the system already has this function.
35646         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35647         the case where the system already has this function. Correct invariants
35648         on BSD systems.
35649         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35650         BSD systems.
35651
35652 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35653
35654         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35655         proposed by Sven Verdoolaege.
35656
35657         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35658         options.
35659         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35660         (usage and help tests): Update
35661
35662 2007-04-29  Bruno Haible  <bruno@clisp.org>
35663
35664         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35665         Print more information in case of failure. Disable a test on BeOS.
35666
35667 2007-04-29  Bruno Haible  <bruno@clisp.org>
35668
35669         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35670         This helps debugging on systems on which no gdb is available.
35671
35672 2007-04-29  Bruno Haible  <bruno@clisp.org>
35673
35674         * lib/freading.h: Improve comments.
35675         * lib/fwriting.h: Likewise.
35676         * tests/test-freading.c (main): Don't check freading immediately after
35677         repositioning. Needed for glibc.
35678
35679 2007-04-29  Bruno Haible  <bruno@clisp.org>
35680
35681         * lib/freading.c (freading): Trivial simplification.
35682
35683 2007-04-28  Bruno Haible  <bruno@clisp.org>
35684
35685         * tests/test-fwriting.c (main): Also test the interaction between
35686         fflush and fwriting.
35687         * modules/fwriting-tests (Depends-on): Add fflush.
35688
35689         * tests/test-freading.c (main): Also test the interaction between
35690         fflush and freading.
35691         * modules/freading-tests (Depends-on): Add fflush.
35692
35693 2007-04-28  Bruno Haible  <bruno@clisp.org>
35694
35695         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35696         fseeko and ftello.
35697         Suggested by Eric Blake.
35698
35699 2007-04-28  Jim Meyering  <jim@meyering.net>
35700
35701         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35702         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35703         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35704
35705 2007-04-27  Eric Blake  <ebb9@byu.net>
35706
35707         * doc/headers/assert.texi (assert.h): Document assert module use.
35708
35709 2007-04-27  Bruno Haible  <bruno@clisp.org>
35710
35711         * doc/headers/*.texi: New files.
35712         * doc/gnulib.texi (Header File Substitutes): New chapter.
35713         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35714         dependencies.
35715         (standards.info ,standards.html, standards.dvi): Update dependencies.
35716         (mostlyclean, clean): New targets.
35717
35718 2007-04-27  Bruno Haible  <bruno@clisp.org>
35719
35720         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35721         * modules/sysexits (Files, Makefile.am): Update.
35722
35723         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35724         * modules/sys_socket (Files, Makefile.am): Update.
35725
35726         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35727         * modules/sys_stat (Files, Makefile.am): Update.
35728
35729 2007-04-27  Eric Blake  <ebb9@byu.net>
35730
35731         * lib/freading.h: Improve comments.
35732         * lib/fwriting.h: Likewise.
35733         * lib/fflush.c: Likewise.
35734
35735         Fix closein for mingw.
35736         * modules/closein-tests: Add tests for closein.
35737         * tests/test-closein.c: New file.
35738         * tests/test-closein.sh: Likewise.
35739         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35740         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35741
35742 2007-04-27  Bruno Haible  <bruno@clisp.org>
35743
35744         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35745         version is < 6.
35746         * lib/math_.h [__DECC]: Likewise.
35747         * lib/stdio_.h [__DECC]: Likewise.
35748         * lib/stdlib_.h [__DECC]: Likewise.
35749         * lib/string_.h [__DECC]: Likewise.
35750         * lib/time_.h [__DECC]: Likewise.
35751         * lib/wchar_.h [__DECC]: Likewise.
35752         * lib/wctype_.h [__DECC]: Likewise.
35753
35754 2007-04-27  Bruno Haible  <bruno@clisp.org>
35755
35756         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35757
35758 2007-04-27  Bruno Haible  <bruno@clisp.org>
35759
35760         * lib/fflush.c: Add comments.
35761         * modules/fpurge-tests (Depends-on): Add fflush.
35762         * modules/freadable-tests (Depends-on): Likewise.
35763         * modules/fwritable-tests (Depends-on): Likewise.
35764
35765 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35766
35767         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35768         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35769         Report by Bruno Haible <bruno@clisp.org>.
35770
35771 2007-04-26  Eric Blake  <ebb9@byu.net>
35772
35773         Fix fflush on mingw.
35774         * modules/fflush (Depends-on): Add freading.
35775         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35776         but unread data.
35777
35778 2007-04-26  Eric Blake  <ebb9@byu.net>
35779         and Bruno Haible  <bruno@clisp.org>
35780
35781         Implement freading and fwriting.
35782         * lib/freading.c: New file.
35783         * lib/freading.h: Likewise.
35784         * m4/freading.m4: Likewise.
35785         * modules/freading: Likewise.
35786         * modules/freading-tests: Likewise.
35787         * tests/test-freading.c: Likewise.
35788         * lib/fwriting.c: New file.
35789         * lib/fwriting.h: Likewise.
35790         * m4/fwriting.m4: Likewise.
35791         * modules/fwriting: Likewise.
35792         * modules/fwriting-tests: Likewise.
35793         * tests/test-fwriting.c: Likewise.
35794         * MODULES.html.sh (File stream based Input/Output): Mention them.
35795
35796 2007-04-26  Bruno Haible  <bruno@clisp.org>
35797
35798         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35799         'long' when we assume it.
35800         Suggested by Eric Blake.
35801
35802 2007-04-26  Bruno Haible  <bruno@clisp.org>
35803
35804         Ensure fseeko, ftello are declared on glibc systems.
35805         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35806         * modules/fseeko (configure.ac-early): Likewise.
35807         * modules/ftello (configure.ac-early): Likewise.
35808         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35809         AC_FUNC_FSEEKO for this.
35810         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35811         (gl_CHECK_FSEEKO): Remove macro.
35812
35813 2007-04-26  Bruno Haible  <bruno@clisp.org>
35814
35815         * tests/test-fflush.c (main): Also check the ftell result after
35816         fflush and fseek/fseeko.
35817         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35818         file descriptor position cache in the stream.
35819         * lib/fseeko.c (rpl_fseeko): Likewise.
35820
35821 2007-04-26  Bruno Haible  <bruno@clisp.org>
35822
35823         * modules/fflush-tests (Depends-on): Add fseeko.
35824
35825 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35826             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35827
35828         * lib/argz_.h: ensure error_t definition is obtained in same
35829         mechanism system argz.h would have.
35830         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35831         argz facilities are known bad.  Err on the side of caution if
35832         cross-compiling.
35833
35834 2007-04-25  Eric Blake  <ebb9@byu.net>
35835
35836         * lib/fpurge.c (includes): Use stdlib.h for free.
35837         * tests/test-fflush.c (main): Also test fflush-fseeko.
35838
35839 2007-04-25  Bruno Haible  <bruno@clisp.org>
35840
35841         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35842         * lib/fseeko.c: New file.
35843         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35844         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35845         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35846         gl_FUNC_FSEEKO.
35847         (gl_FUNC_FSEEKO): Invoke it.
35848         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35849         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35850         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35851
35852 2007-04-25  Bruno Haible  <bruno@clisp.org>
35853
35854         * modules/fflush (Depends-on): Add ftello.
35855
35856 2007-04-25  Bruno Haible  <bruno@clisp.org>
35857
35858         * modules/ftello-tests: New file.
35859         * tests/test-ftello.c: New file.
35860
35861         * modules/ftello: New file.
35862         * m4/ftello.m4: New file.
35863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35864         HAVE_FTELLO.
35865         * lib/stdio_.h (ftello): New declaration.
35866         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35867         HAVE_FTELLO.
35868
35869 2007-04-25  Bruno Haible  <bruno@clisp.org>
35870
35871         * modules/fseeko-tests: New file.
35872         * tests/test-fseeko.c: New file.
35873
35874         * modules/fseeko: New file.
35875         * m4/fseeko.m4: New file.
35876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35877         HAVE_FSEEKO.
35878         * lib/stdio_.h (fseeko): New declaration.
35879         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35880         HAVE_FSEEKO.
35881
35882 2007-04-25  Bruno Haible  <bruno@clisp.org>
35883
35884         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35885
35886 2007-04-25  Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35889         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35890         * tests/test-unistd.c: Likewise.
35891         * tests/test-fcntl.c: Likewise.
35892
35893 2007-04-23  Eric Blake  <ebb9@byu.net>
35894
35895         * lib/fflush.c: Fix missing include.
35896         Reported by Bruno Haible.
35897
35898 2007-04-23  Bruno Haible  <bruno@clisp.org>
35899
35900         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35901         Reported by Eric Blake.
35902
35903 2007-04-23  Bruno Haible  <bruno@clisp.org>
35904
35905         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35906
35907 2007-04-23  Bruno Haible  <bruno@clisp.org>
35908
35909         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35910
35911 2007-04-23  Bruno Haible  <bruno@clisp.org>
35912
35913         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35914         Needed on HP-UX 11.
35915
35916 2007-04-16  Eric Blake  <ebb9@byu.net>
35917
35918         Make fflush rely on fpurge.
35919         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35920         open coding all variants.
35921         * modules/fflush (Depends-on): Add fpurge and unistd.
35922         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35923         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35924
35925         Fix --with-tests compilation on cygwin.
35926         * modules/argmatch-tests (Makefile.am): List gnulib library first
35927         in LDADD.
35928         * modules/argp-tests (Makefile.am): Likewise.
35929         * modules/array-list-tests (Makefile.am): Likewise.
35930         * modules/array-oset-tests (Makefile.am): Likewise.
35931         * modules/avltree-list-tests (Makefile.am): Likewise.
35932         * modules/avltree-oset-tests (Makefile.am): Likewise.
35933         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35934         * modules/carray-list-tests (Makefile.am): Likewise.
35935         * modules/dirname-tests (Makefile.am): Likewise.
35936         * modules/frexp-tests (Makefile.am): Likewise.
35937         * modules/isnanl-tests (Makefile.am): Likewise.
35938         * modules/linked-list-tests (Makefile.am): Likewise.
35939         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35940         * modules/lock-tests (Makefile.am): Likewise.
35941         * modules/rbtree-list-tests (Makefile.am): Likewise.
35942         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35943         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35944         * modules/tls-tests (Makefile.am): Likewise.
35945         * modules/tsearch-tests (Makefile.am): Likewise.
35946         * modules/xvasprintf-tests (Makefile.am): Likewise.
35947
35948         Fix fpurge for cygwin.
35949         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35950         value.
35951         * modules/fpurge-tests (Depends-on): Clean up trash.
35952
35953 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35954
35955         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35956
35957         * m4/autobuild.m4: Re-indent.
35958
35959 2007-04-13  Bruno Haible  <bruno@clisp.org>
35960
35961         * modules/fpurge-tests: New file.
35962         * tests/test-fpurge.c: New file.
35963
35964         * modules/fpurge: New file.
35965         * lib/fpurge.h: New file.
35966         * lib/fpurge.c: New file.
35967         * m4/fpurge.m4: New file.
35968
35969 2007-04-13  Bruno Haible  <bruno@clisp.org>
35970
35971         * modules/fbufmode-tests: New file.
35972         * tests/test-fbufmode.c: New file.
35973
35974         * modules/fbufmode: New file.
35975         * lib/fbufmode.h: New file.
35976         * lib/fbufmode.c: New file.
35977         * m4/fbufmode.m4: New file.
35978
35979 2007-04-13  Bruno Haible  <bruno@clisp.org>
35980
35981         * modules/fwritable-tests: New file.
35982         * tests/test-fwritable.c: New file.
35983
35984         * modules/fwritable: New file.
35985         * lib/fwritable.h: New file.
35986         * lib/fwritable.c: New file.
35987         * m4/fwritable.m4: New file.
35988
35989 2007-04-13  Bruno Haible  <bruno@clisp.org>
35990
35991         * modules/freadable-tests: New file.
35992         * tests/test-freadable.c: New file.
35993
35994         * modules/freadable: New file.
35995         * lib/freadable.h: New file.
35996         * lib/freadable.c: New file.
35997         * m4/freadable.m4: New file.
35998
35999 2007-04-13  Bruno Haible  <bruno@clisp.org>
36000
36001         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
36002         MOSTLYCLEANFILES.
36003
36004 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36005
36006         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
36007         gzip bootstrap.conf to avoid dragging in i18n machinery.
36008         (gnulib_tool_option): Use it.
36009
36010 2007-04-13  Bruno Haible  <bruno@clisp.org>
36011
36012         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
36013         %F directives.
36014         * tests/test-vasprintf-posix.c (test_function): Likewise.
36015         * tests/test-snprintf-posix.h (test_function): Likewise.
36016         * tests/test-sprintf-posix.h (test_function): Likewise.
36017         * tests/test-fprintf-posix.h (test_function): Likewise.
36018         * tests/test-printf-posix.h (test_function): Likewise.
36019         * tests/test-fprintf-posix.out: Likewise.
36020
36021 2007-04-13  Bruno Haible  <bruno@clisp.org>
36022
36023         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
36024         * modules/tls-tests (configure.ac): Likewise.
36025         Reported by Arto C. Nirkko <anirkko@insel.ch>.
36026
36027 2007-04-13  Bruno Haible  <bruno@clisp.org>
36028
36029         * lib/tls.c (glthread_tls_get): Fix return type.
36030         Patch by Arto C. Nirkko <anirkko@insel.ch>.
36031
36032 2007-04-12  Eric Blake  <ebb9@byu.net>
36033
36034         * modules/gettime (Depends-on): Remove gettime.
36035         Reported by Dmitry V. Levin.
36036
36037 2007-04-12  Bruno Haible  <bruno@clisp.org>
36038
36039         * modules/fflush (Include): Mention <stdio.h>.
36040         * modules/strtoimax (Include): Mention <inttypes.h>.
36041         * modules/strtoumax (Include): Likewise.
36042
36043 2007-04-12  Eric Blake  <ebb9@byu.net>
36044
36045         * .cvsignore: New file.
36046         * .gitignore: Likewise.
36047
36048 2007-04-12  Bruno Haible  <bruno@clisp.org>
36049
36050         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
36051         not before, since $(LDADD) often contains libgnu.a.
36052         * modules/striconv-tests (test_striconv_LDADD): Likewise.
36053         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
36054         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
36055         Needed on Cygwin.
36056
36057 2007-04-12  Eric Blake  <ebb9@byu.net>
36058
36059         Work around glibc's failure to flush stdin on fclose.
36060         * lib/closein.c (close_stdin): Flush stdin before closing.
36061
36062         Work around glibc's failure to reset seekable stdin on exit.
36063         * modules/closein: New module.
36064         * lib/closein.c: New file.
36065         * lib/closein.h: Likewise.
36066         * m4/closein.m4: Likewise.
36067         * MODULES.html.sh (File stream based Input/Output): Document it.
36068
36069 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36070
36071         * gnulib-tool: Rename generated 'autobuild' script to
36072         'do-autobuild' in --create-megatestdir output.
36073
36074         * doc/gnulib.texi (Build robot for gnulib): Fix.
36075
36076 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36077
36078         * modules/sysexits (Depends-on): Add absolute-header.
36079
36080 2007-04-12  Eric Blake  <ebb9@byu.net>
36081
36082         No need to preserve errno on success.
36083         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
36084         Reported by Bruno Haible.
36085
36086 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36087
36088         * MODULES.html.sh (Support for maintaining and releasing
36089         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
36090
36091 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36092
36093         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
36094
36095 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36096
36097         * modules/autobuild: New module.
36098
36099         * m4/autobuild.m4: New file.
36100
36101 2007-04-11  Bruno Haible  <bruno@clisp.org>
36102
36103         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
36104         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
36105         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
36106         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
36107         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36108         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36109         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36111         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36112         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36113         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
36114         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36115         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36116         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
36117         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36118         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36119         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
36120         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36121         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36122         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
36123         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36124         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
36126         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36127         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36128         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
36129         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36130         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36131         Reported by Eric Blake.
36132
36133 2007-04-11  Bruno Haible  <bruno@clisp.org>
36134
36135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
36136
36137 2007-04-10  Bruno Haible  <bruno@clisp.org>
36138
36139         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
36140         for NaN and Infinity. Needed on FreeBSD 6.1.
36141         * tests/test-vasnprintf-posix.c (test_function): Undo last change
36142         regarding results for "%010a" of Infinity and NaN.
36143         * tests/test-vasprintf-posix.c (test_function): Likewise.
36144         * tests/test-snprintf-posix.h (test_function): Likewise.
36145         * tests/test-sprintf-posix.h (test_function): Likewise.
36146         * tests/test-fprintf-posix.h (test_function): Likewise.
36147         * tests/test-printf-posix.h (test_function): Likewise.
36148         * tests/test-fprintf-posix.out: Likewise.
36149
36150 2007-04-10  Bruno Haible  <bruno@clisp.org>
36151
36152         * modules/locale-tests: New file.
36153         * tests/test-locale.c: New file.
36154
36155         * modules/locale: New file.
36156         * lib/locale_.h: New file.
36157         * m4/locale_h.m4: New file.
36158
36159 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
36160             Bruno Haible  <bruno@clisp.org>
36161
36162         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
36163         be determined, test for availability of the copysignf, copysign,
36164         copysignl functions.
36165         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
36166         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
36167         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
36168
36169 2007-04-09  Eric Blake  <ebb9@byu.net>
36170
36171         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
36172         * modules/stdio (Makefile.am): Support fflush.
36173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36174         * modules/fflush: New file.
36175         * lib/fflush.c: Likewise.
36176         * m4/fflush.m4: Likewise.
36177         * modules/fflush-tests: New test.
36178         * tests/test-fflush.c: Likewise.
36179         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
36180
36181 2007-04-06  Bruno Haible  <bruno@clisp.org>
36182
36183         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
36184         (VASNPRINTF): Use signbit for faster determination whether to print a
36185         minus sign.
36186         * modules/vasnprintf (Files): Remove lib/float+.h.
36187         * modules/fprintf-posix (Depends-on): Add signbit.
36188         * modules/snprintf-posix (Depends-on): Likewise.
36189         * modules/sprintf-posix (Depends-on): Likewise.
36190         * modules/vasnprintf-posix (Depends-on): Likewise.
36191         * modules/vasprintf-posix (Depends-on): Likewise.
36192         * modules/vfprintf-posix (Depends-on): Likewise.
36193         * modules/vsnprintf-posix (Depends-on): Likewise.
36194         * modules/vsprintf-posix (Depends-on): Likewise.
36195
36196 2007-04-06  Bruno Haible  <bruno@clisp.org>
36197
36198         * tests/test-frexp.c (main): Test also the sign bit of zero results.
36199         * tests/test-frexpl.c (main): Likewise.
36200         * tests/test-ldexpl.c (main): Likewise.
36201         * modules/frexp-tests (Depends-on): Add signbit.
36202         * modules/frexpl-tests (Depdends-on): Likewise.
36203         * modules/ldexpl-tests (Depdends-on): Likewise.
36204
36205 2007-04-06  Bruno Haible  <bruno@clisp.org>
36206
36207         * modules/signbit-tests: New file.
36208         * tests/test-signbit.c: New file.
36209
36210         * modules/signbit: New file.
36211         * lib/signbitf.c: New file.
36212         * lib/signbitd.c: New file.
36213         * lib/signbitl.c: New file.
36214         * m4/signbit.m4: New file.
36215         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
36216         (signbit): New macro.
36217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
36218         REPLACE_SIGNBIT.
36219         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
36220         REPLACE_FREXPL into math.h.
36221
36222 2007-04-06  Bruno Haible  <bruno@clisp.org>
36223
36224         * modules/isnanf-nolibm-tests: New file.
36225         * tests/test-isnanf.c: New file.
36226
36227         * modules/isnanf-nolibm: New file.
36228         * lib/isnanf.h: New file.
36229         * lib/isnanf.c: New file.
36230         * lib/isnan.c: Consider the USE_FLOAT macro.
36231         * m4/isnanf.m4: New file.
36232
36233 2007-04-06  Bruno Haible  <bruno@clisp.org>
36234
36235         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36236         (Link): New section.
36237
36238         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36239
36240 2007-04-06  Bruno Haible  <bruno@clisp.org>
36241
36242         Assume the 'long double' type.
36243         * m4/longdouble.m4: Remove file.
36244         * config/srclist.txt: Don't mention longdouble.m4.
36245         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36246         * lib/float+.h: Likewise.
36247         * lib/frexp.c: Likewise.
36248         * lib/printf-args.h: Likewise.
36249         * lib/printf-args.c: Likewise.
36250         * lib/printf-frexp.c: Likewise.
36251         * lib/printf-parse.c: Likewise.
36252         * lib/vasnprintf.c: Likewise.
36253         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36254         * m4/intl.m4: Likewise.
36255         * m4/isnanl.m4: Likewise.
36256         * m4/printf.m4: Likewise.
36257         * m4/printf-frexpl.m4: Likewise.
36258         * m4/vasnprintf.m4: Likewise.
36259         * modules/allocsa (Files): Remove m4/longdouble.m4.
36260         * modules/gettext (Files): Likewise.
36261         * modules/relocatable-prog-wrapper (Files): Likewise.
36262         * modules/vasnprintf (Files): Likewise.
36263         * modules/isnanl (Files): Likewise.
36264         (Include): Simplify.
36265         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36266         (Include): Simplify.
36267         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36268         (Include): Simplify.
36269         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36270         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36271         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36272         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36273         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36274         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36275         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36276         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36277         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36278         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36279         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36280         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36281         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36282         * tests/test-isnanl.c: Likewise.
36283         * tests/test-snprintf-posix.h: Likewise.
36284         * tests/test-sprintf-posix.h: Likewise.
36285         * tests/test-vasnprintf-posix.c: Likewise.
36286         * tests/test-vasnprintf-posix2.c: Likewise.
36287         * tests/test-vasprintf-posix.c: Likewise.
36288
36289 2007-04-06  Bruno Haible  <bruno@clisp.org>
36290
36291         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36292         * lib/math_.h [__DECC]: Include the overridden include file through
36293         #include_next, outside the double-inclusion guard.
36294         * lib/stdio_.h [__DECC]: Likewise.
36295         * lib/stdlib_.h [__DECC]: Likewise.
36296         * lib/string_.h [__DECC]: Likewise.
36297         * lib/time_.h [__DECC]: Likewise.
36298         * lib/wchar_.h [__DECC]: Likewise.
36299         * lib/wctype_.h [__DECC]: Likewise.
36300         * lib/inttypes_.h [__DECC]: Likewise.
36301         Reported by Albert Chin <china@thewrittenword.com> in
36302         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36303
36304 2007-04-04  Eric Blake  <ebb9@byu.net>
36305
36306         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36307         1.5.x.
36308
36309 2007-04-04  Bruno Haible  <bruno@clisp.org>
36310
36311         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36312         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36313
36314 2007-04-04  Bruno Haible  <bruno@clisp.org>
36315
36316         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36317         results for "%010a" of Infinity and NaN.
36318         * tests/test-vasprintf-posix.c (test_function): Likewise.
36319         * tests/test-snprintf-posix.h (test_function): Likewise.
36320         * tests/test-sprintf-posix.h (test_function): Likewise.
36321         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36322         * tests/test-printf-posix.h (test_function): Likewise.
36323         * tests/test-fprintf-posix.out: Update.
36324         Needed for FreeBSD 6.1.
36325
36326 2007-04-04  Bruno Haible  <bruno@clisp.org>
36327
36328         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36329         directly used by the gnulib modules nor by gnulib-tool.
36330
36331 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36332
36333         * DEPENDENCIES: Give overall description of version dependency
36334         desirability.  Use more-typical names for apps.
36335         Add shell, coreutils, diffutils, grep, tar, gzip.
36336
36337 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36338
36339         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36340
36341 2007-04-04  Karl Berry  <karl@gnu.org>
36342
36343         * MODULES.html.sh (func_module): missing '.
36344
36345 2007-04-03  Bruno Haible  <bruno@clisp.org>
36346
36347         * modules/argmatch-tests (Makefile.am): New variable
36348         test_argmatch_LDADD.
36349         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36350         * modules/array-list-tests (Makefile.am): New variable
36351         test_array_list_LDADD.
36352         * modules/array-oset-tests (Makefile.am): New variable
36353         test_array_oset_LDADD.
36354         * modules/avltree-list-tests (Makefile.am): New variable
36355         test_avltree_list_LDADD.
36356         * modules/avltree-oset-tests (Makefile.am): New variable
36357         test_avltree_oset_LDADD.
36358         * modules/avltreehash-list-tests (Makefile.am): New variable
36359         test_avltreehash_list_LDADD.
36360         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36361         test_canonicalize_lgpl_LDADD.
36362         * modules/carray-list-tests (Makefile.am): New variable
36363         test_carray_list_LDADD.
36364         * modules/dirname-tests (Makefile.am): New variable
36365         test_dirname_LDADD.
36366         * modules/linked-list-tests (Makefile.am): New variable
36367         test_linked_list_LDADD.
36368         * modules/linkedhash-list-tests (Makefile.am): New variable
36369         test_linkedhash_list_LDADD.
36370         * modules/rbtree-list-tests (Makefile.am): New variable
36371         test_rbtree_list_LDADD.
36372         * modules/rbtree-oset-tests (Makefile.am): New variable
36373         test_rbtree_oset_LDADD.
36374         * modules/rbtreehash-list-tests (Makefile.am): New variable
36375         test_rbtreehash_list_LDADD.
36376         * modules/xvasprintf-tests (Makefile.am): New variable
36377         test_xvasprintf_LDADD.
36378         Reported by Eric Blake.
36379
36380 2007-04-03  Eric Blake  <ebb9@byu.net>
36381
36382         * DEPENDENCIES: Weaken m4 requirements.
36383
36384 2007-04-03  Bruno Haible  <bruno@clisp.org>
36385
36386         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36387         * modules/isnanl-tests (configure.ac): Likewise.
36388
36389 2007-04-03  Ben Pfaff  <blp@gnu.org>
36390
36391         * modules/iconv_open: Add $(srcdir)/ to source directory
36392         references in Makefile fragments that call gperf, to fix VPATH
36393         builds.
36394
36395 2007-04-03  Bruno Haible  <bruno@clisp.org>
36396
36397         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36398         * lib/ldexpl.c: Undo last change.
36399
36400 2007-04-03  Bruno Haible  <bruno@clisp.org>
36401
36402         * modules/printf-frexpl (Depends-on): Undo last change.
36403         (Files): Add m4/ldexpl.m4.
36404
36405 2007-04-03  Bruno Haible  <bruno@clisp.org>
36406
36407         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36408         * modules/isnanl (Link): New section.
36409
36410         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36411         * modules/frexp (Link): New section.
36412
36413         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36414         * modules/frexpl (Link): New section.
36415
36416         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36417         * modules/ldexpl (Link): New section.
36418
36419 2007-04-03  Bruno Haible  <bruno@clisp.org>
36420
36421         * modules/TEMPLATE-EXTENDED: New file.
36422         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36423
36424 2007-04-03  Bruno Haible  <bruno@clisp.org>
36425
36426         * DEPENDENCIES: New file.
36427         Suggested by Simon Josefsson.
36428
36429 2007-04-03  Bruno Haible  <bruno@clisp.org>
36430
36431         * doc/gnulib.texi: Escape @.
36432
36433 2007-04-03  James Youngman  <jay@gnu.org>
36434         and Paul Eggert  <eggert@cs.ucla.edu>
36435
36436         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36437         birthtime on all systems that have birthtime, not just those which
36438         use st_birthtimensec rather than st_birthtim.  Putting zero in
36439         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36440         that the birth time is not available for files on an NFS mount.
36441
36442 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36443
36444         * modules/memxor: Move back from crypto/, suggested by Bruno.
36445         * modules/crypto/hmac-sha1: Fix memxor dependency.
36446
36447         * modules/crypto/gc: Moved from ../.
36448
36449 2007-04-02  Eric Blake  <ebb9@byu.net>
36450
36451         * lib/ldexpl.c (includes): Avoid libm.
36452
36453         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36454
36455 2007-04-02  Bruno Haible  <bruno@clisp.org>
36456
36457         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36458         on IRIX.
36459
36460 2007-04-02  Bruno Haible  <bruno@clisp.org>
36461
36462         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36463         x86 or x86_64 platforms running MacOS X.
36464         Reported by Ryan Schmidt <@ryandesign.com>.
36465
36466 2007-04-02  Bruno Haible  <bruno@clisp.org>
36467
36468         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36469         i386.
36470
36471 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36472
36473         * modules/crypto/arcfour: Moved from ../.
36474         * modules/crypto/arcfour-tests: Moved from ../.
36475         * modules/crypto/arctwo: Moved from ../.
36476         * modules/crypto/arctwo-tests: Moved from ../.
36477         * modules/crypto/des: Moved from ../.
36478         * modules/crypto/des-tests: Moved from ../.
36479         * modules/crypto/gc-arcfour: Moved from ../.
36480         * modules/crypto/gc-arcfour-tests: Moved from ../.
36481         * modules/crypto/gc-arctwo: Moved from ../.
36482         * modules/crypto/gc-arctwo-tests: Moved from ../.
36483         * modules/crypto/gc-des: Moved from ../.
36484         * modules/crypto/gc-des-tests: Moved from ../.
36485         * modules/crypto/gc-hmac-md5: Moved from ../.
36486         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36487         * modules/crypto/gc-hmac-sha1: Moved from ../.
36488         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36489         * modules/crypto/gc-md2: Moved from ../.
36490         * modules/crypto/gc-md2-tests: Moved from ../.
36491         * modules/crypto/gc-md4: Moved from ../.
36492         * modules/crypto/gc-md4-tests: Moved from ../.
36493         * modules/crypto/gc-md5: Moved from ../.
36494         * modules/crypto/gc-md5-tests: Moved from ../.
36495         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36496         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36497         * modules/crypto/gc-random: Moved from ../.
36498         * modules/crypto/gc-rijndael: Moved from ../.
36499         * modules/crypto/gc-rijndael-tests: Moved from ../.
36500         * modules/crypto/gc-sha1: Moved from ../.
36501         * modules/crypto/gc-sha1-tests: Moved from ../.
36502         * modules/crypto/gc-tests: Moved from ../.
36503         * modules/crypto/hmac-md5: Moved from ../.
36504         * modules/crypto/hmac-md5-tests: Moved from ../.
36505         * modules/crypto/hmac-sha1: Moved from ../.
36506         * modules/crypto/hmac-sha1-tests: Moved from ../.
36507         * modules/crypto/md2: Moved from ../.
36508         * modules/crypto/md2-tests: Moved from ../.
36509         * modules/crypto/md4: Moved from ../.
36510         * modules/crypto/md4-tests: Moved from ../.
36511         * modules/crypto/md5: Moved from ../.
36512         * modules/crypto/md5-tests: Moved from ../.
36513         * modules/crypto/memxor: Moved from ../.
36514         * modules/crypto/rijndael: Moved from ../.
36515         * modules/crypto/rijndael-tests: Moved from ../.
36516         * modules/crypto/sha1: Moved from ../.
36517
36518 2007-03-30  James Youngman  <jay@gnu.org>
36519
36520         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36521         rename() to change the ctime of a file (because ctime is unaffected
36522         by rename on jfs2 on AIX 5.1).
36523         (main): Start by doing cleanup, in case a previous run failed leaving
36524         test files behind.
36525
36526 2007-03-31  Bruno Haible  <bruno@clisp.org>
36527
36528         Support old proprietary implementations of iconv.
36529         * modules/iconv_open: New file.
36530         * lib/iconv_.h: New file.
36531         * m4/iconv_h.m4: New file.
36532         * lib/iconv_open.c: New file.
36533         * lib/iconv_open-aix.gperf: New file.
36534         * lib/iconv_open-hpux.gperf: New file.
36535         * lib/iconv_open-irix.gperf: New file.
36536         * lib/iconv_open-osf.gperf: New file.
36537         * m4/iconv_open.m4: New file.
36538         * modules/linebreak (Depends-on): Add iconv_open.
36539         * modules/striconv (Depends-on): Likewise.
36540         * modules/striconveh (Depends-on): Likewise.
36541         * modules/unicodeio (Depends-on): Likewise.
36542         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36543         (iconv_t)(-1).
36544         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36545         conversion if cd is (iconv_t)(-1).
36546         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36547         is not possible.
36548
36549 2007-03-31  Bruno Haible  <bruno@clisp.org>
36550
36551         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36552         work on Solaris either. Protect also second use of "autodetect_jp".
36553
36554 2007-03-31  Bruno Haible  <bruno@clisp.org>
36555
36556         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36557         the function is not present.
36558
36559 2007-03-31  Bruno Haible  <bruno@clisp.org>
36560
36561         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36562         the function is not present.
36563
36564 2007-03-31  Bruno Haible  <bruno@clisp.org>
36565
36566         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36567         a bug in HP-UX iconv_open().
36568
36569 2007-03-31  Bruno Haible  <bruno@clisp.org>
36570
36571         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36572         (Mathematics <math.h>): New section, add fpieee.
36573         (Input/output <stdio.h>): Add fseterr.
36574         (Mathematics <math.h>): New section, add printf-frexp.
36575         (Container data structures): Add sublist.
36576         (Core language properties): Add fpucw, inline.
36577         (Functions for greatest-width integer types <inttypes.h>): Add
36578         imaxabs, imaxdiv, inttypes.
36579         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36580         isnanl-nolibm, ldexp.
36581         (Mathematics <math.h>): New section, add printf-frexpl.
36582         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36583         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36584         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36585         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36586         (Unicode string functions): Add unistr/u*-mbtoucr.
36587         (Java): Add javacomp-script, javaexec-script.
36588         (C#): Add csharpcomp-script, csharpexec-script.
36589         (Support for building libraries and executables): Add havelib,
36590         relocatable-*.
36591         (Support for maintaining and releasing projects): Renamed from
36592         'Support for maintaining and release projects'. Add announce-gen.
36593
36594 2007-03-31  Bruno Haible  <bruno@clisp.org>
36595
36596         * README: Talk primarily about git.
36597         (git and CVS): Renamed from CVS.
36598         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36599         gnulib is available through git.
36600         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36601
36602 2007-03-30  Bruno Haible  <bruno@clisp.org>
36603
36604         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36605         * lib/poll_.h: Likewise.
36606         * lib/stat_.h: Likewise.
36607         * lib/sys_time_.h: Likewise.
36608         * lib/sysexit_.h: Likewise.
36609         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36610         * lib/stdbool_.h: Likewise.
36611         * lib/byteswap_.h: Add double-inclusion guard.
36612
36613 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36614
36615         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36616
36617 2007-03-30  Karl Berry  <karl@gnu.org>
36618
36619         * config/srclist-update: double space after USA in the license
36620         substitution, since that's how it's usually (?) written.
36621
36622 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36623
36624         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36625         reported by Bruno Haible.
36626
36627 2007-03-29  Bruno Haible  <bruno@clisp.org>
36628
36629         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36630         a bug in AIX iconv().
36631
36632 2007-03-29  Bruno Haible  <bruno@clisp.org>
36633
36634         * modules/ldexpl-tests: New file.
36635         * tests/test-ldexpl.c: New file.
36636
36637 2007-03-29  Bruno Haible  <bruno@clisp.org>
36638
36639         * lib/ldexpl.c: Include fpucw.h.
36640         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36641         multiplication.
36642         * modules/ldexpl (Depends-on): Add fpucw.
36643
36644 2007-03-29  Bruno Haible  <bruno@clisp.org>
36645
36646         * modules/ldexpl: New file.
36647         * m4/ldexpl.m4: New file.
36648         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36649         set.
36650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36651         REPLACE_LDEXPL.
36652         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36653         REPLACE_LDEXPL.
36654         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36655         gl_FUNC_LDEXPL_WORKS.
36656         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36657         * modules/mathl (Files): Remove lib/ldexpl.c.
36658         (Depends-on): Add ldexpl.
36659
36660 2007-03-29  Bruno Haible  <bruno@clisp.org>
36661
36662         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36663
36664 2007-03-29  Bruno Haible  <bruno@clisp.org>
36665
36666         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36667         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36668         and possibly also HP-UX.
36669         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36670         work on AIX, IRIX, HP-UX, OSF/1.
36671         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36672         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36673         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36674         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36675         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36676         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36677
36678 2007-03-29  Bruno Haible  <bruno@clisp.org>
36679
36680         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36681
36682 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36683
36684         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36685         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36686
36687 2007-03-29  Eric Blake  <ebb9@byu.net>
36688
36689         * lib/acl-internal.h: Remove redundant include.
36690         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36691         Cygwin when a file is locked.
36692
36693 2007-03-29  Bruno Haible  <bruno@clisp.org>
36694
36695         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36696         file.
36697         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36698
36699 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36700
36701         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36702         try to remove a parent directory if the child couldn't be removed
36703         (except for the first rmdir, which could fail because the child
36704         doesn't exist).  Problem reported by Jeff Blaine in
36705         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36706
36707 2007-03-28  Bruno Haible  <bruno@clisp.org>
36708
36709         * lib/striconveh.c (utf8conv_carefully): New function.
36710         (mem_cd_iconveh_internal): Invoke it.
36711
36712 2007-03-28  Bruno Haible  <bruno@clisp.org>
36713
36714         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36715         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36716         input.
36717         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36718         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36719         unistr/u8-uctomb.
36720
36721 2007-03-28  Bruno Haible  <bruno@clisp.org>
36722
36723         * modules/unistr/u8-mbtoucr: New file.
36724         * lib/unistr/u8-mbtoucr.c: New file.
36725         * modules/unistr/u16-mbtoucr: New file.
36726         * lib/unistr/u16-mbtoucr.c: New file.
36727         * modules/unistr/u16-mbtoucr: New file.
36728         * lib/unistr/u16-mbtoucr.c: New file.
36729         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36730
36731 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36732             Bruno Haible  <bruno@clisp.org>
36733
36734         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36735         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36736         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36737
36738         * m4/stdio_h.m4: Add stubs for vasprintf too.
36739
36740         * modules/stdio: Support vasprintf in sed command.
36741
36742         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36743         vasprintf.h.  Add stdio module indicator.
36744
36745         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36746         vasprintf.h.
36747
36748         * lib/vasprintf.h: File removed.
36749
36750         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36751         * lib/vasprintf.c: Ditto.
36752         * lib/xvasprintf.c: Ditto.
36753         * tests/test-vasprintf-posix.c: Ditto.
36754         * tests/test-vasprintf.c: Ditto.
36755
36756 2007-03-27  Bruno Haible  <bruno@clisp.org>
36757
36758         Make vasnprintf multithread-safe.
36759         * lib/vasnprintf.c (decimal_point_char): New function.
36760         (VASNPRINTF): Use it.
36761         Suggested by Simon Josefsson.
36762
36763 2007-03-27  Eric Blake  <ebb9@byu.net>
36764
36765         Support sub-second birthtime on cygwin.
36766         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36767         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36768         (get_stat_birthtime): Also work with st_birthtim.
36769
36770 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36771
36772         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36773         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36774         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36775         (get_stat_birthtime_ns): Simplify compile-time tests.
36776         (get_stat_birthtime): Change the API to look like
36777         get_stat_mtime etc., except return a negative tv_nsec on error.
36778         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36779         Don't check for "spare" fields.
36780         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36781         or for struct stat.st_birthtime, as these tests aren't used.
36782         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36783
36784 2007-03-27  Bruno Haible  <bruno@clisp.org>
36785
36786         * lib/stat-time.h: Include <sys/stat.h>.
36787
36788 2007-03-27  James Youngman  <jay@gnu.org>
36789
36790         * lib/stat-time.h (get_stat_birthtime): New function for
36791           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36792         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36793           and its variants.
36794         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36795         * modules/stat-time-test: New file.
36796         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36797
36798 2007-03-26  Bruno Haible  <bruno@clisp.org>
36799
36800         Better support of signalling NaNs.
36801         * lib/atanl.c: Include isnanl.h.
36802         (atanl): Perform test for NaN at the beginning of the function and
36803         through a call to isnanl.
36804         * lib/cosl.c: Include isnanl.h.
36805         (cosl): Perform test for NaN at the beginning of the function and
36806         through a call to isnanl.
36807         * lib/ldexpl.c: Include isnanl.h.
36808         (ldexpl): Perform test for NaN through a call to isnanl.
36809         * lib/logl.c: Include isnanl.h.
36810         (logl): Perform test for NaN at the beginning of the function and
36811         through a call to isnanl.
36812         * lib/sinl.c: Include isnanl.h.
36813         (sinl): Perform test for NaN at the beginning of the function and
36814         through a call to isnanl.
36815         * lib/sqrtl.c: Include isnanl.h.
36816         (sqrtl): Perform test for NaN at the beginning of the function and
36817         through a call to isnanl.
36818         * lib/tanl.c: Include isnanl.h.
36819         (tanl): Perform test for NaN at the beginning of the function and
36820         through a call to isnanl.
36821         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36822         * modules/mathl (Depends-on): Add isnanl.
36823
36824 2007-03-26  Eric Blake  <ebb9@byu.net>
36825
36826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36827         regression in logic sense of previous patch.
36828
36829 2007-03-26  Bruno Haible  <bruno@clisp.org>
36830
36831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36832         unportable shell command "if ! ...".
36833         Reported by Ralf Wildenhues.
36834
36835 2007-03-25  Bruno Haible  <bruno@clisp.org>
36836
36837         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36838         <sysexits.h> file, and only add EX_CONFIG.
36839         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36840         absolute file name and whether it is sufficient. Substitute also
36841         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36842         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36843         ABSOLUTE_SYSEXITS_H into sysexits.h.
36844
36845 2007-03-25  Bruno Haible  <bruno@clisp.org>
36846
36847         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36848         hints is NULL.
36849
36850 2007-03-25  Bruno Haible  <bruno@clisp.org>
36851
36852         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36853         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36854
36855 2007-03-25  Bruno Haible  <bruno@clisp.org>
36856
36857         * lib/vasnprintf.c: Include langinfo.h.
36858         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36859         multithread-safe.
36860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36861         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36862         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36863         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36864         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36865         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36866         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36868         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36869         Reported by Simon Josefsson.
36870
36871 2007-03-25  Bruno Haible  <bruno@clisp.org>
36872
36873         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36874         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36875         * modules/vasnprintf (Depends-on): Add stdint.
36876
36877 2007-03-25  Bruno Haible  <bruno@clisp.org>
36878
36879         * modules/fpieee: New file.
36880         * m4/fpieee.m4: New file.
36881         * modules/isnan-nolibm (Depends-on): Add fpieee.
36882         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36883         * modules/isnanl (Depends-on): Add fpieee.
36884
36885 2007-03-25  Bruno Haible  <bruno@clisp.org>
36886
36887         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36888
36889 2007-03-25  Bruno Haible  <bruno@clisp.org>
36890
36891         Avoid test failures on IRIX 6.5.
36892         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36893         (main): Use it.
36894         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36895         macros.
36896         (main): Use them.
36897
36898 2007-03-25  Bruno Haible  <bruno@clisp.org>
36899
36900         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36901         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36902         exists but doesn't work.
36903         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36904         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36906         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36907
36908 2007-03-25  Bruno Haible  <bruno@clisp.org>
36909
36910         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36911         returns inf. Needed on IRIX 6.5.
36912
36913 2007-03-25  Bruno Haible  <bruno@clisp.org>
36914
36915         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36916         (main): Use isnanl instead of x != x idiom.
36917         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36918
36919         * tests/test-frexp.c: Include isnan.h.
36920         (main): Use isnan instead of x != x idiom.
36921         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36922
36923 2007-03-25  Bruno Haible  <bruno@clisp.org>
36924
36925         * tests/test-frexp.c (NaN): New function/macro.
36926         (main): Use it instead of 0.0 / 0.0.
36927         * tests/test-isnan.c (NaN): New function/macro.
36928         (main): Use it instead of 0.0 / 0.0.
36929         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36930         (test_function): Use it instead of 0.0 / 0.0.
36931         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36932         (test_function): Use it instead of 0.0 / 0.0.
36933         * tests/test-snprintf-posix.h (NaN): New function/macro.
36934         (test_function): Use it instead of 0.0 / 0.0.
36935         * tests/test-sprintf-posix.h (NaN): New function/macro.
36936         (test_function): Use it instead of 0.0 / 0.0.
36937         * tests/test-fprintf-posix.h (NaN): New function/macro.
36938         (test_function): Use it instead of 0.0 / 0.0.
36939         * tests/test-printf-posix.h (NaN): New function/macro.
36940         (test_function): Use it instead of 0.0 / 0.0.
36941
36942         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36943
36944 2007-03-25  Bruno Haible  <bruno@clisp.org>
36945
36946         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36947
36948 2007-03-25  Bruno Haible  <bruno@clisp.org>
36949
36950         * lib/regexec.c (merge_state_with_log): Make static.
36951
36952 2007-03-25  Bruno Haible  <bruno@clisp.org>
36953
36954         * lib/trigl.c (kernel_rem_pio2): Make static.
36955
36956 2007-03-25  Bruno Haible  <bruno@clisp.org>
36957
36958         * lib/sincosl.c (sincosl_table): Make static.
36959
36960 2007-03-25  Bruno Haible  <bruno@clisp.org>
36961
36962         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36963         if the compiler does not support C99.
36964
36965 2007-03-25  Bruno Haible  <bruno@clisp.org>
36966
36967         * modules/time (Makefile.am): Ensure all rule action lines start with a
36968         tab.
36969
36970 2007-03-24  Bruno Haible  <bruno@clisp.org>
36971
36972         * modules/tsearch-tests: New file.
36973         * tests/test-tsearch.sh: New file.
36974         * tests/test-tsearch.c: New file, mostly copied from glibc.
36975
36976         * modules/search-tests: New file.
36977         * tests/test-search.c: New file.
36978
36979         * modules/search: New file.
36980         * lib/search_.h: New file, incorporating lib/tsearch.h.
36981         * m4/search_h.m4: New file.
36982         * lib/tsearch.h: Remove file.
36983         * lib/tsearch.c: Include search.h instead of tsearch.h.
36984         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36985         HAVE_TSEARCH.
36986         * modules/tsearch (Files): Remove lib/tsearch.h.
36987         (Depends-on): Add search.
36988         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36989         (Include): Change tsearch.h into search.h.
36990
36991 2007-03-24  Bruno Haible  <bruno@clisp.org>
36992
36993         * modules/fpucw: New file.
36994         * lib/fpucw.h: New file.
36995         * lib/frexp.c: Include fpucw.h.
36996         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36997         (FUNC): Use them.
36998         * lib/printf-frexp.c: Include fpucw.h.
36999         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37000         (FUNC): Use them.
37001         * lib/vasnprintf.c: Include fpucw.h.
37002         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
37003         'long double' calculations.
37004         * tests/test-frexpl.c: Include fpucw.h.
37005         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37006         * tests/test-printf-frexpl.c: Include fpucw.h.
37007         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37008         * modules/frexpl (Depends-on): Add fpucw.
37009         * modules/printf-frexpl (Depends-on): Likewise.
37010         * modules/fprintf-posix (Depends-on): Likewise.
37011         * modules/snprintf-posix (Depends-on): Likewise.
37012         * modules/sprintf-posix (Depends-on): Likewise.
37013         * modules/vasnprintf-posix (Depends-on): Likewise.
37014         * modules/vasprintf-posix (Depends-on): Likewise.
37015         * modules/vfprintf-posix (Depends-on): Likewise.
37016         * modules/vsnprintf-posix (Depends-on): Likewise.
37017         * modules/vsprintf-posix (Depends-on): Likewise.
37018         * modules/frexpl-tests (Depends-on): Likewise.
37019         * modules/printf-frexpl-tests (Depends-on): Likewise.
37020
37021 2007-03-24  Bruno Haible  <bruno@clisp.org>
37022
37023         * lib/float+.h: New file.
37024         * lib/isnan.c: Include float+.h.
37025         (SIZE): New macro.
37026         (FUNC): Compare only SIZE bytes of the value.
37027         * lib/vasnprintf.c: Include float+.h.
37028         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
37029         SIZEOF_LDBL or SIZEOF_DBL bytes.
37030         * modules/isnan-nolibm (Files): Add lib/float+.h.
37031         * modules/isnanl-nolibm (Files): Add lib/float+.h.
37032         * modules/isnanl (Files): Add lib/float+.h.
37033         * modules/vasnprintf (Files): Add lib/float+.h.
37034
37035 2007-03-24  Bruno Haible  <bruno@clisp.org>
37036
37037         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
37038         include isnanl-nolibm.h.
37039
37040 2007-03-24  Bruno Haible  <bruno@clisp.org>
37041
37042         * tests/test-read-file.c (main): Don't produce spurious output for
37043         expected situations. Make the test fail if it encountered unexpected
37044         results.
37045
37046 2007-03-24  Bruno Haible  <bruno@clisp.org>
37047
37048         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
37049         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
37050
37051 2007-03-24  Bruno Haible  <bruno@clisp.org>
37052
37053         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
37054
37055 2007-03-24  Bruno Haible  <bruno@clisp.org>
37056
37057         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
37058         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
37059
37060         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
37061         * modules/utf8-ucs4: Turn into a symbolic link to module
37062         unistr/u8-mbtouc.
37063
37064         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
37065         utf8-ucs4-unsafe.
37066         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
37067         unistr/u8-mbtouc-unsafe.
37068
37069         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
37070         * modules/utf16-ucs4: Turn into a symbolic link to module
37071         unistr/u16-mbtouc.
37072
37073         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
37074         utf16-ucs4-unsafe.
37075         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
37076         unistr/u16-mbtouc-unsafe.
37077
37078         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
37079         * modules/ucs4-utf8: Turn into a symbolic link to module
37080         unistr/u8-ubtomb.
37081
37082         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
37083         * modules/ucs4-utf16: Turn into a symbolic link to module
37084         unistr/u16-ubtomb.
37085
37086 2007-03-24  Bruno Haible  <bruno@clisp.org>
37087
37088         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
37089         Enable the function only if HAVE_INLINE.
37090         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
37091         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37092         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
37093         Enable the function only if HAVE_INLINE.
37094         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
37095         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37096         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
37097         Enable the function only if HAVE_INLINE.
37098         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
37099         Enable the function only if HAVE_INLINE.
37100         * modules/utf8-ucs4: Update.
37101         * modules/utf8-ucs4-unsafe: Update.
37102         * modules/utf16-ucs4: Update.
37103         * modules/utf16-ucs4-unsafe: Update.
37104         * modules/ucs4-utf8: Update.
37105         * modules/ucs4-utf16: Update.
37106
37107 2007-03-24  Bruno Haible  <bruno@clisp.org>
37108
37109         * lib/utf8-ucs4.h: Remove file.
37110         * lib/utf8-ucs4-unsafe.h: Remove file.
37111         * lib/utf16-ucs4.h: Remove file.
37112         * lib/utf16-ucs4-unsafe.h: Remove file.
37113         * lib/ucs4-utf8.h: Remove file.
37114         * lib/ucs4-utf16.h: Remove file.
37115         * lib/unistr.h: Include their previous contents.
37116         * m4/utf-ucs4.m4: Remove file.
37117         * m4/ucs4-utf.m4: Remove file.
37118         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
37119         (Depends-on): Add unistr/base.
37120         (configure.ac): Remove gl_UTF_UCS4.
37121         (Makefile.am): Update.
37122         (Include): Change to unistr.h.
37123         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
37124         (Depends-on): Add unistr/base.
37125         (configure.ac): Remove gl_UTF_UCS4.
37126         (Makefile.am): Update.
37127         (Include): Change to unistr.h.
37128         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
37129         (Depends-on): Add unistr/base.
37130         (configure.ac): Remove gl_UTF_UCS4.
37131         (Makefile.am): Update.
37132         (Include): Change to unistr.h.
37133         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
37134         (Depends-on): Add unistr/base.
37135         (configure.ac): Remove gl_UTF_UCS4.
37136         (Makefile.am): Update.
37137         (Include): Change to unistr.h.
37138         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
37139         (Depends-on): Add unistr/base.
37140         (configure.ac): Remove gl_UCS4_UTF.
37141         (Makefile.am): Update.
37142         (Include): Change to unistr.h.
37143         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
37144         (Depends-on): Add unistr/base.
37145         (configure.ac): Remove gl_UCS4_UTF.
37146         (Makefile.am): Update.
37147         (Include): Change to unistr.h.
37148         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
37149         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
37150         utf8-ucs4-unsafe.h.
37151         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
37152         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
37153         utf16-ucs4-unsafe.h.
37154         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
37155         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
37156         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
37157         * lib/unistr/u8-strchr.c: Likewise.
37158         * lib/unistr/u8-strrchr.c: Likewise.
37159         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
37160         * lib/unistr/u16-strchr.c: Likewise.
37161         * lib/unistr/u16-strrchr.c: Likewise.
37162         * lib/striconveh.c: Update.
37163         * lib/linebreak.c: Update.
37164
37165 2007-03-24  Bruno Haible  <bruno@clisp.org>
37166
37167         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
37168         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
37169
37170 2007-03-22  Bruno Haible  <bruno@clisp.org>
37171
37172         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
37173
37174 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37175
37176         * MODULES.html.sh (File system functions): New module write-any-file.
37177         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
37178         * m4/write-any-file.m4: New files.
37179
37180 2007-03-23  Eric Blake  <ebb9@byu.net>
37181
37182         * gnulib-tool: Rearrange space-tab sequences, since some editors
37183         like to eat them.
37184
37185 2007-03-23  Eric Blake  <ebb9@byu.net>
37186
37187         * lib/version-etc.c (version_etc_va): Update license wording to
37188         be more concise.  Recommended by Richard Stallman.
37189
37190 2007-03-22  Bruno Haible  <bruno@clisp.org>
37191
37192         * lib/poll.c (MSG_PEEK): New fallback definition.
37193
37194 2007-03-22  Bruno Haible  <bruno@clisp.org>
37195
37196         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
37197         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
37198         (main): Update.
37199         Fixes a compilation error on BeOS.
37200
37201 2007-03-22  Bruno Haible  <bruno@clisp.org>
37202
37203         * modules/frexpl-tests: New file.
37204         * tests/test-frexpl.c: New file.
37205
37206         * modules/frexpl: New file.
37207         * m4/frexpl.m4: New file.
37208         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
37209         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
37210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
37211         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
37212         (Depends-on): Add frexpl. Remove isnanl-nolibm.
37213         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
37214
37215 2007-03-22  Bruno Haible  <bruno@clisp.org>
37216
37217         * lib/frexpl.c: Share code with lib/frexp.c.
37218         * modules/mathl (Files): Add lib/frexp.c.
37219         (Depends-on): Add isnanl-nolibm.
37220
37221 2007-03-22  Bruno Haible  <bruno@clisp.org>
37222
37223         * modules/printf-frexp (Files): Add m4/frexp.m4.
37224         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37225         only if the found frexp function actually works.
37226
37227 2007-03-22  Bruno Haible  <bruno@clisp.org>
37228
37229         * lib/frexp.c: Remove older implementation that uses divisions.
37230
37231 2007-03-21  Bruno Haible  <bruno@clisp.org>
37232
37233         * modules/frexp-tests: New file.
37234         * tests/test-frexp.c: New file.
37235
37236         * modules/frexp: New file.
37237         * lib/frexp.c: New file.
37238         * m4/frexp.m4: New file.
37239         * lib/math_.h (frexp): New declaration.
37240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37241         REPLACE_FREXP.
37242         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37243
37244 2007-03-21  Bruno Haible  <bruno@clisp.org>
37245
37246         * modules/isnanl-tests: New file.
37247         * tests/test-isnanl.c: New file.
37248
37249         * modules/isnanl: New file.
37250         * lib/isnanl.h: New file.
37251         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37252         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37253         gl_FUNC_ISNANL_WORKS.
37254         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37255         New macros.
37256
37257 2007-03-21  Bruno Haible  <bruno@clisp.org>
37258
37259         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37260         lib/isnanl.h.
37261         (Include): Update.
37262         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37263         * lib/vasnprintf.c: Update.
37264         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37265         tests/test-isnanl.h, remove tests/test-isnanl.c.
37266         (Makefile.am): Update.
37267         * tests/test-isnanl-nolibm.c: New file.
37268         * tests/test-isnanl.h: New file.
37269         * tests/test-isnanl.c: Remove file.
37270
37271 2007-03-21  Jim Meyering  <jim@meyering.net>
37272
37273         When trying to open ".", treat ESTALE like EACCES.
37274         * lib/savewd.c (savewd_save): Resort to forking not just upon
37275         failure with EACCES, but also when errno is ESTALE.
37276
37277 2007-03-20  Bruno Haible  <bruno@clisp.org>
37278
37279         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37280         Needed on AIX 5.1. Reported by Matthew Woehlke.
37281
37282 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37283
37284         Suggestions by Bruno Haible:
37285         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37286         our own.
37287         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37288         * modules/acl (Depends-on): Add gettext.
37289
37290 2007-03-19  Bruno Haible  <bruno@clisp.org>
37291
37292         * modules/iconvme: Remove file.
37293         * lib/iconvme.h: Remove file.
37294         * lib/iconvme.c: Remove file.
37295         * m4/iconvme.m4: Remove file.
37296
37297 2007-03-19  Bruno Haible  <bruno@clisp.org>
37298
37299         * doc/relocatable-maint.texi: Break long shell script line.
37300         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37301
37302 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37303
37304         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37305         handle file_has_acl.
37306         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37307         * lib/acl.c: Move header inclusions and related macro defns into
37308         lib/acl-internal.h.
37309         (S_ISLNK): Remove defn, since that's now done for us.
37310         (file_has_acl): Move to lib/file-has-acl.c.
37311         Call acl_trivial if available.  This is the crucial part of the fix.
37312         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37313         shared within the library.  Rewrite a bit, partly to make it compatible
37314         with the GNU coding style.
37315         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37316         Remove unnecessary double-quotes.
37317         Don't test for acl_to_text; the build will catch that.
37318         Replace acl_entries if it doesn't exist and it is needed.
37319         Check for -lsec and acl_trivial (as used on Solaris 10).
37320         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37321         lib/file-has-acl.c.
37322         (Depends-on): Add sys_stat, for S_ISLNK.
37323
37324 2007-03-19  Ben Pfaff  <blp@gnu.org>
37325
37326         * doc/gnulib.texi: Fix typos.
37327         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37328
37329 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37330
37331         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37332         If size is zero here, buf must be zero.
37333
37334 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37335
37336         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37337         <bruno@clisp.org>.
37338
37339 2007-03-18  Bruno Haible  <bruno@clisp.org>
37340
37341         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37342         Suggested by Eric Blake.
37343
37344 2007-03-18  Ben Pfaff  <blp@gnu.org>
37345
37346         * doc/relocatable.texi: Recommend using as prefix a directory
37347         that does not exist and will never be created.  Based on
37348         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37349         and others.
37350
37351 2007-03-17  Bruno Haible  <bruno@clisp.org>
37352
37353         * lib/fchownat.c: Include lchown.h.
37354
37355 2007-03-17  Bruno Haible  <bruno@clisp.org>
37356
37357         Fix endless loop when the given allocated size was > INT_MAX.
37358         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37359         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37360         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37361         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37362         * lib/sprintf.c (sprintf): Likewise.
37363
37364 2007-03-17  Bruno Haible  <bruno@clisp.org>
37365
37366         * tests/test-argp-2.sh (func_compare): Output a context diff.
37367
37368 2007-03-17  Bruno Haible  <bruno@clisp.org>
37369
37370         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37371         locale's decimal-point character.
37372
37373 2007-03-17  Bruno Haible  <bruno@clisp.org>
37374
37375         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37376         before comparing it. Needed because on some platforms (e.g. x86) a
37377         'long double' occupies less bytes than sizeof (long double).
37378
37379 2007-03-17  Bruno Haible  <bruno@clisp.org>
37380
37381         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37382         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37383         * tests/test-getaddrinfo.c (simple): Likewise.
37384         * tests/test-read-file.c (main): Likewise.
37385
37386 2007-03-17  Bruno Haible  <bruno@clisp.org>
37387
37388         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37389
37390 2007-03-17  Bruno Haible  <bruno@clisp.org>
37391
37392         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37393         unused variable.
37394
37395 2007-03-17  Bruno Haible  <bruno@clisp.org>
37396
37397         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37398         * tests/test-c-strncasecmp.c: Likewise.
37399
37400 2007-03-17  Bruno Haible  <bruno@clisp.org>
37401
37402         * modules/stdlib (Depends-on): Add unistd.
37403         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37404         Needed for MacOS X 10.3.
37405
37406 2007-03-17  Bruno Haible  <bruno@clisp.org>
37407
37408         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37409
37410 2007-03-17  Bruno Haible  <bruno@clisp.org>
37411
37412         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37413
37414 2007-03-17  Bruno Haible  <bruno@clisp.org>
37415
37416         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37417         to reflect files copied from gnulib (with or without modifications).
37418         Suggested by Jim Meyering.
37419
37420 2007-03-17  Eric Blake  <ebb9@byu.net>
37421
37422         * NEWS: Document stdlib change from 2007-02-18.
37423
37424 2007-03-17  Jim Meyering  <jim@meyering.net>
37425
37426         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37427         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37428         someone uses a name containing shell meta-characters.
37429         Reported by Alfred M. Szmidt.
37430
37431         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37432
37433 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37434
37435         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37436         and copy gettext configuration files only if configure.ac contains
37437         a use of AM_GNU_GETTEXT_VERSION.
37438
37439 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37440
37441         * build-aux/bootstrap (gnulib_name): New variable.
37442         (gnulib_tool_options): Use it.
37443
37444 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37445
37446         * tests/test-des.c: Use new namespace.
37447
37448 2007-03-15  Bruno Haible  <bruno@clisp.org>
37449
37450         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37451         Reported by James Youngman <jay@gnu.org>.
37452
37453 2007-03-15  Bruno Haible  <bruno@clisp.org>
37454
37455         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37456         declared prototype. Needed with cc on OSF/1 5.1.
37457
37458 2007-03-15  Bruno Haible  <bruno@clisp.org>
37459
37460         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37461         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37462         (struct gl_list_implementation): Add dispose_fn argument to the
37463         'create_empty', 'create' methods.
37464         (struct gl_list_impl_base): Add field 'dispose_fn'.
37465         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37466         argument.
37467         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37468         dispose_fn argument.
37469         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37470         dispose_fn on the dropped values.
37471         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37472         dispose_fn argument.
37473         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37474         dropped values.
37475         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37476         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37477         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37478         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37479         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37480         argument.
37481         (gl_tree_list_free): Call dispose_fn on the dropped values.
37482         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37483         the dropped values.
37484         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37485         Add dispose_fn argument.
37486         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37487         Call dispose_fn on the dropped values.
37488         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37489         Add dispose_fn argument.
37490         (gl_sublist_create): Initialize the 'dispose_fn' field.
37491         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37492         * tests/test-array_list.c (main): Update.
37493         * tests/test-carray_list.c (main): Update.
37494         * tests/test-avltree_list.c (main): Update.
37495         * tests/test-rbtree_list.c (main): Update.
37496         * tests/test-avltreehash_list.c (main): Update.
37497         * tests/test-rbtreehash_list.c (main): Update.
37498         * tests/test-linked_list.c (main): Update.
37499         * tests/test-linkedhash_list.c (main): Update.
37500         * tests/test-array_oset.c (main): Update.
37501
37502 2007-03-15  Bruno Haible  <bruno@clisp.org>
37503
37504         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37505         (gl_oset_create_empty): Add dispose_fn argument.
37506         (struct gl_oset_implementation): Add dispose_fn argument to
37507         'create_empty' method.
37508         (struct gl_oset_impl_base): Add dispose_fn field.
37509         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37510         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37511         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37512         values.
37513         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37514         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37515         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37516         dropped value.
37517         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37518         dropped value.
37519         * tests/test-array_oset.c (main): Update.
37520         * tests/test-avltree_oset.c (main): Update.
37521         * tests/test-rbtree_oset.c (main): Update.
37522         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37523
37524 2007-03-13  Bruno Haible  <bruno@clisp.org>
37525
37526         * tests/test-stdbool.c (i): Update after last patch.
37527
37528 2007-03-12  Bruno Haible  <bruno@clisp.org>
37529
37530         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37531         the iswprint macro. Needed on Solaris 2.5.1.
37532
37533 2007-03-12  Bruno Haible  <bruno@clisp.org>
37534
37535         * tests/test-printf-frexp.c (main): Declare x as volatile.
37536
37537 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37538
37539         * doc/gnulib.texi (Build robot for gnulib): New section.
37540
37541 2007-03-12  Jim Meyering  <jim@meyering.net>
37542
37543         * build-aux/bootstrap: New file.
37544         * build-aux/bootstrap.conf: New file, from coreutils.
37545
37546 2007-03-11  Bruno Haible  <bruno@clisp.org>
37547
37548         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37549
37550 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37551
37552         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37553         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37554         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37555
37556 2007-03-11  Bruno Haible  <bruno@clisp.org>
37557
37558         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37559         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37560
37561 2007-03-11  Bruno Haible  <bruno@clisp.org>
37562
37563         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37564         formula. Needed for SunPRO C 5.0.
37565
37566 2007-03-11  Bruno Haible  <bruno@clisp.org>
37567
37568         * modules/long-options (Depends-on): Add getopt.
37569
37570 2007-03-11  Bruno Haible  <bruno@clisp.org>
37571
37572         * modules/modechange (Depends-on): Add stdbool.
37573
37574 2007-03-11  Bruno Haible  <bruno@clisp.org>
37575
37576         * modules/i-ring (Depends-on): Add stdbool.
37577
37578 2007-03-11  Bruno Haible  <bruno@clisp.org>
37579
37580         * modules/gc-des (Depends-on): Add stdbool.
37581
37582 2007-03-11  Bruno Haible  <bruno@clisp.org>
37583
37584         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37585
37586 2007-03-11  Bruno Haible  <bruno@clisp.org>
37587
37588         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37589
37590 2007-03-11  Bruno Haible  <bruno@clisp.org>
37591
37592         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37593
37594 2007-03-11  Bruno Haible  <bruno@clisp.org>
37595
37596         * lib/vasnprintf.c (sprintf): Undefine.
37597
37598 2007-03-11  Bruno Haible  <bruno@clisp.org>
37599
37600         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37601         initializers in SunPRO C and Compaq C compilers.
37602
37603 2007-03-11  Bruno Haible  <bruno@clisp.org>
37604
37605         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37606         decrementing code ANSI C compliant.
37607
37608 2007-03-11  Bruno Haible  <bruno@clisp.org>
37609
37610         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37611         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37612
37613 2007-03-11  Bruno Haible  <bruno@clisp.org>
37614
37615         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37616         <stdbool.h> substitute doesn't pass.
37617
37618 2007-03-11  Bruno Haible  <bruno@clisp.org>
37619
37620         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37621
37622 2007-03-11  Bruno Haible  <bruno@clisp.org>
37623
37624         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37625         script, for submission to autobuild.josefsson.org.
37626
37627 2007-03-10  Bruno Haible  <bruno@clisp.org>
37628
37629         * modules/canonicalize-lgpl-tests: New file.
37630         * tests/test-canonicalize-lgpl.sh: New file.
37631         * tests/test-canonicalize-lgpl.c: New file.
37632
37633         * modules/c-strcase-tests: New file.
37634         * tests/test-c-strcase.sh: New file.
37635         * tests/test-c-strcasecmp.c: New file.
37636         * tests/test-c-strncasecmp.c: New file.
37637
37638         * modules/atexit-tests: New file.
37639         * tests/test-atexit.sh: New file.
37640         * tests/test-atexit.c: New file.
37641
37642 2007-03-10  Bruno Haible  <bruno@clisp.org>
37643
37644         * tests/test-binary-io.sh: Use temporary filenames that are not so
37645         likely to clash with those of other tests (in a parallel make).
37646         * tests/test-binary-io.c: Likewise.
37647
37648 2007-03-10  Bruno Haible  <bruno@clisp.org>
37649
37650         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37651         fallback; use #error instead.
37652         Suggested by Simon Josefsson.
37653
37654 2007-03-10  Bruno Haible  <bruno@clisp.org>
37655
37656         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37657         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37658         first and the last.
37659
37660 2007-03-10  Bruno Haible  <bruno@clisp.org>
37661
37662         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37663
37664 2007-03-10  Bruno Haible  <bruno@clisp.org>
37665
37666         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37667         "make distcheck".
37668         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37669         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37670         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37671
37672 2007-03-10  Bruno Haible  <bruno@clisp.org>
37673
37674         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37675         variable.
37676         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37677         variable.
37678
37679 2007-03-09  Eric Blake  <ebb9@byu.net>
37680         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37681
37682         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37683         types are not being provided by gnulib.
37684         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37685         types are supported.
37686
37687 2007-03-10  Bruno Haible  <bruno@clisp.org>
37688
37689         * lib/stdio_.h (__attribute__): New macro.
37690         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37691         vsprintf): Specify __attribute__ __format__ for GCC.
37692         Suggested by Eric Blake.
37693
37694 2007-03-09  Bruno Haible  <bruno@clisp.org>
37695
37696         * modules/printf-posix-tests: New file.
37697         * tests/test-printf-posix.sh: New file.
37698         * tests/test-printf-posix.c: New file.
37699
37700         * modules/printf-posix: New file.
37701         * lib/printf.c: New file.
37702         * m4/printf-posix-rpl.m4: New file.
37703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37704         REPLACE_PRINTF.
37705         * lib/stdio_.h (printf): New declaration.
37706         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37707         ____strfmon____): New macros.
37708         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37709         REPLACE_PRINTF.
37710
37711 2007-03-09  Bruno Haible  <bruno@clisp.org>
37712
37713         * tests/test-vasnprintf-posix2.sh: New file.
37714         * tests/test-vasnprintf-posix2.c: New file.
37715         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37716         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37717         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37718
37719         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37720         a locale dependent decimal point, rather than always '.'.
37721
37722 2007-03-09  Eric Blake  <ebb9@byu.net>
37723
37724         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37725         spite of platforms like Tandem/NSK that define it to -1.
37726
37727 2007-03-08  Bruno Haible  <bruno@clisp.org>
37728
37729         * modules/vprintf-posix-tests: New file.
37730         * tests/test-vprintf-posix.sh: New file.
37731         * tests/test-vprintf-posix.c: New file.
37732         * tests/test-printf-posix.h: New file.
37733
37734         * modules/vprintf-posix: New file.
37735         * lib/vprintf.c: New file.
37736         * m4/vprintf-posix.m4: New file.
37737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37738         REPLACE_VPRINTF.
37739         * lib/stdio_.h (vprintf): New declaration.
37740         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37741         REPLACE_VPRINTF.
37742
37743 2007-03-08  Bruno Haible  <bruno@clisp.org>
37744
37745         * modules/fprintf-posix-tests: New file.
37746         * tests/test-fprintf-posix.sh: New file.
37747         * tests/test-fprintf-posix.c: New file.
37748
37749         * modules/fprintf-posix: New file.
37750         * lib/fprintf.c: New file.
37751         * m4/fprintf-posix.m4: New file.
37752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37753         REPLACE_FPRINTF.
37754         * lib/stdio_.h (fprintf): New declaration.
37755         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37756         REPLACE_FPRINTF.
37757
37758 2007-03-08  Bruno Haible  <bruno@clisp.org>
37759
37760         * modules/vfprintf-posix-tests: New file.
37761         * tests/test-vfprintf-posix.sh: New file.
37762         * tests/test-vfprintf-posix.c: New file.
37763         * tests/test-fprintf-posix.h: New file.
37764         * tests/test-fprintf-posix.out: New file.
37765
37766         * modules/vfprintf-posix: New file.
37767         * lib/vfprintf.c: New file.
37768         * m4/vfprintf-posix.m4: New file.
37769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37770         REPLACE_VFPRINTF.
37771         * lib/stdio_.h (vfprintf): New declaration.
37772         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37773         REPLACE_VFPRINTF.
37774
37775 2007-03-08  Bruno Haible  <bruno@clisp.org>
37776
37777         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37778
37779 2007-03-08  Bruno Haible  <bruno@clisp.org>
37780
37781         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37782         instead of 'expr' invocations.
37783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37786         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37787         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37788         Suggested by Paul Eggert.
37789
37790 2007-03-08  Bruno Haible  <bruno@clisp.org>
37791
37792         * modules/fseterr-tests: New file.
37793         * tests/test-fseterr.c: New file.
37794
37795         * modules/fseterr: New file.
37796         * lib/fseterr.h: New file.
37797         * lib/fseterr.c: New file.
37798
37799 2007-03-08  Bruno Haible  <bruno@clisp.org>
37800
37801         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37802         * lib/getopt_.h: Likewise.
37803         * lib/mbswidth.h: Likewise.
37804         * lib/setenv.h: Likewise.
37805         * lib/vasnprintf.h: Likewise.
37806         * lib/vasprintf.h: Likewise.
37807         * lib/verror.h: Likewise.
37808         * lib/xsetenv.h: Likewise.
37809         * lib/xvasprintf.h: Likewise.
37810
37811 2007-03-08  Jim Meyering  <jim@meyering.net>
37812
37813         * users.txt: Add parted.
37814
37815         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37816
37817 2007-03-07  Bruno Haible  <bruno@clisp.org>
37818
37819         * m4/printf.m4: Make the shell script snippets copy&pastable.
37820
37821 2007-03-02  Bruno Haible  <bruno@clisp.org>
37822
37823         * lib/netinet_in_.h: New file.
37824         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37825         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37826         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37827         (Depends-on): Add absolute-header.
37828         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37829         into netinet/in.h.
37830
37831 2007-03-03  Bruno Haible  <bruno@clisp.org>
37832
37833         * lib/sys_select_.h: New file.
37834         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37835         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37836         * modules/sys_select (Files): Add lib/sys_select_.h.
37837         (Depends-on): Add absolute-header.
37838         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37839         into sys/select.h.
37840
37841 2007-03-02  Bruno Haible  <bruno@clisp.org>
37842
37843         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37844         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37845         values.
37846         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37847         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37848         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37849         * modules/sys_socket (Depends-on): Add absolute-header.
37850         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37851         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37852         (Include): Remove requirement of inclusion of <sys/types.h>.
37853
37854 2007-03-02  Bruno Haible  <bruno@clisp.org>
37855
37856         * lib/byteswap_.h (bswap_32): Fix formula.
37857
37858 2007-03-06  Bruno Haible  <bruno@clisp.org>
37859
37860         * modules/sprintf-posix-tests: New file.
37861         * tests/test-sprintf-posix.c: New file.
37862
37863         * modules/sprintf-posix: New file.
37864         * lib/sprintf.c: New file.
37865         * m4/sprintf-posix.m4: New file.
37866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37867         REPLACE_SPRINTF.
37868         * lib/stdio_.h (sprintf): New declaration.
37869         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37870         REPLACE_SPRINTF.
37871
37872 2007-03-06  Bruno Haible  <bruno@clisp.org>
37873
37874         * modules/vsprintf-posix-tests: New file.
37875         * tests/test-vsprintf-posix.c: New file.
37876         * tests/test-sprintf-posix.h: New file.
37877
37878         * modules/vsprintf-posix: New file.
37879         * lib/vsprintf.c: New file.
37880         * m4/vsprintf-posix.m4: New file.
37881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37882         REPLACE_VSPRINTF.
37883         * lib/stdio_.h (vsprintf): New declaration.
37884         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37885         REPLACE_VSPRINTF.
37886
37887 2007-03-06  Bruno Haible  <bruno@clisp.org>
37888
37889         * modules/vsnprintf (Depend-on): Remove minmax.
37890
37891 2007-03-06  Bruno Haible  <bruno@clisp.org>
37892
37893         * modules/snprintf-posix-tests: New file.
37894         * tests/test-snprintf-posix.c: New file.
37895
37896         * modules/snprintf-posix: New file.
37897         * m4/snprintf-posix.m4: New file.
37898         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37899         gl_FUNC_SNPRINTF.
37900         (gl_FUNC_SNPRINTF): Invoke it.
37901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37902         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37903         is set.
37904         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37905
37906 2007-03-06  Bruno Haible  <bruno@clisp.org>
37907
37908         * modules/vsnprintf-posix-tests: New file.
37909         * tests/test-vsnprintf-posix.c: New file.
37910         * tests/test-snprintf-posix.h: New file.
37911
37912         * modules/vsnprintf-posix: New file.
37913         * m4/vsnprintf-posix.m4: New file.
37914         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37915         gl_FUNC_VSNPRINTF.
37916         (gl_FUNC_VSNPRINTF): Invoke it.
37917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37918         * lib/stdio_.h (vsnprintf): Define as a replacement if
37919         REPLACE_VSNPRINTF is set.
37920         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37921
37922 2007-03-06  Bruno Haible  <bruno@clisp.org>
37923
37924         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37925         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37926
37927 2007-03-06  Bruno Haible  <bruno@clisp.org>
37928
37929         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37930         (asinl): Declare also if HAVE_DECL_ASINL is set.
37931         (atanl): Declare also if HAVE_DECL_ATANL is set.
37932         (ceill): Declare also if HAVE_DECL_CEILL is set.
37933         (cosl): Declare also if HAVE_DECL_COSL is set.
37934         (expl): Declare also if HAVE_DECL_EXPL is set.
37935         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37936         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37937         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37938         (logl): Declare also if HAVE_DECL_LOGL is set.
37939         (sinl): Declare also if HAVE_DECL_SINL is set.
37940         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37941         (tanl): Declare also if HAVE_DECL_TANL is set.
37942         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37944         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37945         declaration of frexpl, ldexpl.
37946         * modules/printf-frexpl (Depends-on): Add math.
37947         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37948
37949 2007-03-05  Bruno Haible  <bruno@clisp.org>
37950
37951         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37952         frexpl and ldexpl are declared.
37953         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37954
37955 2007-03-05  Bruno Haible  <bruno@clisp.org>
37956
37957         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37958         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37959
37960 2007-03-05  Bruno Haible  <bruno@clisp.org>
37961
37962         * lib/stdio_.h: Include <stddef.h>.
37963
37964 2007-03-05  Bruno Haible  <bruno@clisp.org>
37965
37966         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37967
37968 2007-03-05  Bruno Haible  <bruno@clisp.org>
37969
37970         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37971         NetBSD 4, from Ralf Wildenhues.
37972
37973 2007-03-04  Bruno Haible  <bruno@clisp.org>
37974
37975         * lib/vasprintf.h: Update #if logic for the case when the functions
37976         exist but are overridden.
37977
37978 2007-03-04  Bruno Haible  <bruno@clisp.org>
37979
37980         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37981         implementations: glibc-2.4 and MacOS X 10.3.
37982         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37983         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37984         * tests/test-vasprintf-posix.c (test_function): Likewise.
37985
37986 2007-03-04  Bruno Haible  <bruno@clisp.org>
37987
37988         * modules/vasprintf-posix-tests: New file.
37989         * tests/test-vasprintf-posix.c: New file.
37990
37991         * modules/vasprintf-posix: New file.
37992         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37993         defined.
37994         * m4/vasprintf-posix.m4: New file.
37995         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37996         gl_FUNC_VASPRINTF.
37997         (gl_FUNC_VASPRINTF): Invoke it.
37998         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37999         here.
38000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
38001
38002 2007-03-04  Bruno Haible  <bruno@clisp.org>
38003
38004         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
38005         REPLACE_GETTIMEOFDAY.
38006         * modules/sys_time (Makefile.am): Likewise.
38007         * m4/sys_time_h.m4: Likewise.
38008         * m4/gettimeofday.m4: Likewise.
38009
38010 2007-03-04  Bruno Haible  <bruno@clisp.org>
38011
38012         * modules/vasnprintf-posix-tests: New file.
38013         * tests/test-vasnprintf-posix.c: New file.
38014
38015         * modules/vasnprintf-posix: New file.
38016         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
38017         printf-frexpl.h.
38018         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
38019         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
38020         REPLACE_VASNPRINTF is defined.
38021         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
38022         gl_FUNC_VASNPRINTF.
38023         (gl_FUNC_VASNPRINTF): Invoke it.
38024         * m4/vasnprintf-posix.m4: New file.
38025         * m4/printf.m4: New file.
38026
38027 2007-03-04  Bruno Haible  <bruno@clisp.org>
38028
38029         Compile progreloc.c only if --enable-relocatable is specified.
38030         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
38031         if --enable-relocatable was specified.
38032         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
38033         lib_SOURCES.
38034
38035 2007-03-04  Jim Meyering  <jim@meyering.net>
38036
38037         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
38038         Use it consistently, rather than enumerating errno constants.
38039
38040 2007-03-04  Bruno Haible  <bruno@clisp.org>
38041
38042         * modules/xvasprintf-tests: New file.
38043         * tests/test-xvasprintf.c: New file.
38044
38045         * modules/vasprintf-tests: New file.
38046         * tests/test-vasprintf.c: New file.
38047
38048         * modules/vasnprintf-tests: New file.
38049         * tests/test-vasnprintf.c: New file.
38050
38051         * modules/vsnprintf-tests: New file.
38052         * tests/test-vsnprintf.c: New file.
38053
38054         * modules/snprintf-tests: New file.
38055         * tests/test-snprintf.c: New file.
38056
38057 2007-03-04  Bruno Haible  <bruno@clisp.org>
38058
38059         Compile relocatable.c only if --enable-relocatable is specified.
38060         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
38061         gl_RELOCATABLE_LIBRARY.
38062         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
38063         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
38064         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
38065         gl_RELOCATABLE_LIBRARY.
38066         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
38067         (Makefile.am): Remove lib_SOURCES.
38068         * modules/relocatable-lib-lgpl (configure.ac): Invoke
38069         gl_RELOCATABLE_LIBRARY.
38070         (Makefile.am): Remove lib_SOURCES.
38071         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
38072         always.
38073         * modules/relocatable-prog-wrapper (configure.ac): Invoke
38074         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
38075
38076 2007-03-04  Bruno Haible  <bruno@clisp.org>
38077
38078         * modules/argmatch-tests: New file.
38079         * tests/test-argmatch.c: New file.
38080
38081         * tests/test-allocsa.c (main): Halve the number of loop runs.
38082
38083         * modules/alloca-opt-tests: New file.
38084         * tests/test-alloca-opt.c: New file.
38085
38086 2007-03-04  Jim Meyering  <jim@meyering.net>
38087
38088         Work around difference between Linux ACLs and Solaris 10 ZFS.
38089         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
38090         for EINVAL.
38091
38092 2007-03-03  Bruno Haible  <bruno@clisp.org>
38093
38094         * modules/relocatable-prog (Depends-on): Add back progreloc's
38095         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
38096
38097 2007-03-03  Bruno Haible  <bruno@clisp.org>
38098
38099         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
38100         * modules/relocatable-lib: New file.
38101
38102 2007-03-03  Bruno Haible  <bruno@clisp.org>
38103
38104         * modules/relocatable-prog: Renamed from modules/relocatable.
38105         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
38106
38107 2007-03-03  Bruno Haible  <bruno@clisp.org>
38108
38109         * modules/relocatable-script (Files): Add doc/relocatable.texi,
38110         m4/relocatable-lib.m4.
38111         (Depends-on): Remove 'relocatable'.
38112         (configure.ac): Add gl_RELOCATABLE_NOP.
38113
38114 2007-03-03  Bruno Haible  <bruno@clisp.org>
38115
38116         * modules/relocatable-prog-wrapper: New file.
38117         * modules/relocatable (Depends-on): Add it. Remove all other
38118         dependencies except progname.
38119         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
38120
38121         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
38122         (gl_FUNC_STRERROR): Nop.
38123         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
38124
38125         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
38126         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
38127
38128         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
38129         (gl_FUNC_READLINK): Update.
38130
38131         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
38132
38133 2007-03-03  Bruno Haible  <bruno@clisp.org>
38134
38135         * lib/xreadlink.c: Include <unistd.h> unconditionally.
38136         * modules/xreadlink (Depends-on): Add unistd.
38137         * modules/xreadlink-with-size (Depends-on): Likewise.
38138
38139 2007-03-03  Bruno Haible  <bruno@clisp.org>
38140
38141         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
38142         extracted from gt_FUNC_SETENV.
38143         (gt_FUNC_SETENV): Remove macro.
38144         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
38145         remove gt_FUNC_SETENV.
38146
38147 2007-03-03  Bruno Haible  <bruno@clisp.org>
38148
38149         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
38150         ENABLE_RELOCATABLE here.
38151         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
38152
38153 2007-03-03  Bruno Haible  <bruno@clisp.org>
38154
38155         * modules/rbtreehash-list-tests (Depends-on): Add progname.
38156         * tests/test-rbtreehash_list.c: Include progname.h.
38157         (main): Call set_program_name.
38158
38159         * modules/rbtree-oset-tests (Depends-on): Add progname.
38160         * tests/test-rbtree_oset.c: Include progname.h.
38161         (main): Call set_program_name.
38162
38163         * modules/rbtree-list-tests (Depends-on): Add progname.
38164         * tests/test-rbtree_list.c: Include progname.h.
38165         (main): Call set_program_name.
38166
38167         * modules/linked-list-tests (Depends-on): Add progname.
38168         * tests/test-linked_list.c: Include progname.h.
38169         (main): Call set_program_name.
38170
38171 2007-03-03  Bruno Haible  <bruno@clisp.org>
38172
38173         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
38174         All uses of __restrict changed to _Restrict_.
38175         * lib/glob_.h (__restrict): Remove macro.
38176
38177 2007-03-02  Bruno Haible  <bruno@clisp.org>
38178
38179         * modules/gettext (configure.ac): Require gettext infrastructure
38180         from version 0.16.1.
38181
38182 2007-03-02  Bruno Haible  <bruno@clisp.org>
38183
38184         * modules/linkedhash-list-tests (Depends-on): Add progname.
38185         * tests/test-linkedhash_list.c: Include progname.h.
38186         (main): Call set_program_name.
38187
38188         * modules/carray-list-tests (Depends-on): Add progname.
38189         * tests/test-carray_list.c: Include progname.h.
38190         (main): Call set_program_name.
38191
38192         * modules/avltreehash-list-tests (Depends-on): Add progname.
38193         * tests/test-avltreehash_list.c: Include progname.h.
38194         (main): Call set_program_name.
38195
38196         * modules/avltree-oset-tests (Depends-on): Add progname.
38197         * tests/test-avltree_oset.c: Include progname.h.
38198         (main): Call set_program_name.
38199
38200         * modules/avltree-list-tests (Depends-on): Add progname.
38201         * tests/test-avltree_list.c: Include progname.h.
38202         (main): Call set_program_name.
38203
38204         * modules/array-oset-tests (Depends-on): Add progname.
38205         * tests/test-array_oset.c: Include progname.h.
38206         (main): Call set_program_name.
38207
38208         * modules/array-list-tests (Depends-on): Add progname.
38209         * tests/test-array_list.c: Include progname.h.
38210         (main): Call set_program_name.
38211
38212         * modules/argp-tests (Depends-on): Add progname.
38213         * tests/test-argp.c: Include argp.h first. Include progname.h.
38214         (main): Call set_program_name.
38215
38216 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
38217
38218         * doc/gnulib-tool.texi (Initial import): Reword description of
38219         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
38220         limited effect even if defined after the first system include.
38221
38222 2007-03-01  Bruno Haible  <bruno@clisp.org>
38223
38224         * build-aux/config.libpath: Update to libtool-1.5.22.
38225         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38226
38227 2007-03-01  Bruno Haible  <bruno@clisp.org>
38228
38229         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38230         foo_CFLAGS.
38231         Reported by Ralf Wildenhues.
38232
38233 2007-03-01  Bruno Haible  <bruno@clisp.org>
38234
38235         * build-aux/install-reloc: Remove object files left over by some
38236         compilers.
38237         Reported by Ralf Wildenhues.
38238
38239 2007-03-01  Bruno Haible  <bruno@clisp.org>
38240
38241         * build-aux/install-reloc: Break long lines.
38242
38243 2007-03-01  Bruno Haible  <bruno@clisp.org>
38244
38245         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38246         Reported by Ralf Wildenhues.
38247
38248 2007-03-01  Bruno Haible  <bruno@clisp.org>
38249
38250         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38251         include ordering constraints.
38252
38253 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38254
38255         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38256         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38257         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38258         as another example.
38259         * lib/time_.h: Fix misspelling.
38260         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38261         Require gl_HEADER_TIME_H_DEFAULTS.
38262         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38263         * m4/time_r.m4 (gl_TIME_R): Likewise.
38264         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38265
38266 2007-03-01  Bruno Haible  <bruno@clisp.org>
38267
38268         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38269         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38270
38271 2007-03-01  Jim Meyering  <jim@meyering.net>
38272
38273         * modules/xreadlink (Maintainer): Add my name.
38274         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38275
38276 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38277             Bruno Haible  <bruno@clisp.org>
38278
38279         * build-aux/install-reloc: Compile also c-ctype.c.
38280         * build-aux/relocatable.sh.in: New file.
38281         * doc/relocatable.texi: New file.
38282         * doc/relocatable-maint.texi: New file.
38283         * doc/gnulib.texi: Include relocatable-maint.texi.
38284         * lib/progreloc.c: Include unistd.h unconditionally.
38285         * lib/relocwrapper.c: Include unistd.h unconditionally.
38286         Include c-ctype.h.
38287         (add_dotbin): Use c_tolower.
38288         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38289         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38290         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38291         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38292         to m4/relocatable-lib.m4.
38293         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38294         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38295         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38296         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38297         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38298         * modules/relocatable: New file.
38299         * modules/relocatable-lib: New file.
38300         * modules/relocatable-script: New file.
38301
38302 2007-02-28  Bruno Haible  <bruno@clisp.org>
38303
38304         Import --enable-relocatable infrastructure.
38305         * build-aux/config.libpath: New file, from GNU gettext.
38306         * build-aux/install-reloc: New file, from GNU gettext.
38307         * build-aux/reloc-ldflags: New file, from GNU gettext.
38308         * lib/relocatable.h: New file, from GNU gettext.
38309         * lib/relocatable.c: New file, from GNU gettext.
38310         * lib/relocwrapper.c: New file, from GNU gettext.
38311         * m4/relocatable.m4: New file, from GNU gettext.
38312
38313 2007-02-28  Bruno Haible  <bruno@clisp.org>
38314
38315         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38316
38317         * modules/xreadlink: New file, from GNU gettext with modifications.
38318         * lib/xreadlink.c: New file, from GNU gettext.
38319         * lib/xreadlink.h: Add comments.
38320         (xreadlink): New declaration.
38321
38322         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38323         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38324         lib/xreadlink-with-size.c.
38325         (configure.ac): Remove gl_XREADLINK invocation.
38326         (Makefile.am): Augment lib_SOURCES.
38327         * m4/xreadlink.m4: Remove file.
38328         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38329         (xreadlink_with_size): Renamed from xreadink.
38330         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38331         * modules/canonicalize (Depends-on): Replace xreadlink with
38332         xreadlink-with-size.
38333         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38334
38335 2007-02-25  Jim Meyering  <jim@meyering.net>
38336
38337         * build-aux/announce-gen: When complaining about excess arguments,
38338         list them.
38339
38340 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38341
38342         * README: Document signed integer overflow situation more
38343         accurately.
38344
38345 2007-02-25  Bruno Haible  <bruno@clisp.org>
38346
38347         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38348         'a' or 'A' conversion.
38349
38350 2007-02-25  Bruno Haible  <bruno@clisp.org>
38351
38352         * modules/filename: Renamed from modules/pathname.
38353         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38354         lib/concatpath.c with lib/concat-filename.c.
38355         (Makefile.am): Update.
38356         (Include): Replace pathname.h with filename.h.
38357         * lib/filename.h: Renamed from lib/pathname.h.
38358         (concatenated_filename): Renamed from concatenated_pathname.
38359         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38360         (concatenated_filename): Renamed from concatenated_pathname.
38361         * lib/findprog.c: Include filename.h instead of pathname.h.
38362         (find_in_path): Update.
38363         * lib/javacomp.c: Include filename.h instead of pathname.h.
38364         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38365         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38366         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38367         is_oldgcj_14_13_usable, is_javac_usable): Update.
38368         * lib/javaexec.c: Include filename.h instead of pathname.h.
38369         (execute_java_class): Update.
38370         * modules/findprog: Update.
38371         * modules/javacomp: Update.
38372         * modules/javaexec: Update.
38373         * MODULES.html.sh (File system functions): Add 'filename', remove
38374         'pathname'.
38375
38376 2007-02-25  Bruno Haible  <bruno@clisp.org>
38377
38378         * modules/printf-frexpl-tests: New file.
38379         * tests/test-printf-frexpl.c: New file.
38380
38381         * modules/printf-frexpl: New file.
38382         * lib/printf-frexpl.h: New file.
38383         * lib/printf-frexpl.c: New file.
38384         * m4/printf-frexpl.m4: New file.
38385
38386 2007-02-25  Bruno Haible  <bruno@clisp.org>
38387
38388         * modules/printf-frexp-tests: New file.
38389         * tests/test-printf-frexp.c: New file.
38390
38391         * modules/printf-frexp: New file.
38392         * lib/printf-frexp.h: New file.
38393         * lib/printf-frexp.c: New file.
38394         * m4/printf-frexp.m4: New file.
38395
38396 2007-02-25  Bruno Haible  <bruno@clisp.org>
38397
38398         Assume automake >= 1.10 for the tests.
38399         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38400         * modules/arctwo-tests: Likewise.
38401         * modules/argp-tests: Likewise.
38402         * modules/avltree-list-tests: Likewise.
38403         * modules/avltree-oset-tests: Likewise.
38404         * modules/avltreehash-list-tests: Likewise.
38405         * modules/carray-list-tests: Likewise.
38406         * modules/crc-tests: Likewise.
38407         * modules/des-tests: Likewise.
38408         * modules/gc-arcfour-tests: Likewise.
38409         * modules/gc-arctwo-tests: Likewise.
38410         * modules/gc-des-tests: Likewise.
38411         * modules/gc-hmac-md5-tests: Likewise.
38412         * modules/gc-hmac-sha1-tests: Likewise.
38413         * modules/gc-md2-tests: Likewise.
38414         * modules/gc-md4-tests: Likewise.
38415         * modules/gc-md5-tests: Likewise.
38416         * modules/gc-pbkdf2-sha1-tests: Likewise.
38417         * modules/gc-rijndael-tests: Likewise.
38418         * modules/gc-sha1-tests: Likewise.
38419         * modules/gc-tests: Likewise.
38420         * modules/getaddrinfo-tests: Likewise.
38421         * modules/hmac-md5-tests: Likewise.
38422         * modules/hmac-sha1-tests: Likewise.
38423         * modules/linked-list-tests: Likewise.
38424         * modules/linkedhash-list-tests: Likewise.
38425         * modules/lock-tests: Likewise.
38426         * modules/md2-tests: Likewise.
38427         * modules/md4-tests: Likewise.
38428         * modules/md5-tests: Likewise.
38429         * modules/rbtree-list-tests: Likewise.
38430         * modules/rbtree-oset-tests: Likewise.
38431         * modules/rbtreehash-list-tests: Likewise.
38432         * modules/read-file-tests: Likewise.
38433         * modules/rijndael-tests: Likewise.
38434         * modules/stdint-tests: Likewise.
38435         * modules/tls-tests: Likewise.
38436
38437 2007-02-24  Bruno Haible  <bruno@clisp.org>
38438
38439         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38440         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38441         function; instead check whether isnan with a double argument links.
38442         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38443         function; instead check whether isnan with a 'long double' argument
38444         links.
38445         Reported by Eric Blake <ebb9@byu.net>.
38446
38447 2007-02-24  Bruno Haible  <bruno@clisp.org>
38448
38449         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38450         defined.
38451         * lib/isnanl.c: Remove all code. Just include isnan.c.
38452         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38453
38454 2007-02-25  Jim Meyering  <jim@meyering.net>
38455
38456         Avoid conflicting types for 'unsetenv' on FreeBSD.
38457         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38458         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38459         in stdlib.h.
38460
38461 2007-02-24  Bruno Haible  <bruno@clisp.org>
38462
38463         * modules/isnanl-nolibm-tests: New file.
38464         * tests/test-isnanl.c: New file.
38465
38466         * modules/isnanl-nolibm: New file.
38467         * lib/isnanl.h: New file.
38468         * lib/isnanl.c: New file.
38469         * m4/isnanl.m4: New file.
38470
38471 2007-02-24  Bruno Haible  <bruno@clisp.org>
38472
38473         * modules/isnan-nolibm-tests: New file.
38474         * tests/test-isnan.c: New file.
38475
38476         * modules/isnan-nolibm: New file.
38477         * lib/isnan.h: New file.
38478         * lib/isnan.c: New file.
38479         * m4/isnan.m4: New file.
38480
38481 2007-02-24  Bruno Haible  <bruno@clisp.org>
38482
38483         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38484         assume that an exponent fits in 20 bits.
38485
38486 2007-02-24  Jim Meyering  <jim@meyering.net>
38487
38488         * m4/regex.m4: Update the description of the configure-time option,
38489         --without-included-regex, to state accurately what the defaults are,
38490         and perhaps to give people an idea why using this option is risky.
38491
38492 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38493
38494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38495         loops on small arguments.  This attempts to avoid the problem
38496         Bruno Haible reported for AIX 4.3.2 in
38497         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38498
38499 2007-02-23  Bruno Haible  <bruno@clisp.org>
38500
38501         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38502         Needed for help2man.
38503
38504 2007-02-23  Karl Berry  <karl@gnu.org>
38505
38506         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38507         exists, foo.h should be cvs-ignored, not committed.
38508
38509 2007-02-23  Eric Blake  <ebb9@byu.net>
38510
38511         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38512         * lib/stat-time.h (includes): Likewise.
38513         * lib/utimecmp.c (includes): Likewise.
38514         * lib/utimens.h (includes): Likewise.
38515         * lib/getdate.y (includes): Also include "timespec.h" for use
38516         internal to the module.
38517         * modules/utimens (Depends-on): Revert yesterday's patch.
38518         * modules/nanosleep (Depends-on): Add missing dependency.
38519
38520 2007-02-22  Bruno Haible  <bruno@clisp.org>
38521
38522         * lib/glob.c: Don't include getlogin_r.h.
38523
38524 2007-02-22  Jim Meyering  <jim@meyering.net>
38525
38526         * modules/utimens (Depends-on): Add timespec, required for
38527         utimens.h's inclusion of timespec.h.
38528
38529 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38530
38531         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38532         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38533         Schwab in
38534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38535         I'll try to think of a better way to fix the Solaris problem.
38536
38537         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38538         like glibc; on Solaris 10, it fails with errno == EINVAL.
38539         POSIX says the behavior is unspecified if the first argument is NULL,
38540         so play it safe and never pass NULL to the system getcwd.
38541
38542 2007-02-21  Jim Meyering  <jim@meyering.net>
38543
38544         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38545         of gettimeofday.  It would conflict with the one now always
38546         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38547         an IRIX 6.5 build failure.
38548
38549 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38550
38551         Minor fixups to port to Solaris 10 with Sun C 5.8.
38552         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38553         * modules/getcwd (Depends-on): Add dirfd.
38554         * lib/putenv.c (putenv): #undef it.
38555         (rpl_putenv): New decl.
38556         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38557
38558 2007-02-20  Bruno Haible  <bruno@clisp.org>
38559
38560         * modules/stdio-tests: New file.
38561         * tests/test-stdio.c: New file.
38562
38563         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38564         (Depends-on): Add stdio.
38565         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38566         (Include): Use <stdio.h> instead of vsnprintf.h.
38567         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38568         HAVE_DECL_VSNPRINTF.
38569         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38570
38571         * modules/snprintf (Files): Remove lib/snprintf.h.
38572         (Depends-on): Add stdio.
38573         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38574         (Include): Use <stdio.h> instead of snprintf.h.
38575         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38576         HAVE_DECL_SNPRINTF.
38577         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38578         * lib/getaddrinfo.c: Likewise.
38579
38580         * modules/stdio: New file.
38581         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38582         * lib/snprintf.h: Remove file.
38583         * lib/vsnprintf.h: Remove file.
38584         * lib/.cppi-disable: Remove snprintf.h.
38585         * m4/stdio_h.m4: New file.
38586         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38587
38588 2007-02-20  Jim Meyering  <jim@meyering.net>
38589
38590         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38591         used by e.g., mingw.  From Bruno Haible.
38592
38593 2007-02-19  Bruno Haible  <bruno@clisp.org>
38594
38595         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38596         warnings.
38597         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38598
38599 2007-02-19  Bruno Haible  <bruno@clisp.org>
38600
38601         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38602         from mingw users.
38603
38604 2007-02-19  Bruno Haible  <bruno@clisp.org>
38605
38606         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38607         warnings.
38608         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38609
38610 2007-02-19  Jim Meyering  <jim@meyering.net>
38611
38612         Don't use FD after a successful "fdopendir (fd)".
38613         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38614         Reset it by calling dirfd on the just-obtained DIR*.
38615
38616         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38617         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38618
38619 2007-02-18  Bruno Haible  <bruno@clisp.org>
38620
38621         * lib/readlink.c: Include <unistd.h>.
38622         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38623         HAVE_READLINK.
38624         * modules/readlink (Depends-on): Add unistd.
38625         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38626         (Include): Add <unistd.h>.
38627
38628         * lib/getlogin_r.h: Remove file.
38629         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38630         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38631         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38632         HAVE_DECL_GETLOGIN_R.
38633         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38635         (Include): Use <unistd.h> instead of getlogin_r.h.
38636
38637         * lib/getcwd.h: Remove file.
38638         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38639         * lib/xgetcwd.c: Likewise.
38640         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38641         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38642         * modules/getcwd (Files): Remove lib/getcwd.h.
38643         (Depends-on): Add unistd.
38644         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38645         (Include): Use <unistd.h> instad of getcwd.h.
38646
38647         * lib/ftruncate.c: Include <unistd.h> first.
38648         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38649         Set HAVE_FTRUNCATE.
38650         * modules/ftruncate (Depends-on): Add unistd.
38651         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38652
38653         * lib/fchdir.c: Include <unistd.h> first.
38654         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38656         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38657         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38658         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38659
38660         * lib/dup2.c: Include <unistd.h> first.
38661         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38662         HAVE_DUP2.
38663         * modules/dup2 (Depends-on): Add unistd.
38664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38665
38666         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38667         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38668         REPLACE_CHOWN. Don't define chown as a macro here.
38669         * modules/chown (Depends-on): Add unistd.
38670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38671
38672         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38673         Add definition for GL_LINK_WARNING.
38674         (chown, dup2): New declarations.
38675         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38676         link warning.
38677         (ftruncate): New declaration.
38678         (getcwd): New declaration, taken from old getcwd.h.
38679         (getlogin_r): New declaration, taken from old getlogin_r.h.
38680         (readlink): New declaration.
38681         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38682         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38683         (gl_PREREQ_UNISTD): Remove macro.
38684         (gl_UNISTD_MODULE_INDICATOR): New macro.
38685         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38686         many new variables. Don't set UNISTD_H.
38687         * modules/unistd (Description): Change.
38688         (Depends-on): Add link-warning.
38689         (configure.ac): Update.
38690         (Makefile.am): Create unistd.h always. Substitute many new variables
38691         into it.
38692
38693 2007-02-18  Bruno Haible  <bruno@clisp.org>
38694
38695         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38696         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38697         HAVE_GETSUBOPT.
38698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38699         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38700         * lib/getsubopt.h: Remove file.
38701         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38702         (Depends-on): Add stdlib.
38703         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38704         (Includes): Use <stdlib.h> instead of getsubopt.h.
38705         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38706         Set HAVE_GETSUBOPT.
38707         * lib/getsubopt.c: Don't include getsubopt.h.
38708
38709 2007-02-18  Bruno Haible  <bruno@clisp.org>
38710
38711         * modules/fchdir (Depends-on): Add dup2.
38712
38713 2007-02-18  Bruno Haible  <bruno@clisp.org>
38714
38715         * lib/stdlib_.h: Handle glibc's special invocation convention
38716         specially.
38717
38718 2007-02-18  Bruno Haible  <bruno@clisp.org>
38719
38720         * modules/stdlib-tests: New file.
38721         * tests/test-stdlib.c: New file.
38722
38723         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38724         (Depends-on): Add stdlib.
38725         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38726         (Includes): Use <stdlib.h> instead of mkstemp.h.
38727         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38728         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38729         * lib/mkstemp.c: Don't include mkstemp.h.
38730         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38731         * lib/stdlib--.h: Don't include mkstemp.h.
38732
38733         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38734         (Depends-on): Add stdlib.
38735         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38736         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38737         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38738         HAVE_MKDTEMP.
38739         * lib/mkdtemp.c: Don't include mkdtemp.h.
38740         * lib/clean-temp.c: Don't include mkdtemp.h.
38741
38742         * modules/exit (Files): Remove lib/exit.h.
38743         (Depends-on): Add stdlib.
38744         (Makefile.am): Remove lib_SOURCES.
38745         (Include): Use <stdlib.h> instead of exit.h.
38746         * lib/argmatch.c: Don't include exit.h.
38747         * lib/execute.c: Likewise.
38748         * lib/pagealign_alloc.c: Likewise.
38749         * lib/pipe.c: Likewise.
38750         * lib/wait-process.c: Likewise.
38751         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38752         * lib/exitfail.c: Likewise.
38753         * lib/savewd.c: Likewise.
38754         * lib/xsetenv.c: Likewise.
38755
38756         * modules/stdlib: New file.
38757         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38758         and extra comments about mkstemp().
38759         * lib/exit.h: Remove file.
38760         * lib/mkdtemp.h: Remove file.
38761         * lib/mkstemp.h: Remove file.
38762         * m4/stdlib_h.m4: New file.
38763         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38764
38765 2007-02-18  Bruno Haible  <bruno@clisp.org>
38766
38767         * modules/math-tests: New file.
38768         * tests/test-math.c: New file.
38769
38770         * modules/math: New file.
38771         * modules/mathl (Files): Remove lib/mathl.h.
38772         (Depends-on): Add math.
38773         (Makefile.am): Don't mention mathl.h.
38774         (Include): Use <math.h> instead of mathl.h.
38775         * lib/math_.h: New file.
38776         * lib/mathl.h: Remove file.
38777         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38778         mathl.h.
38779         * lib/asinl.c: Likewise.
38780         * lib/atanl.c: Likewise.
38781         * lib/ceill.c: Likewise.
38782         * lib/cosl.c: Likewise.
38783         * lib/expl.c: Likewise.
38784         * lib/floorl.c: Likewise.
38785         * lib/frexpl.c: Likewise.
38786         * lib/ldexpl.c: Likewise.
38787         * lib/logl.c: Likewise.
38788         * lib/sincosl.c: Likewise.
38789         * lib/sinl.c: Likewise.
38790         * lib/sqrtl.c: Likewise.
38791         * lib/tanl.c: Likewise.
38792         * lib/trigl.c: Likewise.
38793         * m4/math_h.m4: New file.
38794         * MODULES.html.sh (Mathematics): Add math.
38795
38796 2007-02-17  Bruno Haible  <bruno@clisp.org>
38797
38798         * modules/wctype-tests: New file.
38799         * tests/test-wctype.c: New file.
38800
38801         * modules/wchar-tests: New file.
38802         * tests/test-wchar.c: New file.
38803
38804         * modules/unistd-tests: New file.
38805         * tests/test-unistd.c: New file.
38806
38807         * modules/time-tests: New file.
38808         * tests/test-time.c: New file.
38809
38810         * modules/sysexits-tests: New file.
38811         * tests/test-sysexits.c: New file.
38812
38813         * modules/sys_time-tests: New file.
38814         * tests/test-sys_time.c: New file.
38815
38816         * modules/sys_stat-tests: New file.
38817         * tests/test-sys_stat.c: New file.
38818
38819         * modules/sys_socket-tests: New file.
38820         * tests/test-sys_socket.c: New file.
38821
38822         * modules/sys_select-tests: New file.
38823         * tests/test-sys_select.c: New file.
38824
38825         * modules/string-tests: New file.
38826         * tests/test-string.c: New file.
38827
38828         * modules/stdbool-tests: New file.
38829         * tests/test-stdbool.c: New file.
38830
38831         * modules/netinet_in-tests: New file.
38832         * tests/test-netinet_in.c: New file.
38833
38834         * modules/inttypes-tests: New file.
38835         * tests/test-inttypes.c: New file.
38836
38837         * modules/fcntl-tests: New file.
38838         * tests/test-fcntl.c: New file.
38839
38840         * modules/byteswap-tests: New file.
38841         * tests/test-byteswap.c: New file.
38842
38843         * modules/arpa_inet-tests: New file.
38844         * tests/test-arpa_inet.c: New file.
38845
38846 2007-02-17  Bruno Haible  <bruno@clisp.org>
38847
38848         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38849         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38850         if the corresponding module is not enabled. Emit link warnings if
38851         the function is used nevertheless.
38852         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38853         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38854         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38855         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38856         * modules/inttypes (Depends-on): Add link-warning.
38857         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38858         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38859         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38860         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38861         * modules/imaxdiv (configure.ac): Likewise.
38862         * modules/strtoimax (configure.ac): Likewise.
38863         * modules/strtoumax (configure.ac): Likewise.
38864
38865 2007-02-17  Bruno Haible  <bruno@clisp.org>
38866
38867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38868         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38869         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38870         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38871
38872 2007-02-17  Bruno Haible  <bruno@clisp.org>
38873
38874         * modules/link-warning: New file.
38875         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38876         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38877         * modules/string (Depends-on): Add link-warning.
38878         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38879         string.h.
38880         * MODULES.html.sh (Support for building libraries and executables): Add
38881         link-warning.
38882
38883 2007-02-17  Bruno Haible  <bruno@clisp.org>
38884
38885         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38886         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38887         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38888         long lines.
38889
38890 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38891             Bruno Haible  <bruno@clisp.org>
38892
38893         * modules/tmpfile: New file.
38894         * lib/tmpfile.c: New file.
38895         * m4/tmpfile.m4: New file.
38896         * MODULES.html.sh (func_all_modules): New section "Input/output".
38897
38898 2007-02-15  Bruno Haible  <bruno@clisp.org>
38899
38900         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38901         (supports_delete_on_close): New function.
38902         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38903
38904 2007-02-14  Bruno Haible  <bruno@clisp.org>
38905
38906         * modules/mbspcasecmp-tests: New file.
38907         * tests/test-mbspcasecmp.sh: New file.
38908         * tests/test-mbspcasecmp.c: New file.
38909
38910         New module mbspcasecmp.
38911         * modules/mbspcasecmp: New file.
38912         * lib/mbspcasecmp.c: New file.
38913         * lib/string_.h (strncasecmp): Change warning message.
38914         (mbspcasecmp): New declaration.
38915         * m4/mbspcasecmp.m4: New file.
38916         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38917         GNULIB_MBSPCASECMP.
38918         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38919         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38920
38921 2007-02-14  Bruno Haible  <bruno@clisp.org>
38922
38923         * modules/mbsncasecmp-tests: New file.
38924         * tests/test-mbsncasecmp.sh: New file.
38925         * tests/test-mbsncasecmp.c: New file.
38926
38927         New module mbsncasecmp.
38928         * modules/mbsncasecmp: New file.
38929         * lib/mbsncasecmp.c: New file.
38930         * lib/string_.h (mbsncasecmp): New declaration.
38931         * m4/mbsncasecmp.m4: New file.
38932         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38933         GNULIB_MBSNCASECMP.
38934         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38935         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38936
38937 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38938
38939         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38940         Verify that it doesn't overlap with our flags.
38941         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38942         do not have the desired effect in multibyte locales; instead, use
38943         mbscasecmp.
38944         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38945         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38946         we don't require GNU fnmatch ourselves (if our users require it, they
38947         should do so explicitly).
38948
38949         Fix regex code so it doesn't rely on strcasecmp.
38950         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38951         Otherwise, include gnulib's langinfo.h.
38952         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38953         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38954         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38955         * modules/regex (FILES): Remove m4/codeset.m4.
38956         (Depends-on): Add localcharset.  Remove strcase.
38957
38958 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38959
38960         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38961         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38962
38963 2007-02-13  Bruno Haible  <bruno@clisp.org>
38964
38965         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38966         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38967
38968 2007-02-12  Bruno Haible  <bruno@clisp.org>
38969
38970         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38971         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38972         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38973         time warning rather than a link error.
38974
38975 2007-02-12  Bruno Haible  <bruno@clisp.org>
38976
38977         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38978         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38980
38981 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38982
38983         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38984         args, not 2.
38985
38986 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38987
38988         New module 'time', so that apps can include <time.h> as per
38989         POSIX and GNU instead of separate include files like time_r.h
38990         and timegm.h.  This implementation tries out a simpler approach
38991         for replacing decls in standard include files (as compared to
38992         the string module), somewhat as an experiment.
38993
38994         * config/srclist.txt: Comment out mktime.c for now.
38995         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38996         since it doesn't apply any more.  Use generic wording instead.
38997         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38998         'time'.
38999         * lib/time_.h, m4/time_h.m4, modules/time: New files.
39000         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
39001         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
39002         Don't include <sys/types.h>; no longer needed since we assume C89.
39003         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
39004         * lib/strftime.c: Likewise.
39005         * lib/time_r.c: Likewise.
39006         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
39007         * lib/nanosleep.c: Include <time.h> first, to check interface.
39008         * lib/strptime.c: Likewise.
39009         * lib/time_r.c: Likewise.
39010         * lib/timegm.c: Likewise.
39011         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
39012         needed.
39013         * lib/timegm.c: Don't include timegm.h; no longer needed.
39014         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
39015         time.h now handles any problems in that area.
39016         (struct timespec, nanosleep): Remove; time.h now arranges for these.
39017         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
39018         that time.h defines struct timespec.
39019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
39020         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
39021         handles that.
39022         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
39023         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
39024         needed.  Set REPLACE_LOCALTIME.
39025         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
39026         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
39027         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
39028         nanosleep; time_h.m4 now does that.  Don't require
39029         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
39030         module handles this now.
39031         * modules/getdate (Depends-on): Remove timespec.  Add time.
39032         * modules/nanosleep (Depends-on): Likewise.
39033         * modules/stat-time (Depends-on): Likewise.
39034         * modules/nanosleep (Include): Include time.h, not timespec.h.
39035         * modules/strptime (Files): Remove lib/strptime.h.
39036         (Depends-on): Add extensions, time.
39037         (Include): Include time.h, not strptime.h.
39038         * modules/time_r (Files): Remove lib/time_r.h.
39039         (Depends-on): Add time.
39040         (Include): Include time.h, not time_r.h.
39041         * modules/timegm: Likewise.
39042         * modules/timespec (Description): Now does timespec-related decls
39043         of our own, instead of struct timespec itself.
39044         (Depends-on): Add time; remove extensions.
39045         (Maintainer): Add self.
39046         * modules/utimecmp (Depends-on): Add time; remove timespec.
39047         * modules/utimens (Depends-on): Likewise.
39048         * modules/xnanosleep (Depends-on): Likewise.
39049
39050 2007-02-11  Bruno Haible  <bruno@clisp.org>
39051
39052         * lib/c-strstr.c: Include allocsa.h.
39053         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39054         * lib/c-strcasestr.c: Include allocsa.h.
39055         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39056         * lib/strcasestr.c: Include allocsa.h.
39057         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39058         * lib/mbsstr.c: Include allocsa.h.
39059         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39060         allocsa/freesa instead of malloc/free.
39061         * lib/mbscasestr.c: Include allocsa.h.
39062         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39063         allocsa/freesa instead of malloc/free.
39064         * modules/c-strstr (Depends-on): Add allocsa.
39065         * modules/c-strcasestr (Depends-on): Likewise.
39066         * modules/strcasestr (Depends-on): Likewise.
39067         * modules/mbsstr (Depends-on): Likewise.
39068         * modules/mbscasestr (Depends-on): Likewise.
39069
39070 2007-02-11  Bruno Haible  <bruno@clisp.org>
39071
39072         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
39073
39074         * modules/mbsspn-tests: New file.
39075         * tests/test-mbsspn.sh: New file.
39076         * tests/test-mbsspn.c: New file.
39077
39078 2007-02-11  Bruno Haible  <bruno@clisp.org>
39079
39080         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
39081
39082         * modules/mbspbrk-tests: New file.
39083         * tests/test-mbspbrk.sh: New file.
39084         * tests/test-mbspbrk.c: New file.
39085
39086 2007-02-11  Bruno Haible  <bruno@clisp.org>
39087
39088         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
39089         unneeded cast.
39090
39091         * modules/mbscspn-tests: New file.
39092         * tests/test-mbscspn.sh: New file.
39093         * tests/test-mbscspn.c: New file.
39094
39095 2007-02-11  Bruno Haible  <bruno@clisp.org>
39096
39097         * modules/mbscasecmp-tests: New file.
39098         * tests/test-mbscasecmp.sh: New file.
39099         * tests/test-mbscasecmp.c: New file.
39100
39101 2007-02-11  Bruno Haible  <bruno@clisp.org>
39102
39103         Ensure O(n) worst-case complexity of mbscasestr.
39104         * lib/mbscasestr.c: Include stdbool.h.
39105         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39106         functions.
39107         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
39108         the bookkeeping indicates that it's worth it.
39109         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
39110
39111         * modules/mbscasestr-tests: New file.
39112         * tests/test-mbscasestr1.c: New file.
39113         * tests/test-mbscasestr2.sh: New file.
39114         * tests/test-mbscasestr2.c: New file.
39115         * tests/test-mbscasestr3.sh: New file.
39116         * tests/test-mbscasestr3.c: New file.
39117         * tests/test-mbscasestr4.sh: New file.
39118         * tests/test-mbscasestr4.c: New file.
39119         * m4/locale-tr.m4: New file.
39120
39121 2007-02-11  Bruno Haible  <bruno@clisp.org>
39122
39123         Ensure O(n) worst-case complexity of mbsstr.
39124         * lib/mbsstr.c: Include stdbool.h.
39125         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39126         functions.
39127         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
39128         bookkeeping indicates that it's worth it.
39129         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
39130
39131         * modules/mbsstr-tests: New file.
39132         * tests/test-mbsstr1.c: New file.
39133         * tests/test-mbsstr2.sh: New file.
39134         * tests/test-mbsstr2.c: New file.
39135         * tests/test-mbsstr3.sh: New file.
39136         * tests/test-mbsstr3.c: New file.
39137         * m4/locale-fr.m4: New file.
39138
39139 2007-02-11  Bruno Haible  <bruno@clisp.org>
39140
39141         * lib/mbsrchr.c (mbsrchr): Fix bug.
39142
39143         * modules/mbsrchr-tests: New file.
39144         * tests/test-mbsrchr.sh: New file.
39145         * tests/test-mbsrchr.c: New file.
39146
39147 2007-02-11  Bruno Haible  <bruno@clisp.org>
39148
39149         * lib/mbschr.c (mbschr): Fix bug.
39150
39151         * modules/mbschr-tests: New file.
39152         * tests/test-mbschr.sh: New file.
39153         * tests/test-mbschr.c: New file.
39154         * m4/locale-zh.m4: New file.
39155
39156 2007-02-11  Bruno Haible  <bruno@clisp.org>
39157
39158         Support for copying multibyte string iterators.
39159         * lib/mbiter.h: Include <string.h>.
39160         (mbiter_multi_copy): New function.
39161         (mbi_copy): New macro.
39162         * lib/mbuiter.h: Include <string.h>.
39163         (mbuiter_multi_copy): New function.
39164         (mbui_copy): New macro.
39165
39166 2007-02-11  Bruno Haible  <bruno@clisp.org>
39167
39168         New module mbslen.
39169         * modules/mbslen: New file.
39170         * lib/mbslen.c: New file.
39171         * lib/string_.h (mbslen): New declaration.
39172         * m4/mbslen.m4: New file.
39173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39174         GNULIB_MBSLEN.
39175         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
39176         * MODULES.html.sh (Internationalization functions): Add mbslen.
39177
39178 2007-02-11  Bruno Haible  <bruno@clisp.org>
39179
39180         Ensure O(n) worst-case complexity of strcasestr substitute.
39181         * lib/strcasestr.c: Include stdbool.h.
39182         (knuth_morris_pratt): New function.
39183         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39184         bookkeeping indicates that it's worth it.
39185         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
39186
39187         * modules/strcasestr-tests: New file.
39188         * tests/test-strcasestr.c: New file.
39189
39190 2007-02-11  Bruno Haible  <bruno@clisp.org>
39191
39192         Ensure O(n) worst-case complexity of c_strcasestr.
39193         * lib/c-strcasestr.c: Include stdbool.h, string.h.
39194         (knuth_morris_pratt): New function.
39195         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
39196         the bookkeeping indicates that it's worth it.
39197         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
39198
39199         * modules/c-strcasestr-tests: New file.
39200         * tests/test-c-strcasestr.c: New file.
39201
39202 2007-02-11  Bruno Haible  <bruno@clisp.org>
39203
39204         Ensure O(n) worst-case complexity of c_strstr.
39205         * lib/c-strstr.c: Include stdbool.h, string.h.
39206         (knuth_morris_pratt): New function.
39207         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39208         bookkeeping indicates that it's worth it.
39209         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
39210
39211         * lib/c-strstr.c: Complete rewrite for maintainability.
39212
39213         * modules/c-strstr-tests: New file.
39214         * tests/test-c-strstr.c: New file.
39215
39216 2007-02-11  Bruno Haible  <bruno@clisp.org>
39217
39218         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
39219         5.2.1 and earlier, whereby \055 was treated just like the range
39220         delimiter '-'.
39221         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39222
39223 2007-02-08  Bruno Haible  <bruno@clisp.org>
39224
39225         * modules/regex (Depends-on): Add stdbool.
39226         Reported by Dalibor Topic <robilad@kaffe.org>.
39227
39228 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39229
39230         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39231         Prefer returning from main to exiting from it.
39232         Remove unnecessary parens after sizeof.
39233
39234 2007-02-05  Bruno Haible  <bruno@clisp.org>
39235
39236         New module mbssep.
39237         * modules/mbssep: New file.
39238         * lib/mbssep.c: New file.
39239         * lib/string_.h (strsep): Add a conditional link warning.
39240         (mbssep): New declaration.
39241         * m4/mbssep.m4: New file.
39242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39243         GNULIB_MBSSEP.
39244         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39245         * MODULES.html.sh (Internationalization functions): Add mbssep.
39246
39247 2007-02-05  Bruno Haible  <bruno@clisp.org>
39248
39249         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39250         Optimize search in case of 1 delimiter.
39251
39252 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39253
39254         * lib/acl.h: Include sys/types.h before sys/acl.h.
39255
39256 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39257
39258         Merge upstream fix for glibc bugzilla #3957:
39259
39260         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39261
39262         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39263         bit for RE_HAT_LISTS_NOT_NEWLINE.
39264         (build_charclass_op): Remove bogus comment.
39265
39266 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39267
39268         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39269
39270 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39271
39272         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39273         * lib/memmem.c [!defined _LIBC]: Include config.h.
39274
39275 2007-02-04  Bruno Haible  <bruno@clisp.org>
39276
39277         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39278         warning message.
39279
39280 2007-02-04  Bruno Haible  <bruno@clisp.org>
39281
39282         New module mbstok_r.
39283         * modules/mbstok_r: New file.
39284         * lib/mbstok_r.c: New file.
39285         * lib/string_.h (strtok_r): Change argument names to match the
39286         comments. Add a conditional link warning.
39287         (mbstok_r): New declaration.
39288         * m4/mbstok_r.m4: New file.
39289         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39290         GNULIB_MBSTOK_R.
39291         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39292         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39293
39294 2007-02-04  Bruno Haible  <bruno@clisp.org>
39295
39296         New module mbsspn.
39297         * modules/mbsspn: New file.
39298         * lib/mbsspn.c: New file.
39299         * lib/string_.h (strspn): Add a conditional link warning.
39300         (mbsspn): New declaration.
39301         * m4/mbsspn.m4: New file.
39302         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39303         GNULIB_MBSSPN.
39304         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39305         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39306
39307 2007-02-04  Bruno Haible  <bruno@clisp.org>
39308
39309         New module mbspbrk.
39310         * modules/mbspbrk: New file.
39311         * lib/mbspbrk.c: New file.
39312         * lib/string_.h (strpbrk): Add a conditional link warning.
39313         (mbspbrk): New declaration.
39314         * m4/mbspbrk.m4: New file.
39315         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39316         GNULIB_MBSPBRK.
39317         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39318         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39319
39320 2007-02-04  Bruno Haible  <bruno@clisp.org>
39321
39322         New module mbscspn.
39323         * modules/mbscspn: New file.
39324         * lib/mbscspn.c: New file.
39325         * lib/string_.h (strcspn): Add a conditional link warning.
39326         (mbscspn): New declaration.
39327         * m4/mbscspn.m4: New file.
39328         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39329         GNULIB_MBSCSPN.
39330         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39331         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39332
39333 2007-02-04  Bruno Haible  <bruno@clisp.org>
39334
39335         New module mbscasestr, reduced goal of strcasestr.
39336         * modules/mbscasestr: New file.
39337         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39338         (mbscasestr): Renamed from strcasestr.
39339         * lib/strcasestr.c: Don't include mbuiter.h.
39340         (strcasestr): Remove support for multibyte locales.
39341         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39342         Change the conditional link warning.
39343         (mbscasestr): New declaration.
39344         * m4/mbscasestr.m4: New file.
39345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39346         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39347         REPLACE_STRCASESTR.
39348         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39350         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39351         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39352         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39353         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39354         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39355         (Depends-on): Remove mbuiter.
39356         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39357
39358 2007-02-04  Bruno Haible  <bruno@clisp.org>
39359
39360         Simplify handling of strncasecmp.
39361         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39362         the conditional link warning.
39363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39364         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39365         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39366         * modules/strcase (configure.ac): Don't invoke
39367         gl_STRING_MODULE_INDICATOR.
39368         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39369
39370 2007-02-04  Bruno Haible  <bruno@clisp.org>
39371
39372         New module mbscasecmp, reduced goal of strcasecmp.
39373         * modules/mbscasecmp: New file.
39374         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39375         (mbscasecmp): Renamed from strcasecmp.
39376         * lib/strcasecmp.c: Don't include mbuiter.h.
39377         (strcasecmp): Remove support for multibyte locales.
39378         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39379         Change the conditional link warning.
39380         (mbscasecmp): New declaration.
39381         * m4/mbscasecmp.m4: New file.
39382         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39383         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39384         REPLACE_STRCASECMP.
39385         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39387         GNULIB_MBSCASECMP.
39388         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39389         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39390         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39391         (Depends-on): Remove mbuiter.
39392         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39393
39394 2007-02-04  Bruno Haible  <bruno@clisp.org>
39395
39396         New module mbsstr. Remove module strstr.
39397         * modules/mbsstr: New file.
39398         * modules/strstr: Remove file.
39399         * lib/mbsstr.c: Renamed from lib/strstr.c.
39400         (mbsstr): Renamed from strstr.
39401         * lib/string_.h (strstr): Remove declaration. Change the conditional
39402         link warning.
39403         (mbsstr): New declaration.
39404         * m4/mbsstr.m4: New file.
39405         * m4/strstr.m4: Remove file.
39406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39407         REPLACE_STRSTR.
39408         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39409         Don't initialize GNULIB_STRSTR.
39410         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39411         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39412         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39413         (Support for systems lacking ANSI C 89): Remove strstr.
39414
39415 2007-02-04  Bruno Haible  <bruno@clisp.org>
39416
39417         New module mbsrchr.
39418         * modules/mbsrchr: New file.
39419         * lib/mbsrchr.c: New file.
39420         * lib/string_.h (strrchr): Add a conditional link warning.
39421         (mbsrchr): New declaration.
39422         * m4/mbsrchr.m4: New file.
39423         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39424         GNULIB_MBSRCHR.
39425         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39426         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39427
39428 2007-02-04  Bruno Haible  <bruno@clisp.org>
39429
39430         New module mbschr.
39431         * modules/mbschr: New file.
39432         * lib/mbschr.c: New file.
39433         * lib/string_.h (strchr): Add a conditional link warning.
39434         (mbschr): New declaration.
39435         * m4/mbschr.m4: New file.
39436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39437         GNULIB_MBSCHR.
39438         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39439         * MODULES.html.sh (Internationalization functions): Add mbschr.
39440
39441 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39442
39443         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39444
39445         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39446
39447 2007-02-04  Bruno Haible  <bruno@clisp.org>
39448
39449         New module description section 'configure.ac-early'.
39450         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39451         (func_get_autoconf_early_snippet): New function.
39452         (func_import, func_create_testdir): Use it. Remove special cases for
39453         modules 'extensions' and 'lock'.
39454         * modules/extensions (configure.ac-early): Require
39455         gl_USE_SYSTEM_EXTENSIONS.
39456         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39457
39458 2007-02-04  Bruno Haible  <bruno@clisp.org>
39459
39460         Make use of gcj-4.3's -fsource and -ftarget option.
39461         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39462         and if so try the options -fsource and -ftarget.
39463         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39464         source_version, ftarget_option, target_version arguments.
39465         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39466         (is_envjavac_oldgcj_14_14_usable): Renamed from
39467         is_envjavac_gcj_14_14_usable.
39468         (is_envjavac_oldgcj_14_13_usable): Renamed from
39469         is_envjavac_gcj_14_13_usable.
39470         (is_gcj_present): Update.
39471         (is_gcj_43, is_gcj43_usable): New functions.
39472         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39473         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39474         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39475         try the options -fsource and -ftarget.
39476
39477 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39478
39479         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39480         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39481         larger value.
39482
39483 2007-02-03  Jim Meyering  <jim@meyering.net>
39484
39485         Give tools a better chance to allocate space for very large buffers.
39486         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39487
39488         Make pwd and readlink work also when run with an unreadable parent dir
39489         on systems with openat support.
39490         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39491         provided getcwd function, even when we have openat support.
39492         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39493
39494 2007-02-02  Bruno Haible  <bruno@clisp.org>
39495
39496         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39497         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39498         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39499         portability problems if one of these functions is only used on specific
39500         platforms.
39501         Reported by Paul Eggert.
39502
39503 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39504
39505         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39506         is causing more trouble than it's curing.
39507         * lib/regex_internal.h (__mempcpy): Remove.
39508         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39509         (and make the code a tad smaller to boot).
39510         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39511
39512 2007-02-02  Jim Meyering  <jim@meyering.net>
39513
39514         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39515         section, not in the Makefile.am: one.
39516
39517 2007-02-02  Eric Blake  <ebb9@byu.net>
39518
39519         * lib/strchrnul.c: Always include config.h first.
39520
39521         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39522         gnulib strstr is not necessary here.
39523
39524 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39525
39526         * m4/socklen.m4: Fix typo.
39527
39528 2007-02-02  Eric Blake  <ebb9@byu.net>
39529
39530         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39531         * modules/netinet_in (Makefile.am): Likewise.
39532
39533 2007-02-01  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/string_.h (GL_LINK_WARNING): New macro.
39536         (strcasecmp, strstr, strcasestr): If provided by the system,
39537         conditionally define as a macro that leads to a warning instead of to
39538         an error.
39539         (strncasecmp): Conditionally define as a macro that leads to a warning.
39540
39541 2007-02-01  Karl Berry  <karl@gnu.org>
39542
39543         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39544
39545 2007-02-01  Bruno Haible  <bruno@clisp.org>
39546
39547         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39548         renamings.
39549
39550 2007-02-01  Eric Blake  <ebb9@byu.net>
39551
39552         * modules/regex (Depends-on): Revert dependence on mempcpy.
39553         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39554         module's definition of mempcpy.
39555         Reported by Paul Eggert.
39556
39557 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39558
39559         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39560         the symbol XYZ before redefining it.  This fixes a problem with
39561         programs that don't use XYZ, when compiled on systems that define
39562         XYZ to something else.
39563
39564 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39565
39566         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39567         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39568         writeable to group or other and (2) is intended to have a special
39569         mode bit that is set or cleared.  In such a case, the directory
39570         should be neither group- nor other-writeable until the special
39571         mode bits are right.
39572
39573 2007-01-31  Eric Blake  <ebb9@byu.net>
39574
39575         * modules/mountlist (Depends-on): Add strstr.
39576
39577         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39578         bug.
39579         * modules/string (Makefile.am): Remove redundant replacement.
39580         * modules/regex (Depends-on): Add mempcpy.
39581
39582 2007-01-31  Bruno Haible  <bruno@clisp.org>
39583
39584         New module description field 'Link'.
39585         * gnulib-tool (func_usage): Document --extract-link-directive.
39586         (sed_extract_prog): Recognize 'Link' directive.
39587         (func_get_link_directive): New function.
39588         (func_import): Show summary of link directives.
39589         Handle --extract-link-directive option.
39590         * modules/acl (Link): New section.
39591         * modules/clock-time (Link): New section.
39592         * modules/euidaccess (Link): New section.
39593         * modules/gettext (Link): New section.
39594         * modules/iconv (Link): New section.
39595         * modules/lock (Link): New section.
39596         * modules/nanosleep (Link): New section.
39597         * modules/readline (Link): New section.
39598
39599 2007-01-27  Bruno Haible  <bruno@clisp.org>
39600
39601         Enforce the use of gnulib modules for unportable <string.h> functions.
39602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39603         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39604         (gl_HEADER_STRING_H_BODY): Require it.
39605         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39606         the symbol XYZ to one that gives a link error.
39607         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39608         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39609         * modules/mempcpy (configure.ac): Likewise.
39610         * modules/memrchr (configure.ac): Likewise.
39611         * modules/stpcpy (configure.ac): Likewise.
39612         * modules/stpncpy (configure.ac): Likewise.
39613         * modules/strcase (configure.ac): Likewise.
39614         * modules/strcasestr (configure.ac): Likewise.
39615         * modules/strchrnul (configure.ac): Likewise.
39616         * modules/strdup (configure.ac): Likewise.
39617         * modules/strndup (configure.ac): Likewise.
39618         * modules/strnlen (configure.ac): Likewise.
39619         * modules/strpbrk (configure.ac): Likewise.
39620         * modules/strsep (configure.ac): Likewise.
39621         * modules/strstr (configure.ac): Likewise.
39622         * modules/strtok_r (configure.ac): Likewise.
39623
39624 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39625
39626         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39627
39628 2007-01-30  Jim Meyering  <jim@meyering.net>
39629
39630         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39631
39632 2007-01-29  Bruno Haible  <bruno@clisp.org>
39633
39634         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39635         * lib/execute.c: Likewise.
39636         * lib/pipe.c: Likewise.
39637         * lib/printf-args.h: Likewise.
39638         * lib/printf-args.c: Likewise.
39639         * lib/printf-parse.c: Likewise.
39640         * lib/vasnprintf.c: Likewise.
39641
39642 2007-01-29  Eric Blake  <ebb9@byu.net>
39643
39644         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39645         declaration.
39646
39647 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39648
39649         * lib/strptime.h (strptime): Use 'restrict' for args where
39650         POSIX requires this.
39651         * lib/strptime.c (strptime): Likewise.
39652         Change license notice from LGPL to GPL, since gnulib-tool will
39653         change this as needed.
39654         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39655         defined.
39656         Include "strptime.h" first, to check interface.
39657         Do not #undef _LIBC and _NL_CURRENT.
39658         Do not include <stdlib.h>; no longer needed.
39659         Include "time_r.h" and declare ptime_locale_status
39660         only if _LIBC is not defined.
39661         (__P): Remove unused macro.
39662         (match_string): Bring back glibc version, but use it only if _LIBC
39663         is defined.
39664         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39665         Remove unnecessary assertion and abort() call.
39666         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39667         * m4/strptime.m4: Fix serial number comment.
39668         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39669         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39670         (Depends-on): Add time_r.
39671
39672 2007-01-29  Bruno Haible  <bruno@clisp.org>
39673
39674         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39675         strptime.
39676         * modules/strptime (Depends-on): Add stdbool.
39677         * lib/strptime.h: Include <time.h> always. Add comments.
39678
39679 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39680
39681         * modules/strptime: New file.
39682         * lib/strptime.h: New file.
39683         * lib/strptime.c: New file.
39684         * m4/strptime.m4: New file.
39685
39686 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39687
39688         * MODULES.html.sh: New module mpsort.
39689         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39690
39691         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39692         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39694         All uses changed.
39695         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39696         All uses changed.
39697         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39698         to _Restrict_.
39699         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39700         the parameter matches the prototype.
39701
39702 2007-01-28  Jim Meyering  <jim@meyering.net>
39703
39704         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39705         sys/time.h here, reverting that part of the previous patch:
39706         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39707
39708 2007-01-28  Bruno Haible  <bruno@clisp.org>
39709
39710         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39711         value of $(SYS_TIME_H).
39712         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39713         remove it conditionally, too. [added by Jim Meyering]
39714         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39715         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39716         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39717         GETTIMEOFDAY_REPLACEMENT to 1.
39718
39719 2007-01-28  Bruno Haible  <bruno@clisp.org>
39720
39721         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39722         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39724         Set UNISTD_H instead of UNISTD_H2.
39725         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39726
39727 2007-01-28  Bruno Haible  <bruno@clisp.org>
39728
39729         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39730         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39731
39732 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39733
39734         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39735         (func_create_testdir): Ensure C locale for `grep' and `tr'
39736         character ranges.
39737         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39738         ACLOCAL_AMFLAGS parsing state machine.
39739
39740 2007-01-27  Bruno Haible  <bruno@clisp.org>
39741
39742         * modules/unistr/base: Update.
39743
39744 2007-01-27  Bruno Haible  <bruno@clisp.org>
39745
39746         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39747         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39748         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39749         modules/unistr/u32-mbtouc.
39750         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39751         * lib/unistr.h: Update.
39752         * lib/linebreak.c: Update.
39753         * modules/unistr/u32-mbtouc: Renamed from
39754         modules/unistr/u32-mbtouc-safe.
39755         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39756         * lib/unistr.h: Update.
39757         * lib/unistr/u32-to-u8.c: Update.
39758         * lib/unistr/u32-to-u16.c: Update.
39759
39760 2007-01-27  Bruno Haible  <bruno@clisp.org>
39761
39762         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39763         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39764         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39765         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39766         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39767         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39768         modules/unistr/u16-mbtouc.
39769         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39770         * lib/unistr.h: Update.
39771         * lib/linebreak.c: Update.
39772         * modules/linebreak: Update.
39773         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39774         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39775         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39776         * modules/unistr/u16-mbtouc: Renamed from
39777         modules/unistr/u16-mbtouc-safe.
39778         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39779         * lib/unistr.h: Update.
39780         * lib/unistr/u16-to-u8.c: Update.
39781         * modules/unistr/u16-to-u8: Update.
39782         * lib/unistr/u16-to-u32.c: Update.
39783         * modules/unistr/u16-to-u32: Update.
39784
39785 2007-01-27  Bruno Haible  <bruno@clisp.org>
39786
39787         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39788         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39789         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39790         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39791         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39792         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39793         modules/unistr/u8-mbtouc.
39794         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39795         * lib/unistr.h: Update.
39796         * lib/striconveh.c: Update.
39797         * modules/striconveh: Update.
39798         * lib/linebreak.c: Update.
39799         * modules/linebreak: Update.
39800         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39801         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39802         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39803         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39804         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39805         * lib/unistr.h: Update.
39806         * lib/striconveh.c: Update.
39807         * modules/striconveh: Update.
39808         * lib/unistr/u8-to-u16.c: Update.
39809         * modules/unistr/u8-to-u16: Update.
39810         * lib/unistr/u8-to-u32.c: Update.
39811         * modules/unistr/u8-to-u32: Update.
39812
39813 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39814
39815         Sync from Libtool.
39816         * lib/argz.c: Do not include strings.h nor memory.h, include
39817         string.h unconditionally.  Patch by Simon Josefsson.
39818
39819 2007-01-27  Bruno Haible  <bruno@clisp.org>
39820
39821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39822         from gl_HEADER_STRING_H_BODY.
39823         (gl_HEADER_STRING_H_BODY): Require it.
39824         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39825         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39826         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39827         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39828         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39829         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39830         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39831         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39832         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39833         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39834         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39835         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39836         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39837         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39838         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39839
39840 2007-01-27  Bruno Haible  <bruno@clisp.org>
39841
39842         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39843         check_PROGRAMS into noinst_PROGRAMS.
39844         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39845         check_PROGRAMS in this case.
39846         (func_import): Set for_test to false.
39847         (func_create_testdir): Set for_test to true.
39848
39849 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39850             Bruno Haible  <bruno@clisp.org>
39851
39852         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39853         (Depends-on): Add string.
39854         (Includes): Use <string.h> instead of strcasestr.h.
39855         * modules/string (Makefile.am): Also substitute the value of
39856         REPLACE_STRCASESTR.
39857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39858         assume strcasestr is declared in <string.h> not <strings.h>. Also
39859         set REPLACE_STRCASESTR.
39860         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39861         REPLACE_STRCASESTR.
39862         * lib/strcasestr.h: Remove file.
39863         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39864         * lib/string_.h (strcasestr): New declaration.
39865
39866 2007-01-27  Bruno Haible  <bruno@clisp.org>
39867
39868         * lib/string_.h: Use 'extern'.
39869
39870 2007-01-27  Jim Meyering  <jim@meyering.net>
39871
39872         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39873         of set-but-not-used local, "q".
39874
39875         * lib/mempcpy.c: Include <config.h> before <string.h>.
39876         This fixes a compilation error on HP-UX, due to the system's
39877         "restrict"-using mempcpy prototype.
39878
39879 2007-01-26  Bruno Haible  <bruno@clisp.org>
39880
39881         Small optimization.
39882         * lib/javacomp.c: Include c-strstr.h.
39883          (is_envjavac_gcj): Use c_strstr instead of strstr.
39884         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39885
39886 2007-01-26  Bruno Haible  <bruno@clisp.org>
39887
39888         * MODULES.html.sh (Unicode string functions): Add the new modules.
39889
39890         * modules/uniconv/u32-strconv-to-locale: New file.
39891         * lib/uniconv/u32-strconv-to-locale.c: New file.
39892
39893         * modules/uniconv/u16-strconv-to-locale: New file.
39894         * lib/uniconv/u16-strconv-to-locale.c: New file.
39895
39896         * modules/uniconv/u8-strconv-to-locale: New file.
39897         * lib/uniconv/u8-strconv-to-locale.c: New file.
39898
39899         * modules/uniconv/u32-strconv-from-locale: New file.
39900         * lib/uniconv/u32-strconv-from-locale.c: New file.
39901
39902         * modules/uniconv/u16-strconv-from-locale: New file.
39903         * lib/uniconv/u16-strconv-from-locale.c: New file.
39904
39905         * modules/uniconv/u8-strconv-from-locale: New file.
39906         * lib/uniconv/u8-strconv-from-locale.c: New file.
39907
39908         * modules/uniconv/u32-strconv-to-enc: New file.
39909         * lib/uniconv/u32-strconv-to-enc.c: New file.
39910         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39911         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39912
39913         * modules/uniconv/u16-strconv-to-enc: New file.
39914         * lib/uniconv/u16-strconv-to-enc.c: New file.
39915         * lib/uniconv/u-strconv-to-enc.h: New file.
39916         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39917         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39918
39919         * modules/uniconv/u8-strconv-to-enc: New file.
39920         * lib/uniconv/u8-strconv-to-enc.c: New file.
39921         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39922         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39923
39924         * modules/uniconv/u32-strconv-from-enc: New file.
39925         * lib/uniconv/u32-strconv-from-enc.c: New file.
39926         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39927         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39928
39929         * modules/uniconv/u16-strconv-from-enc: New file.
39930         * lib/uniconv/u16-strconv-from-enc.c: New file.
39931         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39932         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39933
39934         * modules/uniconv/u8-strconv-from-enc: New file.
39935         * lib/uniconv/u8-strconv-from-enc.c: New file.
39936         * lib/uniconv/u-strconv-from-enc.h: New file.
39937         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39938         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39939
39940         * modules/uniconv/u32-conv-from-enc: New file.
39941         * lib/uniconv/u32-conv-from-enc.c: New file.
39942         * modules/uniconv/u32-conv-from-enc-tests: New file.
39943         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39944
39945         * modules/uniconv/u16-conv-from-enc: New file.
39946         * lib/uniconv/u16-conv-from-enc.c: New file.
39947         * lib/uniconv/u-conv-from-enc.h: New file.
39948         * modules/uniconv/u16-conv-from-enc-tests: New file.
39949         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39950
39951         * modules/uniconv/u8-conv-from-enc: New file.
39952         * lib/uniconv/u8-conv-from-enc.c: New file.
39953         * modules/uniconv/u8-conv-from-enc-tests: New file.
39954         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39955
39956         * modules/uniconv/base: New file.
39957         * lib/uniconv.h: New file.
39958
39959 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39960
39961         * doc/gnulib-tool.texi (Initial import): Update to match current
39962         behavior with strdup module.
39963         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39964         * lib/memmem.h: Remove; all uses removed.  This is now done
39965         by <string.h>.
39966         * lib/mempcpy.h: Likewise.
39967         * lib/memrchr.h: Likewise.
39968         * lib/stpcpy.h: Likewise.
39969         * lib/stpncpy.h: Likewise.
39970         * lib/strcase.h: Likewise.
39971         * lib/strchrnul.h: Likewise.
39972         * lib/strdup.h: Likewise.
39973         * lib/strndup.h: Likewise.
39974         * lib/strnlen.h: Likewise.
39975         * lib/strpbrk.h: Likewise.
39976         * lib/strsep.h: Likewise.
39977         * lib/strstr.h: Likewise.
39978         * lib/strtok_r.h: Likewise.
39979         * lib/string_.h: New file.
39980         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39981         Rely on <string.h> instead.
39982         * lib/canon-host.c: Likewise.
39983         * lib/chdir-long.c: Likewise.
39984         * lib/concatpath.c: Likewise.
39985         * lib/exclude.c: Likewise.
39986         * lib/fchdir.c: Likewise.
39987         * lib/getaddrinfo.c: Likewise.
39988         * lib/getcwd.c: Likewise.
39989         * lib/getsubopt.c: Likewise.
39990         * lib/glob.c: Likewise.
39991         * lib/hard-locale.c: Likewise.
39992         * lib/iconvme.c: Likewise.
39993         * lib/javacomp.c: Likewise.
39994         * lib/mempcpy.c: Likewise.
39995         * lib/memrchr.c: Likewise.
39996         * lib/regex_internal.h: Likewise.
39997         * lib/stpncpy.c: Likewise.
39998         * lib/strcasecmp.c: Likewise.
39999         * lib/strchrnul.c: Likewise.
40000         * lib/strdup.c: Likewise.
40001         * lib/striconv.c: Likewise.
40002         * lib/striconveh.c: Likewise.
40003         * lib/striconveha.c: Likewise.
40004         * lib/strncasecmp.c: Likewise.
40005         * lib/strndup.c: Likewise.
40006         * lib/strnlen.c: Likewise.
40007         * lib/strsep.c: Likewise.
40008         * lib/strstr.c: Likewise.
40009         * lib/strtok_r.c: Likewise.
40010         * lib/userspec.c: Likewise.
40011         * lib/w32spawn.h: Likewise.
40012         * lib/xstrndup.c: Likewise.
40013         * lib/mountlist.c (strstr): Remove decl.
40014         * m4/string_h.m4: New file.
40015         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
40016         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
40017         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
40018         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
40019         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
40020         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
40021         Set REPLACE_STRCASECMP if necessary.
40022         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
40023         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
40024         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
40025         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
40026         HAVE_DECL_STRDUP if necessary.
40027         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
40028         since gl_FUNC_STRNDUP does that now.
40029         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
40030         Check for decl here...
40031         (gl_PREREQ_STRNLEN): ... not here.
40032         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
40033         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
40034         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
40035         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
40036         necessary.
40037         * modules/string: New file.
40038         * modules/memmem (Files): Remove special-purpose include file.
40039         (Depends-on): Add string.
40040         (Include): Include <string.h>, not the removed file.
40041         * modules/mempcpy: Likewise.
40042         * modules/memrchr: Likewise.
40043         * modules/stpcpy: Likewise.
40044         * modules/stpncpy: Likewise.
40045         * modules/strcase: Likewise.
40046         * modules/strchrnul: Likewise.
40047         * modules/strdup: Likewise.
40048         * modules/strndup: Likewise.
40049         * modules/strnlen: Likewise.
40050         * modules/strpbrk: Likewise.
40051         * modules/strsep: Likewise.
40052         * modules/strstr: Likewise.
40053         * modules/strtok_r: Likewise.
40054         * tests/test-dirname.c: Don't include "strdup.h", since
40055         <string.h> now suffices.
40056         * tests/test-memmem.c: Don't include "memmem.h", since
40057         <string.h> now suffices.
40058
40059 2007-01-25  Bruno Haible  <bruno@clisp.org>
40060
40061         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
40062         *resultp is 0.
40063
40064         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
40065         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
40066         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
40067         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
40068
40069         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
40070         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
40071         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
40072         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
40073         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
40074         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
40075
40076 2007-01-24  Bruno Haible  <bruno@clisp.org>
40077
40078         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
40079         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
40080         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
40081         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
40082         gl_FUNC_FTS_CORE.
40083         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
40084         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
40085         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40086         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
40087         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
40088         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
40089         gl_FUNC_FCHOWNAT.
40090         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
40091         gl_FUNC_STRFTIME.
40092         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
40093         Reported by Ralf Wildenhues.
40094
40095 2007-01-24  Bruno Haible  <bruno@clisp.org>
40096
40097         Drop AC_REQUIRE calls that are redundant with the module dependencies.
40098         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
40099         gl_GETADDRINFO.
40100         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
40101         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
40102         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
40103
40104 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
40105
40106         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
40107         Don't use 'exit'; just return from 'main'.
40108         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
40109
40110         * lib/fnmatch_.h: Readjust white space and comments to match
40111         glibc, to avoid spurious diffs.
40112
40113 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40114
40115         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
40116         2004-12-01 change by Jakub Jelinek, since this code won't compile
40117         if !LIBC.  Problem reported by Bob Proulx.
40118
40119 2007-01-23  Bruno Haible  <bruno@clisp.org>
40120
40121         * lib/striconveh.c: Include c-strcaseeq.h.
40122         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
40123         * modules/striconveh (Depends-on): Add c-strcaseeq.
40124
40125 2007-01-23  Bruno Haible  <bruno@clisp.org>
40126
40127         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
40128
40129         * modules/c-strcaseeq: New file.
40130         * lib/c-strcaseeq.h: New file.
40131
40132         * modules/streq: New file.
40133         * lib/streq.h: New file.
40134
40135 2007-01-23  Bruno Haible  <bruno@clisp.org>
40136
40137         * modules/striconveha-tests: New file.
40138         * tests/test-striconveha.c: New file.
40139
40140         * lib/striconveha.h: Include <stdbool.h>.
40141         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
40142         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
40143         (mem_iconveha_notranslit): Renamed from mem_iconveha.
40144         (mem_iconveha): New function.
40145         (str_iconveha_notranslit): Renamed from str_iconveha.
40146         (str_iconveha): New function.
40147         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
40148         c-strcase.
40149
40150 2007-01-23  Bruno Haible  <bruno@clisp.org>
40151
40152         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
40153         encodings without forgiving before trying any encoding with handler.
40154         (str_iconveha): Try all encodings without forgiving before trying any
40155         encoding with handler.
40156
40157 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40158
40159         Import the following changes from libc.
40160
40161         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40162
40163         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
40164
40165         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
40166
40167         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
40168         normal_bracket label.
40169
40170         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
40171
40172         [BZ #361]
40173         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
40174         to normal_bracket after fetching the next character.
40175
40176 2007-01-22  Bruno Haible  <bruno@clisp.org>
40177
40178         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
40179         argument.
40180         * lib/striconveh.c (iconv_carefully_1): New function.
40181         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
40182         argument.
40183         (str_cd_iconveh): Update.
40184         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
40185         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
40186         * tests/test-striconveh.c (MAGIC): New macro.
40187         (new_offsets): New function.
40188         (main): Test call with and without offsets.
40189
40190 2007-01-22  Bruno Haible  <bruno@clisp.org>
40191
40192         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
40193         * modules/sys_select (Makefile.am): Likewise.
40194         * modules/sys_socket (Makefile.am): Likewise.
40195         * modules/sys_time (Makefile.am): Likewise.
40196
40197 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40198
40199         * modules/gettimeofday (License): Change from GPL to LGPL, since
40200         gettimeofday is a library function.
40201
40202 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40203
40204         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
40205
40206 2007-01-21  Bruno Haible  <bruno@clisp.org>
40207
40208         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
40209
40210 2007-01-21  Bruno Haible  <bruno@clisp.org>
40211
40212         * modules/striconveha: New file.
40213         * lib/striconveha.h: New file.
40214         * lib/striconveha.c: New file.
40215         * MODULES.html.sh (Internationalization functions): Add striconveha.
40216         * lib/striconv.c (str_iconv): Optimize the case of an empty input
40217         string.
40218         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
40219
40220 2007-01-21  Bruno Haible  <bruno@clisp.org>
40221
40222         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40223         * lib/striconveh.c (str_iconveh): Likewise.
40224
40225 2007-01-21  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/striconveh.h (mem_iconveh): New declaration.
40228         * lib/striconveh.c (mem_iconveh): New function.
40229         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40230
40231 2007-01-21  Bruno Haible  <bruno@clisp.org>
40232
40233         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40234
40235         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40236         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40237         original result buffer.
40238         (str_cd_iconveh): Update.
40239         * tests/test-striconveh.c (main): Update.
40240
40241         * lib/striconv.h (mem_cd_iconv): Change specification.
40242         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40243         result buffer.
40244         (str_cd_iconv): Update.
40245         * tests/test-striconv.c (main): Update.
40246
40247 2007-01-21  Bruno Haible  <bruno@clisp.org>
40248
40249         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40250
40251 2007-01-20  Jim Meyering  <jim@meyering.net>
40252
40253         * lib/userspec.c (parse_with_separator): If a user or group string
40254         starts with "+", skip the corresponding name-to-ID look-up, since
40255         such a look-up must fail: user and group names may not include "+".
40256
40257 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40258
40259         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40260         since we now assume the sys_time module.
40261         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40262         check for sys/time.h; no longer needed.
40263         * modules/poll (Depends-on): Depend on sys_time.
40264
40265 2007-01-18  Bruno Haible  <bruno@clisp.org>
40266
40267         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40268         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40269
40270         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40271         gettimeofday.
40272
40273         * tests/test-gettimeofday.c: Include <time.h>.
40274         (dummy): Remove variable.
40275
40276         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40277         gl_HEADER_SYS_TIME_H.
40278         (gl_HEADER_SYS_TIME_H): New macro.
40279
40280         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40281         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40282         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40283         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40284         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40285         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40286         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40287         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40288         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40289         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40290         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40291
40292         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40293         last change; it caused a compilation error when cross-compiling to
40294         Cygwin.
40295
40296 2007-01-18  Jim Meyering  <jim@meyering.net>
40297
40298         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40299         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40300         than the race-prone "test -d sys || mkdir sys".
40301         (configure.ac): Use AC_PROG_MKDIR_P.
40302         * modules/sys_select: Likewise.
40303         * modules/sys_socket: Likewise.
40304         * modules/sys_time: Likewise.
40305
40306 2007-01-18  Eric Blake  <ebb9@byu.net>
40307
40308         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40309         replace gettimeofday.
40310         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40311         name, to avoid infinite recursion.
40312
40313 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40314
40315         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40316         module sys_time.
40317         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40318         assume timespec.h defines struct timeval.
40319         * lib/settime.c: Likewise.
40320         * lib/utimens.c: Likewise.
40321         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40322         since we now assume the gettimeofday module.
40323         * lib/tempname.c (__gen_tempname): Likewise.
40324         * lib/gettimeofday.h: Remove.
40325         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40326         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40327         Include <time.h>, for 'time()'.
40328         (localtime_buffer_addr): Also use this workaround if
40329         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40330         to simplify the uses.  All uses changed.
40331         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40332         that #undef is inside {}, and 'const' follows type name consistently.
40333         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40334         (gettimeofday): Do not use the maximum possible value for
40335         tv->tv_usec, since that might break usages other than ls.c.
40336         Instead, we'll leave ls.c alone.  This undoes today's patch
40337         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40338         we've never observed the problem but might as well keep the
40339         canary.
40340         * lib/nanosleep.c: Include timespec.h first, for interface check.
40341         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40342         now assume the sys_time module.
40343         * lib/tempname.c: Likewise.
40344         * lib/timespec.h: Likewise.
40345         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40346         needed.
40347         * lib/strftime.c: Likewise.
40348         * lib/timespec.h: Likewise.
40349         * lib/posixtm.c: Include posixtm.h first, for interface check.
40350         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40351         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40352         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40353         * lib/sys_time_.h: New file.
40354         * lib/timespec.h (struct timespec): Use long int, not long.
40355         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40356         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40357         Remove obsolescent call to AC_HEADER_TIME.
40358         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40360         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40361         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40362         Likewise.
40363         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40364         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40365         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40366         into the sys_time module.  Check for gettimeofday just once.
40367         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40368         for gettimeofday signature to just check the signature.  Merely
40369         compile it, since linking doesn't test signature.  Improve test for
40370         whether gettimeofday.o is actually needed.
40371         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40372         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40373         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40374         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40375         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40376         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40377         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40378         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40379         than worrying about sys/time.h.
40380         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40381         Don't bother worrying about TIME_WITH_SYS_TIME.
40382         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40383         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40384         * m4/sys_time_h.m4: New file.
40385         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40386         Don't include sys/time.h.  Return from main rather than exiting.
40387         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40388         all uses changed.
40389         * modules/gethrxtime (Depends-on): Add sys_time.
40390         * modules/gettime (Depends-on): Likewise.
40391         * modules/gettimeofday (Depends-on): Likewise.
40392         * modules/nanosleep (Depends-on): Likewise.
40393         * modules/settime (Depends-on): Likewise.
40394         * modules/tempname (Depends-on): Likewise.
40395         * modules/utimens (Depends-on): Likewise.
40396         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40397         (Include:) Change back to <sys/time.h>.
40398         (Maintainer:) Add self.
40399         * modules/sys_time: New file.
40400         * modules/tempname (Depends-on): Add gettimeofday.
40401         * tests/test-gettimeofday.c: Include <sys/time.h>
40402         rather than gettimeofday.h.
40403
40404 2007-01-17  Bruno Haible  <bruno@clisp.org>
40405
40406         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40407         the license default to GPL.
40408         (func_create_testdir): Don't complain if a module is LGPL and its
40409         tests module depends on GPLed modules.
40410
40411 2007-01-17  Bruno Haible  <bruno@clisp.org>
40412
40413         * lib/gettimeofday.c (gettimeofday): Add code for the case
40414         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40415         maximum possible value for tv->tv_usec, rather than the minimum one.
40416
40417 2005-10-08  Martin Lambers  <marlam@marlam.de>
40418 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40419 2007-01-16  Bruno Haible  <bruno@clisp.org>
40420
40421         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40422         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40423         gl_FUNC_GETTIMEOFDAY.
40424         (Include): Add gettimeofday.h.
40425         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40426         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40427         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40428         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40429         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40430         * lib/gettimeofday.h: New file.
40431         * lib/gettimeofday.c: Include <sys/timeb.h>.
40432         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40433         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40434         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40435         fall back on time().
40436
40437         * tests/test-gettimeofday.c: New file.
40438         * modules/gettimeofday-tests: New file.
40439
40440 2007-01-16  Eric Blake  <ebb9@byu.net>
40441
40442         * modules/fnmatch (Depends-on): Depend on wchar.
40443         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40444         * m4/fnmatch.m4: Likewise.
40445         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40446         * m4/mbchar.m4: Likewise.
40447         * modules/mbswidth (Depends-on): Depend on wchar.
40448         * lib/mbswidth.c: Assume <wchar.h>.
40449         * m4/mbswidth.m4: Likewise.
40450         * modules/quotearg (Depends-on): Depend on wchar.
40451         * lib/quotearg.c: Assume <wchar.h>.
40452         * m4/quotearg.m4: Likewise.
40453         * modules/regex (Depends-on): Depend on wchar.
40454         * lib/regex_internal.h: Assume <wchar.h>.
40455         * m4/regex.m4: Likewise.
40456         * modules/stdint (Depends-on): Depend on wchar.
40457         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40458         * m4/stdint.m4: Likewise.
40459         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40460         * modules/strftime (Depends-on): Depend on wchar.
40461         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40462         * modules/strtol (Depends-on): Depend on wchar.
40463         * lib/strtol.c: Assume <wchar.h>.
40464         * modules/wcwidth (Depends-on): Depend on wchar.
40465         * lib/wcwidth.h: Assume <wchar.h>.
40466         * m4/wcwidth.m4: Likewise.
40467
40468 2007-01-16  Bruno Haible  <bruno@clisp.org>
40469
40470         * modules/csharpexec-script: New, created from...
40471         * modules/csharpexec: ... this.
40472
40473 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40474
40475         * modules/javaexec-script: New, created from...
40476         * modules/javaexec: ... this.
40477
40478 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40479
40480         * modules/poll (Dependencies): Add sys_select.
40481
40482 2007-01-15  Jim Meyering  <jim@meyering.net>
40483
40484         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40485         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40486         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40487         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40488
40489 2007-01-15  Bruno Haible  <bruno@clisp.org>
40490
40491         * modules/striconveh: New file.
40492         * lib/striconveh.h: New file.
40493         * lib/striconveh.c: New file.
40494         * MODULES.html.sh (Internationalization functions): Add striconveh.
40495
40496         * modules/striconveh-tests: New file.
40497         * tests/test-striconveh.c: New file.
40498
40499 2007-01-15  Bruno Haible  <bruno@clisp.org>
40500
40501         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40502         not from GNU libiconv or GNU libc.
40503
40504 2007-01-15  Bruno Haible  <bruno@clisp.org>
40505
40506         * doc/gnulib-intro.texi (Copyright): Explain the different license
40507         terms for module descriptions, autoconf macros, tests, documentation.
40508
40509 2007-01-14  Bruno Haible  <bruno@clisp.org>
40510
40511         * modules/striconv-tests: New file.
40512         * tests/test-striconv.c: New file.
40513
40514 2007-01-14  Bruno Haible  <bruno@clisp.org>
40515
40516         * modules/iconv-tests: New file.
40517         * tests/test-iconv.c: New file.
40518
40519 2007-01-14  Bruno Haible  <bruno@clisp.org>
40520
40521         * gnulib-tool (func_get_license): For test modules, use the license of
40522         the main module.
40523
40524 2007-01-14  Bruno Haible  <bruno@clisp.org>
40525
40526         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40527         if iconv is found to exist.
40528
40529 2007-01-14  Bruno Haible  <bruno@clisp.org>
40530
40531         * modules/c-ctype-tests: New file.
40532         * tests/test-c-ctype.c: New file.
40533
40534 2007-01-14  Bruno Haible  <bruno@clisp.org>
40535
40536         * modules/binary-io-tests: New file.
40537         * tests/test-binary-io.sh: New file.
40538         * tests/test-binary-io.c: New file.
40539
40540 2007-01-14  Bruno Haible  <bruno@clisp.org>
40541
40542         * modules/array-oset-tests: New file.
40543         * tests/test-array_oset.c: New file.
40544
40545 2007-01-14  Bruno Haible  <bruno@clisp.org>
40546
40547         * modules/array-list-tests: New file.
40548         * tests/test-array_list.c: New file.
40549
40550 2007-01-14  Bruno Haible  <bruno@clisp.org>
40551
40552         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40553         and make.
40554         Reported by Simon Josefsson in
40555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40556
40557 2007-01-14  Bruno Haible  <bruno@clisp.org>
40558
40559         * modules/allocsa-tests: New file.
40560         * tests/test-allocsa.c: New file.
40561
40562 2007-01-14  Bruno Haible  <bruno@clisp.org>
40563
40564         * modules/fchdir (Depends-on): Add absolute-header.
40565         * modules/unistd (Depends-on): Likewise.
40566
40567 2006-12-30  Bruno Haible  <bruno@clisp.org>
40568
40569         * modules/fchdir: New file.
40570         * modules/unistd (Files): Add lib/unistd_.h.
40571         (Makefile.am): Generate unistd.h from unistd_.h.
40572         * lib/fchdir.c: New file.
40573         * lib/dirent_.h: New file.
40574         * lib/unistd_.h: New file.
40575         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40576         * m4/fchdir.m4: New file.
40577         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40578         (gl_HEADER_UNISTD): Invoke it.
40579         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40580         function.
40581         * lib/backupfile.c (opendir, closedir): Undefine.
40582         * lib/chown.c (open, close): Undefine.
40583         * lib/clean-temp.c (open, close): Undefine.
40584         * lib/copy-file.c (open, close): Undefine.
40585         * lib/execute.c (open, close): Undefine.
40586         * lib/fsusage.c (open, close): Undefine.
40587         * lib/gc-gnulib.c (open, close): Undefine.
40588         * lib/getcwd.c (opendir, closedir): Undefine.
40589         * lib/glob.c (opendir, closedir): Undefine.
40590         * lib/javacomp.c (open, close): Undefine.
40591         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40592         * lib/openat-proc.c (open, close): Undefine.
40593         * lib/pagealign_alloc.c (open, close): Undefine.
40594         * lib/pipe.c (open, close): Undefine.
40595         * lib/progreloc.c (open, close): Undefine.
40596         * lib/savedir.c (opendir, closedir): Undefine.
40597         * lib/utime.c (open, close): Undefine.
40598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40599
40600 2007-01-10  Bruno Haible  <bruno@clisp.org>
40601
40602         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40603
40604 2007-01-12  Eric Blake  <ebb9@byu.net>
40605
40606         Provide a robust <wchar.h>.  Further simplifications are now
40607         possible in other modules, but not included here.
40608         * modules/wchar: New module.
40609         * m4/wchar.m4: New file.
40610         * lib/wchar_.h: Likewise.
40611         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40612         of the new module.
40613         * MODULES.html.sh (Extended multibyte and wide character utilities):
40614         New section.
40615
40616 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40617
40618         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40619         to a reasonable default for memory allocation.
40620         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40621         file system that reports garbage st_size values for symlinks.
40622         Problem reported by Liyang Hu.
40623
40624 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40625
40626         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40627         Emacs .#* auto-save files).
40628
40629 2007-01-11  Bruno Haible  <bruno@clisp.org>
40630
40631         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40632         directory.
40633
40634 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40635
40636         Use @...@ consistently in lib/wctype_.h.
40637         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40638         on it being set to 1 or 0.
40639         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40640         go back to AC_SUBSTing it.
40641         * modules/wctype (Makefile.am): Undo previous change.
40642
40643 2007-01-10  Eric Blake  <ebb9@byu.net>
40644
40645         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40646         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40647         * modules/wctype (Makefile.am): Likewise.
40648         Reported by Chris McGuire.
40649
40650 2007-01-10  Jim Meyering  <jim@meyering.net>
40651
40652         fts.c: a small readability/maintainability improvement
40653         * lib/fts.c (fts_read): Make this code slightly more readable and
40654         maintainable by hoisting the "sp->fts_cur = p" assignments to
40655         immediately follow the statements that set P.  Derived from
40656         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40657
40658 2007-01-10  Eric Blake  <ebb9@byu.net>
40659
40660         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40661         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40663         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40664         Reported by Chris McGuire.
40665
40666 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40667
40668         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40669         in sed script.
40670
40671 2007-01-09  Bruno Haible  <bruno@clisp.org>
40672
40673         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40674         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40675         variables.
40676         (func_module): Use them.
40677
40678 2007-01-09  Bruno Haible  <bruno@clisp.org>
40679
40680         * modules/unistr/base: New file.
40681         * lib/unistr.h: New file.
40682
40683         * modules/unistr/u8-to-u16: New file.
40684         * lib/unistr/u8-to-u16.c: New file.
40685
40686         * modules/unistr/u8-to-u32: New file.
40687         * lib/unistr/u8-to-u32.c: New file.
40688
40689         * modules/unistr/u16-to-u8: New file.
40690         * lib/unistr/u16-to-u8.c: New file.
40691
40692         * modules/unistr/u16-to-u32: New file.
40693         * lib/unistr/u16-to-u32.c: New file.
40694
40695         * modules/unistr/u32-to-u8: New file.
40696         * lib/unistr/u32-to-u8.c: New file.
40697
40698         * modules/unistr/u32-to-u16: New file.
40699         * lib/unistr/u32-to-u16.c: New file.
40700
40701         * modules/unistr/u8-check: New file.
40702         * modules/unistr/u16-check: New file.
40703         * modules/unistr/u32-check: New file.
40704         * lib/unistr/u8-check.c: New file.
40705         * lib/unistr/u16-check.c: New file.
40706         * lib/unistr/u32-check.c: New file.
40707
40708         * modules/unistr/u8-chr: New file.
40709         * modules/unistr/u16-chr: New file.
40710         * modules/unistr/u32-chr: New file.
40711         * lib/unistr/u8-chr.c: New file.
40712         * lib/unistr/u16-chr.c: New file.
40713         * lib/unistr/u32-chr.c: New file.
40714
40715         * modules/unistr/u8-cmp: New file.
40716         * modules/unistr/u16-cmp: New file.
40717         * modules/unistr/u32-cmp: New file.
40718         * lib/unistr/u8-cmp.c: New file.
40719         * lib/unistr/u16-cmp.c: New file.
40720         * lib/unistr/u32-cmp.c: New file.
40721
40722         * modules/unistr/u8-cpy: New file.
40723         * modules/unistr/u16-cpy: New file.
40724         * modules/unistr/u32-cpy: New file.
40725         * lib/unistr/u8-cpy.c: New file.
40726         * lib/unistr/u16-cpy.c: New file.
40727         * lib/unistr/u32-cpy.c: New file.
40728         * lib/unistr/u-cpy.h: New file.
40729
40730         * modules/unistr/u8-cpy-alloc: New file.
40731         * modules/unistr/u16-cpy-alloc: New file.
40732         * modules/unistr/u32-cpy-alloc: New file.
40733         * lib/unistr/u8-cpy-alloc.c: New file.
40734         * lib/unistr/u16-cpy-alloc.c: New file.
40735         * lib/unistr/u32-cpy-alloc.c: New file.
40736         * lib/unistr/u-cpy-alloc.h: New file.
40737
40738         * modules/unistr/u8-endswith: New file.
40739         * modules/unistr/u16-endswith: New file.
40740         * modules/unistr/u32-endswith: New file.
40741         * lib/unistr/u8-endswith.c: New file.
40742         * lib/unistr/u16-endswith.c: New file.
40743         * lib/unistr/u32-endswith.c: New file.
40744         * lib/unistr/u-endswith.h: New file.
40745
40746         * modules/unistr/u8-mblen: New file.
40747         * modules/unistr/u16-mblen: New file.
40748         * modules/unistr/u32-mblen: New file.
40749         * lib/unistr/u8-mblen.c: New file.
40750         * lib/unistr/u16-mblen.c: New file.
40751         * lib/unistr/u32-mblen.c: New file.
40752
40753         * modules/unistr/u8-mbtouc: New file.
40754         * modules/unistr/u16-mbtouc: New file.
40755         * modules/unistr/u32-mbtouc: New file.
40756         * lib/unistr/u8-mbtouc.c: New file.
40757         * lib/unistr/u16-mbtouc.c: New file.
40758         * lib/unistr/u32-mbtouc.c: New file.
40759
40760         * modules/unistr/u8-mbtouc-safe: New file.
40761         * modules/unistr/u16-mbtouc-safe: New file.
40762         * modules/unistr/u32-mbtouc-safe: New file.
40763         * lib/unistr/u8-mbtouc-safe.c: New file.
40764         * lib/unistr/u16-mbtouc-safe.c: New file.
40765         * lib/unistr/u32-mbtouc-safe.c: New file.
40766
40767         * modules/unistr/u8-move: New file.
40768         * modules/unistr/u16-move: New file.
40769         * modules/unistr/u32-move: New file.
40770         * lib/unistr/u8-move.c: New file.
40771         * lib/unistr/u16-move.c: New file.
40772         * lib/unistr/u32-move.c: New file.
40773         * lib/unistr/u-move.h: New file.
40774
40775         * modules/unistr/u8-next: New file.
40776         * modules/unistr/u16-next: New file.
40777         * modules/unistr/u32-next: New file.
40778         * lib/unistr/u8-next.c: New file.
40779         * lib/unistr/u16-next.c: New file.
40780         * lib/unistr/u32-next.c: New file.
40781
40782         * modules/unistr/u8-prev: New file.
40783         * modules/unistr/u16-prev: New file.
40784         * modules/unistr/u32-prev: New file.
40785         * lib/unistr/u8-prev.c: New file.
40786         * lib/unistr/u16-prev.c: New file.
40787         * lib/unistr/u32-prev.c: New file.
40788
40789         * modules/unistr/u8-set: New file.
40790         * modules/unistr/u16-set: New file.
40791         * modules/unistr/u32-set: New file.
40792         * lib/unistr/u8-set.c: New file.
40793         * lib/unistr/u16-set.c: New file.
40794         * lib/unistr/u32-set.c: New file.
40795         * lib/unistr/u-set.h: New file.
40796
40797         * modules/unistr/u8-startswith: New file.
40798         * modules/unistr/u16-startswith: New file.
40799         * modules/unistr/u32-startswith: New file.
40800         * lib/unistr/u8-startswith.c: New file.
40801         * lib/unistr/u16-startswith.c: New file.
40802         * lib/unistr/u32-startswith.c: New file.
40803         * lib/unistr/u-startswith.h: New file.
40804
40805         * modules/unistr/u8-stpcpy: New file.
40806         * modules/unistr/u16-stpcpy: New file.
40807         * modules/unistr/u32-stpcpy: New file.
40808         * lib/unistr/u8-stpcpy.c: New file.
40809         * lib/unistr/u16-stpcpy.c: New file.
40810         * lib/unistr/u32-stpcpy.c: New file.
40811         * lib/unistr/u-stpcpy.h: New file.
40812
40813         * modules/unistr/u8-stpncpy: New file.
40814         * modules/unistr/u16-stpncpy: New file.
40815         * modules/unistr/u32-stpncpy: New file.
40816         * lib/unistr/u8-stpncpy.c: New file.
40817         * lib/unistr/u16-stpncpy.c: New file.
40818         * lib/unistr/u32-stpncpy.c: New file.
40819         * lib/unistr/u-stpncpy.h: New file.
40820
40821         * modules/unistr/u8-strcat: New file.
40822         * modules/unistr/u16-strcat: New file.
40823         * modules/unistr/u32-strcat: New file.
40824         * lib/unistr/u8-strcat.c: New file.
40825         * lib/unistr/u16-strcat.c: New file.
40826         * lib/unistr/u32-strcat.c: New file.
40827         * lib/unistr/u-strcat.h: New file.
40828
40829         * modules/unistr/u8-strchr: New file.
40830         * modules/unistr/u16-strchr: New file.
40831         * modules/unistr/u32-strchr: New file.
40832         * lib/unistr/u8-strchr.c: New file.
40833         * lib/unistr/u16-strchr.c: New file.
40834         * lib/unistr/u32-strchr.c: New file.
40835
40836         * modules/unistr/u8-strcmp: New file.
40837         * modules/unistr/u16-strcmp: New file.
40838         * modules/unistr/u32-strcmp: New file.
40839         * lib/unistr/u8-strcmp.c: New file.
40840         * lib/unistr/u16-strcmp.c: New file.
40841         * lib/unistr/u32-strcmp.c: New file.
40842
40843         * modules/unistr/u8-strcpy: New file.
40844         * modules/unistr/u16-strcpy: New file.
40845         * modules/unistr/u32-strcpy: New file.
40846         * lib/unistr/u8-strcpy.c: New file.
40847         * lib/unistr/u16-strcpy.c: New file.
40848         * lib/unistr/u32-strcpy.c: New file.
40849         * lib/unistr/u-strcpy.h: New file.
40850
40851         * modules/unistr/u8-strcspn: New file.
40852         * modules/unistr/u16-strcspn: New file.
40853         * modules/unistr/u32-strcspn: New file.
40854         * lib/unistr/u8-strcspn.c: New file.
40855         * lib/unistr/u16-strcspn.c: New file.
40856         * lib/unistr/u32-strcspn.c: New file.
40857         * lib/unistr/u-strcspn.h: New file.
40858
40859         * modules/unistr/u8-strdup: New file.
40860         * modules/unistr/u16-strdup: New file.
40861         * modules/unistr/u32-strdup: New file.
40862         * lib/unistr/u8-strdup.c: New file.
40863         * lib/unistr/u16-strdup.c: New file.
40864         * lib/unistr/u32-strdup.c: New file.
40865         * lib/unistr/u-strdup.h: New file.
40866
40867         * modules/unistr/u8-strlen: New file.
40868         * modules/unistr/u16-strlen: New file.
40869         * modules/unistr/u32-strlen: New file.
40870         * lib/unistr/u8-strlen.c: New file.
40871         * lib/unistr/u16-strlen.c: New file.
40872         * lib/unistr/u32-strlen.c: New file.
40873         * lib/unistr/u-strlen.h: New file.
40874
40875         * modules/unistr/u8-strmblen: New file.
40876         * modules/unistr/u16-strmblen: New file.
40877         * modules/unistr/u32-strmblen: New file.
40878         * lib/unistr/u8-strmblen.c: New file.
40879         * lib/unistr/u16-strmblen.c: New file.
40880         * lib/unistr/u32-strmblen.c: New file.
40881
40882         * modules/unistr/u8-strmbtouc: New file.
40883         * modules/unistr/u16-strmbtouc: New file.
40884         * modules/unistr/u32-strmbtouc: New file.
40885         * lib/unistr/u8-strmbtouc.c: New file.
40886         * lib/unistr/u16-strmbtouc.c: New file.
40887         * lib/unistr/u32-strmbtouc.c: New file.
40888
40889         * modules/unistr/u8-strncat: New file.
40890         * modules/unistr/u16-strncat: New file.
40891         * modules/unistr/u32-strncat: New file.
40892         * lib/unistr/u8-strncat.c: New file.
40893         * lib/unistr/u16-strncat.c: New file.
40894         * lib/unistr/u32-strncat.c: New file.
40895         * lib/unistr/u-strncat.h: New file.
40896
40897         * modules/unistr/u8-strncmp: New file.
40898         * modules/unistr/u16-strncmp: New file.
40899         * modules/unistr/u32-strncmp: New file.
40900         * lib/unistr/u8-strncmp.c: New file.
40901         * lib/unistr/u16-strncmp.c: New file.
40902         * lib/unistr/u32-strncmp.c: New file.
40903
40904         * modules/unistr/u8-strncpy: New file.
40905         * modules/unistr/u16-strncpy: New file.
40906         * modules/unistr/u32-strncpy: New file.
40907         * lib/unistr/u8-strncpy.c: New file.
40908         * lib/unistr/u16-strncpy.c: New file.
40909         * lib/unistr/u32-strncpy.c: New file.
40910         * lib/unistr/u-strncpy.h: New file.
40911
40912         * modules/unistr/u8-strnlen: New file.
40913         * modules/unistr/u16-strnlen: New file.
40914         * modules/unistr/u32-strnlen: New file.
40915         * lib/unistr/u8-strnlen.c: New file.
40916         * lib/unistr/u16-strnlen.c: New file.
40917         * lib/unistr/u32-strnlen.c: New file.
40918         * lib/unistr/u-strnlen.h: New file.
40919
40920         * modules/unistr/u8-strpbrk: New file.
40921         * modules/unistr/u16-strpbrk: New file.
40922         * modules/unistr/u32-strpbrk: New file.
40923         * lib/unistr/u8-strpbrk.c: New file.
40924         * lib/unistr/u16-strpbrk.c: New file.
40925         * lib/unistr/u32-strpbrk.c: New file.
40926         * lib/unistr/u-strpbrk.h: New file.
40927
40928         * modules/unistr/u8-strrchr: New file.
40929         * modules/unistr/u16-strrchr: New file.
40930         * modules/unistr/u32-strrchr: New file.
40931         * lib/unistr/u8-strrchr.c: New file.
40932         * lib/unistr/u16-strrchr.c: New file.
40933         * lib/unistr/u32-strrchr.c: New file.
40934
40935         * modules/unistr/u8-strspn: New file.
40936         * modules/unistr/u16-strspn: New file.
40937         * modules/unistr/u32-strspn: New file.
40938         * lib/unistr/u8-strspn.c: New file.
40939         * lib/unistr/u16-strspn.c: New file.
40940         * lib/unistr/u32-strspn.c: New file.
40941         * lib/unistr/u-strspn.h: New file.
40942
40943         * modules/unistr/u8-strstr: New file.
40944         * modules/unistr/u16-strstr: New file.
40945         * modules/unistr/u32-strstr: New file.
40946         * lib/unistr/u8-strstr.c: New file.
40947         * lib/unistr/u16-strstr.c: New file.
40948         * lib/unistr/u32-strstr.c: New file.
40949         * lib/unistr/u-strstr.h: New file.
40950
40951         * modules/unistr/u8-strtok: New file.
40952         * modules/unistr/u16-strtok: New file.
40953         * modules/unistr/u32-strtok: New file.
40954         * lib/unistr/u8-strtok.c: New file.
40955         * lib/unistr/u16-strtok.c: New file.
40956         * lib/unistr/u32-strtok.c: New file.
40957         * lib/unistr/u-strtok.h: New file.
40958
40959         * modules/unistr/u8-uctomb: New file.
40960         * modules/unistr/u16-uctomb: New file.
40961         * modules/unistr/u32-uctomb: New file.
40962         * lib/unistr/u8-uctomb.c: New file.
40963         * lib/unistr/u16-uctomb.c: New file.
40964         * lib/unistr/u32-uctomb.c: New file.
40965
40966         * MODULES.html.sh (Unicode string functions): Add the new modules.
40967
40968 2007-01-08  Bruno Haible  <bruno@clisp.org>
40969
40970         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40971         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40972         subdirectories.
40973
40974 2007-01-08  Karl Berry  <karl@gnu.org>
40975
40976         * doc/error.texi: mention that main() fns must set program_name
40977         when progname is used.
40978
40979 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40980
40981         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40982         WCTYPE_H is empty, for the benefit of builds from non-distclean
40983         directories.  Problem reported by Eric Blake in
40984         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40985
40986 2007-01-08  Bruno Haible  <bruno@clisp.org>
40987
40988         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40989         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40990         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40991         PROVIDE_CANONICALIZE_FILENAME_MODE.
40992         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40993
40994 2007-01-08  Bruno Haible  <bruno@clisp.org>
40995
40996         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40997         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40998         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40999         * lib/fts.c: Likewise.
41000         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
41001
41002 2006-12-25  Bruno Haible  <bruno@clisp.org>
41003
41004         * modules/utf8-ucs4-safe: New file.
41005         * lib/utf8-ucs4-safe.h: New file.
41006         * lib/unistr/utf8-ucs4-safe.c: New file.
41007
41008         * modules/utf16-ucs4-safe: New file.
41009         * lib/utf16-ucs4-safe.h: New file.
41010         * lib/unistr/utf16-ucs4-safe.c: New file.
41011
41012         * MODULES.html.sh (Unicode string functions): Add the new modules.
41013
41014 2007-01-08  Bruno Haible  <bruno@clisp.org>
41015
41016         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
41017         (Depends-on): Add unitypes.
41018         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41019         (u8_mbtouc_aux): Move out to separate file.
41020         (u8_mbtouc): Use ucs4_t, uint8_t types.
41021         * lib/unistr/utf8-ucs4.c: New file.
41022
41023         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
41024         (Depends-on): Add unitypes.
41025         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41026         (u16_mbtouc_aux): Move out to separate file.
41027         (u16_mbtouc): Use ucs4_t, uint16_t types.
41028         * lib/unistr/utf16-ucs4.c: New file.
41029
41030         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
41031         (Depends-on): Add unitypes.
41032         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
41033         (u8_uctomb_aux): Move out to separate file.
41034         (u8_uctomb): Use ucs4_t, uint8_t types.
41035         * lib/unistr/ucs4-utf8.c: New file.
41036
41037         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
41038         (Depends-on): Add unitypes.
41039         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
41040         (u16_uctomb_aux): Move out to separate file.
41041         (u16_uctomb): Use ucs4_t, uint16_t types.
41042         * lib/unistr/ucs4-utf16.c: New file.
41043
41044 2006-12-25  Bruno Haible  <bruno@clisp.org>
41045
41046         * modules/unitypes: New file.
41047         * lib/unitypes.h: New file.
41048         * MODULES.html.sh (func_all_modules): New section "Unicode string
41049         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
41050         this section. Add unitypes.
41051
41052 2007-01-08  Bruno Haible  <bruno@clisp.org>
41053
41054         Avoid variable names that conflict with those from libtool.
41055         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
41056         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
41057         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
41058         library_names_spec to acl_library_names_spec, hardcode_* to
41059         acl_hardcode_*.
41060         Reported by Ralf Wildenhues.
41061
41062 2007-01-08  Bruno Haible  <bruno@clisp.org>
41063
41064         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
41065         definition.
41066         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
41067         definition.
41068         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
41069         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
41070         definition.
41071         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
41072         definition.
41073         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
41074         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
41075         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
41076         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
41077         definition.
41078         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
41079         definition.
41080         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
41081         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
41082         GC_USE_<algorithm>.
41083         * lib/gc-libgcrypt.c: Likewise.
41084         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
41085         * modules/gc-arctwo (configure.ac): Likewise.
41086         * modules/gc-des (configure.ac): Likewise.
41087         * modules/gc-hmac-md5 (configure.ac): Likewise.
41088         * modules/gc-hmac-sha1 (configure.ac): Likewise.
41089         * modules/gc-md2 (configure.ac): Likewise.
41090         * modules/gc-md4 (configure.ac): Likewise.
41091         * modules/gc-md5 (configure.ac): Likewise.
41092         * modules/gc-random (configure.ac): Likewise.
41093         * modules/gc-rijndael (configure.ac): Likewise.
41094         * modules/gc-sha1 (configure.ac): Likewise.
41095
41096 2007-01-08  Bruno Haible  <bruno@clisp.org>
41097
41098         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
41099         macro definition.
41100         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
41101         definition.
41102         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
41103         definition.
41104         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
41105         * modules/fcntl-safer (configure.ac): Likewise.
41106         * modules/fopen-safer (configure.ac): Likewise.
41107         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
41108         GNULIB_FWRITEERROR macro definition.
41109
41110 2007-01-08  Bruno Haible  <bruno@clisp.org>
41111
41112         * m4/gnulib-common.m4: New file.
41113         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
41114         (func_get_filelist): Add m4/gnulib-common.m4.
41115
41116 2007-01-08  Bruno Haible  <bruno@clisp.org>
41117
41118         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
41119         command.
41120
41121 2007-01-08  Jim Meyering  <jim@meyering.net>
41122
41123         Use a more robust test for a "can't happen" condition.
41124         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
41125         narrowed the st_size value.  Presuming the "can't happen" condition
41126         is true, that narrowing could conceivably convert an invalid st_size
41127         value into a valid one.  Instead, use a change based on Matthew
41128         Woehlke's original patch.
41129
41130         Slight readability improvement: use an assert-like macro
41131         in place of literal "abort ()" uses.
41132         * lib/fts.c (fts_assert): Define.
41133         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
41134         Use this macro instead of a bare 'abort'.
41135
41136 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41137
41138         Don't worry about using IRIX 5.3's wctype.h broken definitions;
41139         simply work around them.
41140         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
41141         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
41142         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
41143         declaring.
41144         Don't bother to define as macros, since the standard doesn't require it.
41145         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
41146         longer worry about IRIX 5.3.
41147         (HAVE_WCTYPE_CTMP_BUG): Remove.
41148
41149 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41150
41151         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
41152         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
41153         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41154         Problems reported by Georg Schwarz for IRIX 5.3.
41155
41156         * gnulib-tool (autoconf_minversion): Take the maximum version number
41157         found, not the minimum.  Problem reported by James Youngman.
41158
41159 2007-01-03  Karl Berry  <karl@gnu.org>
41160
41161         * doc/error.texi: new file, explaining interaction with progname.
41162         * doc/gnulib.texi: include it.  Update copyright.
41163
41164 2007-01-03  Simon Josefsson  <simon@josefsson.org>
41165
41166         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
41167         AC_CANONICAL_HOST, to improve autobuild outputs.
41168
41169 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
41170             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41171
41172         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
41173         sockets, server sockets, and other file descriptors.  Count errors
41174         to compute the return value.  Reorder the code a bit to be easier
41175         to follow.  Don't set event bits that were not requested (except
41176         POLLERR and POLLHUP).
41177
41178 2007-01-01  Bruno Haible  <bruno@clisp.org>
41179
41180         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
41181
41182 2007-01-03  Jim Meyering  <jim@meyering.net>
41183
41184         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
41185
41186 2007-01-02  Bruno Haible  <bruno@clisp.org>
41187
41188         * modules/settime (Include): Require timespec.h.
41189         * modules/nanosleep (Include): Likewise.
41190
41191 2007-01-01  Bruno Haible  <bruno@clisp.org>
41192
41193         * gnulib-tool (func_emit_copyright_notice): Bump year.
41194         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
41195
41196 2007-01-01  Bruno Haible  <bruno@clisp.org>
41197
41198         Improve support for OpenBSD.
41199         * build-aux/config.rpath (libname_spec): Export.
41200         (library_names_spec): New variable. Export.
41201         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
41202         library_names_spec from the config.rpath output. Locate shared library
41203         through the name pattern in library_names_spec.
41204
41205 2007-01-01  Eric Blake  <ebb9@byu.net>
41206
41207         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
41208
41209 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
41210
41211         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
41212         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
41213         assume the C locale, and avoid an "eval" that could cause trouble.
41214         Problem with SORT reported by Bob Proulx.
41215
41216         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
41217         Define.  Trivial patch from Henning Nielsen Lund, originally
41218         sent to bug-grep@gnu.org today.
41219
41220 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41221
41222         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41223         struct stat.  Problem reported by Henning Nielsen Lund.
41224         * lib/acl.c: Include acl.h first, to check interface.  Don't
41225         bother to include sys/types.h and sys/stat.h again.
41226
41227 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41228
41229         Import the following change from libc; problem reported by
41230         Sven Verdoolaege.
41231
41232         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41233
41234         [BZ #1373]
41235         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41236
41237 2006-12-28  Jim Meyering  <jim@meyering.net>
41238
41239         * build-aux/announce-gen: Do not assume that the package
41240         builds any of tar.gz, tar.bz2, and .xdelta files.
41241         Suggestion from Simon Josefsson.
41242
41243 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41244
41245         * modules/announce-gen: New file.
41246
41247 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41248
41249         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41250         handles its gotchas now.
41251         * lib/mbswidth.c: Likewise.
41252         * lib/wcwidth.h: Likewise.
41253         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41254         and iswcntrl; the wctype module does this stuff now.
41255         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41257         * modules/mbchar (Depends-on): Add wctype.
41258         * modules/mbswidth (Depends-on): Likewise.
41259         * modules/wcwidth (Depends-on): Likewise.
41260
41261 2006-12-27  Eric Blake  <ebb9@byu.net>
41262
41263         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41264         module uses more than what <wctype.h> is required to provide.
41265
41266 2006-12-26  Eric Blake  <ebb9@byu.net>
41267
41268         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41269
41270 2006-12-26  Eric Blake  <ebb9@byu.net>
41271
41272         * modules/absolute-header: New module.
41273         * modules/fcntl (Depends-on): Depend on it.
41274         * modules/inttypes (Depends-on): Likewise.
41275         * modules/stdint (Depends-on): Likewise.
41276         * modules/sys_stat (Depends-on): Likewise.
41277         * modules/wctype (Depends-on): Likewise.
41278         * MODULES.html.sh (Support for building libraries and
41279         executables): Document it.
41280
41281 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41282
41283         * gnulib-tool (SED): Remove, undoing previous change.
41284         The problem was that it broke coreutils on Solaris, because
41285         "sed --posix" leaked into a makefile.
41286         (sed): New alias, if 'alias' and GNU sed.
41287
41288 2006-12-24  Jim Meyering  <jim@meyering.net>
41289
41290         Work around an fchownat bug in glibc-2.4:
41291         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41292         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41293         in spite of the -P option.
41294         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41295         New macros.
41296         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41297         * modules/openat (Files): Add lib/fchownat.c.
41298         * lib/openat.c (fchownat): Don't define here.  Move to...
41299         * lib/fchownat.c: ...this new file.
41300
41301 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41302
41303         Fix bug reported by Bruno Haible in
41304         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41305         where quotearg.c didn't compile on Mac OS X 10.2 because it
41306         lacks <wchar.h> and wint_t.
41307         * lib/wctype_.h (__wctype_wint_t): New type.
41308         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41309         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41310         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41311         Arg is now of type __wctype_wint_t, not wint_t.
41312         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41313         substitute HAVE_WINT_T.
41314         * modules/wctype (Files): Add m4/wint_t.m4.
41315         (wctype.h): Substitute HAVE_WINT_T.
41316
41317 2006-12-23  Bruno Haible  <bruno@clisp.org>
41318
41319         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41320
41321 2006-12-23  Bruno Haible  <bruno@clisp.org>
41322
41323         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41324         S_ISLNK.
41325         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41326         mingw.
41327
41328 2006-12-22  Bruno Haible  <bruno@clisp.org>
41329
41330         * lib/copy-file.c: Include acl.h.
41331         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41332         Close the file descriptors only after being done with copy_acl.
41333         * modules/copy-file (Depends-on): Add acl.
41334
41335 2006-12-22  Bruno Haible  <bruno@clisp.org>
41336
41337         * gnulib-tool (SED): New variable.
41338         Use $SED instead of sed everywhere.
41339
41340 2006-12-22  Bruno Haible  <bruno@clisp.org>
41341
41342         * modules/no-c++: New file.
41343         * m4/no-c++.m4: New file.
41344         * MODULES.html.sh (Support for building libraries and executables):
41345         Add no-c++.
41346
41347 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41348
41349         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41350         Include <limits.h>, and use its INT_MAX to rewrite the
41351         j loop so that it does not overflow 'int'.  Problem reported by
41352         Ralf Wildenhues in
41353         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41354         Play it safe by shifting left by 1 rather than multiplying by 2,
41355         as GCC is less likely to optimize this away when the value
41356         is signed (when it assumes overflow leads to undefined behavior).
41357         Also, don't assume time_t uses two's complement.
41358
41359 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41360
41361         * MODULES.html.sh: New module wctype.
41362         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41363         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41364         <wctype.h>, since the new wctype module should fix this.
41365         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41366         the wctype module should arrange for it.
41367         * lib/regex_internal.h: Likewise.
41368         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41369         since the wctype module should handle this now.
41370         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41371         * modules/fnmatch (Depends-on): Add wctype.
41372         * modules/quotearg (Depends-on): Likewise.
41373         * modules/regex (Depends-on): Likewise.
41374
41375 2006-12-19  Bruno Haible  <bruno@clisp.org>
41376
41377         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41378         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41379
41380 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41381
41382         * modules/savewd (Depends-on): Fix dependency on fcntl.
41383
41384 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41385
41386         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41387         conforms to C99, rather than relying on the user's environment
41388         setting of STDINT_H.
41389
41390 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41391         and Eric Blake  <ebb9@byu.net>
41392
41393         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41394         This is more consistent with the other defines here.
41395         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41396         Port to z/OS.  Problem reported by Paul Gilmartin.
41397         Change local vars to use gl_ prefix rather than ac_.
41398         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41399         with other defines.
41400         * modules/double-slash-root: New module.
41401         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41402         (Depends-on): Add double-slash-root.
41403         * MODULES.html.sh (File system functions): Mention new module.
41404
41405 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41406
41407         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41408         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41409         This is for the benefit of gzip, which doesn't do i18n.
41410
41411 2006-12-12  Jim Meyering  <jim@meyering.net>
41412
41413         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41414         Reported by Andreas Schwab <schwab@suse.de>.
41415
41416 2006-12-12  Bruno Haible  <bruno@clisp.org>
41417
41418         Merge these changes.
41419         2006-09-05  Bruno Haible  <bruno@clisp.org>
41420         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41421         iconv_alloc succeeded.
41422         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41423         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41424         test for " && dest " at the end - dest is always != NULL there. Call
41425         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41426         with 2xNULL arguments, also to flush the state storage. Handle the
41427         IRIX iconv behaviour. Realloc the final result, to throw away unused
41428         memory.
41429
41430 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41431
41432         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41433         and fchmodat unconditionally, since glibc 2.4 has them.
41434         Problem reported by Arkadiusz Miskiewicz.
41435
41436 2006-12-10  Bruno Haible  <bruno@clisp.org>
41437
41438         * gnulib-tool (func_import): Show the include files only for those
41439         modules that are copied and specified.
41440         Reported by Karl Berry.
41441
41442 2006-12-08  Jim Meyering  <jim@meyering.net>
41443
41444         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41445         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41446
41447         * build-aux/announce-gen: Add two new options, both optional:
41448         --bootstrap-tools=TOOL_LIST
41449               a comma-separated list of tools, e.g.,
41450               autoconf,automake,bison,gnulib
41451         --gnulib-snapshot-date=DATE
41452               if gnulib is in the bootstrap tool list,
41453               then report this as the snapshot date.
41454               If not specified, use the current date/time.
41455               If you specify a date here, be sure it's UTC.
41456
41457 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41458
41459         * tests/test-argp-2.sh: Fix test to match actual output.
41460         (func_compare): Fix sed script to be portable.
41461
41462 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41463
41464         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41465         workaround for this case.  It is not autoconfigured now; offhand
41466         it's hard to see how to autoconfigure it.
41467
41468 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41469
41470         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41471         a directory that is about to be chowned.  Such a directory's
41472         initial file permissions should permit the owner only and this
41473         should not be changed until after the chown, since the group and
41474         other bits would be incorrect if they granted permission before
41475         the chown.
41476
41477         Fix porting problem for iswctype reported by Georg Schwarz in:
41478         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41479         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41480         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41481         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41482         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41483
41484 2006-12-03  Jim Meyering  <jim@meyering.net>
41485
41486         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41487         p->fts_statp may not yet be defined.
41488         (fts_read): Instead, set it in the caller, once p->fts_statp is
41489         sure to be defined, and corresponds to a top-level directory.
41490         This bug made du -x fail.  Here's the coreutils test case:
41491         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41492         Reported by Mike Frysinger.
41493
41494 2006-12-01  Jim Meyering  <jim@meyering.net>
41495
41496         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41497         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41498         Reported by Simon Josefsson.
41499
41500 2006-11-30  Jim Meyering  <jim@meyering.net>
41501
41502         * m4/warning.m4: Use the all-permissive copyright notice
41503         recommended by RMS (rather than LGPL).
41504         * m4/vararrays.m4: Likewise.
41505         * m4/flexmember.m4: Likewise.
41506
41507 2006-11-29  Bruno Haible  <bruno@clisp.org>
41508
41509         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41510         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41511         using +=.
41512         Reported by Simon Josefsson <simon@josefsson.org>.
41513
41514 2006-11-28  James Youngman <jay@gnu.org>
41515
41516         * README: Advise users that they might find the bug-gnulib@gnu.org
41517         and autotools-announce@gnu.org mailing lists useful.
41518
41519 2006-11-28  Bruno Haible  <bruno@clisp.org>
41520
41521         * m4/ptrdiff_max.m4: Remove file.
41522
41523 2006-11-21  Bruno Haible  <bruno@clisp.org>
41524
41525         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41526         _AC_COMPUTE_INT.
41527         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41528         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41529         _AC_COMPUTE_INT.
41530         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41531         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41532         _AC_COMPUTE_INT.
41533         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41534
41535 2006-11-28  Jim Meyering  <jim@meyering.net>
41536
41537         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41538         warning from "gcc -Wshadow" about shadowing the builtin.
41539
41540 2006-11-27  Bruno Haible  <bruno@clisp.org>
41541
41542         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41543         _AC_COMPUTE_INT.
41544         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41545
41546 2006-11-27  Bruno Haible  <bruno@clisp.org>
41547             Paul Eggert  <eggert@cs.ucla.edu>
41548
41549         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41550
41551 2006-11-26  Bruno Haible  <bruno@clisp.org>
41552
41553         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41554         noinst_LTLIBRARIES.
41555
41556 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41557             Bruno Haible  <bruno@clisp.org>
41558
41559         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41560         if compiling with "gcc -ansi".
41561
41562 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41563
41564         Fix some incompatibilities with gcc -ansi -pedantic.
41565         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41566         if compiling pedantically with GCC, unless it's C99 or later.
41567         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41568         it mishandles gcc -ansi -pedantic as well.
41569         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41570         if gcc -pedantic.
41571         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41572         initializers for struct if -pedantic, unless it's C99 or later.
41573
41574 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41575
41576         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41577         Don't close an fd more than once. Identical atimes indicate
41578         success, not failure.
41579
41580 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41581
41582         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41583
41584 2006-11-23  Jim Meyering  <jim@meyering.net>
41585
41586         * build-aux/announce-gen: New file.  From coreutils.
41587
41588 2006-11-22  Jim Meyering  <jim@meyering.net>
41589
41590         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41591         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41592         (fts_read): Use a temporary to narrow the overused st_size member
41593         before using it in a switch statement.  Reported by Matthew Woehlke.
41594
41595         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41596         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41597
41598 2006-11-20  Bruno Haible  <bruno@clisp.org>
41599
41600         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41601         changequote instead of pairs of brackets.
41602         Reported by Andreas Schwab <schwab@suse.de>.
41603
41604 2006-11-21  Jim Meyering  <jim@meyering.net>
41605
41606         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41607         so as to remain compatible with older compilers.
41608         Patch from Michael Deutschmann.
41609
41610 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41611
41612         * MODULES.html.sh (File system functions): Add openat.
41613
41614         * lib/openat.h (rpl_fstatat): New macro, if
41615         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41616         (fstatat): Define to rpl_fstatat under the same conditions,
41617         unless COMPILING_FSTATAT.
41618         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41619         seems to have the bug.
41620         * lib/fstatat.c: New file.
41621         * modules/openat (Files): Add it.
41622
41623 2006-11-20  Bruno Haible  <bruno@clisp.org>
41624
41625         * Makefile: New file.
41626
41627 2006-11-20  Jim Meyering  <jim@meyering.net>
41628
41629         The beginnings of syntax-related checks for gnulib.
41630         * lib/Makefile: New file.
41631         * lib/t-idcache: New script.  Ensure that the two halves of
41632         idcache.c stay in sync.
41633
41634         * lib/idcache.c: Adjust comments in user- and group- portions to
41635         be more accurate, and to be consistent with one another.
41636
41637 2006-11-20  Jim Meyering  <jim@meyering.net>
41638
41639         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41640         continue using the flexible array member (thus, this module performs
41641         half as many malloc calls), with the addition that...
41642         (getgroup, getuser): Consistently record a non-match via an empty
41643         "name" string, and map an empty string match to a NULL return value.
41644         * modules/idcache (Depends-on): Re-add flexmember.
41645
41646         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41647         (getuidbyname, getgroup, getgidbyname): Likewise.
41648
41649         Use cleaner syntax: NULL rather than 0.
41650         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41651
41652 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41653
41654         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41655         It mishandled the case where the group was missing.
41656         Problem reported by Greg Schafer.
41657         * modules/idcache: Likewise.
41658
41659 2006-11-18  Jim Meyering  <jim@meyering.net>
41660
41661         * check-module (%exempt_header): Add exception for some
41662         conditionally-included headers.
41663
41664         * modules/i-ring (Depends-on): Add verify.
41665         (License): Change to LGPL.
41666
41667 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41668
41669         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41670         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41671         and inttostr.h.  Use snprintf rather than uinttostr, so that
41672         LGPLed code doesn't depend on GPLed.
41673
41674 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41675
41676         * modules/inline (License): Change from GPL to LGPL.
41677
41678 2006-11-17  Jim Meyering  <jim@meyering.net>
41679
41680         * modules/d-type (License): Switch to LGPL.
41681
41682 2006-11-15  Bruno Haible  <bruno@clisp.org>
41683
41684         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41685
41686 2006-11-15  Eric Blake  <ebb9@byu.net>
41687
41688         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41689         the module dependency.
41690
41691 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41692             Bruno Haible  <bruno@clisp.org>
41693
41694         * gnulib-tool (func_create_testdir): Add license consistency check.
41695
41696 2006-11-15  Eric Blake  <ebb9@byu.net>
41697
41698         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41699         random "(cached)" in configure output.
41700
41701 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41702
41703         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41704         test for conforming inttypes.h is both announced and cached.
41705
41706         * MODULES.html.sh (seen_modules, seen_files): New variables.
41707         (func_module): Rewrite to use a few less gnulib-tool and sed
41708         invocations.  Avoid a couple of quadratic algorithms for ...
41709         (missed_modules, missed_files): ... these, with ...
41710         (func_append, func_tmpdir): ... these new functions, from
41711         gnulib-tool.  Analogously, install traps for cleanup.
41712
41713         * tests/test-gc.c (main): Remove unused variables.
41714         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41715
41716 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41717
41718         * modules/inttostr (License): Change to LGPL.
41719
41720 2006-11-14  Eric Blake  <ebb9@byu.net>
41721
41722         * modules/tempname (License): Change to LGPL.
41723
41724 2006-11-14  Eric Blake  <ebb9@byu.net>
41725
41726         * doc/functions.texi (Function Portability): *printf functions on
41727         Cygwin now understand all POSIX size specifiers.
41728
41729 2006-11-14  Bruno Haible  <bruno@clisp.org>
41730
41731         * modules/c-ctype (License): Change to LGPL.
41732
41733 2006-11-12  Bruno Haible  <bruno@clisp.org>
41734
41735         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41736         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41737         for GNOME libraries, for which the include files are installed in
41738         subdirectories of $prefix/include.
41739
41740 2006-11-12  Bruno Haible  <bruno@clisp.org>
41741
41742         * m4/lib-link.m4: Require at least autoconf-2.54.
41743         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41744         name to underscores for the --with option.
41745
41746 2006-11-13  Bruno Haible  <bruno@clisp.org>
41747
41748         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41749         the tests directory.
41750         Reported by Ralf Wildenhues.
41751
41752 2006-11-13  Bruno Haible  <bruno@clisp.org>
41753
41754         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41755         (func_emit_initmacro_end): Undo the override here.
41756         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41757         Works around the famous automake error in coreutils.
41758
41759 2006-11-13  Eric Blake  <ebb9@byu.net>
41760
41761         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41762         element, not its node.
41763
41764 2006-11-12  Bruno Haible  <bruno@clisp.org>
41765
41766         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41767         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41768
41769 2006-11-12  Bruno Haible  <bruno@clisp.org>
41770
41771         * gnulib-tool: New option --local-symlink.
41772         (func_usage): Document it.
41773         (lsymbolic): New variable.
41774         (func_import, func_create_testdir): If --symlink was not specified,
41775         test whether --local-symlink was specified and the file comes from
41776         the local_gnulib_dir.
41777
41778 2006-11-12  Bruno Haible  <bruno@clisp.org>
41779
41780         * gnulib-tool (func_ln): New function.
41781         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41782
41783 2006-11-12  Bruno Haible  <bruno@clisp.org>
41784
41785         Finish support for source files in subdirectories.
41786         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41787         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41788         AUTOMAKE_OPTIONS.
41789         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41790
41791 2006-11-12  Bruno Haible  <bruno@clisp.org>
41792
41793         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41794         EXTRA_lib_SOURCES augmentation.
41795         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41796
41797 2006-11-12  Jim Meyering  <jim@meyering.net>
41798
41799         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41800         file descriptors.  This also averts a failure on systems with
41801         native openat support when a traversed directory lacks "x" access.
41802         * lib/fts_.h: Include "i-ring.h"
41803         (struct FTS) [fts_fd_ring]: New member.
41804         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41805         (FCHDIR): Add parentheses.
41806         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41807         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41808         When descending, rather than simply closing the previous
41809         fts_cwd_fd value, push that file descriptor onto the ring.
41810         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41811         (fts_open): Initialize the new fd_ring member.
41812         (fts_close): Clear the ring.
41813         (fts_safe_changedir): When possible, use our new fd_ring to skip
41814         the diropen and fstat and dev/ino comparison that would normally
41815         accompany a virtual `chdir ("..")'.
41816
41817         * modules/fts (Depends-on): Add i-ring.
41818         * modules/i-ring: New module.
41819         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41820         * m4/i-ring.m4: New file.
41821
41822 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41823
41824         * gnulib-tool (func_create_testdir): Fix replacement of
41825         `build-aux' in configure.ac.  Run autotools in gltests
41826         subdirectory.
41827         (func_create_testdir, func_create_megatestdir, test): There is
41828         no need for '--force' in most autotool invocations in a new
41829         tree.  Actually fail the whole test if any of the tools, or the
41830         configure or make stages fail.
41831
41832         Sync from Automake.
41833         * build-aux/gnupload: Revert last change.  Add pointer to upload
41834         instructions of the GNU Maintenance Instructions.
41835         Suggestion by Karl Berry.
41836
41837 2006-11-10  Jim Meyering  <jim@meyering.net>
41838
41839         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41840
41841 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41842
41843         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41844         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41845         (bind_textdomain_codeset) [! ENABLE_NLS]:
41846         Evaluate all the arguments.  That way, callers get compatible behavior
41847         if the arguments have side effects.  Also, it avoids some GCC
41848         diagnostics in some cases; Joel E. Denny reported problems when Bison
41849         was configured with --enable-gcc-warnigs.
41850
41851 2006-11-10  Jim Meyering  <jim@meyering.net>
41852
41853         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41854         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41855         account.
41856
41857 2006-11-10  Jim Meyering  <jim@meyering.net>
41858
41859         * modules/inline: New file/module.
41860         * modules/xalloc (Files): Remove m4/inline.m4.
41861         (Depends-on): Add inline, instead.
41862         * modules/oset: Likewise.
41863         * modules/list: Likewise.
41864
41865 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41866
41867         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41868         Problem reported by Matthew Woehlke.
41869
41870 2006-11-09  Bruno Haible  <bruno@clisp.org>
41871
41872         * lib/tempname.c (gen_tempname): Remove variant that invokes
41873         __gen_tempname.
41874         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41875         __gen_tempname.
41876
41877 2006-11-08  Bruno Haible  <bruno@clisp.org>
41878
41879         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41880         to 'yes' instead of 'cross-compiling'.
41881
41882 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41883
41884         * lib/quotearg.h (quotearg_free): New decl.
41885         * lib/quotearg.c (quotearg_free): New function.
41886         (slot0, nslots, slotvec0, slotvec):
41887         Now file-scope so that quotearg_free can get at them.
41888
41889 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41890
41891         Sync from Automake.
41892         * build-aux/gnupload: Add missing 'gnu' to example URL.
41893         Report by Karl Berry.
41894
41895 2006-11-08  Bruno Haible  <bruno@clisp.org>
41896
41897         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41898         Suggested by Paul Eggert.
41899
41900 2006-11-08  Jim Meyering  <jim@meyering.net>
41901
41902         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41903         It's already included if !_LIBC.
41904         (fts_safe_changedir): Add a comment.
41905
41906 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41907
41908         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41909         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41910         Matthew Woehlke.
41911
41912         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41913         definitions up, to avoid colliding with change below.
41914         (static_inline) [HAVE_INLINE]: New macro.
41915         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41916         Provide extern decls when !HAVE_INLINE.  Do not define unless
41917         static_inline is defined, either by us or by xmalloc.c.  Use
41918         static_inline rather than static inline.
41919         (XCALLOC): Optimize sizeof(T) = 1 case.
41920         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41921
41922 2006-11-07  Bruno Haible  <bruno@clisp.org>
41923
41924         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41925         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41926         AC_C_INLINE.
41927         * modules/xalloc (Files): Add m4/inline.m4.
41928
41929 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41930
41931         * README: Fix typo.
41932         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41933         (Miscellanous Notes): ...from this.
41934
41935 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41936
41937         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41938         Mention that offsetof should be used instead of sizeof.
41939         From Bruno Haible.
41940
41941 2006-11-07  Bruno Haible  <bruno@clisp.org>
41942
41943         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41944
41945 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41946
41947         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41948         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41949         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41950         (gl_tree_add_before, gl_tree_add_after):
41951         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41952         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41953         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41954         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41955         (gl_linked_add_after, gl_linked_add_at): Likewise.
41956         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41957         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41958         (gl_tree_add_before, gl_tree_add_after): Likewise.
41959         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41960         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41961         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41962
41963 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41964
41965         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41966
41967 2006-11-06  Bruno Haible  <bruno@clisp.org>
41968
41969         * m4/inline.m4: New file.
41970         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41971         * modules/list (Files): Add m4/inline.m4.
41972         * modules/oset (Files): Likewise.
41973
41974 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41975
41976         * lib/idcache.c: Include <stddef.h>, for offsetof.
41977         (struct userid.name): Change from char * to a flexible array member.
41978         All uses changed.
41979         * modules/idcache (Depends-on): Add flexmember.
41980
41981         * MODULES.html.sh (Core language properties): New module flexmember.
41982         * modules/flexmember, m4/flexmember.m4: New files.
41983
41984         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41985         inline functions that are identical with the old xnmalloc_inline,
41986         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41987         that we can avoid some unnecessary integer multiplications and
41988         divisions in the common case where the element size is known at
41989         compile time.
41990         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41991         needed.
41992         (xnboundedmalloc): Remove.
41993         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41994         arguments, for consistency with rest of this header.
41995         (xcharalloc): Rewrite using XNMALLOC.
41996         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41997         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41998         versions have been moved to lib/xalloc.h and renamed to be the
41999         non-*_inline versions.
42000         (xmalloc, xrealloc): Implement without reference to the xnmalloc
42001         and xnrealloc functions, since those functions are now inline and
42002         now call us.
42003         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
42004         renaming described above.
42005         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
42006         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
42007         captures the dependency in AC_C_INLINE.
42008
42009         New module canonicalize-lgpl, proposed by Charles Wilson in
42010         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
42011         with a few small changes afterwards.
42012         * MODULES.html.sh (File system functions): New module
42013         canonicalize-lgpl.
42014         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
42015         and canonicalize_file_name.
42016         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
42017         * modules/canonicalize-lgpl: New files.
42018
42019 2006-11-05  Bruno Haible  <bruno@clisp.org>
42020
42021         * gnulib-tool (func_import, func_create_testdir): Create directories
42022         also for files in subdirectories of lib/.
42023
42024 2006-11-05  Bruno Haible  <bruno@clisp.org>
42025
42026         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
42027         ANSI C compliant.
42028
42029 2006-11-03  Bruno Haible  <bruno@clisp.org>
42030
42031         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
42032         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
42033         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
42034         (xnboundedmalloc): New inline function.
42035         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
42036         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
42037         xmalloc.
42038         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
42039         xmalloc.
42040         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
42041         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
42042         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
42043         xmalloc.
42044         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42045         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
42046         xmalloc.
42047         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
42048         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42049         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
42050         xmalloc.
42051         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42052         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
42053         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42054         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
42055         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
42056         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
42057         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
42058
42059 2006-11-03  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/c-ctype.h [C++]: Define functions without name mangling.
42062         * lib/fwriteerror.h [C++]: Likewise.
42063         * lib/gcd.h [C++]: Likewise.
42064         * lib/linebreak.h [C++]: Likewise.
42065
42066 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
42067
42068         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
42069         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
42070         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
42071         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42072         Check for functions and headers just once.
42073         Check for declaration of canonicalize_file_name.
42074         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
42075
42076 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42077
42078         * gnulib-tool (func_import): Fix typo in actioncmd.
42079
42080 2006-11-02  Bruno Haible  <bruno@clisp.org>
42081
42082         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
42083         newline sequence in the Makefile.am snippet as a space, like "make"
42084         does.
42085         Reported by Roger Persson <perrog@gmail.com>.
42086
42087 2006-11-01  Bruno Haible  <bruno@clisp.org>
42088
42089         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
42090         already declared in <string.h>.
42091         * lib/strcase.h (strncasecmp): Don't declare it if yes.
42092
42093 2006-11-01  Bruno Haible  <bruno@clisp.org>
42094
42095         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
42096         * lib/strcase.h: Include <string.h>.
42097         (strcasecmp): Define to rpl_strcasecmp here.
42098
42099 2006-11-01  Bruno Haible  <bruno@clisp.org>
42100
42101         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
42102
42103 2006-11-01  Eric Blake  <ebb9@byu.net>
42104
42105         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
42106
42107         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
42108
42109 2006-10-29  Bruno Haible  <bruno@clisp.org>
42110
42111         Make it compile in C++ mode.
42112         * lib/full-write.c (full_rw): Add a cast.
42113
42114 2006-11-01  Bruno Haible  <bruno@clisp.org>
42115
42116         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
42117         be POSIX compliant.
42118         Reported by Roger Persson <perrog@gmail.com>.
42119
42120 2006-11-01  Eric Blake  <ebb9@byu.net>
42121
42122         * lib/getopt_.h: Fix comments.
42123
42124 2006-10-31  Eric Blake  <ebb9@byu.net>
42125
42126         * modules/tmpdir (Depends-on): Add sys_stat.
42127         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
42128         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
42129         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
42130         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
42131         tempname.
42132
42133 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42134
42135         Avoid some C++ diagnostics reported by Bruno Haible.
42136         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
42137         xmalloc.
42138         (quotearg_alloc): Use xcharalloc rather than xmalloc.
42139         (struct slotvec): Move to top level.
42140         (quotearg_n_options): Rewrite to avoid xmalloc.
42141         * lib/xalloc.h (xcharalloc): New function.
42142         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
42143         [defined __cplusplus]: Add function template that provides result
42144         type propagation.  This part of the change is from Bruno Haible.
42145
42146 2006-10-29  Bruno Haible  <bruno@clisp.org>
42147
42148         Make it compile in C++ mode.
42149         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
42150         * lib/strnlen1.c (strnlen1): Cast memchr result.
42151         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
42152         * lib/clean-temp.c (string_equals, string_hash): Add casts.
42153         (create_temp_dir): Rename local variable 'template'.
42154         (compile_csharp_using_sscli): Add cast.
42155         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
42156         * lib/findprog.c (find_in_path): Likewise.
42157         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
42158         * lib/wait-process.c (register_slave_subprocess): Likewise.
42159
42160 2006-10-22  Bruno Haible  <bruno@clisp.org>
42161
42162         * modules/tsearch: New file.
42163         * lib/tsearch.h: New file.
42164         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
42165         * m4/tsearch.m4: New file.
42166         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
42167
42168 2006-10-29  Eric Blake  <ebb9@byu.net>
42169
42170         * lib/arcfour.c: Assume config.h.
42171         * lib/arctwo.c: Likewise.
42172         * lib/base64.c: Likewise.
42173         * lib/check-version.c: Likewise.
42174         * lib/crc.c: Likewise.
42175         * lib/des.c: Likewise.
42176         * lib/gc-gnulib.c: Likewise.
42177         * lib/gc-libgcrypt.c: Likewise.
42178         * lib/gc-pbkdf2-sha1.c: Likewise.
42179         * lib/getaddrinfo.c: Likewise.
42180         * lib/getdelim.c: Likewise.
42181         * lib/getline.c: Likewise.
42182         * lib/hmac-md5.c: Likewise.
42183         * lib/hmac-sha1.c: Likewise.
42184         * lib/iconvme.c: Likewise.
42185         * lib/md2.c: Likewise.
42186         * lib/md4.c: Likewise.
42187         * lib/memxor.c: Likewise.
42188         * lib/read-file.c: Likewise.
42189         * lib/readline.c: Likewise.
42190         * lib/rijndael-alg-fst.c: Likewise.
42191         * lib/rijndael-api-fst.c: Likewise.
42192         * lib/xgetdomainname.c: Likewise.
42193
42194 2006-10-28  Eric Blake  <ebb9@byu.net>
42195
42196         * lib/xstrndup.c: Assume config.h.
42197
42198 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42199
42200         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
42201         stat-macros.h is now for our own macros, whereas stat_h is for
42202         macros in the <sys/stat.h> name space.
42203         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
42204         (STAT_MACROS_H): Remove.
42205         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
42206         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
42207         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
42208         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
42209         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
42210         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
42211         Move these macros to ...
42212         * lib/stat_.h: here.  Don't include stat-macros.h.
42213         * lib/canonicalize.c: Don't include stat-macros.h.
42214         * lib/chown.c: Likewise.
42215         * lib/euidaccess.c: Likewise.
42216         * lib/file-type.c: Likewise.
42217         * lib/filemode.c: Likewise.
42218         * lib/glob.c: Likewise.
42219         * lib/isapipe.c: Likewise.
42220         * lib/lchown.c: Likewise.
42221         * lib/lstat.c: Likewise.
42222         * lib/mkdir-p.c: Likewise.
42223         * lib/rmdir.c: Likewise.
42224         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42225         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42226         unless mkdir isn't declared, to speed up 'configure'.
42227         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42228         would define all the S_* symbols.
42229         * modules/canonicalize (Depends-on):
42230         Depend on sys_stat, not stat-macros.
42231         * modules/chown: Likewise.
42232         * modules/euidaccess: Likewise.
42233         * modules/filemode: Likewise.
42234         * modules/file-type: Likewise.
42235         * modules/glob: Likewise.
42236         * modules/isapipe: Likewise.
42237         * modules/lchown: Likewise.
42238         * modules/lstat: Likewise.
42239         * modules/mkancesdirs: Likewise.
42240         * modules/rmdir: Likewise.
42241         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42242         * modules/modechange: Likewise.
42243         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42244         (configure.ac): Remove gl_STAT_MACROS.
42245         * modules/sys_stat (Depends-on): Remove stat-macros.
42246
42247 2006-10-27  Bruno Haible  <bruno@clisp.org>
42248
42249         * m4/signed.m4: Remove file.
42250         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42251         invocation.
42252         * modules/vasnprintf (Files): Remove m4/signed.m4.
42253
42254 2006-10-27  Bruno Haible  <bruno@clisp.org>
42255
42256         Update to GNU gettext 0.16.
42257         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42258         m4/inttypes-h.m4, m4/signed.m4.
42259         * m4/gettext.m4: Update to GNU gettext 0.16.
42260         * m4/intl.m4: New file, from GNU gettext.
42261         * m4/intldir.m4: New file, from GNU gettext.
42262         * config/srclist.txt: Update
42263
42264 2006-10-27  Eric Blake  <ebb9@byu.net>
42265
42266         * MODULES.html.sh: Document tempname.
42267         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42268         dependencies.
42269         (Files): Move lib/tempname.c...
42270         * modules/tempname: ...to this new module.
42271         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42272         (gl_PREREQ_TEMPNAME): Move...
42273         * m4/tempname.m4: ...to this new file.
42274         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42275         * modules/sys_stat (Depends-on): Add stat-macros.
42276         * lib/stat_.h (includes): Pick up stat macros.
42277         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42278         if stat macros are broken.
42279         * lib/tempname.c (includes): No need to include "stat-macros.h".
42280         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42281         (direxists, __path_search) [!_LIBC]: Don't compile these in
42282         gnulib; the tmpdir module covers that.
42283         * lib/tempname.h: New file.
42284
42285 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42286
42287         * COPYING: Explain how gnulib-tool converts licence headers.
42288         Almost all wording by Eric Blake.
42289
42290 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42291
42292         * lib/mbchar.h (is_basic_table): Make read-only.
42293         * lib/mbchar.c (is_basic_table): Likewise.
42294         Reported by John Darrington.
42295
42296 2006-10-25  Bruno Haible  <bruno@clisp.org>
42297
42298         * lib/progname.h (set_program_name): Undefine before defining.
42299
42300 2006-10-25  Bruno Haible  <bruno@clisp.org>
42301
42302         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42303         false for non-gcc C++ compilers.
42304         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42305
42306 2006-10-24  Bruno Haible  <bruno@clisp.org>
42307
42308         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42309         iconv implementations like Irix iconv.
42310
42311 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42312
42313         * modules/vararrays: New file.
42314         * m4/vararrays.m4: New file, taken from diffutils.
42315         * MODULES.html.sh: New module vararrays.
42316
42317 2006-10-24  Karl Berry  <karl@gnu.org>
42318
42319         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42320         Don't call GNU Unix.
42321
42322 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42323
42324         * users.txt: Add Libtool.
42325
42326         Sync from Libtool:
42327
42328         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42329
42330         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42331         to gnulib's policy of including config.h unconditionally.
42332
42333 2006-10-24  Bruno Haible  <bruno@clisp.org>
42334
42335         * modules/wcwidth (Files): Add m4/wint_t.m4.
42336         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42337         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42338
42339 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42340
42341         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42342         to pacify GCC with some -W flags enabled.  Problem reported by
42343         Bruno Haible.
42344
42345 2006-10-24  Jim Meyering  <jim@meyering.net>
42346
42347         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42348         Reported by Karl Berry.
42349
42350 2006-10-23  Bruno Haible  <bruno@clisp.org>
42351
42352         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42353
42354 2006-10-24  Bruno Haible  <bruno@clisp.org>
42355
42356         * lib/gl_list.h: Use C comment style, not C++ comment style.
42357
42358 2006-10-23  Eric Blake  <ebb9@byu.net>
42359
42360         * lib/getaddrinfo.c (includes): Add missing include.
42361
42362 2006-10-23  Bruno Haible  <bruno@clisp.org>
42363             Paul Eggert  <eggert@cs.ucla.edu>
42364
42365         Ability to rename obstack_free.
42366         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42367         obstack_free.
42368         (obstack_free): Invoke the __obstack_free macro.
42369         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42370
42371 2006-10-23  Bruno Haible  <bruno@clisp.org>
42372             Paul Eggert  <eggert@cs.ucla.edu>
42373
42374         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42375         __argc, __argv from the declaration. (They are defined as macros on
42376         mingw.)
42377
42378 2006-10-22  Bruno Haible  <bruno@clisp.org>
42379
42380         * doc/gnulib-intro.texi: New file.
42381         * doc/gnulib.texi: Include it.
42382
42383 2006-10-21  Bruno Haible  <bruno@clisp.org>
42384
42385         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42386         "Introduction", "Miscellanous Notes", "Particular Modules".
42387
42388 2006-10-21  Bruno Haible  <bruno@clisp.org>
42389
42390         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42391         Change mostlyclean-local rule to avoid sh syntax error from bash
42392         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42393
42394 2006-10-23  Jim Meyering  <jim@meyering.net>
42395
42396         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42397         in place of snprintf.
42398
42399         * modules/inttostr (Files): Add lib/uinttostr.c.
42400         * lib/uinttostr.c (inttostr): New file/function.
42401         * lib/inttostr.h (uinttostr): Declare.
42402         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42403         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42404         Add uinttostr.
42405         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42406
42407 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42408
42409         * lib/canonicalize.c (ELOOP): Define if not already defined.
42410         Problem reported by Bruno Haible in
42411         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42412
42413 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42414
42415         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42416         Problem reported by Perry Smith and Ville Laurikari.
42417
42418         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42419         uses.
42420
42421 2006-10-19  Bruno Haible  <bruno@clisp.org>
42422
42423         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42424         for mingw.
42425
42426 2006-10-19  Bruno Haible  <bruno@clisp.org>
42427
42428         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42429         Needed for mingw.
42430
42431 2006-10-19  Bruno Haible  <bruno@clisp.org>
42432
42433         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42434
42435 2006-10-19  Bruno Haible  <bruno@clisp.org>
42436
42437         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42438         it.
42439
42440 2006-10-19  Bruno Haible  <bruno@clisp.org>
42441
42442         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42443         invocation.
42444
42445 2006-10-19  Bruno Haible  <bruno@clisp.org>
42446
42447         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42448         mountlist by default.
42449
42450 2006-10-16  Bruno Haible  <bruno@clisp.org>
42451
42452         * lib/c-strstr.c: Include c-strstr.h.
42453
42454 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42455
42456         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42457         in a slash.
42458
42459 2006-10-18  Bruno Haible  <bruno@clisp.org>
42460
42461         * lib/lock.h [C++]: Wrap definitions in extern "C".
42462
42463 2006-10-18  Bruno Haible  <bruno@clisp.org>
42464
42465         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42466         gl_LIBOBJS list.
42467
42468 2006-10-18  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42471
42472 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42473
42474         * lib/xstrtol.h: Include gettext.h.
42475         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42476         Problem reported by Eric Blake.
42477         * modules/xstrtol (Depends-on): Add gettext-h.
42478
42479 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42480
42481         * lib/strftime.c (advance): New macro.
42482         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42483         incomplete type, so you can't add 0 to it.  Problem and patch
42484         reported by Eelco Dolstra for dietlibc.
42485
42486 2006-10-18  Jim Meyering  <jim@meyering.net>
42487
42488         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42489         type for a local, and rename it: s/up/user_proc/.
42490
42491 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42492
42493         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42494         READ_UTMP_USER_PROCESS.
42495         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42496
42497 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42498
42499         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42500         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42501
42502 2006-10-17  Eric Blake  <ebb9@byu.net>
42503
42504         * lib/sigprocmask.c (sigprocmask): Fix typo.
42505
42506         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42507
42508         * modules/clean-temp (Makefile.am): Don't add to make output...
42509         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42510         config.h.
42511
42512 2006-10-17  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42515         differently if DEFAULT_TEXT_DOMAIN is set.
42516
42517 2006-10-16  Bruno Haible  <bruno@clisp.org>
42518
42519         * lib/clean-temp.c: Include fwriteerror.h.
42520
42521 2006-10-16  Bruno Haible  <bruno@clisp.org>
42522
42523         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42524
42525 2006-10-16  Bruno Haible  <bruno@clisp.org>
42526
42527         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42528         * lib/sigprocmask.h: Include <sys/types.h>.
42529         (sigset_t): Use the system's definition if present.
42530
42531 2006-10-17  Eric Blake  <ebb9@byu.net>
42532
42533         * lib/xvasprintf.c (includes): Assume config.h.
42534         * lib/xasprintf.c (includes): Likewise.
42535
42536 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42537
42538         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42539         at least as wide as intmax_t.
42540
42541 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42542
42543         (Imported from Automake.)
42544         * build-aux/gnupload: Update to version 1.1 of directive file.
42545
42546 2006-10-16  Eric Blake  <ebb9@byu.net>
42547
42548         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42549         match Automake 1.10a.
42550
42551 2006-10-14  Bruno Haible  <bruno@clisp.org>
42552
42553         * modules/sigprocmask: New file.
42554         * lib/sigprocmask.h: New file.
42555         * lib/sigprocmask.c: New file.
42556         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42557         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42558         request sigprocmask.o.
42559         (gl_PREREQ_SIGPROCMASK): New macro.
42560         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42561         (Depends-on): Add sigprocmask.
42562         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42563         gt_SIGNALBLOCKING. Test for 'raise' only once.
42564         * lib/fatal-signal.c: Include sigprocmask.h.
42565         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42566         unblock_fatal_signals): Define always.
42567         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42568         sigprocmask.
42569
42570 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42571
42572         Sync from Automake.
42573         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42574         which incorrectly sets the mode of an existing destination
42575         directory.  In some cases the unpatched install-sh could do the
42576         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42577         system.  We hope this is rare in practice, but it's clearly worth
42578         fixing.  Problem reported by Alex Unleashed in
42579         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42580         Also, don't bother to check for -m bugs unless we're using -m;
42581         suggested by Stepan Kasal.
42582
42583 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42584
42585         Sync from Automake.
42586         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42587         `-c' flag, so they appear at the same position as in %FASTDEP%
42588         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42589         which ignores unknown options only after the first non-option.
42590         Bug report against M4 by Nelson H. F. Beebe.
42591
42592 2006-10-13  Jim Meyering  <jim@meyering.net>
42593
42594         Fix a bug in yesterday's change.
42595         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42596         p->fts_statp->st_dev would be used uninitialized.
42597         Ensures that we always call fts_stat on the very first entry.
42598         Miklos Szeredi reported that find -xdev stopped working.
42599
42600 2006-10-12  Bruno Haible  <bruno@clisp.org>
42601
42602         * gnulib-tool (func_get_automake_snippet): Append an automatically
42603         computed EXTRA_DIST augmentation.
42604         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42605         * modules/alloca-opt (Makefile.am): Likewise.
42606         * modules/allocsa (Makefile.am): Likewise.
42607         * modules/arcfour (Makefile.am): Likewise.
42608         * modules/arctwo (Makefile.am): Likewise.
42609         * modules/argmatch (Makefile.am): Likewise.
42610         * modules/argz (Makefile.am): Likewise.
42611         * modules/atexit (Makefile.am): Likewise.
42612         * modules/backupfile (Makefile.am): Likewise.
42613         * modules/byteswap (Makefile.am): Likewise.
42614         * modules/c-strtod (Makefile.am): Likewise.
42615         * modules/c-strtold (Makefile.am): Likewise.
42616         * modules/calloc (Makefile.am): Likewise.
42617         * modules/canon-host (Makefile.am): Likewise.
42618         * modules/canonicalize (Makefile.am): Likewise.
42619         * modules/chdir-long (Makefile.am): Likewise.
42620         * modules/chdir-safer (Makefile.am): Likewise.
42621         * modules/check-version (Makefile.am): Likewise.
42622         * modules/chown (Makefile.am): Likewise.
42623         * modules/cloexec (Makefile.am): Likewise.
42624         * modules/close-stream (Makefile.am): Likewise.
42625         * modules/closeout (Makefile.am): Likewise.
42626         * modules/crc (Makefile.am): Likewise.
42627         * modules/csharpexec (Makefile.am): Likewise.
42628         * modules/cycle-check (Makefile.am): Likewise.
42629         * modules/des (Makefile.am): Likewise.
42630         * modules/dev-ino (Makefile.am): Likewise.
42631         * modules/dirfd (Makefile.am): Likewise.
42632         * modules/dirname (Makefile.am): Likewise.
42633         * modules/dup2 (Makefile.am): Likewise.
42634         * modules/eealloc (Makefile.am): Likewise.
42635         * modules/error (Makefile.am): Likewise.
42636         * modules/euidaccess (Makefile.am): Likewise.
42637         * modules/exclude (Makefile.am): Likewise.
42638         * modules/exitfail (Makefile.am): Likewise.
42639         * modules/fcntl-safer (Makefile.am): Likewise.
42640         * modules/fcntl (Makefile.am): Likewise.
42641         * modules/file-type (Makefile.am): Likewise.
42642         * modules/fileblocks (Makefile.am): Likewise.
42643         * modules/filemode (Makefile.am): Likewise.
42644         * modules/filenamecat (Makefile.am): Likewise.
42645         * modules/fnmatch (Makefile.am): Likewise.
42646         * modules/fopen-safer (Makefile.am): Likewise.
42647         * modules/fpending (Makefile.am): Likewise.
42648         * modules/fprintftime (Makefile.am): Likewise.
42649         * modules/free (Makefile.am): Likewise.
42650         * modules/fsusage (Makefile.am): Likewise.
42651         * modules/ftruncate (Makefile.am): Likewise.
42652         * modules/fts (Makefile.am): Likewise.
42653         * modules/gc-arcfour (Makefile.am): Likewise.
42654         * modules/gc-des (Makefile.am): Likewise.
42655         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42656         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42657         * modules/gc-md4 (Makefile.am): Likewise.
42658         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42659         * modules/gc-sha1 (Makefile.am): Likewise.
42660         * modules/gc (Makefile.am): Likewise.
42661         * modules/getaddrinfo (Makefile.am): Likewise.
42662         * modules/getcwd (Makefile.am): Likewise.
42663         * modules/getdelim (Makefile.am): Likewise.
42664         * modules/getdomainname (Makefile.am): Likewise.
42665         * modules/getgroups (Makefile.am): Likewise.
42666         * modules/gethostname (Makefile.am): Likewise.
42667         * modules/gethrxtime (Makefile.am): Likewise.
42668         * modules/getline (Makefile.am): Likewise.
42669         * modules/getloadavg (Makefile.am): Likewise.
42670         * modules/getlogin_r (Makefile.am): Likewise.
42671         * modules/getndelim2 (Makefile.am): Likewise.
42672         * modules/getopt (Makefile.am): Likewise.
42673         * modules/getpagesize (Makefile.am): Likewise.
42674         * modules/getpass-gnu (Makefile.am): Likewise.
42675         * modules/getpass (Makefile.am): Likewise.
42676         * modules/getsubopt (Makefile.am): Likewise.
42677         * modules/gettime (Makefile.am): Likewise.
42678         * modules/gettimeofday (Makefile.am): Likewise.
42679         * modules/getugroups (Makefile.am): Likewise.
42680         * modules/getusershell (Makefile.am): Likewise.
42681         * modules/glob (Makefile.am): Likewise.
42682         * modules/group-member (Makefile.am): Likewise.
42683         * modules/hard-locale (Makefile.am): Likewise.
42684         * modules/hash (Makefile.am): Likewise.
42685         * modules/hmac-md5 (Makefile.am): Likewise.
42686         * modules/hmac-sha1 (Makefile.am): Likewise.
42687         * modules/human (Makefile.am): Likewise.
42688         * modules/idcache (Makefile.am): Likewise.
42689         * modules/imaxabs (Makefile.am): Likewise.
42690         * modules/imaxdiv (Makefile.am): Likewise.
42691         * modules/inet_ntop (Makefile.am): Likewise.
42692         * modules/inet_pton (Makefile.am): Likewise.
42693         * modules/intprops (Makefile.am): Likewise.
42694         * modules/inttostr (Makefile.am): Likewise.
42695         * modules/inttypes (Makefile.am): Likewise.
42696         * modules/isapipe (Makefile.am): Likewise.
42697         * modules/javaversion (Makefile.am): Likewise.
42698         * modules/lchmod (Makefile.am): Likewise.
42699         * modules/lchown (Makefile.am): Likewise.
42700         * modules/localcharset (Makefile.am): Likewise.
42701         * modules/long-options (Makefile.am): Likewise.
42702         * modules/lstat (Makefile.am): Likewise.
42703         * modules/malloc (Makefile.am): Likewise.
42704         * modules/mathl (Makefile.am): Likewise.
42705         * modules/mbchar (Makefile.am): Likewise.
42706         * modules/md2 (Makefile.am): Likewise.
42707         * modules/md4 (Makefile.am): Likewise.
42708         * modules/md5 (Makefile.am): Likewise.
42709         * modules/memcasecmp (Makefile.am): Likewise.
42710         * modules/memchr (Makefile.am): Likewise.
42711         * modules/memcmp (Makefile.am): Likewise.
42712         * modules/memcoll (Makefile.am): Likewise.
42713         * modules/memcpy (Makefile.am): Likewise.
42714         * modules/memmem (Makefile.am): Likewise.
42715         * modules/memmove (Makefile.am): Likewise.
42716         * modules/mempcpy (Makefile.am): Likewise.
42717         * modules/memrchr (Makefile.am): Likewise.
42718         * modules/memset (Makefile.am): Likewise.
42719         * modules/memxor (Makefile.am): Likewise.
42720         * modules/mkancesdirs (Makefile.am): Likewise.
42721         * modules/mkdir-p (Makefile.am): Likewise.
42722         * modules/mkdir (Makefile.am): Likewise.
42723         * modules/mkdtemp (Makefile.am): Likewise.
42724         * modules/mkstemp (Makefile.am): Likewise.
42725         * modules/mktime (Makefile.am): Likewise.
42726         * modules/modechange (Makefile.am): Likewise.
42727         * modules/mountlist (Makefile.am): Likewise.
42728         * modules/nanosleep (Makefile.am): Likewise.
42729         * modules/obstack (Makefile.am): Likewise.
42730         * modules/openat (Makefile.am): Likewise.
42731         * modules/pagealign_alloc (Makefile.am): Likewise.
42732         * modules/pathmax (Makefile.am): Likewise.
42733         * modules/physmem (Makefile.am): Likewise.
42734         * modules/poll (Makefile.am): Likewise.
42735         * modules/posixtm (Makefile.am): Likewise.
42736         * modules/posixver (Makefile.am): Likewise.
42737         * modules/putenv (Makefile.am): Likewise.
42738         * modules/quote (Makefile.am): Likewise.
42739         * modules/quotearg (Makefile.am): Likewise.
42740         * modules/raise (Makefile.am): Likewise.
42741         * modules/read-file (Makefile.am): Likewise.
42742         * modules/readline (Makefile.am): Likewise.
42743         * modules/readlink (Makefile.am): Likewise.
42744         * modules/readtokens (Makefile.am): Likewise.
42745         * modules/readutmp (Makefile.am): Likewise.
42746         * modules/realloc (Makefile.am): Likewise.
42747         * modules/regex (Makefile.am): Likewise.
42748         * modules/rename-dest-slash (Makefile.am): Likewise.
42749         * modules/rename (Makefile.am): Likewise.
42750         * modules/rijndael (Makefile.am): Likewise.
42751         * modules/rmdir (Makefile.am): Likewise.
42752         * modules/rpmatch (Makefile.am): Likewise.
42753         * modules/safe-read (Makefile.am): Likewise.
42754         * modules/safe-write (Makefile.am): Likewise.
42755         * modules/same-inode (Makefile.am): Likewise.
42756         * modules/same (Makefile.am): Likewise.
42757         * modules/save-cwd (Makefile.am): Likewise.
42758         * modules/savedir (Makefile.am): Likewise.
42759         * modules/setenv (Makefile.am): Likewise.
42760         * modules/settime (Makefile.am): Likewise.
42761         * modules/sha1 (Makefile.am): Likewise.
42762         * modules/sig2str (Makefile.am): Likewise.
42763         * modules/snprintf (Makefile.am): Likewise.
42764         * modules/stat-macros (Makefile.am): Likewise.
42765         * modules/stat-time (Makefile.am): Likewise.
42766         * modules/stdbool (Makefile.am): Likewise.
42767         * modules/stdint (Makefile.am): Likewise.
42768         * modules/stdlib-safer (Makefile.am): Likewise.
42769         * modules/stpcpy (Makefile.am): Likewise.
42770         * modules/stpncpy (Makefile.am): Likewise.
42771         * modules/strcase (Makefile.am): Likewise.
42772         * modules/strcasestr (Makefile.am): Likewise.
42773         * modules/strchrnul (Makefile.am): Likewise.
42774         * modules/strcspn (Makefile.am): Likewise.
42775         * modules/strdup (Makefile.am): Likewise.
42776         * modules/strerror (Makefile.am): Likewise.
42777         * modules/strftime (Makefile.am): Likewise.
42778         * modules/strndup (Makefile.am): Likewise.
42779         * modules/strnlen (Makefile.am): Likewise.
42780         * modules/strpbrk (Makefile.am): Likewise.
42781         * modules/strsep (Makefile.am): Likewise.
42782         * modules/strstr (Makefile.am): Likewise.
42783         * modules/strtod (Makefile.am): Likewise.
42784         * modules/strtoimax (Makefile.am): Likewise.
42785         * modules/strtok_r (Makefile.am): Likewise.
42786         * modules/strtol (Makefile.am): Likewise.
42787         * modules/strtoll (Makefile.am): Likewise.
42788         * modules/strtoul (Makefile.am): Likewise.
42789         * modules/strtoull (Makefile.am): Likewise.
42790         * modules/strtoumax (Makefile.am): Likewise.
42791         * modules/strverscmp (Makefile.am): Likewise.
42792         * modules/sys_socket (Makefile.am): Likewise.
42793         * modules/sys_stat (Makefile.am): Likewise.
42794         * modules/sysexits (Makefile.am): Likewise.
42795         * modules/time_r (Makefile.am): Likewise.
42796         * modules/timegm (Makefile.am): Likewise.
42797         * modules/timespec (Makefile.am): Likewise.
42798         * modules/tmpfile-safer (Makefile.am): Likewise.
42799         * modules/trim (Makefile.am): Likewise.
42800         * modules/unistd-safer (Makefile.am): Likewise.
42801         * modules/unlinkdir (Makefile.am): Likewise.
42802         * modules/unlocked-io (Makefile.am): Likewise.
42803         * modules/userspec (Makefile.am): Likewise.
42804         * modules/utime (Makefile.am): Likewise.
42805         * modules/utimecmp (Makefile.am): Likewise.
42806         * modules/utimens (Makefile.am): Likewise.
42807         * modules/vasnprintf (Makefile.am): Likewise.
42808         * modules/vasprintf (Makefile.am): Likewise.
42809         * modules/vsnprintf (Makefile.am): Likewise.
42810         * modules/xalloc (Makefile.am): Likewise.
42811         * modules/xgetcwd (Makefile.am): Likewise.
42812         * modules/xnanosleep (Makefile.am): Likewise.
42813         * modules/xreadlink (Makefile.am): Likewise.
42814         * modules/xstrtod (Makefile.am): Likewise.
42815         * modules/xstrtol (Makefile.am): Likewise.
42816         * modules/xstrtold (Makefile.am): Likewise.
42817         * modules/yesno (Makefile.am): Likewise.
42818         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42819
42820 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42821
42822         * modules/error (Makefile.am): Distribute files through
42823         EXTRA_DIST, not lib_SOURCES.
42824
42825 2006-10-12  Eric Blake  <ebb9@byu.net>
42826
42827         * modules/error (Makefile.am): Distribute files in /lib.
42828         * modules/obstack (Makefile.am): Likewise.
42829
42830 2006-10-12  Bruno Haible  <bruno@clisp.org>
42831
42832         * modules/acl (Makefile.am): Distribute all files in lib/ through
42833         EXTRA_DIST.
42834         * modules/arcfour (Makefile.am): Likewise.
42835         * modules/arctwo (Makefile.am): Likewise.
42836         * modules/argmatch (Makefile.am): Likewise.
42837         * modules/argz (Makefile.am): Likewise.
42838         * modules/atexit (Makefile.am): Likewise.
42839         * modules/backupfile (Makefile.am): Likewise.
42840         * modules/c-strtod (Makefile.am): Likewise.
42841         * modules/c-strtold (Makefile.am): Likewise.
42842         * modules/calloc (Makefile.am): Likewise.
42843         * modules/canon-host (Makefile.am): Likewise.
42844         * modules/canonicalize (Makefile.am): Likewise.
42845         * modules/chdir-long (Makefile.am): Likewise.
42846         * modules/chdir-safer (Makefile.am): Likewise.
42847         * modules/check-version (Makefile.am): Likewise.
42848         * modules/chown (Makefile.am): Likewise.
42849         * modules/cloexec (Makefile.am): Likewise.
42850         * modules/close-stream (Makefile.am): Likewise.
42851         * modules/closeout (Makefile.am): Likewise.
42852         * modules/crc (Makefile.am): Likewise.
42853         * modules/cycle-check (Makefile.am): Likewise.
42854         * modules/des (Makefile.am): Likewise.
42855         * modules/dirfd (Makefile.am): Likewise.
42856         * modules/dirname (Makefile.am): Likewise.
42857         * modules/dup2 (Makefile.am): Likewise.
42858         * modules/euidaccess (Makefile.am): Likewise.
42859         * modules/exclude (Makefile.am): Likewise.
42860         * modules/exitfail (Makefile.am): Likewise.
42861         * modules/fcntl-safer (Makefile.am): Likewise.
42862         * modules/file-type (Makefile.am): Likewise.
42863         * modules/fileblocks (Makefile.am): Likewise.
42864         * modules/filemode (Makefile.am): Likewise.
42865         * modules/filenamecat (Makefile.am): Likewise.
42866         * modules/fnmatch (Makefile.am): Likewise.
42867         * modules/fopen-safer (Makefile.am): Likewise.
42868         * modules/fpending (Makefile.am): Likewise.
42869         * modules/fprintftime (Makefile.am): Likewise.
42870         * modules/free (Makefile.am): Likewise.
42871         * modules/fsusage (Makefile.am): Likewise.
42872         * modules/ftruncate (Makefile.am): Likewise.
42873         * modules/fts (Makefile.am): Likewise.
42874         * modules/gc (Makefile.am): Likewise.
42875         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42876         * modules/getaddrinfo (Makefile.am): Likewise.
42877         * modules/getcwd (Makefile.am): Likewise.
42878         * modules/getdelim (Makefile.am): Likewise.
42879         * modules/getdomainname (Makefile.am): Likewise.
42880         * modules/getgroups (Makefile.am): Likewise.
42881         * modules/gethostname (Makefile.am): Likewise.
42882         * modules/gethrxtime (Makefile.am): Likewise.
42883         * modules/getline (Makefile.am): Likewise.
42884         * modules/getloadavg (Makefile.am): Likewise.
42885         * modules/getlogin_r (Makefile.am): Likewise.
42886         * modules/getopt (Makefile.am): Likewise.
42887         * modules/getpass (Makefile.am): Likewise.
42888         * modules/getpass-gnu (Makefile.am): Likewise.
42889         * modules/getsubopt (Makefile.am): Likewise.
42890         * modules/gettime (Makefile.am): Likewise.
42891         * modules/gettimeofday (Makefile.am): Likewise.
42892         * modules/getugroups (Makefile.am): Likewise.
42893         * modules/getusershell (Makefile.am): Likewise.
42894         * modules/glob (Makefile.am): Likewise.
42895         * modules/group-member (Makefile.am): Likewise.
42896         * modules/hard-locale (Makefile.am): Likewise.
42897         * modules/hash (Makefile.am): Likewise.
42898         * modules/hmac-md5 (Makefile.am): Likewise.
42899         * modules/hmac-sha1 (Makefile.am): Likewise.
42900         * modules/human (Makefile.am): Likewise.
42901         * modules/idcache (Makefile.am): Likewise.
42902         * modules/imaxabs (Makefile.am): Likewise.
42903         * modules/imaxdiv (Makefile.am): Likewise.
42904         * modules/inet_ntop (Makefile.am): Likewise.
42905         * modules/inet_pton (Makefile.am): Likewise.
42906         * modules/inttostr (Makefile.am): Likewise.
42907         * modules/isapipe (Makefile.am): Likewise.
42908         * modules/lchown (Makefile.am): Likewise.
42909         * modules/long-options (Makefile.am): Likewise.
42910         * modules/lstat (Makefile.am): Likewise.
42911         * modules/malloc (Makefile.am): Likewise.
42912         * modules/mathl (Makefile.am): Likewise.
42913         * modules/mbchar (Makefile.am): Likewise.
42914         * modules/md2 (Makefile.am): Likewise.
42915         * modules/md4 (Makefile.am): Likewise.
42916         * modules/md5 (Makefile.am): Likewise.
42917         * modules/memcasecmp (Makefile.am): Likewise.
42918         * modules/memchr (Makefile.am): Likewise.
42919         * modules/memcmp (Makefile.am): Likewise.
42920         * modules/memcoll (Makefile.am): Likewise.
42921         * modules/memcpy (Makefile.am): Likewise.
42922         * modules/memmem (Makefile.am): Likewise.
42923         * modules/memmove (Makefile.am): Likewise.
42924         * modules/mempcpy (Makefile.am): Likewise.
42925         * modules/memrchr (Makefile.am): Likewise.
42926         * modules/memset (Makefile.am): Likewise.
42927         * modules/memxor (Makefile.am): Likewise.
42928         * modules/mkancesdirs (Makefile.am): Likewise.
42929         * modules/mkdir (Makefile.am): Likewise.
42930         * modules/mkdir-p (Makefile.am): Likewise.
42931         * modules/mkdtemp (Makefile.am): Likewise.
42932         * modules/mkstemp (Makefile.am): Likewise.
42933         * modules/mktime (Makefile.am): Likewise.
42934         * modules/modechange (Makefile.am): Likewise.
42935         * modules/mountlist (Makefile.am): Likewise.
42936         * modules/nanosleep (Makefile.am): Likewise.
42937         * modules/openat (Makefile.am): Likewise.
42938         * modules/pagealign_alloc (Makefile.am): Likewise.
42939         * modules/physmem (Makefile.am): Likewise.
42940         * modules/poll (Makefile.am): Likewise.
42941         * modules/posixtm (Makefile.am): Likewise.
42942         * modules/posixver (Makefile.am): Likewise.
42943         * modules/putenv (Makefile.am): Likewise.
42944         * modules/quote (Makefile.am): Likewise.
42945         * modules/quotearg (Makefile.am): Likewise.
42946         * modules/raise (Makefile.am): Likewise.
42947         * modules/read-file (Makefile.am): Likewise.
42948         * modules/readline (Makefile.am): Likewise.
42949         * modules/readlink (Makefile.am): Likewise.
42950         * modules/readtokens (Makefile.am): Likewise.
42951         * modules/readutmp (Makefile.am): Likewise.
42952         * modules/realloc (Makefile.am): Likewise.
42953         * modules/regex (Makefile.am): Likewise.
42954         * modules/rename (Makefile.am): Likewise.
42955         * modules/rename-dest-slash (Makefile.am): Likewise.
42956         * modules/rijndael (Makefile.am): Likewise.
42957         * modules/rmdir (Makefile.am): Likewise.
42958         * modules/rpmatch (Makefile.am): Likewise.
42959         * modules/safe-read (Makefile.am): Likewise.
42960         * modules/safe-write (Makefile.am): Likewise.
42961         * modules/same (Makefile.am): Likewise.
42962         * modules/save-cwd (Makefile.am): Likewise.
42963         * modules/savedir (Makefile.am): Likewise.
42964         * modules/setenv (Makefile.am): Likewise.
42965         * modules/settime (Makefile.am): Likewise.
42966         * modules/sha1 (Makefile.am): Likewise.
42967         * modules/sig2str (Makefile.am): Likewise.
42968         * modules/snprintf (Makefile.am): Likewise.
42969         * modules/stdlib-safer (Makefile.am): Likewise.
42970         * modules/stpcpy (Makefile.am): Likewise.
42971         * modules/stpncpy (Makefile.am): Likewise.
42972         * modules/strcase (Makefile.am): Likewise.
42973         * modules/strcasestr (Makefile.am): Likewise.
42974         * modules/strchrnul (Makefile.am): Likewise.
42975         * modules/strcspn (Makefile.am): Likewise.
42976         * modules/strdup (Makefile.am): Likewise.
42977         * modules/strerror (Makefile.am): Likewise.
42978         * modules/strftime (Makefile.am): Likewise.
42979         * modules/strndup (Makefile.am): Likewise.
42980         * modules/strnlen (Makefile.am): Likewise.
42981         * modules/strpbrk (Makefile.am): Likewise.
42982         * modules/strsep (Makefile.am): Likewise.
42983         * modules/strstr (Makefile.am): Likewise.
42984         * modules/strtod (Makefile.am): Likewise.
42985         * modules/strtoimax (Makefile.am): Likewise.
42986         * modules/strtok_r (Makefile.am): Likewise.
42987         * modules/strtol (Makefile.am): Likewise.
42988         * modules/strtoll (Makefile.am): Likewise.
42989         * modules/strtoul (Makefile.am): Likewise.
42990         * modules/strtoull (Makefile.am): Likewise.
42991         * modules/strtoumax (Makefile.am): Likewise.
42992         * modules/strverscmp (Makefile.am): Likewise.
42993         * modules/time_r (Makefile.am): Likewise.
42994         * modules/timegm (Makefile.am): Likewise.
42995         * modules/tmpfile-safer (Makefile.am): Likewise.
42996         * modules/unistd-safer (Makefile.am): Likewise.
42997         * modules/unlinkdir (Makefile.am): Likewise.
42998         * modules/userspec (Makefile.am): Likewise.
42999         * modules/utime (Makefile.am): Likewise.
43000         * modules/utimecmp (Makefile.am): Likewise.
43001         * modules/utimens (Makefile.am): Likewise.
43002         * modules/vasnprintf (Makefile.am): Likewise.
43003         * modules/vasprintf (Makefile.am): Likewise.
43004         * modules/vsnprintf (Makefile.am): Likewise.
43005         * modules/xalloc (Makefile.am): Likewise.
43006         * modules/xgetcwd (Makefile.am): Likewise.
43007         * modules/xnanosleep (Makefile.am): Likewise.
43008         * modules/xreadlink (Makefile.am): Likewise.
43009         * modules/xstrtod (Makefile.am): Likewise.
43010         * modules/xstrtol (Makefile.am): Likewise.
43011         * modules/xstrtold (Makefile.am): Likewise.
43012         * modules/yesno (Makefile.am): Likewise.
43013
43014 2006-10-12  Jim Meyering  <jim@meyering.net>
43015
43016         * m4/getloadavg.m4: Revert the change below.
43017
43018         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
43019         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
43020         fail with a symlink, which is what coreutils' ./bootstrap now
43021         creates by default.
43022
43023 2006-10-12  Bruno Haible  <bruno@clisp.org>
43024
43025         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
43026         mingw.
43027         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
43028         MSVC and mingw explicitly.
43029
43030 2006-10-11  Simon Josefsson  <jas@extundo.com>
43031             Bruno Haible  <bruno@clisp.org>
43032
43033         Add support for multiple gnulib-tool invocations in the scope of a
43034         single configure.ac file.
43035         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
43036         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
43037         with the same contents as the _LIBADD variable.
43038         (func_emit_initmacro_start, func_emit_initmacro_end,
43039         func_emit_initmacro_done): New functions.
43040         (func_import, func_create_testdir): Invoke them. Allow the identifiers
43041         gl_LIBOBJS and gl_LTLIBOBJS.
43042
43043 2006-10-11  Bruno Haible  <bruno@clisp.org>
43044
43045         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
43046         (func_create_testdir): Don't create po/Makefile.am, don't invoke
43047         autoreconf. Instead, invoke autopoint explicitly but move back the
43048         *.m4 files from gnulib.
43049
43050 2006-10-11  Bruno Haible  <bruno@clisp.org>
43051
43052         * gnulib-tool (func_usage): Make module names after --create-testdir
43053         optional.
43054         (func_create_testdir): If no module was specified, use nearly all
43055         modules.
43056
43057 2006-10-12  Jim Meyering  <jim@meyering.net>
43058
43059         Big performance improvement for fts-based tools that use FTS_NOSTAT.
43060         Avoid spurious inode-mismatch problems on non-POSIX file systems.
43061         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
43062         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
43063         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
43064         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
43065         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
43066         (fts_set_stat_required): New function.
43067         (fts_open): Defer the calls to fts_stat, if possible or requested.
43068         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
43069         into fts_stat itself.
43070         (fts_read): Perform any required (deferred) fts_stat call.
43071         (fts_build): Likewise, for the directory we're about to open and read.
43072         In the readdir loop, carefully decide whether each entry will require
43073         an eventual call to fts_stat, using dirent.d_type info if available.
43074         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
43075         a command line argument into this function.  Update all callers.
43076         Map a return value of FTS_DOT to FTS_D for a command line argument.
43077         * modules/fts (Depends-on): Add d-type.  Alphabetize.
43078         Thanks to Miklos Szeredi for his tenacity and for the initial
43079         bug report about "find" failing on a FUSE-based file system.
43080
43081         * lib/fts.c (fts_open): Use consistent indentation.
43082
43083 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43084
43085         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
43086         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
43087         reported by Jim Meyering.  All uses of cache variables renamed
43088         to match Autoconf's.
43089         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
43090         the other one.
43091
43092         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43093         Fix misspelling in diagnostic.
43094
43095 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43096
43097         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
43098         defined.  Problem reported by Matthew Woehlke.
43099
43100         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
43101         Add support for Tandem NonStop R series.
43102         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
43103         Use new macro.
43104
43105         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
43106         (has_trailing_slash): Omit size arg; all callers changed.
43107         Omit 'inline', since it doesn't help performance and we'd
43108         need to configure it.
43109         Don't count //, ///, etc. as having a trailing slash.
43110         As a side effect, this removes a C99ism reported by Matthew Woehlke.
43111         (rpl_rename_dest_slash): On failure, use rename's errno rather
43112         than (in some cases) an incorrect or junk errno.
43113         Simplify code by removing need to compute length; this does
43114         cause it to make two passes instead of one over the file name,
43115         but it's worth it.
43116
43117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
43118         change, since Autoconf's version may no longer be appropriate now
43119         that we are using CVS Autoconf's version.  Add support for Tandem.
43120
43121 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43122             Bruno Haible  <bruno@clisp.org>
43123
43124         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
43125         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
43126         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
43127         gl_AC_TYPE_LONG_LONG.
43128
43129         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
43130         instead of HAVE_LONG_LONG.
43131         * lib/printf-args.c (printf_fetchargs): Likewise.
43132         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43133         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43134         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
43135         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
43136         gl_AC_TYPE_LONG_LONG.
43137
43138 2006-10-11  Bruno Haible  <bruno@clisp.org>
43139
43140         * m4/longlong.m4: Add comments.
43141         * m4/ulonglong.m4: Likewise.
43142
43143 2006-10-10  Bruno Haible  <bruno@clisp.org>
43144
43145         Make it possible to #define stpcpy, strdup to aliases.
43146         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
43147         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
43148
43149 2006-10-10  Bruno Haible  <bruno@clisp.org>
43150
43151         Make it possible to #define gcd to an alias.
43152         * lib/gcd.c: Include config.h.
43153
43154 2006-10-10  Bruno Haible  <bruno@clisp.org>
43155
43156         Make it possible to #define c_isascii to an alias.
43157         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
43158         defined. Undefine the macros before defining them, to avoid gcc
43159         warnings.
43160         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
43161         define NO_C_CTYPE_MACROS early.
43162
43163 2006-10-10  Bruno Haible  <bruno@clisp.org>
43164
43165         Make it possible to #define set_program_name to an alias.
43166         * lib/progname.c: Don't undefine set_program_name; instead, undefine
43167         ENABLE_RELOCATABLE early.
43168
43169 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43170
43171         Port to Tandem NSK OSS, which has 64-bit signed int but at most
43172         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
43173         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
43174         More generally, don't assume that 64-bit signed int is available
43175         if unsigned int is, and vice versa.
43176         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
43177         unsigned symbols, not on their signed counterparts.
43178         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
43179         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
43180         (UINT64_C, UINTMAX_C):
43181         Likewise.
43182         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
43183         unsigned counterparts.
43184         (Have_long_long, Unsigned): New macros.
43185         (Int): Renamed from INT.
43186         (strtoimax): Use the new macros.
43187         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
43188         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
43189         * modules/inttypes (inttypes.h): Substitute
43190         HAVE_UNSIGNED_LONG_LONG_INT.
43191         * modules/stdint (stdint.h): Likewise.
43192         (Files): Add m4/ulonglong.m4.
43193
43194 2006-10-10  Bruno Haible  <bruno@clisp.org>
43195
43196         Fix a gcc -Wshadow warning.
43197         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
43198         to 'bucket'.
43199         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
43200         gl_linked_indexof_from_to): Likewise.
43201         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
43202         Likewise.
43203         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
43204         Likewise.
43205         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
43206         Reported by Eric Blake.
43207
43208 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43209
43210         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
43211         for NetBSD.  Problem reported by Bruno Haible.
43212
43213 2006-10-09  Jim Meyering  <jim@meyering.net>
43214
43215         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
43216         Patch from Bruno Haible.
43217
43218 2006-10-09  Jim Meyering  <jim@meyering.net>
43219
43220         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43221         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43222         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43223
43224 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43225
43226         Don't include <config.h> twice; this doesn't work in some cases,
43227         e.g., when config.h has "#define intmax_t long long int" and
43228         we include <config.h>, <inttypes.h>, <config.h> in that order.
43229         Problem reported by Matthew Woehlke in:
43230         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43231         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43232         * lib/fts-cycle.c: Don't include config.h.
43233         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43234         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43235         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43236         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43237         inttypes.h.
43238         * lib/xstrtoumax.c: Likewise.
43239         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43240         __strtol and the like, so that this module is more like its siblings.
43241         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43242         Remove; no longer needed now that we assume gnulib inttypes.h.
43243
43244 2006-10-08  Bruno Haible  <bruno@clisp.org>
43245
43246         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43247         option.
43248
43249 2006-10-07  Jim Meyering  <jim@meyering.net>
43250
43251         * modules/inttypes (inttypes.h): Revert what seems to have been
43252         an inadvertent part of today's change: use "|", not "/" in the
43253         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43254
43255 2006-10-07  Bruno Haible  <bruno@clisp.org>
43256
43257         * modules/sublist: New file.
43258
43259 2006-10-07  Bruno Haible  <bruno@clisp.org>
43260
43261         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43262         * modules/argz (argz.h): Likewise.
43263         * modules/arpa_inet (arpa/inet.h): Likewise.
43264         * modules/byteswap (byteswap.h): Likewise.
43265         * modules/configmake (configmake.h): Likewise.
43266         * modules/fcntl (fcntl.h): Likewise.
43267         * modules/fnmatch (fnmatch.h): Likewise.
43268         * modules/getopt (getopt.h): Likewise.
43269         * modules/glob (glob.h): Likewise.
43270         * modules/inttypes (inttypes.h): Likewise.
43271         * modules/netinet_in (netinet/in.h): Likewise.
43272         * modules/poll (poll.h): Likewise.
43273         * modules/stdbool (stdbool.h): Likewise.
43274         * modules/stdint (stdint.h): Likewise.
43275         * modules/sys_select (sys/select.h): Likewise.
43276         * modules/sys_socket (sys/socket.h): Likewise.
43277         * modules/sys_stat (sys/stat.h): Likewise.
43278         * modules/sysexits (sysexits.h): Likewise.
43279         * modules/unistd (unistd.h): Likewise.
43280         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43281         Add a "DO NOT EDIT" comment to the generated file.
43282         (func_import): Likewise for gnulib-comp.m4.
43283
43284 2006-10-07  Bruno Haible  <bruno@clisp.org>
43285
43286         * lib/gl_sublist.h: New file.
43287         * lib/gl_sublist.c: New file.
43288
43289 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43290
43291         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43292         name (relative to the original working directory) and the file
43293         name component (relative to the temporary working directory).  All
43294         callers changed.
43295         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43296         * lib/mkdir-p.c (make_dir_parents): Likewise.
43297         * lib/mkdir-p.h (make_dir_parents): Likewise.
43298
43299 2006-10-06  Eric Blake  <ebb9@byu.net>
43300
43301         Define several macros for use by the clean-temp module.
43302         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43303         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43304         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43305
43306         * lib/clean-temp.h (close_stream_temp): New declaration.
43307         * lib/clean-temp.c (includes): Pull in headers according to what
43308         other modules are in use.
43309         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43310
43311 2006-10-06  Bruno Haible  <bruno@clisp.org>
43312
43313         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43314         instead of fopen, fwriteerror.
43315
43316 2006-10-06  Bruno Haible  <bruno@clisp.org>
43317
43318         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43319         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43320         int.
43321         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43322         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43323         Return an error indicator.
43324         Suggested by Eric Blake.
43325
43326 2006-10-06  Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43329         Reported by Eric Blake.
43330
43331 2006-10-06  Bruno Haible  <bruno@clisp.org>
43332
43333         * modules/closeout (Description): Mention stderr too.
43334
43335 2006-10-06  Bruno Haible  <bruno@clisp.org>
43336         and Paul Eggert  <eggert@cs.ucla.edu>
43337
43338         * lib/closeout.c (close_stdout): Also close stderr.
43339         * lib/closeout.h: Update comment.
43340
43341 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43342
43343         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43344         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43345         * lib/dirchownmod.c: Include lchown.h.
43346         * lib/lchown.c: Don't include files that lchown.h now includes.
43347         Don't declare chown, since lchown.h now does that.
43348         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43349         (lchown): Define to rpl_chown if lchown is declared but
43350         does not exist.  Declare using a prototype if lchown is not
43351         declared.  Add a copyright notice.
43352         * lib/mkstemp.h: Include <unistd.h>.
43353         * lib/openat.c: Include lchown.h.
43354
43355         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43356         we now test for that separately.
43357         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43358         rather than O_NOFOLLOW, when testing whether it's possible to
43359         avoid a race condition reliably.
43360         * lib/savewd.c (savewd_chdir): Likewise.
43361
43362         Remove macros that are no longer needed now that stdint.h is
43363         reliable.
43364         * lib/fsusage.c (UINTMAX_MAX): Remove.
43365         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43366         * lib/utimecmp.c (SIZE_MAX): Remove.
43367
43368         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43369
43370         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43371         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43372         O_NOATIME works.
43373
43374 2006-10-05  Bruno Haible  <bruno@clisp.org>
43375
43376         * lib/gl_list.h (gl_sortedlist_search_from_to,
43377         gl_sortedlist_indexof_from_to): New declarations.
43378         (gl_list_implementation): New fields sortedlist_search_from_to,
43379         sortedlist_indexof_from_to.
43380         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43381         inline functions.
43382         * lib/gl_list.c (gl_sortedlist_search_from_to,
43383         gl_sortedlist_indexof_from_to): New functions.
43384         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43385         function.
43386         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43387         (gl_array_sortedlist_search_from_to): New function.
43388         (gl_array_list_implementation): Update.
43389         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43390         function.
43391         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43392         (gl_carray_sortedlist_search_from_to): New function.
43393         (gl_carray_list_implementation): Update.
43394         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43395         gl_linked_sortedlist_indexof_from_to): New functions.
43396         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43397         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43398         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43399         gl_tree_sortedlist_indexof_from_to): New functions.
43400         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43401         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43402         Update.
43403         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43404         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43405         Update.
43406
43407 2006-10-05  Bruno Haible  <bruno@clisp.org>
43408
43409         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43410         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43411         (struct gl_list_implementation): Add fields search_from_to,
43412         indexof_from_to. Remove fields search, indexof.
43413         (gl_list_search): Use the search_from_to method.
43414         (gl_list_search_from, gl_list_search_from_to): New functions.
43415         (gl_list_indexof): Use the indexof_from_to method.
43416         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43417         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43418         (gl_list_search_from, gl_list_search_from_to): New functions.
43419         (gl_list_indexof): Use the indexof_from_to method.
43420         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43421         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43422         gl_array_indexof. Add start_index, end_index arguments.
43423         (gl_array_search_from_to): Renamed from gl_array_search. Add
43424         start_index, end_index arguments.
43425         (gl_array_remove, gl_array_list_implementation): Update.
43426         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43427         gl_carray_indexof. Add start_index, end_index arguments.
43428         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43429         start_index, end_index arguments.
43430         (gl_carray_remove, gl_carray_list_implementation): Update.
43431         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43432         gl_linked_search. Add start_index, end_index arguments.
43433         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43434         start_index, end_index arguments.
43435         (gl_linked_remove): Update.
43436         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43437         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43438         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43439         field to 'size_t'.
43440         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43441         gl_tree_search. Add start_index, end_index arguments.
43442         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43443         start_index, end_index arguments.
43444         (gl_tree_remove): Update.
43445         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43446         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43447         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43448         function.
43449         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43450         gl_tree_search. Add start_index, end_index arguments.
43451         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43452         start_index, end_index arguments.
43453         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43454         Update.
43455         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43456
43457 2006-10-05  Bruno Haible  <bruno@clisp.org>
43458
43459         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43460
43461         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43462         fwriteerror_temp): New declarations.
43463         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43464         (descriptors): New variable.
43465         (cleanup): First, close the descriptors.
43466         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43467         fclose_temp, fwriteerror_temp): New functions.
43468
43469 2006-10-04  Jim Meyering  <jim@meyering.net>
43470
43471         * lib/fts.c (fts_open): Tiny comment change.
43472
43473 2006-10-04  Bruno Haible  <bruno@clisp.org>
43474
43475         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43476         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43477         gl_LOCK_BODY.
43478         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43479         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43480         gl_LOCK_EARLY_BODY.
43481         (gl_LOCK): Require gl_LOCK_BODY.
43482
43483 2006-10-04  Bruno Haible  <bruno@clisp.org>
43484
43485         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43486         (gl_oset_search_atleast): New declaration.
43487         (struct gl_oset_implementation): Add field 'search_atleast'.
43488         (gl_oset_search_atleast): New inline function.
43489         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43490         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43491         (gl_array_oset_implementation): Update.
43492         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43493         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43494         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43495
43496 2006-10-04  Bruno Haible  <bruno@clisp.org>
43497
43498         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43499
43500 2006-10-03  Bruno Haible  <bruno@clisp.org>
43501
43502         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43503         from gl_avltreehash_list_implementation.
43504
43505 2006-10-03  Bruno Haible  <bruno@clisp.org>
43506
43507         * lib/gl_oset.c (gl_oset_add): Fix return type.
43508
43509 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43510
43511         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43512
43513 2006-10-02  Eric Blake  <ebb9@byu.net>
43514
43515         * modules/strnlen (Depends-on): Add extensions.
43516
43517 2006-10-02  Eric Blake  <ebb9@byu.net>
43518
43519         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43520         definition in 2.60+.
43521
43522 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43523
43524         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43525         checks.
43526
43527 2006-10-02  Bruno Haible  <bruno@clisp.org>
43528
43529         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43530         to the AUTOMAKE_OPTIONS.
43531         Reported by Jim Meyering.
43532
43533 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43534
43535         Work around bug in Solaris 10 /proc file system:
43536         /proc/self/fd/NNN/.. isn't the parent directory of
43537         the directory whose file descriptor is NNN.  This needs to
43538         be worked around at run time, not compile time, since a
43539         program might be built on Solaris 8, where things work, and
43540         run on Solaris 10.
43541         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43542         to use the following interface instead:
43543         (OPENAT_BUFFER_SIZE): New macro.
43544         (openat_proc_name): New function.
43545         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43546         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43547         Likewise.
43548         * lib/openat-proc.c: New file.
43549         * modules/openat (Files): Add lib/openat-proc.c.
43550         (Depends-on): Add same-inode, stdbool.
43551         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43552
43553 2006-09-29  Bruno Haible  <bruno@clisp.org>
43554
43555         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43556         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43557         argument. Set stdout_closed before testing for ferror, not after.
43558         (fwriteerror, fwriteerror_no_ebadf): New functions.
43559
43560 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43561
43562         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43563
43564 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43565
43566         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43567         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43568
43569 2006-09-28  Jim Meyering  <jim@meyering.net>
43570
43571         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43572         Include <unistd.h>.
43573
43574 2006-09-28  Bruno Haible  <bruno@clisp.org>
43575
43576         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43577         * modules/linkedhash-list (Depends-on): Likewise.
43578         * modules/rbtreehash-list (Depends-on): Likewise.
43579
43580 2006-09-28  Bruno Haible  <bruno@clisp.org>
43581
43582         * lib/strndup.h: Simplify the redefinition of strndup.
43583         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43584         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43585
43586 2006-09-28  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43589         * lib/gl_linkedhash_list.c: Likewise.
43590         * lib/gl_rbtreehash_list.c: Likewise.
43591
43592 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43593
43594         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43595         getaddrinfo.
43596
43597         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43598         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43599         it causes <stdio_ext.h> to cause a compile-time error.
43600         Problem reported by Nelson H. F. Beebe.
43601         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43602         of HAVE_DECL___PENDING.
43603
43604         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43605         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43606         declaration.
43607
43608 2006-09-27  Jim Meyering  <jim@meyering.net>
43609
43610         This file could end up with a definition for a function
43611         named __strndup, rather than rpl_strndup on a system with
43612         incomplete weak_alias support.
43613         * lib/strndup.c (strndup): Rename from __strndup.
43614         Remove #defines that used to map __strndup to strndup.
43615         Don't use K&R prototypes.
43616         Remove LIBC-related code, since this file is not sync'd with glibc.
43617         * lib/strndup.h: Revamp, accordingly.
43618         * m4/strndup.m4: Modernize.
43619
43620 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43621
43622         * modules/savewd (Depends-on): Add 'raise'.
43623         * lib/savewd.c: Include <signal.h>, for 'raise'.
43624
43625 2006-09-26  Jim Meyering  <jim@meyering.net>
43626
43627         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43628         when we detect Darwin 8.7.0's acl_get_file bug.
43629         Rearrange to perform the new (below) run-test while $LIBS
43630         contains any acl-related library.  Set USE_ACL at the end.
43631         (gl_ACL_GET_FILE): New function.
43632
43633 2006-09-26  Eric Blake  <ebb9@byu.net>
43634
43635         * lib/verror.c: Include <config.h> unconditionally.
43636
43637 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43638
43639         * modules/clock-time (Maintainer): Add self.
43640         * modules/getlogin_r (Depends-on): Add extensions.
43641
43642 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43643
43644         * modules/clock-time: New module.
43645         * modules/nanosleep (Depends-on): Add clock-time.
43646         * modules/gethrxtime (Depends-on): Likewise.
43647         * modules/gettime (Depends-on): Likewise.
43648         * modules/settime (Depends-on): Likewise.
43649
43650         * modules/fts-lgpl: Depend on openat.
43651         * modules/mkancesdirs: Depend on savewd.
43652         * modules/mkdir-p: Likewise.
43653
43654 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43655
43656         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43657
43658         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43659         `gl_have_arbitrary_file_name_length_limit' to
43660         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43661         actually works between configure runs.
43662
43663 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43664             Bruno Haible  <bruno@clisp.org>
43665
43666         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43667
43668 2006-09-25  Jim Meyering  <jim@meyering.net>
43669
43670         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43671         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43672
43673 2006-09-25  Eric Blake  <ebb9@byu.net>
43674
43675         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43676         exec's in 2006-09-18 patch when shuffling fds.
43677
43678 2006-09-25  Bruno Haible  <bruno@clisp.org>
43679
43680         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43681         Reported by Jim Meyering.
43682
43683 2006-09-24  Jim Meyering  <jim@meyering.net>
43684
43685         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43686         compare a pointer against a literal "0".  That caused failures with
43687         at least HP-UX's hpcc.
43688
43689 2006-09-22  Simon Josefsson  <jas@extundo.com>
43690
43691         * modules/gc-sha1:
43692         * modules/gc-md4:
43693         * modules/gc-hmac-sha1:
43694         * modules/gc-hmac-md5:
43695         * modules/gc-des:
43696         * modules/gc-arcfour: Distribute more files.
43697
43698 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43699
43700         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43701         (gl_linked_iterator_from_to): Initialize struct completely.
43702         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43703         (gl_tree_iterator_from_to): Likewise
43704         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43705         * lib/gl_array_list.c [lint] (gl_array_iterator)
43706         (gl_array_iterator_from_to): Likewise.
43707         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43708         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43709         (gl_carray_iterator_from_to): Likewise.
43710
43711         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43712         * lib/md4.c (md4_process_block): Remove unused variable.
43713         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43714         parentheses for clarity.
43715
43716 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43717
43718         * modules/bison-i18n (Depends-on): Add gettext.
43719
43720 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43721
43722         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43723         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43724         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43725         also add missing comma that caused broken test.
43726         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43727         stdlib.h, for `abort'.
43728         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43729         variables.
43730         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43731         include unistd.h if present, for `rmdir'.
43732         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43733         variables.
43734         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43735         in the process include standard headers for prototypes.
43736         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43737         gets declared on GNU/Linux.
43738         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43739         unistd.h, for `rmdir'.
43740         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43741
43742         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43743         always true.
43744         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43745
43746         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43747
43748 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43749
43750         * gnulib-tool (func_version): Create output all at once.  This
43751         may help avoid triggering unnecessary SIGPIPEs, and at any
43752         rate it doesn't hurt.
43753
43754 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43755             Bruno Haible  <bruno@clisp.org>
43756
43757         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43758         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43759         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43760
43761         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43762         (gl_FUNC_VASPRINTF): Invoke it.
43763
43764 2006-09-22  Bruno Haible  <bruno@clisp.org>
43765
43766         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43767         getloadavg.c as first argument.
43768
43769 2006-09-22  Bruno Haible  <bruno@clisp.org>
43770
43771         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43772         at the beginning of the gl_INIT macro.
43773         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43774         gl_GETLOADAVG.
43775
43776 2006-09-22  Bruno Haible  <bruno@clisp.org>
43777
43778         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43779         module.
43780         Suggested by Ralf Wildenhues.
43781
43782 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43783
43784         Import this patch from libc:
43785
43786         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43787
43788         * lib/regex_internal.c (re_string_reconstruct): Handle
43789         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43790         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43791         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43792         re_string_context_at.
43793
43794         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43795         now requires it.
43796         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43797         gl_REGEX now does it for us.
43798         (gl_REGEX): Add test taken from
43799         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43800
43801         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43802         Check that large offsets work.  Modernize Autoconf usages.
43803         Prefer "yes" to mean a good thing rather than a bad.
43804         Don't put "#define mkstemp" in config.h, as this might interfere
43805         with standard system headers that "#define mkstemp mkstemp64".
43806
43807         * modules/mkstemp (Depends-on): Add extensions, so that
43808         mkstemp is visible on some platforms.
43809         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43810         (Include): Change to "mkstemp.h" from <stdlib.h>.
43811         (Files): Add mkstemp.h.
43812
43813         * lib/mkstemp.h: New file, since some standard headers
43814         #define mkstemp.
43815         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43816         Include "mkstemp.h".
43817         Make the _LIBC code resemble glibc original more,
43818         e.g., use K&R style.
43819         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43820         (mkstemp): Remove, since mkstemp.h does this for us.
43821         * lib/stdlib--.h: Include mkstemp.h.
43822
43823         Import this patch from libc:
43824
43825         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43826
43827         * lib/tempname.c (__gen_tempname): Change attempts_min
43828         into a macro.  Use preprocessor to decide how to initialize
43829         attempts [Coverity CID 67].
43830
43831 2006-09-20  Bruno Haible  <bruno@clisp.org>
43832
43833         * lib/mkdtemp.c: Import from libc.
43834         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43835                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43836                 attempts_min into a macro.  Use preprocessor to decide how to
43837                 initialize attempts [Coverity CID 67].
43838         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43839                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43840                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43841
43842 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43843
43844         * gnulib-tool (func_exit): New function, to allow to pass the
43845         exit status portably through the trap.  Use everywhere.
43846         (--help, --version): Signal a write error.
43847         (trap): catch SIGPIPE, for write errors.
43848         Exit at the end of the trap, with the correct exit status.
43849
43850 2006-09-19  Karl Berry  <karl@gnu.org>
43851
43852         * doc/gnulib.texi: note about the license texinfo files.
43853
43854 2006-09-19  Eric Blake  <ebb9@byu.net>
43855
43856         * gnulib-tool: Avoid space-tab.
43857
43858 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43859
43860         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43861         that prevented coreutils 6.1 from building.  Problem reported
43862         by Petter Reinholdtsen.
43863
43864 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43865
43866         * gnulib-tool (avoidlist): Fix typo that broke options like
43867         --avoid=lock that are used by coreutils bootstrap.
43868
43869 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43870
43871         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43872         more systematically.
43873
43874 2006-09-18  Jim Meyering  <jim@meyering.net>
43875
43876         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43877
43878 2006-09-18  Bruno Haible  <bruno@clisp.org>
43879
43880         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43881
43882 2006-09-18  Bruno Haible  <bruno@clisp.org>
43883
43884         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43885         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43886         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43887         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43888         * m4/gettext.m4: Require autoconf >= 2.52.
43889         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43890         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43891         of gl_cv_header_inttypes_h.
43892
43893 2006-09-18  Bruno Haible  <bruno@clisp.org>
43894
43895         * lib/javaversion.c: Include configmake.h.
43896
43897 2006-09-18  Bruno Haible  <bruno@clisp.org>
43898
43899         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43900         avoid that the while loops be executed in a subshell.
43901
43902 2006-09-18  Bruno Haible  <bruno@clisp.org>
43903
43904         * MODULES.html.sh (func_module): Break long lines.
43905         Suggested by Bruce Korb <bkorb@gnu.org>.
43906
43907 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43908
43909         Speed up by a factor of 1.12.
43910         * gnulib-tool (nl): New variable.
43911         (func_import): Rewrite include directive extraction to only read each
43912         directive once.
43913
43914 2006-09-17  Bruno Haible  <bruno@clisp.org>
43915
43916         * modules/javaversion (Makefile.am): Remove DEFS setting.
43917         (Depends-on): Add configmake, for PKGDATADIR definition.
43918
43919 2006-09-17  Bruno Haible  <bruno@clisp.org>
43920
43921         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43922
43923 2006-09-17  Bruno Haible  <bruno@clisp.org>
43924
43925         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43926         (func_modules_transitive_closure, func_modules_add_dummy,
43927         func_modules_to_filelist, func_import, func_create_testdir,
43928         func_create_megatestdir, ...): Use it wherever possible.
43929         Suggested by Ralf Wildenhues.
43930
43931 2006-09-16  Karl Berry  <karl@gnu.org>
43932
43933         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43934         to avoid sectioning errors.
43935         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43936         [ifinfo]: blank line after @center-ed titles.
43937         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43938         Spell FSF address consistently with others.
43939         (These changes approved by rms.)
43940
43941 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43942
43943         Speed up by a factor of 1.61.
43944         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43945         already checked module names again.
43946
43947 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43948
43949         Speed up by a factor of 1.13.
43950         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43951         for new_files, and the input to func_add_or_update.
43952
43953 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43954
43955         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43956         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43957
43958 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43959
43960         * modules/mkancesdirs (Depends-on): Add fcntl.
43961         * modules/savewd: New file.
43962         * MODULES.html.sh (File system functions): Add savewd.
43963
43964         * modules/configmake (Makefile.am): Add support for the
43965         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43966
43967 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43968
43969         * m4/savewd.m4: New file.
43970
43971 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43972
43973         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43974         (dirchownmod): New arg FD.  All callers changed.
43975         Use FD rather than opening the directory ourself, as opening is
43976         now the caller's responsibility.
43977         * lib/dirchownmod.h: Likewise.
43978         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43979         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43980         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43981         (test_dir): Remove.
43982         (mkancesdirs): Return length of prefix of FILE that has already
43983         been made, or -2 if there is a child doing the work.  Redo
43984         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43985         ".", and treat ".." specially since it might stray back into
43986         already-created areas.  Use a subprocess if necessary.  New arg
43987         WD; all users changed.  MAKE_DIR function should now return 1
43988         if it creates a directory that is not readable.  Return -2 if
43989         a child process is spun off.
43990         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43991         Adjust signature to match code.
43992         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43993         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43994         all users changed.
43995         * lib/savewd.c, lib/savewd.h: New files.
43996
43997 2006-09-15  Jim Meyering  <jim@meyering.net>
43998
43999         * modules/rename-dest-slash: New module.
44000         * MODULES.html.sh (posix_compat): Add it here.
44001
44002         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
44003
44004 2006-09-15  Jim Meyering  <jim@meyering.net>
44005
44006         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
44007         file.
44008
44009         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
44010
44011 2006-09-15  Jim Meyering  <jim@meyering.net>
44012
44013         * lib/rename-dest-slash.c (has_trailing_slash): Use
44014         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
44015         (rpl_rename_dest_slash): Perform the cheaper trailing slash
44016         test before testing whether SRC is a directory.
44017         Suggestions from Bruno Haible.
44018
44019         Avoid a warning about an unused variable.
44020         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
44021         into the #ifdef block where it's used.
44022
44023         * lib/rename-dest-slash.c: New file.
44024
44025 2006-09-14  Bruno Haible  <bruno@clisp.org>
44026
44027         * lib/allocsa.c: Include <config.h> unconditionally.
44028         * lib/asnprintf.c: Likewise.
44029         * lib/asprintf.c: Likewise.
44030         * lib/c-strcasecmp.c: Likewise.
44031         * lib/c-strcasestr.c: Likewise.
44032         * lib/c-strncasecmp.c: Likewise.
44033         * lib/c-strstr.c: Likewise.
44034         * lib/classpath.c: Likewise.
44035         * lib/clean-temp.c: Likewise.
44036         * lib/concatpath.c: Likewise.
44037         * lib/copy-file.c: Likewise.
44038         * lib/csharpcomp.c: Likewise.
44039         * lib/csharpexec.c: Likewise.
44040         * lib/execute.c: Likewise.
44041         * lib/fatal-signal.c: Likewise.
44042         * lib/findprog.c: Likewise.
44043         * lib/fwriteerror.c: Likewise.
44044         * lib/gl_array_list.c: Likewise.
44045         * lib/gl_array_oset.c: Likewise.
44046         * lib/gl_avltree_list.c: Likewise.
44047         * lib/gl_avltree_oset.c: Likewise.
44048         * lib/gl_avltreehash_list.c: Likewise.
44049         * lib/gl_carray_list.c: Likewise.
44050         * lib/gl_linked_list.c: Likewise.
44051         * lib/gl_linkedhash_list.c: Likewise.
44052         * lib/gl_list.c: Likewise.
44053         * lib/gl_oset.c: Likewise.
44054         * lib/gl_rbtree_list.c: Likewise.
44055         * lib/gl_rbtree_oset.c: Likewise.
44056         * lib/gl_rbtreehash_list.c: Likewise.
44057         * lib/imaxabs.c: Likewise.
44058         * lib/imaxdiv.c: Likewise.
44059         * lib/javacomp.c: Likewise.
44060         * lib/javaexec.c: Likewise.
44061         * lib/javaversion.c: Likewise.
44062         * lib/linebreak.c: Likewise.
44063         * lib/localcharset.c: Likewise.
44064         * lib/lock.c: Likewise.
44065         * lib/mbchar.c: Likewise.
44066         * lib/mbswidth.c: Likewise.
44067         * lib/mkdtemp.c: Likewise.
44068         * lib/pipe.c: Likewise.
44069         * lib/printf-args.c: Likewise.
44070         * lib/printf-parse.c: Likewise.
44071         * lib/progname.c: Likewise.
44072         * lib/progreloc.c: Likewise.
44073         * lib/readlink.c: Likewise.
44074         * lib/sh-quote.c: Likewise.
44075         * lib/stpcpy.c: Likewise.
44076         * lib/stpncpy.c: Likewise.
44077         * lib/strcasecmp.c: Likewise.
44078         * lib/strcasestr.c: Likewise.
44079         * lib/strcspn.c: Likewise.
44080         * lib/striconv.c: Likewise.
44081         * lib/strncasecmp.c: Likewise.
44082         * lib/strnlen1.c: Likewise.
44083         * lib/strstr.c: Likewise.
44084         * lib/strtok_r.c: Likewise.
44085         * lib/tls.c: Likewise.
44086         * lib/tmpdir.c: Likewise.
44087         * lib/unicodeio.c: Likewise.
44088         * lib/unsetenv.c: Likewise.
44089         * lib/vasnprintf.c: Likewise.
44090         * lib/vasprintf.c: Likewise.
44091         * lib/wait-process.c: Likewise.
44092         * lib/xallocsa.c: Likewise.
44093         * lib/xsetenv.c: Likewise.
44094         * lib/xstriconv.c: Likewise.
44095
44096 2006-09-13  Simon Josefsson  <jas@extundo.com>
44097
44098         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
44099         that internally, suggested by Ralf Wildenhues
44100         <Ralf.Wildenhues@gmx.de>.
44101
44102 2006-09-13  Simon Josefsson  <jas@extundo.com>
44103
44104         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
44105         @LIBOBJS@.
44106         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44107
44108 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44109
44110         * lib/_fpending.c: Include <config.h> unconditionally, since we no
44111         longer worry about uses that don't define HAVE_CONFIG_H.
44112         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
44113         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
44114         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
44115         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
44116         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
44117         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
44118         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
44119         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
44120         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
44121         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
44122         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
44123         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
44124         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
44125         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
44126         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
44127         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
44128         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
44129         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
44130         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
44131         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
44132         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
44133         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
44134         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
44135         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
44136         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
44137         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
44138         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
44139         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
44140         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
44141         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
44142         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
44143         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
44144         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
44145         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
44146         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
44147         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
44148         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
44149         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
44150         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
44151         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
44152         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
44153         Likewise.
44154
44155 2006-09-13  Eric Blake  <ebb9@byu.net>
44156
44157         * lib/getopt.c: Fix typo in last commit.
44158
44159 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44160
44161         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
44162         dgettext.
44163
44164 2006-09-12  Jim Meyering  <jim@meyering.net>
44165
44166         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
44167         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
44168         Reported by Nelson H. F. Beebe.
44169
44170 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44171
44172         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
44173         program_invocation_name and program_invocation_short_name are
44174         initialized.
44175         * lib/argp-namefrob.h: Move declarations of program_invocation_name
44176         and program_invocation_short_name to argp.h, so they are visible
44177         to user programs.
44178         * lib/argp.h: Likewise
44179
44180 2006-09-10  Bruno Haible  <bruno@clisp.org>
44181
44182         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44183         m4/inttypes_h.m4, m4/uintmax_t.m4.
44184
44185 2006-09-10  Bruno Haible  <bruno@clisp.org>
44186
44187         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
44188         gl_AC_TYPE_UINTMAX_T.
44189
44190 2006-09-10  Bruno Haible  <bruno@clisp.org>
44191
44192         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
44193
44194 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44195
44196         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
44197         convention.  Text proposed by Bruno Haible.
44198         (struct argp_option): Document the use of N_() wrappers.
44199
44200         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
44201         '\v', and translate the two parts separately, instead of feeding
44202         the whole string to gettext.  This allows to exclude
44203         '\v' from the strings visible to the translator by writing doc
44204         strings as N_("..") "\v" N_("..").
44205
44206 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
44207
44208         * config/srclist.txt: Undo latest change; the bug was fixed.
44209
44210 2006-09-09  Bruno Haible  <bruno@clisp.org>
44211
44212         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
44213         assignments if building a library without libtool.
44214         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
44215         in func_emit_lib_Makefile_am.
44216         (func_import): When building a static library libfoo.a, arrange to
44217         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
44218         (func_create_testdir): Likewise.
44219         * modules/gc (configure.ac, Makefile.am): If building statically,
44220         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44221         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44222         * modules/striconv (configure.ac, Makefile.am): Likewise.
44223         Based on a suggestion by Ralf Wildenhues.
44224
44225 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44226
44227         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44228         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44229         Also:
44230
44231         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44232         Add year_2050_test to catch glibc bug 2821
44233         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44234
44235         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44236         Prefer #ifdef to #if.
44237
44238         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44239         Return from 'main' instead of calling 'exit'.
44240
44241 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44242
44243         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44244         returned the maximum time_t value rather than (time_t) -1.
44245         Problem originally reported by William Bardwell
44246         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44247
44248         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44249         Moved to here ...
44250         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44251         ... from here.
44252
44253 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44254
44255         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44256         2821 is fixed.
44257
44258 2006-09-08  Jim Meyering  <jim@meyering.net>
44259
44260         Don't make generated files read-only.  That would bother too many
44261         people.  However, do retain the ability to work when targets are
44262         read-only: remove the destination and temporary files before writing
44263         them (when generated via sed or echo), or by using the -f option for
44264         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44265         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44266         * modules/byteswap, modules/configmake, modules/fcntl:
44267         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44268         * modules/localcharset, modules/netinet_in, modules/poll:
44269         * modules/stdbool, modules/stdint, modules/sys_select:
44270         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44271
44272 2006-09-08  Jim Meyering  <jim@meyering.net>
44273
44274         Avoid new build failure on FreeBSD 6.0.
44275         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44276         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44277         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44278
44279 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44280
44281         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44282
44283 2006-09-07  Jim Meyering  <jim@meyering.net>
44284
44285         Fix global typo in last change: use chmod u-w, not chmod u-x.
44286         Spotted by Paul Eggert and Bruce Korb.
44287         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44288         * modules/byteswap, modules/configmake, modules/fcntl:
44289         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44290         * modules/localcharset, modules/netinet_in, modules/poll:
44291         * modules/stdbool, modules/stdint, modules/sys_select:
44292         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44293
44294 2006-09-06  Jim Meyering  <jim@meyering.net>
44295
44296         Make generated files be read-only.
44297         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44298         Ensure that each generated file is now read-only.
44299         * modules/argz: Likewise.
44300         * modules/arpa_inet: Likewise.
44301         * modules/byteswap: Likewise.
44302         * modules/configmake: Likewise.
44303         * modules/fcntl: Likewise.
44304         * modules/fnmatch: Likewise.
44305         * modules/getopt: Likewise.
44306         * modules/glob: Likewise.
44307         * modules/inttypes: Likewise.
44308         * modules/netinet_in: Likewise.
44309         * modules/poll: Likewise.
44310         * modules/stdbool: Likewise.
44311         * modules/stdint: Likewise.
44312         * modules/sys_select: Likewise.
44313         * modules/sys_socket: Likewise.
44314         * modules/sys_stat: Likewise.
44315         * modules/sysexits: Likewise.
44316         * modules/localcharset: Same as above, but continue using temporary
44317         file named "t-$@" (why different?) rather than the "$@-t" used
44318         everywhere else.
44319
44320         * modules/sysexits (Makefile.am): Replace literal occurrences
44321         of "sysexit.h" more readable, and more consistent, "$@".
44322
44323 2006-09-06  Bruno Haible  <bruno@clisp.org>
44324
44325         * modules/striconv: New file.
44326         * modules/xstriconv: New file.
44327         * MODULES.html.sh (Internationalization functions): Add striconv,
44328         xstriconv.
44329
44330 2006-09-06  Bruno Haible  <bruno@clisp.org>
44331
44332         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44333         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44334         not using libtool correctly.
44335
44336 2006-09-06  Bruno Haible  <bruno@clisp.org>
44337
44338         * lib/striconv.h: New file.
44339         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44340         iconvstring.c.
44341         * lib/xstriconv.h: New file.
44342         * lib/xstriconv.c: New file.
44343
44344 2006-09-06  Bruno Haible  <bruno@clisp.org>
44345
44346         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44347         lib_..._LDFLAGS.
44348
44349 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44350
44351         * lib/argz_.h: Sync from Libtool.
44352
44353         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44354                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44355
44356         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44357
44358 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44359
44360         * modules/trim: New file.
44361
44362 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44363
44364         * lib/trim.h: New file.
44365         * lib/trim.c: New file.
44366
44367 2006-09-05  Bruno Haible  <bruno@clisp.org>
44368
44369         * MODULES.html.sh (String handling): Add trim.
44370
44371 2006-09-04  Karl Berry  <karl@gnu.org>
44372
44373         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44374         until next release.
44375
44376 2006-09-03  Bruno Haible  <bruno@clisp.org>
44377
44378         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44379         correctly.
44380
44381 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44382
44383         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44384         not gl_GETLOADAVG.  Omit unneeded semicolons.
44385         Problems reported by Ralf Wildenhues in
44386         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44387         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44388         at the end, which is the usual gnulib style.
44389
44390         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44391         of doing all the work ourselves.
44392         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44393         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44394
44395 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44396
44397         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44398         Problem reported by Ralf Wildenhues in
44399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44400
44401         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44402         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44403
44404 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44405
44406         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44407         yesterday's patch by changing test -n to test -z.
44408
44409 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44410
44411         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44412         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44413         the former is now obsolescent.
44414
44415         * modules/chdir-long (Depends-on): Add fcntl.
44416
44417 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44418
44419         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44420         obsolescent, and programs should use gnulib instead.
44421         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44422         but with prefixes changed.
44423
44424 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44425
44426         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44427         or stdbool.h, because they might not exist while configuring.
44428
44429         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44430         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44431         does that for us.
44432         (O_DIRECTORY): Remove.
44433
44434 2006-08-31  Eric Blake  <ebb9@byu.net>
44435
44436         * gnulib-tool: Don't let emacs change spaces to TAB.
44437
44438 2006-08-31  Bruno Haible  <bruno@clisp.org>
44439
44440         * gnulib-tool: When calling func_import more than once, do it in a
44441         subshell.
44442         Reported by Eric Blake <ebb9@byu.net>.
44443
44444 2006-08-31  Bruno Haible  <bruno@clisp.org>
44445
44446         * gnulib-tool (nl): Remove variable.
44447         (sed_transform_lib_file): Use more robust test for config-h module.
44448         (func_import): Fix typo in 2006-08-25 patch.
44449
44450 2006-08-31  Bruno Haible  <bruno@clisp.org>
44451
44452         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44453         specified, augment Makefile.am variables instead of assigning them.
44454
44455 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44456
44457         Work around a bug in both the Linux and SunOS 64-bit kernels:
44458         nanosleep mishandles sleeps for longer than 2**31 seconds.
44459         Problem reported by Frank v Waveren in
44460         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44462         Check for nanosleep bug.
44463         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44464
44465 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44466
44467         Work around a bug in both the Linux and SunOS 64-bit kernels:
44468         nanosleep mishandles sleeps for longer than 2**31 seconds.
44469         Problem reported by Frank v Waveren in
44470         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44471         * lib/nanosleep.c (BILLION): New constant.
44472         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44473         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44474         implementation.
44475
44476 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44477
44478         * modules/nanosleep (Depends-on): Add gettime.
44479
44480 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44481         and Simon Josefsson  <jas@extundo.com>
44482         and Oskar Liljeblad  <oskar@osk.mine.nu>
44483
44484         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44485         * gnulib-tool (func_import): New license type 'unmodifiable license
44486         text'.
44487         * modules/fdl: Use it.  Longer description.
44488         * module/gpl, module/lgpl: New files.
44489
44490 2006-08-30  Jim Meyering  <jim@meyering.net>
44491
44492         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44493         shadowing the parameter.
44494
44495 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44496
44497         Sync from Libtool:
44498
44499         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44500
44501         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44502         sharing with gnulib.  Report by Eric Blake.
44503
44504 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44505
44506         * modules/isapipe: New file.
44507         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44508
44509 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44510
44511         * modules/configmake (Makefile.am): Add a comment, and omit
44512         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44513         by Bruno Haible.
44514
44515 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44516
44517         * m4/isapipe.m4: New file.
44518
44519 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44520
44521         * lib/isapipe.c, lib/isapipe.h: New files.
44522
44523 2006-08-29  Jim Meyering  <jim@meyering.net>
44524
44525         * modules/configmake (Makefile.am): Make configmake.h depend on
44526         Makefile.  Otherwise, a stale configmake.h could hang around.
44527
44528 2006-08-29  Eric Blake  <ebb9@byu.net>
44529
44530         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44531         resolution of upstream bug 3044.
44532
44533 2006-08-29  Bruno Haible  <bruno@clisp.org>
44534
44535         * modules/localcharset (Depends-on): Add configmake.
44536         (Makefile.am): Remove setting of LIBDIR through DEFS.
44537
44538 2006-08-29  Bruno Haible  <bruno@clisp.org>
44539
44540         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44541         defined.
44542
44543 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44544
44545         * modules/fcntl: New file.
44546         * modules/chdir-safer (Depends-on): Add fcntl.
44547         * modules/fts: Likewise.
44548         * modules/mkdir-p: Likewise.
44549
44550         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44551         This undoes the most recent change, since we're now addressing the
44552         problem in a different way.
44553
44554         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44555         into output, since the output might be called Makefile.am even
44556         if $makefile_name is something different.
44557         (func_import): Use $makefile_am rather than
44558         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44559         empty.
44560
44561         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44562
44563 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44564
44565         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44566         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44567         recent change to stdint.m4, since we're now addressing the problem in a
44568         different way.
44569
44570 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44571
44572         * m4/fcntl_h.m4: New file.
44573
44574 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44575
44576         * lib/fcntl_.h: New file.
44577         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44578         the fcntl module.
44579         * lib/dirchownmod.c: Likewise.
44580         * lib/fts.c: Likewise.
44581
44582         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44583         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44584         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44585         just before including <inttypes.h>, to avoid circular inclusion.
44586
44587 2006-08-28  Jim Meyering  <jim@meyering.net>
44588
44589         * doc/visibility.texi: Actually read and correct the grammar of the
44590         sentence affected by yesterday's change.
44591
44592 2006-08-28  Eric Blake  <ebb9@byu.net>
44593
44594         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44595         needs wrapper.
44596
44597 2006-08-28  Eric Blake  <ebb9@byu.net>
44598
44599         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44600
44601 2006-08-28  Eric Blake  <ebb9@byu.net>
44602
44603         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44604
44605 2006-08-28  Bruno Haible  <bruno@clisp.org>
44606
44607         * modules/c-strstr: New file, from GNU gettext.
44608         * MODULES.html.sh (String handling): Add c-strstr.
44609
44610 2006-08-28  Bruno Haible  <bruno@clisp.org>
44611
44612         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44613         macros.
44614         Reported by Eric Blake.
44615
44616 2006-08-28  Bruno Haible  <bruno@clisp.org>
44617
44618         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44619         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44620         * lib/vasprintf.c: Include errno.h, limits.h.
44621         (EOVERFLOW): New fallback definition.
44622         (vasprintf): Test here whether the string length is > INT_MAX.
44623         * lib/vsnprintf.c: Include errno.h, limits.h.
44624         (EOVERFLOW): New fallback definition.
44625         (vsnprintf): Fix bug when generated string was too long for the buffer.
44626         Test here whether the string length is > INT_MAX.
44627
44628 2006-08-28  Bruno Haible  <bruno@clisp.org>
44629
44630         * lib/inttypes_.h (SCNX*): Remove definitions.
44631         Reported by Eric Blake.
44632
44633 2006-08-28  Bruno Haible  <bruno@clisp.org>
44634
44635         * lib/c-strstr.h: New file, from GNU gettext.
44636         * lib/c-strstr.c: New file, from GNU gettext.
44637
44638 2006-08-28  Bruno Haible  <bruno@clisp.org>
44639
44640         * gnulib-tool: Reorder some statements.
44641
44642 2006-08-28  Bruno Haible  <bruno@clisp.org>
44643
44644         * gnulib-tool: New option --makefile-name.
44645         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44646         $makefile_name.
44647         (func_import): Write $makefile_name to the cache file, and read it from
44648         there unless explicitly specified. Use $makefile_name as file name
44649         instead of Makefile.am. Adjust the recommendations accordingly.
44650
44651 2006-08-28  Bruno Haible  <bruno@clisp.org>
44652
44653         * gnulib-tool (func_verify_module): Check against misapplying patch.
44654
44655 2006-08-28  Bruno Haible  <bruno@clisp.org>
44656
44657         * gnulib-tool (func_relativize, func_relconcat): New functions.
44658         Give an error if --local-dir is given with --update.
44659         Remove trailing slashes from $local_gnulib_dir.
44660         (func_import): Store the relativized $local_gnulib_dir in
44661         gnulib-cache.m4, and read it from there if not specified explicitly.
44662
44663 2006-08-28  Bruno Haible  <bruno@clisp.org>
44664
44665         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44666         is the current directory. Respect also $local_gnulib_dir.
44667
44668 2006-08-28  Bruno Haible  <bruno@clisp.org>
44669             Simon Josefsson  <jas@extundo.com>
44670
44671         BeOS portability.
44672         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44673
44674 2006-08-27  Jim Meyering  <jim@meyering.net>
44675
44676         * doc/visibility.texi: Remove duplicate word: "pointer".
44677
44678 2006-08-26  Bruno Haible  <bruno@clisp.org>
44679
44680         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44681         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44682         (Makefile.am): Create inttypes.h from inttypes_.h.
44683         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44684
44685         * modules/imaxabs: New file.
44686
44687         * modules/imaxdiv: New file.
44688
44689 2006-08-26  Bruno Haible  <bruno@clisp.org>
44690
44691         * m4/inttypes.m4: New file.
44692         * m4/_inttypes_h.m4: Remove file.
44693         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44694         PRI_MACROS_BROKEN.
44695         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44696
44697         * m4/imaxabs.m4: New file.
44698
44699         * m4/imaxdiv.m4: New file.
44700
44701 2006-08-26  Bruno Haible  <bruno@clisp.org>
44702
44703         * lib/inttypes_.h: New file.
44704         * lib/inttypes.h: Remove file.
44705         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44706
44707         * lib/imaxabs.c: New file.
44708
44709         * lib/imaxdiv.c: New file.
44710
44711 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44712
44713         New config-h module, so that "make" output needn't be cluttered
44714         by -DHAVE_CONFIG_H.
44715         * MODULES.html.sh (Support for building libraries and executables):
44716         Add config-h.
44717         * modules/config-h: New file.
44718         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44719         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44720         the config-h module is used.
44721
44722         New configmake module, so that "make" output needn't be cluttered
44723         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44724         * MODULES.html.sh (Support for building libraries and executables):
44725         Add configmake.
44726         * modules/configmake: New file.
44727
44728 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44729
44730         * m4/config-h.m4: New file.
44731
44732 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44733
44734         * config/srclist.txt: Add elisp-comp.
44735
44736 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44737
44738         * MODULES.html.sh (Support for building libraries and executables):
44739         Add elisp-comp.
44740         * build-aux/elisp-comp: New file.
44741         * modules/elisp-comp: New file.
44742
44743 2006-08-24  Bruno Haible  <bruno@clisp.org>
44744
44745         * gnulib-tool (func_create_testdir): Use non-default values of
44746         sourcebase and m4base.
44747
44748 2006-08-24  Bruno Haible  <bruno@clisp.org>
44749
44750         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44751         HTML structure.
44752
44753 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44754
44755         * modules/openat (Depends-on): Add lchown.
44756
44757 2006-08-23  Bruno Haible  <bruno@clisp.org>
44758
44759         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44760         of gl_LOCK_EARLY instead of gl_LOCK.
44761
44762 2006-08-23  Bruno Haible  <bruno@clisp.org>
44763
44764         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44765         on OSF/1 to no.
44766         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44767
44768 2006-08-23  Bruno Haible  <bruno@clisp.org>
44769
44770         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44771         as unusable.
44772
44773         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44774         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44775         (gl_LOCK): New macro.
44776
44777 2006-08-22  Simon Josefsson  <jas@extundo.com>
44778
44779         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44780         to md5 module.
44781
44782 2006-08-22  Simon Josefsson  <jas@extundo.com>
44783
44784         * MODULES.html.sh: Add "Support for maintaining and release
44785         projects".
44786
44787         * build-aux/gnupload: New file, from coreutils.
44788
44789 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44790
44791         Avoid the need for AC_LIBSOURCES in m4 macros.
44792         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44793         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44794         * modules/check-version (EXTRA_DIST): Add check-version.h.
44795         * modules/crc (EXTRA_DIST): Add crc.h.
44796         * modules/des (EXTRA_DIST): Add des.h.
44797         * modules/gc (EXTRA_DIST): Add gc.h.
44798         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44799         * modules/getline (EXTRA_DIST): Add getline.h.
44800         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44801         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44802         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44803         * modules/md2 (EXTRA_DIST): Add md2.h.
44804         * modules/md4 (EXTRA_DIST): Add md4.h.
44805         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44806         * modules/read-file (EXTRA_DIST): Add read-file.h.
44807         * modules/readline (EXTRA_DIST): Add readline.h.
44808         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44809         rijndael-api-fst.h.
44810
44811 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44812
44813         * m4/rijndael.m4 (gl_ARCFOUR):
44814         * m4/arctwo.m4 (gl_ARCTWO):
44815         * m4/check-version.m4 (gl_CHECK_VERSION):
44816         * m4/crc.m4 (gl_CRC):
44817         * m4/des.m4 (gl_DES):
44818         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44819         * m4/gc.m4 (gl_GC):
44820         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44821         * m4/getline.m4 (gl_FUNC_GETLINE):
44822         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44823         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44824         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44825         * m4/md2.m4 (gl_MD2):
44826         * m4/md4.m4 (gl_MD4):
44827         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44828         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44829         * m4/readline.m4 (gl_FUNC_READLINE):
44830         * m4/rijndael.m4 (gl_RIJNDAEL):
44831         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44832         to get the necessary .h files and whatnot.
44833
44834 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44835
44836         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44837         gnulib rather than the other way around.
44838         * config/srclistvars.sh (COREUTILS): Remove.
44839
44840 2006-08-22  Jim Meyering  <jim@meyering.net>
44841
44842         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44843
44844         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44845
44846 2006-08-22  Eric Blake  <ebb9@byu.net>
44847
44848         * modules/regexprops-generic: New file.
44849         * MODULES.html.sh (Support for building documentation): List it.
44850
44851 2006-08-22  Eric Blake  <ebb9@byu.net>
44852
44853         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44854         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44855         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44856         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44857
44858 2006-08-22  Bruno Haible  <bruno@clisp.org>
44859
44860         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44861         and lib_LTLIBRARIES like the other lib_* variables.
44862
44863 2006-08-22  Bruno Haible  <bruno@clisp.org>
44864
44865         * build-aux/x-to-1.in: New file, from GNU gettext.
44866
44867 2006-08-22  Bruno Haible  <bruno@clisp.org>
44868
44869         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44870         <utmpx.h> exists.
44871
44872 2006-08-22  Bruno Haible  <bruno@clisp.org>
44873
44874         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44875         <utmpx.h> exists.
44876
44877 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44878
44879         BeOS portability.
44880         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44881         exist.
44882         Problem reported by Bruno Haible.
44883
44884 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44885
44886         Avoid the need for AC_LIBSOURCES in m4 macros.
44887         * modules/acl (EXTRA_DIST): Add acl.h.
44888         * modules/argmatch (Files): Add m4/argmatch.m4.
44889         (configure.ac): Add gl_ARGMATCH.
44890         (EXTRA_DIST): Renamed from lib_SOURCES, for
44891         consistency with the other modules.  Remove argmatch.c.
44892         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44893         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44894         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44895         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44896         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44897         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44898         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44899         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44900         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44901         * modules/closeout (EXTRA_DIST): Add closeout.h.
44902         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44903         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44904         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44905         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44906         dirname.h; remove basename.c and stripslash.c.
44907         * modules/exclude (EXTRA_DIST): Add exclude.h.
44908         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44909         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44910         * modules/file-type (EXTRA_DIST): Add file-type.h.
44911         * modules/filemode (EXTRA_DIST): Add filemode.h.
44912         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44913         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44914         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44915         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44916         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44917         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44918         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44919         * modules/getdate (EXTRA_DIST): Add getdate.c.
44920         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44921         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44922         * modules/getpass (EXTRA_DIST): Add getpass.h.
44923         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44924         * modules/group-member (EXTRA_DIST): Add group-member.h.
44925         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44926         * modules/hash (EXTRA_DIST): Add hash.h.
44927         * modules/human (EXTRA_DIST): Add human.h.
44928         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44929         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44930         * modules/lchown (EXTRA_DIST): Add lchown.h.
44931         * modules/long-options (EXTRA_DIST): Add long-options.h.
44932         * modules/lstat (EXTRA_DIST): Add lstat.h.
44933         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44934         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44935         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44936         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44937         * modules/memxor (EXTRA_DIST): Add memxor.h.
44938         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44939         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44940         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44941         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44942         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44943         * modules/physmem (EXTRA_DIST): Add physmem.h.
44944         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44945         * modules/posixver (EXTRA_DIST): Add posixver.h.
44946         * modules/quote (EXTRA_DIST): Add quote.h.
44947         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44948         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44949         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44950         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44951         regex_internal.h regexec.c.
44952         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44953         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44954         * modules/same (EXTRA_DIST): Add same.h.
44955         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44956         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44957         * modules/savedir (EXTRA_DIST): Add savedir.h.
44958         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44959         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44960         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44961         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44962         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44963         * modules/strdup (EXTRA_DIST): Add strdup.h.
44964         * modules/strftime (EXTRA_DIST): Add strftime.h.
44965         * modules/strndup (EXTRA_DIST): Add strndup.h.
44966         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44967         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44968         * modules/time_r (EXTRA_DIST): Add time_r.h.
44969         * modules/timespec (EXTRA_DIST): Add timespec.h.
44970         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44971         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44972         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44973         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44974         * modules/userspec (EXTRA_DIST): Add userspec.h.
44975         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44976         * modules/utimens (EXTRA_DIST): Add utimens.h.
44977         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44978         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44979         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44980         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44981         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44982         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44983         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44984         * modules/yesno (EXTRA_DIST): Add yesno.h.
44985
44986 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44987
44988         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44989
44990         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44991         * m4/dev-ino.m4, same-inode.m4: Remove.
44992
44993         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44994         * m4/acl.m4 (AC_FUNC_ACL):
44995         * m4/backupfile.m4 (gl_BACKUPFILE):
44996         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44997         * m4/canon-host.m4 (gl_CANON_HOST):
44998         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44999         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
45000         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
45001         * m4/cloexec.m4 (gl_CLOEXEC):
45002         * m4/close-stream.m4 (gl_CLOSE_STREAM):
45003         * m4/closeout.m4 (gl_CLOSEOUT):
45004         * m4/dirfd.m4 (gl_FUNC_DIRFD):
45005         * m4/dirname.m4 (gl_DIRNAME):
45006         * m4/exclude.m4 (gl_EXCLUDE):
45007         * m4/exitfail.m4 (gl_EXITFAIL):
45008         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
45009         * m4/file-type.m4 (gl_FILE_TYPE):
45010         * m4/filemode.m4 (gl_FILEMODE):
45011         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
45012         * m4/fpending.m4 (gl_FUNC_FPENDING):
45013         * m4/fprintftime.m4 (gl_FPRINTFTIME):
45014         * m4/fts.m4 (gl_FUNC_FTS):
45015         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
45016         * m4/getdate.m4 (gl_GETDATE):
45017         * m4/gethrxtime.m4 (gl_GETHRXTIME):
45018         * m4/getpagesize.m4 (gl_GETPAGESIZE):
45019         * m4/getpass.m4 (gl_FUNC_GETPASS):
45020         * m4/gettime.m4 (gl_GETTIME):
45021         * m4/getugroups.m4 (gl_GETUGROUPS):
45022         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
45023         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
45024         * m4/hard-locale.m4 (gl_HARD_LOCALE):
45025         * m4/hash.m4 (gl_HASH):
45026         * m4/idcache.m4 (gl_IDCACHE):
45027         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
45028         * m4/lchown.m4 (gl_FUNC_LCHOWN):
45029         * m4/long-options.m4 (gl_LONG_OPTIONS):
45030         * m4/lstat.m4 (gl_FUNC_LSTAT):
45031         * m4/md5.m4 (gl_MD5):
45032         * m4/memcasecmp.m4 (gl_MEMCASECMP):
45033         * m4/memcoll.m4 (gl_MEMCOLL):
45034         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
45035         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
45036         * m4/memxor.m4 (gl_MEMXOR):
45037         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
45038         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
45039         * m4/modechange.m4 (gl_MODECHANGE):
45040         * m4/mountlist.m4 (gl_MOUNTLIST):
45041         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45042         * m4/openat.m4 (gl_FUNC_OPENAT):
45043         * m4/pathmax.m4 (gl_PATHMAX):
45044         * m4/physmem.m4 (gl_PHYSMEM):
45045         * m4/posixtm.m4 (gl_POSIXTM):
45046         * m4/posixver.m4 (gl_POSIXVER):
45047         * m4/quote.m4 (gl_QUOTE):
45048         * m4/quotearg.m4 (gl_QUOTEARG):
45049         * m4/readtokens.m4 (gl_READTOKENS):
45050         * m4/readutmp.m4 (gl_READUTMP):
45051         * m4/regex.m4 (gl_REGEX):
45052         * m4/safe-read.m4 (gl_SAFE_READ):
45053         * m4/safe-write.m4 (gl_SAFE_WRITE):
45054         * m4/same.m4 (gl_SAME):
45055         * m4/save-cwd.m4 (gl_SAVE_CWD):
45056         * m4/savedir.m4 (gl_SAVEDIR):
45057         * m4/settime.m4 (gl_SETTIME):
45058         * m4/sha1.m4 (gl_SHA1):
45059         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
45060         * m4/stat-macros.m4 (gl_STAT_MACROS):
45061         * m4/stat-time.m4 (gl_STAT_TIME):
45062         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
45063         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
45064         * m4/strdup.m4 (gl_FUNC_STRDUP):
45065         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
45066         * m4/strndup.m4 (gl_FUNC_STRNDUP):
45067         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
45068         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
45069         * m4/time_r.m4 (gl_TIME_R):
45070         * m4/timespec.m4 (gl_TIMESPEC):
45071         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
45072         * m4/unlinkdir.m4 (gl_UNLINKDIR):
45073         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
45074         * m4/userspec.m4 (gl_USERSPEC):
45075         * m4/utimecmp.m4 (gl_UTIMECMP):
45076         * m4/utimens.m4 (gl_UTIMENS):
45077         * m4/xalloc.m4 (gl_XALLOC):
45078         * m4/xgetcwd.m4 (gl_XGETCWD):
45079         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
45080         * m4/xreadlink.m4 (gl_XREADLINK):
45081         * m4/xstrtod.m4 (gl_XSTRTOD):
45082         * m4/yesno.m4 (gl_YESNO):
45083         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
45084         to get the necessary .h files and whatnot.
45085
45086 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
45087             Bruno Haible  <bruno@clisp.org>
45088
45089         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
45090         /bin/sh understanding of '!' conditional negation.
45091
45092 2006-08-21  Jim Meyering  <jim@meyering.net>
45093
45094         * modules/openat (Depends-on): Really alphabetize.
45095
45096         * modules/acl (Depends-on): Add error and quote.
45097
45098         * check-module (find_included_lib_files): Add at-func.c to the
45099         ok-to-include-more-than-once white list.
45100
45101         * modules/openat (Depends-on): Add lstat.  Alphabetize.
45102
45103 2006-08-21  Bruno Haible  <bruno@clisp.org>
45104
45105         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45106         Emit a pkgdata_DATA variable only if some snippets add contents to it.
45107         Reported by Martin Lambers <marlam@marlam.de>.
45108
45109 2006-08-21  Bruno Haible  <bruno@clisp.org>
45110
45111         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
45112         specify an installation location, don't emit a noinst_LIBRARIES or
45113         noinst_LTLIBRARIES assignment.
45114
45115 2006-08-21  Bruno Haible  <bruno@clisp.org>
45116
45117         BeOS portability.
45118         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
45119         BeOS has mbrtowc() but no <wctype.h>.
45120
45121 2006-08-21  Bruno Haible  <bruno@clisp.org>
45122
45123         BeOS portability.
45124         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
45125         exist.
45126
45127 2006-08-21  Bruno Haible  <bruno@clisp.org>
45128
45129         BeOS portability.
45130         * lib/mbchar.h: Include <wctype.h> only if it exists.
45131
45132 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45133
45134         Remove files that are no longer needed by their respective modules.
45135         * m4/obstack.m4: Remove.
45136         * m4/strerror_r.m4: Remove.
45137         * m4/uint32_t.m4: Remove.
45138         * m4/uintptr_t.m4: Remove.
45139         * m4/ullong_max.m4: Remove.
45140         * m4/xstrtoimax.m4: Remove.
45141         * m4/xstrtoumax.m4: Remove.
45142
45143         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
45144         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
45145         dependencies now capture this.
45146
45147         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
45148         Do not use AC_LIBSOURCES, since gnulib modules now do this.
45149         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
45150         * m4/human.m4 (gl_HUMAN): Likewise.
45151         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
45152         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
45153
45154         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
45155
45156         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
45157         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
45158         stdint.
45159         * m4/human.m4 (gl_HUMAN): Likewise.
45160         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
45161         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
45162         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45163         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45164         * m4/xstrtol (gl_XSTRTOL): Likewise.
45165
45166         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
45167         AC_TYPE_LONG_LONG_INT.
45168         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45169         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
45170         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
45171         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45172
45173         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
45174         on stdbool.
45175
45176         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
45177         (gl_PREREQ_XSTRTOUL): Remove.
45178
45179         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
45180
45181         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
45182         mode.
45183
45184 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45185
45186         Add and change modules to make it easier for coreutils to use
45187         gnulib-tool.
45188         * modules/backupfile (Files): Remove m4/d-ino.m4.
45189         (Depends-on): Add d-ino.
45190         * modules/cycle-check (Depends-on): Add stdint.
45191         (lib_SOURCES): Add cycle-check.h.
45192         * modules/d-ino: New module.
45193         * modules/d-type: New module.
45194         * modules/error (Files): Remove m4/strerror_r.m4.
45195         * modules/filemode (Files): Add m4/st_dm_mode.m4.
45196         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
45197         m4/inttypes_h.m4, m4/uintmax_t.m4.
45198         (Depends-on): Add stdint.
45199         (lib_SOURCES): Add fsusage.h.
45200         * modules/getcwd (Files): Remove d-ino.m4.
45201         (Depends-on): Add d-ino.
45202         * modules/getndelim2 (Depends-on): Add stdint.
45203         * modules/glob (Files): Remove m4/d-type.m4.
45204         (Depends-on): Add d-type.
45205         * modules/host-os: New module.
45206         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
45207         m4/inttypes_h.m4, m4/uintmax_t.m4.
45208         * Depends-on: Add stdint.
45209         (lib_SOURCES): Add human.h.
45210         * modules/inttostr (Files): Remove m4/intmax_t.m4,
45211         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
45212         m4/uintmax_t.m4, m4/ulonglong.m4.
45213         (Depends-on): Add stdint.
45214         (EXTRA_DIST): Add inttostr.h.
45215         * modules/lchmod: New module.
45216         * modules/link-follow: New module.
45217         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
45218         (Depends-on): Add lchmod.
45219         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
45220         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45221         (Depends-on): Add stdint.
45222         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45223         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45224         (Depends-on): Add stdint.
45225         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45226         * modules/perl: New module.
45227         * modules/regex (Depends-on): Add stdint.
45228         * modules/rmdir-errno: New module.
45229         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45230         m4/intmax_t.m4.
45231         (Depends-on): Add stdint.
45232         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45233         m4/uintmax_t.m4.
45234         (Depends-on): Add stdint.
45235         * modules/unlink-busy: New module.
45236         * modules/utimecmp (Depends-on): Add stdint.
45237         * modules/uptime: New module.
45238         * modules/winsz-ioctl: New module.
45239         * modules/winsz-termios: New module.
45240         * modules/xnanosleep (Depends-on): Add nanosleep.
45241         * modules/ullong_max: Remove.
45242         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45243         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45244         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45245         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45246         (Depends-on): Add inttypes.
45247         (lib_SOURCES): Add xstrtol.h.
45248         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45249         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45250         * MODULES.html.sh: Move 'assert' into the assert section.
45251         Move 'dummy' into the linking section.
45252         Remove ullong_max.
45253         Add section for compatibility checks for POSIX:2001 functions,
45254         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45255         winsz-ioctl, and winsz-termios into it.
45256         Add lchmod.
45257         Add top-level Misc section and put host-os, perl, and uptime
45258         into it.
45259
45260 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45261
45262         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45263         now assume the stdint module.  Do not include inttypes.h.
45264         * lib/fsusage.h: Likewise.
45265         * lib/getndelim2.c: Likewise.
45266         * lib/human.h: Likewise.
45267         * lib/inttostr.h: Likewise.
45268         * lib/obstack.c: Likewise.
45269         * lib/regex_internal.h: Likewise.
45270         * lib/tempname.c: Likewise.
45271         * lib/utimecmp.c: Likewise.
45272         * lib/xstrtol.h: Likewise.
45273
45274         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45275
45276         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45277         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45278         * lib/xtime.h: Likewise.
45279
45280 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45281
45282         * modules/openat (Files): Add lib/fchmodat.c.
45283         Fixes problem reported by Jay Youngman.
45284
45285 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45286
45287         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45288         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45289
45290 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45291             Bruno Haible  <bruno@clisp.org>
45292
45293         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45294         and is a script that invokes bison. Tighten the code. Add comments.
45295
45296 2006-08-18  Jim Meyering  <jim@meyering.net>
45297
45298         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45299         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45300         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45301         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45302
45303 2006-08-18  Bruno Haible  <bruno@clisp.org>
45304
45305         * modules/bison-i18n: New file.
45306         * MODULES.html.sh (Internationalization functions): Add it.
45307
45308 2006-08-18  Bruno Haible  <bruno@clisp.org>
45309
45310         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45311         sys/statvfs.h. When getmntinfo was found, check its declaration and
45312         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45313
45314 2006-08-18  Bruno Haible  <bruno@clisp.org>
45315
45316         * m4/bison-i18n.m4: New file, from bison.
45317
45318 2006-08-18  Bruno Haible  <bruno@clisp.org>
45319
45320         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45321         (ME_DUMMY): Treat "kernfs" as a dummy.
45322         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45323
45324 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45325
45326         Update from coreutils.
45327
45328         2006-08-15  Jim Meyering  <jim@meyering.net>
45329
45330         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45331
45332         2006-01-17  Jim Meyering  <jim@meyering.net>
45333
45334         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45335
45336         2006-01-11  Jim Meyering  <jim@meyering.net>
45337
45338         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45339         Check for the lchmod function.
45340
45341 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45342
45343         Update from coreutils.
45344
45345         * lib/__fpending.h: Add copyright notice.
45346         * lib/fprintftime.h: Likewise.
45347         * lib/savedir.c: Use (C) in copyright notice.
45348         * lib/savedir.h: Likewise.
45349
45350         2006-08-15  Jim Meyering  <jim@meyering.net>
45351
45352         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45353         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45354         in support of the EXPECTED_ERRNO macro.
45355         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45356         definitions.  Instead, define the appropriate symbols and include
45357         "at-func.c".
45358         * lib/mkdirat.c (mkdirat): Likewise.
45359         * lib/fchmodat.c (fchmodat): Likewise.
45360         (ENOSYS): Remove definition.
45361         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45362         it.  Don't include "unistd--.h" -- it wasn't ever used.
45363
45364         2006-01-17  Jim Meyering  <jim@meyering.net>
45365
45366         Rewrite fts.c not to change the current working directory,
45367         by using openat, fstatat, fdopendir, etc..
45368
45369         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45370         (HAVE_OPENAT_SUPPORT): Define.
45371         [_LIBC] (fchdir): Don't undef or define; no longer used.
45372         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45373         Now, this `function' always succeeds, and consumes its file descriptor
45374         parameter -- so callers must not close such FDs.  Update callers.
45375         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45376         (diropen): Add parameter, SP.  Adjust all callers.
45377         Implement using diropen_fd, rather than open.
45378         (fts_open): Initialize new member, fts_cwd_fd.
45379         Remove fts_rft-setting code.
45380         (fts_close): Close fts_cwd_fd, if necessary.
45381         (__opendir2): Define in terms of opendir or opendirat,
45382         depending on whether the FST_NOCHDIR flag is set.
45383         (fts_build): Since fts_safe_changedir consumes its FD, and since
45384         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45385         and close the dup'd file descriptor upon failure.
45386         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45387         (fts_safe_changedir): Tweak semantics to reflect that this function
45388         now calls cwd_advance_fd and hence consumes its FD argument.
45389         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45390         [struct FTS] (fts_rft): Remove now-unused member.
45391         [struct FTS] (fts_cycle.state): Improve comment.
45392
45393         * lib/openat.c (openat_needs_fchdir): New function.
45394         * lib/openat.h (openat_needs_fchdir): Declare it.
45395
45396 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45397
45398         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45399         Problem and fix reported by Pádraig Brady in
45400         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45401
45402 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45403
45404         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45405
45406 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45407
45408         * lib/memcoll.c (memcoll): Optimize for the common case where the
45409         arguments are bytewise equal.
45410
45411 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45412
45413         * doc/regexprops-generic.texi: Add a copyright notice.
45414
45415 2006-08-15  Bruno Haible  <bruno@clisp.org>
45416
45417         * modules/tmpdir (License): Change to LGPL.
45418
45419 2006-08-15  Bruno Haible  <bruno@clisp.org>
45420
45421         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45422         module.
45423
45424 2006-08-14  Simon Josefsson  <jas@extundo.com>
45425
45426         * config/srclist.txt: Add gnupload.
45427
45428 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45429
45430         Change copyright notice from LGPL 2 to GPL 2, since that's the
45431         standard form used in the gnulib repository.
45432         * tests/test-lock.c: Likewise.
45433         * tests/test-stdint.c: Likewise.
45434         * tests/test-tls.c: Likewise.
45435
45436         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45437         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45438         Add copyright notice.
45439
45440         * check-module: Add copyright notice.  Output a copyright
45441         notice if "--version" is specified.
45442         * modules/COPYING: New file.
45443         * tests/test-getaddrinfo.c: Add copyright notice.
45444         * tests/test-verify.c: Likewise.
45445
45446 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45447
45448         Change copyright notice from LGPL 2 to GPL 2, since that's the
45449         standard form used in the gnulib repository.
45450         * lib/lock.c: LGPL -> GPL.
45451         * lib/lock.h: Likewise.
45452         * lib/strnlen1.c: Likewise.
45453         * lib/strnlen1.h: Likewise.
45454         * lib/tls.c: Likewise.
45455         * lib/tls.h: Likewise.
45456         * lib/tmpdir.c: Likewise.
45457
45458         * lib/TODO: Remove; this belongs only in coreutils.
45459
45460 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45461
45462         Add copyright notices to long-enough files that lack them, since
45463         otherwise the files aren't clearly free.  Use the same notice that
45464         getdate.texi already uses.
45465         * doc/alloca-opt.texi: Add copyright notice.
45466         * doc/alloca.texi: Likewise.
45467         * doc/ctime.texi: Likewise.
45468         * doc/functions.texi: Likewise.
45469         * doc/gcd.texi: Likewise.
45470         * doc/gnulib-tool.texi: Likewise.
45471         * doc/inet_ntoa.texi: Likewise.
45472         * doc/visibility.texi: Likewise.
45473
45474         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45475         * doc/quote.texi: Add copyright notice.
45476
45477         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45478         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45479         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45480         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45481         is now obsolete, and give a pointer to the Sun list.
45482         Add copyright notice.
45483
45484 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45485
45486         * config/srclistvars.sh: Add copyright notice.
45487
45488 2006-08-14  Eric Blake  <ebb9@byu.net>
45489
45490         Import the following change from libc:
45491
45492         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45493
45494         Upstream bug 2997.
45495         * lib/misc/error.c: Add space between program name and message if file
45496         name is missing.
45497
45498 2006-08-12  Karl Berry  <karl@gnu.org>
45499
45500         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45501         remove, these originate in gnulib now.
45502
45503 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45504
45505         * doc/Makefile (standards.info standards.html standards.dvi):
45506         Also depend on make-stds.texi.
45507
45508 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45509
45510         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45511         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45512
45513         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45514         in wchar_t.  Problem reported by Eric Blake.
45515
45516         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45517         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45518         Also, help the compiler to keep LEN in a register.
45519
45520 2006-08-11  Eric Blake  <ebb9@byu.net>
45521
45522         * users.txt: Sort.  Add tar.
45523
45524 2006-08-11  Bruno Haible  <bruno@clisp.org>
45525
45526         * users.txt: New file.
45527
45528 2006-08-11  Bruno Haible  <bruno@clisp.org>
45529
45530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45531         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45532
45533 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45534
45535         * modules/snprintf (Depends-on): Remove minmax.
45536         (Maintainer): Add self and Bruno.
45537
45538 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45539
45540         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45541         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45542         (EOVERFLOW): Define if the system does not.
45543         Do not include "minmax.h"; it wasn't used.
45544         (snprintf): Don't assume size_t promotes to an unsigned type.
45545         Fix bug when generated string was too long for the buffer: the
45546         buffer's contents are supposed to be the initial prefix of the
45547         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45548         exceeds INT_MAX; do the check ourselves.
45549
45550         Import the following changes from libc:
45551
45552         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45553
45554         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45555         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45556         set wc to the byte which couldn't be converted.
45557         (re_string_reconstruct): Don't clear valid_raw_len before calling
45558         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45559         tip_context using re_string_context_at.
45560
45561         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45562
45563         * lib/posix/regex.h: g++ still cannot handled [restrict].
45564
45565         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45566
45567         * lib/posix/regex.h: Remove special handling for VMS.
45568
45569 2006-08-10  Jim Meyering  <jim@meyering.net>
45570
45571         * modules/same-inode: New module.
45572         * modules/dev-ino: New module.
45573         * modules/cycle-check: Depend on these modules, rather than simply
45574         including their .h files.
45575         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45576         required via m4/cycle-check.m4.
45577         * modules/same: Depend on new same-inode module, rather than
45578         including same-inode.h.
45579         * modules/chdir-safer: New file.
45580
45581         * modules/chown (Depends-on): Add stat-macros.
45582
45583 2006-08-10  Jim Meyering  <jim@meyering.net>
45584
45585         * m4/cycle-check.m4: New file.
45586         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45587         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45588
45589 2006-08-10  Eric Blake  <ebb9@byu.net>
45590
45591         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45592         in from original proposal.
45593
45594 2006-08-10  Eric Blake  <ebb9@byu.net>
45595         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45596
45597         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45598         namespace.
45599
45600 2006-08-10  Bruno Haible  <bruno@clisp.org>
45601
45602         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45603         as well.
45604
45605 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45606
45607         Sync from coreutils.
45608
45609         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45610
45611         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45612         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45613
45614 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45615
45616         * modules/restrict: Remove; no longer needed now that we assume
45617         Autoconf 2.59 or later.
45618         * MODULES.html.sh: Remove 'restrict'.
45619         * modules/argp (Depends-on): Remove 'restrict'.
45620         * modules/base64 (Depends-on): Likewise.
45621         * modules/gc (Depends-on): Likewise.
45622         * modules/getaddrinfo (Depends-on): Likewise.
45623         * modules/glob (Depends-on): Likewise.
45624         * modules/inet_ntop (Depends-on): Likewise.
45625         * modules/inet_pton (Depends-on): Likewise.
45626         * modules/memxor (Depends-on): Likewise.
45627         * modules/regex (Depends-on): Likewise.
45628         * modules/strtok_r (Depends-on): Likewise.
45629         * modules/time_r (Depends-on): Likewise.
45630
45631 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45632
45633         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45634         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45635         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45636         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45637         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45638         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45639         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45640         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45641
45642         Merge from coreutils.
45643         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45644         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45645         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45646         * m4/time_r.m4 (gl_TIME_R): Likewise.
45647
45648 2006-08-09  Karl Berry  <karl@gnu.org>
45649
45650         * config/srclist.txt: no more gettext-tools, per Bruno.
45651
45652 2006-08-08  Eric Blake  <ebb9@byu.net>
45653
45654         * modules/verror: New module.
45655         * MODULES.html.sh: Document it.
45656
45657 2006-08-08  Eric Blake  <ebb9@byu.net>
45658
45659         * lib/verror.h, lib/verror.c: New files.
45660
45661 2006-08-08  Eric Blake  <ebb9@byu.net>
45662
45663         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45664         verror_at_line output complies with GNU Coding Standards even when
45665         file is NULL.
45666
45667 2006-08-07  Bruno Haible  <bruno@clisp.org>
45668
45669         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45670         versions of AIX.
45671         Reported by Ralf Wildenhues.
45672
45673 2006-08-07  Bruno Haible  <bruno@clisp.org>
45674
45675         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45676         in an AC_DEFUN. Needed so that the autoconf snippets can use
45677         AC_REQUIRE.
45678
45679 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45680
45681         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45682         Initialize pkgdata_DATA.
45683         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45684         overriding it.
45685
45686 2006-08-06  Eric Blake  <ebb9@byu.net>
45687
45688         * lib/error.h: Fold in some upstream changes from glibc.
45689         * lib/error.c: Likewise.
45690
45691 2006-08-04  Bruno Haible  <bruno@clisp.org>
45692
45693         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45694         Make the mostlyclean-local rule depend on mostlyclean-generic.
45695         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45696
45697 2006-07-31  Bruno Haible  <bruno@clisp.org>
45698
45699         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45700         <stdlib.h>, <string.h>.
45701
45702 2006-07-30  Bruno Haible  <bruno@clisp.org>
45703
45704         * modules/readlink (License): Change to LGPL.
45705
45706 2006-07-30  Bruno Haible  <bruno@clisp.org>
45707
45708         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45709         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45710         set PKGDATADIR to point to it.
45711
45712 2006-07-30  Bruno Haible  <bruno@clisp.org>
45713
45714         * modules/csharpexec (configure.ac): Comment out macro invocation.
45715         * modules/javaexec (configure.ac): Likewise.
45716         * modules/javacomp-script (configure.ac): Likewise.
45717
45718         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45719
45720 2006-07-30  Bruno Haible  <bruno@clisp.org>
45721
45722         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45723         linked-list.
45724
45725 2006-07-30  Bruno Haible  <bruno@clisp.org>
45726
45727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45728
45729 2006-07-30  Bruno Haible  <bruno@clisp.org>
45730
45731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45732         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45733         get removed.
45734
45735 2006-07-29  Bruno Haible  <bruno@clisp.org>
45736
45737         Make it possible for gnulib-tool to work with locally modified or
45738         augmented gnulib repositories.
45739         * gnulib-tool (func_usage): Document --local-dir option.
45740         (local_gnulib_dir): New variable.
45741         Handle --local-dir option.
45742         (func_lookup_file): New function.
45743         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45744         (func_get_description, func_get_filelist, func_get_description,
45745         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45746         func_get_automake_snippet, func_get_include_directive,
45747         func_get_license, func_get_maintainer): Use func_lookup_file.
45748         (func_import, func_create_testdir): Use func_lookup_file.
45749
45750 2006-07-29  Bruno Haible  <bruno@clisp.org>
45751
45752         * modules/setenv (Depends-on): Add unistd.
45753
45754 2006-07-29  Bruno Haible  <bruno@clisp.org>
45755
45756         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45757
45758 2006-07-29  Bruno Haible  <bruno@clisp.org>
45759
45760         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45761
45762 2006-07-29  Bruno Haible  <bruno@clisp.org>
45763
45764         * gnulib-tool (import, update): If there is no Makefile.am, look at
45765         aclocal.m4, instead of bailing out.
45766
45767 2006-07-29  Bruno Haible  <bruno@clisp.org>
45768
45769         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45770         Categorize the options by when they are useful.
45771
45772 2006-07-29  Bruno Haible  <bruno@clisp.org>
45773
45774         * gnulib-tool (func_usage): Document option --no-libtool.
45775         Handle option --no-libtool.
45776         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45777         for changed semantics of $libtool variable.
45778         (func_import): Likewise. If libtool is not used, show this through
45779         an option --no-libtool.
45780         (func_create_testdir): Update.
45781
45782 2006-07-29  Bruno Haible  <bruno@clisp.org>
45783
45784         * gnulib-tool (func_import): Extend error message about missing
45785         --doc-base.
45786
45787 2006-07-29  Bruno Haible  <bruno@clisp.org>
45788
45789         * gnulib-tool (func_import): Don't create the $docbase directory if
45790         there is no file to store there.
45791
45792 2006-07-29  Bruno Haible  <bruno@clisp.org>
45793
45794         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45795         relevant, look for configure.ac there, not in the current directory.
45796         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45797
45798 2006-07-29  Bruno Haible  <bruno@clisp.org>
45799
45800         * gnulib-tool (SORT): New variable.
45801         (func_usage): Undocument --assume-autoconf option.
45802         Remove --assume-autoconf option handling.
45803         (autoconf_minversion): Determine from the contents of configure.ac.
45804         (func_import): Remove autoconf_minversion handling.
45805         Suggested by Eric Blake.
45806
45807 2006-07-29  Bruno Haible  <bruno@clisp.org>
45808
45809         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45810
45811 2006-07-29  Bruno Haible  <bruno@clisp.org>
45812
45813         * config/srclist.txt (*setenv.[ch]): Remove rules.
45814
45815 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45816
45817         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45818
45819 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45820
45821         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45822         arpa/inet.h.
45823
45824 2006-07-28  Simon Josefsson  <jas@extundo.com>
45825
45826         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45827         * modules/inet_pton (Depends-on): Likewise.
45828
45829 2006-07-28  Simon Josefsson  <jas@extundo.com>
45830
45831         * m4/netinet_in_h.m4: New file.
45832
45833 2006-07-28  Simon Josefsson  <jas@extundo.com>
45834
45835         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45836         #include's.
45837
45838 2006-07-28  Simon Josefsson  <jas@extundo.com>
45839
45840         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45841         #include's.
45842
45843 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45844
45845         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45846         setgid on directories only if they set these bits.
45847         * lib/modechange.h: Remove obsolete comment about masks.
45848
45849 2006-07-28  Eric Blake  <ebb9@byu.net>
45850
45851         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45852         macro expansion.
45853
45854 2006-07-28  Bruno Haible  <bruno@clisp.org>
45855
45856         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45857
45858 2006-07-28  Bruno Haible  <bruno@clisp.org>
45859
45860         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45861
45862 2006-07-28  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45865         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45866         Define fallbacks.
45867         Avoids link error on FreeBSD 4.x.
45868         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45869
45870         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45871         encoding.
45872         * lib/mbswidth.c (iswcntrl): Likewise.
45873
45874 2006-07-27  Bruno Haible  <bruno@clisp.org>
45875
45876         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45877         test.
45878
45879 2006-07-27  Bruno Haible  <bruno@clisp.org>
45880
45881         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45882         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45883         defined.
45884
45885 2006-07-26  Eric Blake  <ebb9@byu.net>
45886
45887         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45888
45889 2006-07-26  Eric Blake  <ebb9@byu.net>
45890
45891         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45892         like mingw that lack mkstemp.
45893         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45894         avoid compilation warning on mingw.
45895
45896 2006-07-26  Bruno Haible  <bruno@clisp.org>
45897
45898         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45899         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45900         INT_FAST*_MIN, INTPTR_MIN.
45901
45902 2006-07-25  Bruno Haible  <bruno@clisp.org>
45903
45904         * modules/version-etc (Depends-on): Add stdarg.
45905
45906 2006-07-25  Bruno Haible  <bruno@clisp.org>
45907
45908         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45909         complex commands.
45910
45911 2006-07-25  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45914         defined in <stdarg.h> or config.h.
45915
45916 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45917
45918         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45919         (gl_STDIO_SAFER): Remove.
45920
45921 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45922
45923         * MODULES.html.sh (File stream based Input/Output):
45924         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45925         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45926         * modules/fopen-safer, modules/tmpfile-safer: New files.
45927         * modules/stdio-safer: Remove.
45928
45929 2006-07-24  Bruno Haible  <bruno@clisp.org>
45930
45931         * modules/tmpdir: New file.
45932         * MODULES.html.sh (File system functions): Add it.
45933
45934 2006-07-24  Bruno Haible  <bruno@clisp.org>
45935
45936         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45937         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45938
45939 2006-07-24  Bruno Haible  <bruno@clisp.org>
45940
45941         * modules/clean-temp: New file.
45942
45943 2006-07-24  Bruno Haible  <bruno@clisp.org>
45944
45945         * m4/tmpdir.m4: New file, from GNU gettext.
45946
45947 2006-07-24  Bruno Haible  <bruno@clisp.org>
45948
45949         * lib/tmpdir.h: New file, from GNU gettext.
45950         * lib/tmpdir.c: New file, from GNU gettext.
45951
45952 2006-07-24  Bruno Haible  <bruno@clisp.org>
45953
45954         * lib/clean-temp.h: New file, from GNU gettext.
45955         * lib/clean-temp.c: New file, from GNU gettext.
45956
45957 2006-07-23  Eric Blake  <ebb9@byu.net>
45958
45959         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45960         (Depends-on): Add binary-io.
45961
45962 2006-07-23  Eric Blake  <ebb9@byu.net>
45963
45964         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45965
45966 2006-07-23  Eric Blake  <ebb9@byu.net>
45967
45968         * lib/tmpfile-safer.c: New file.
45969         * lib/stdio-safer.h (fopen_safer): Add prototype.
45970         * lib/stdio--.h (tmpfile): Make safer.
45971
45972 2006-07-23  Bruno Haible  <bruno@clisp.org>
45973
45974         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45975         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45976         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45977         gl_linked_remove_at): Use it.
45978
45979 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45980         and Simon Josefsson <jas@extundo.com>
45981
45982         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45983
45984         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45985
45986 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45987
45988         * modules/close-stream: New file.
45989         * modules/closeout (Description): Make it clear that it exits
45990         with a diagnostic on error.
45991         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45992         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45993
45994 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45995
45996         * m4/close-stream.m4: New file.
45997
45998 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45999
46000         * lib/close-stream.c, lib/close-stream.h: New files.
46001
46002 2006-07-22  Bruno Haible  <bruno@clisp.org>
46003
46004         Merge from GNU gettext 0.15.
46005
46006         2006-05-01  Bruno Haible  <bruno@clisp.org>
46007
46008                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
46009
46010         2006-07-22  Bruno Haible  <bruno@clisp.org>
46011
46012                 * modules/javaversion: New file.
46013                 * MODULES.html.sh (Java): Add javaversion.
46014
46015         2006-03-12  Bruno Haible  <bruno@clisp.org>
46016
46017                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
46018
46019         2005-12-04  Bruno Haible  <bruno@clisp.org>
46020
46021                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
46022                 (untested).
46023
46024         2006-06-21  Bruno Haible  <bruno@clisp.org>
46025
46026                 Avoid warnings from recent versions of mcs.
46027                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
46028                 -o, -L, -r any more. Use options documented since mcs-1.0
46029                 instead. Similarly for -g.
46030
46031         2005-12-04  Bruno Haible  <bruno@clisp.org>
46032
46033                 * build-aux/csharpcomp.sh.in: Suffix for resources is
46034                 .resources, not .resource.
46035
46036         2005-07-09  Bruno Haible  <bruno@clisp.org>
46037
46038                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
46039                 add a .dll suffix.
46040                 Reported by Mark Junker <mjscod@gmx.de>.
46041
46042         2006-07-22  Bruno Haible  <bruno@clisp.org>
46043
46044                 * modules/gettext: Upgrade to gettext-0.15.
46045                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
46046                 m4/visibility.m4.
46047                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
46048
46049 2006-07-22  Bruno Haible  <bruno@clisp.org>
46050
46051         Merge from GNU gettext 0.15.
46052
46053         2006-03-25  Bruno Haible  <bruno@clisp.org>
46054
46055                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
46056
46057         2006-07-21  Bruno Haible  <bruno@clisp.org>
46058
46059                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
46060                 "1.1".
46061
46062         2006-05-09  Bruno Haible  <bruno@clisp.org>
46063
46064                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
46065                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
46066                 for the conftestver execution.
46067
46068         2006-05-01  Bruno Haible  <bruno@clisp.org>
46069
46070                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
46071                 optional target-version argument. Verify that the compiler
46072                 groks source of the specified source-version, or add -source
46073                 option as necessary. Verify that the compiler produces
46074                 bytecode in the specified target-version, or add -target and
46075                 -source options as necessary. Make the result of the test
46076                 available as variable CONF_JAVAC. Also log error output in
46077                 config.log.
46078
46079         2006-03-11  Bruno Haible  <bruno@clisp.org>
46080
46081                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
46082
46083         2006-05-09  Bruno Haible  <bruno@clisp.org>
46084
46085                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
46086                 CLASSPATH_SEPARATOR to a semicolon.
46087
46088         2006-03-12  Bruno Haible  <bruno@clisp.org>
46089
46090                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
46091                 available as variable CONF_JAVA, for subsequent autoconf
46092                 tests. Also log error output in config.log.
46093
46094         2006-07-19  Bruno Haible  <bruno@clisp.org>
46095
46096                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
46097                 that getline works on glibc2 systems. Needed to avoid trouble
46098                 in relocatable.c.
46099                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
46100
46101         2005-12-04  Bruno Haible  <bruno@clisp.org>
46102
46103                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
46104                 launcher (untested).
46105
46106         2005-12-04  Bruno Haible  <bruno@clisp.org>
46107
46108                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
46109
46110         2006-07-22  Bruno Haible  <bruno@clisp.org>
46111
46112                 * gettext.m4: Update from GNU gettext-0.15.
46113                 * nls.m4: Likewise.
46114                 * po.m4: Likewise.
46115                 * inttypes-pri.m4: Likewise.
46116                 * inttypes-h.m4: Renamed from inttypes.m4.
46117                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
46118
46119 2006-07-22  Bruno Haible  <bruno@clisp.org>
46120
46121         Merge from GNU gettext 0.15.
46122
46123         2005-07-05  Bruno Haible  <bruno@clisp.org>
46124
46125                 * printf-args.c (printf_fetchargs): Work around broken
46126                 definition of wint_t on mingw.
46127
46128         2005-02-12  Bruno Haible  <bruno@clisp.org>
46129
46130                 * xallocsa.h: Add extern "C" for C++.
46131
46132         2006-05-17  Bruno Haible  <bruno@clisp.org>
46133
46134                 Cygwin portability.
46135                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
46136
46137         2006-04-30  Bruno Haible  <bruno@clisp.org>
46138
46139                 * progreloc.c: Include <mach-o/dyld.h> if available.
46140                 (find_executable): Use _NSGetExecutablePath when possible.
46141
46142         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46143
46144                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
46145                 function.
46146
46147         2005-12-29  Bruno Haible  <bruno@clisp.org>
46148
46149                 * progreloc.c (set_program_name_and_installdir): Fix
46150                 compilation error.
46151
46152         2005-12-04  Bruno Haible  <bruno@clisp.org>
46153
46154                 Cygwin portability.
46155                 * progreloc.c: Include <windows.h> also on Cygwin.
46156                 (find_executable): Add support for Cygwin.
46157                 (set_program_name_and_installdir): Handle also platforms with
46158                 nonempty EXEEXT.
46159
46160         2006-07-11  Bruno Haible  <bruno@clisp.org>
46161
46162                 * javacomp.c: Fix a comment.
46163                 Reported by Jim Meyering.
46164
46165         2006-04-30  Bruno Haible  <bruno@clisp.org>
46166
46167                 * javacomp.h (compile_java_class): Add source_version,
46168                 target_version arguments.
46169                 * javacomp.c: Rewritten to choose only a compiler that
46170                 respects the specified source_version and target_version.
46171
46172         2006-06-27  Bruno Haible  <bruno@clisp.org>
46173
46174                 Assume correct S_ISDIR macro.
46175                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
46176
46177         2006-07-22  Bruno Haible  <bruno@clisp.org>
46178
46179                 * javaversion.h: New file, from GNU gettext.
46180                 * javaversion.c: New file, from GNU gettext.
46181                 * javaversion.java: New file, from GNU gettext.
46182                 * javaversion.class: New file, from GNU gettext.
46183
46184         2006-05-17  Bruno Haible  <bruno@clisp.org>
46185
46186                 Cygwin portability.
46187                 * javaexec.c (execute_java_class): Test for jview program
46188                 also on Cygwin.
46189
46190         2006-04-09  Bruno Haible  <bruno@clisp.org>
46191
46192                 * fatal-signal.c: Don't include string.h.
46193                 (at_fatal_signal): Use a copying loop instead of memcpy.
46194
46195         2005-12-04  Bruno Haible  <bruno@clisp.org>
46196
46197                 * csharpexec.c: Add support for 'clix' launcher (untested).
46198                 (execute_csharp_using_sscli): New function.
46199                 (execute_csharp_program): Call it.
46200
46201         2006-06-21  Bruno Haible  <bruno@clisp.org>
46202
46203                 Avoid warnings from recent versions of mcs.
46204                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
46205                 -o, -L, -r any more. Use options documented since mcs-1.0
46206                 instead. Similarly for -g.
46207
46208         2005-07-09  Bruno Haible  <bruno@clisp.org>
46209
46210                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
46211                 add a .dll suffix.
46212                 Reported by Mark Junker <mjscod@gmx.de>.
46213
46214         2006-06-17  Bruno Haible  <bruno@clisp.org>
46215
46216                 * config.charset: Update for NetBSD 3.0.
46217
46218         2006-05-17  Bruno Haible  <bruno@clisp.org>
46219
46220                 Cygwin portability.
46221                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46222
46223         2006-05-16  Bruno Haible  <bruno@clisp.org>
46224
46225                 * localcharset.c [CYGWIN]: Include <windows.h>.
46226                 (get_charset_aliases): For Cygwin, return the same CPxxx
46227                 aliases list as under WIN32.
46228                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46229                 the environment variables. Fall back to GetACP().
46230
46231         2006-04-05  Bruno Haible  <bruno@clisp.org>
46232
46233                 * config.charset: Update Juan Manuel Guerrero's address.
46234
46235         2005-02-12  Bruno Haible  <bruno@clisp.org>
46236
46237                 * allocsa.h: Add extern "C" for C++.
46238
46239         2005-02-10  Bruno Haible  <bruno@clisp.org>
46240
46241                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46242                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46243
46244         2006-07-22  Bruno Haible  <bruno@clisp.org>
46245
46246                 * gettext.h: Update to GNU gettext-0.15.
46247
46248 2006-07-22  Bruno Haible  <bruno@clisp.org>
46249
46250         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46251         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46252         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46253
46254 2006-07-21  Eric Blake  <ebb9@byu.net>
46255
46256         * modules/stdlib-safer: New file.
46257         * MODULES.html.sh (File stream based Input/Output): Add
46258         stdlib-safer.
46259
46260 2006-07-21  Eric Blake  <ebb9@byu.net>
46261
46262         * lib/stdlib-safer.h: New file from coreutils, required by
46263         stdlib--.h.
46264
46265 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46266
46267         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46268
46269 2006-07-20  Bruno Haible  <bruno@clisp.org>
46270
46271         * gnulib-tool: Recognize new option --assume-autoconf.
46272         (autoconf_minversion): New variable.
46273         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46274
46275 2006-07-20  Bruno Haible  <bruno@clisp.org>
46276
46277         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46278
46279 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46280
46281         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46282         Reindent and repaginate.
46283
46284 2006-07-19  Derek Price  <derek@ximbiot.com>
46285
46286         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46287         Correct grammar.
46288
46289 2006-07-17  Bruno Haible  <bruno@clisp.org>
46290
46291         * modules/list: New file.
46292         * modules/array-list: New file.
46293         * modules/carray-list, modules/carray-list-tests: New files.
46294         * modules/linked-list, modules/linked-list-tests: New files.
46295         * modules/avltree-list, modules/avltree-list-tests: New files.
46296         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46297         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46298         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46299         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46300         * modules/oset: New file.
46301         * modules/array-oset: New file.
46302         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46303         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46304         * tests/test-carray_list.c: New file.
46305         * tests/test-linked_list.c: New file.
46306         * tests/test-avltree_list.c: New file.
46307         * tests/test-rbtree_list.c: New file.
46308         * tests/test-linkedhash_list.c: New file.
46309         * tests/test-avltreehash_list.c: New file.
46310         * tests/test-rbtreehash_list.c: New file.
46311         * tests/test-avltree_oset.c: New file.
46312         * tests/test-rbtree_oset.c: New file.
46313         * MODULES.html.sh (Container data structures): New section.
46314
46315 2006-07-17  Bruno Haible  <bruno@clisp.org>
46316
46317         * m4/gl_list.m4: New file.
46318
46319 2006-07-17  Bruno Haible  <bruno@clisp.org>
46320
46321         * lib/gl_list.h: New file.
46322         * lib/gl_list.c: New file.
46323         * lib/gl_array_list.h: New file.
46324         * lib/gl_array_list.c: New file.
46325         * lib/gl_carray_list.h: New file.
46326         * lib/gl_carray_list.c: New file.
46327         * lib/gl_linked_list.h: New file.
46328         * lib/gl_linked_list.c: New file.
46329         * lib/gl_anylinked_list1.h: New file.
46330         * lib/gl_anylinked_list2.h: New file.
46331         * lib/gl_avltree_list.h: New file.
46332         * lib/gl_avltree_list.c: New file.
46333         * lib/gl_anyavltree_list1.h: New file.
46334         * lib/gl_anyavltree_list2.h: New file.
46335         * lib/gl_rbtree_list.h: New file.
46336         * lib/gl_rbtree_list.c: New file.
46337         * lib/gl_anyrbtree_list1.h: New file.
46338         * lib/gl_anyrbtree_list2.h: New file.
46339         * lib/gl_anytree_list1.h: New file.
46340         * lib/gl_anytree_list2.h: New file.
46341         * lib/gl_linkedhash_list.h: New file.
46342         * lib/gl_linkedhash_list.c: New file.
46343         * lib/gl_anyhash_list1.h: New file.
46344         * lib/gl_anyhash_list2.h: New file.
46345         * lib/gl_avltreehash_list.h: New file.
46346         * lib/gl_avltreehash_list.c: New file.
46347         * lib/gl_rbtreehash_list.h: New file.
46348         * lib/gl_rbtreehash_list.c: New file.
46349         * lib/gl_anytreehash_list1.h: New file.
46350         * lib/gl_anytreehash_list2.h: New file.
46351
46352         * lib/gl_oset.h: New file.
46353         * lib/gl_oset.c: New file.
46354         * lib/gl_array_oset.h: New file.
46355         * lib/gl_array_oset.c: New file.
46356         * lib/gl_avltree_oset.h: New file.
46357         * lib/gl_avltree_oset.c: New file.
46358         * lib/gl_rbtree_oset.h: New file.
46359         * lib/gl_rbtree_oset.c: New file.
46360         * lib/gl_anytree_oset.h: New file.
46361
46362 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46363
46364         * m4/mkancesdirs.m4: New file.
46365         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46366         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46367         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46368         it.
46369
46370 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46371
46372         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46373         * lib/mkancesdirs.h: New files.
46374         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46375         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46376         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46377         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46378         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46379         callers changed.  Revamp internals significantly, by not
46380         attempting to create directories that are temporarily more
46381         permissive than the final results.  Do not attempt to use
46382         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46383         This removes some race conditions, fixes some bugs, and simplifies
46384         things.  Use new dirchownmod function to do owner and mode changes.
46385         * lib/mkdir-p.h: Likewise.
46386         * lib/modechange.c (octal_to_mode): New function.
46387         (struct mode_change): New member mentioned.
46388         (make_node_op_equals): New arg mentioned.  All callers changed.
46389         (mode_compile): Keep track of which mode bits the user has explicitly
46390         mentioned.
46391         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46392         New arg PMODE_BITS, to keep track of which mode bits the user
46393         mentioned; it treats S_ISUID and S_ISGID speciall.
46394         All callers changed.
46395         * lib/modechange.h: Likewise.
46396
46397 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46398
46399         * MODULES.html.sh: Add mkancestors.
46400         * modules/mkancesdirs: New module.
46401         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46402         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46403         The chdir-safer and afs files are now orphans; I'll remove them
46404         unless someone speaks up.
46405         Add lib/dirchownmod.c, lib/dirchownmod.h.
46406         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46407         Add lchown, mkancesdirs.
46408         (Maintainer): Add self.
46409
46410 2006-07-15  Karl Berry  <karl@gnu.org>
46411
46412         * gnulib-tool: help message wording/arrangement.
46413
46414 2006-07-14  Simon Josefsson  <jas@extundo.com>
46415
46416         * doc/gnulib.texi (Libtool and Windows): New section.
46417
46418 2006-07-12  Simon Josefsson  <jas@extundo.com>
46419
46420         * modules/gendocs (License): Fix license, approved by Karl.
46421
46422 2006-07-12  Eric Blake  <ebb9@byu.net>
46423
46424         * MODULES.html.sh: Add gendocs.
46425
46426 2006-07-11  Eric Blake  <ebb9@byu.net>
46427
46428         * modules/fdl: New module, to install doc/fdl.texi.
46429         * MODULES.html.sh: Add new section for documentation modules.
46430         * gnulib-tool: Avoid space-tab.
46431         (--doc-base): New option, to manage files from doc.
46432
46433 2006-07-11  Eric Blake  <ebb9@byu.net>
46434
46435         * m4/absolute-header.m4: Fix comments to match recent change.
46436
46437 2006-07-11  Eric Blake  <ebb9@byu.net>
46438
46439         * gnulib-tool: List --doc-base before --tests-base.
46440
46441 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46442
46443         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46444
46445 2006-07-11  Bruno Haible  <bruno@clisp.org>
46446
46447         * README: Mention where to put documentation.
46448
46449 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46450
46451         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46452
46453 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46454
46455         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46456         to stdint.m4.
46457
46458 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46459
46460         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46461         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46462         "no/such/file/stdint.h" when there is no such file, so that
46463         the resulting C code can be parsed by dodgy compilers.
46464         Problems reported by Bob Proulx.
46465
46466 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46467
46468         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46469         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46470         macros into the GNU _D_EXACT_NAMLEN.
46471         * lib/savedir.c:  Likewise.
46472         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46473
46474 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46475         and Paul Eggert  <eggert@cs.ucla.edu>
46476
46477         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46478         * m4/savedir.m4:
46479         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46480         macros into the GNU _D_EXACT_NAMLEN.
46481
46482 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46483
46484         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46485         around the absolute name, to work around a problem with the HP-UX
46486         11.23 native C compiler, reported by Bob Proulx.
46487
46488 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46489
46490         * doc/maintain.texi, make-stds.texi: Sync from
46491         <http://savannah.gnu.org/projects/gnustandards>.
46492
46493 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46494
46495         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46496
46497 2006-07-09  Jim Meyering  <jim@meyering.net>
46498
46499         * m4/glob.m4: Remove a doubled word in a comment.
46500
46501 2006-07-09  Jim Meyering  <jim@meyering.net>
46502
46503         * lib/argp-pv.c: Remove a doubled word in a comment.
46504         * lib/check-version.c (check_version): Likewise.
46505         * lib/javacomp.c (compile_java_class): Likewise.
46506
46507 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46508
46509         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46510         for the benefit of people using Autoconf 2.60.  If you want to
46511         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46512         (or m4/onceonly.m4, if pre-2.57) manually.
46513
46514 2006-07-08  Jim Meyering  <jim@meyering.net>
46515
46516         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46517         comment.
46518         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46519         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46520         comment.
46521
46522 2006-07-08  Jim Meyering  <jim@meyering.net>
46523
46524         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46525
46526 2006-07-07  Simon Josefsson  <jas@extundo.com>
46527
46528         * tests/test-crc.c: Change expected crc value, the test vector
46529         were probably computed using the old broken crc.c?
46530
46531 2006-07-06  Simon Josefsson  <jas@extundo.com>
46532
46533         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46534         now the canonical place for the M4 file).
46535
46536         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46537         from the sys_socket dependency now.
46538
46539         * modules/inet_pton (Files): Ditto.
46540
46541         * modules/inet_ntop (Files): Ditto.
46542
46543 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46544
46545         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46546         not gl_PREREQ_GETUSERSHELL.
46547
46548 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46549
46550         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46551         with only one argument, for Autoconf 2.60.
46552         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46553         expand to nothing, so add a shell command to avoid syntax error.
46554         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46555
46556 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46557
46558         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46559
46560 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46561
46562         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46563         no longer needed.  Check for isblank decl.
46564         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46565         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46566         of existence.
46567
46568 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46569
46570         * lib/getloadavg.c: Use __VMS, not VMS.
46571         * lib/getopt.c: Likewise.
46572         * lib/getpagesize.h: Likewise.
46573         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46574         and probably does not work.
46575
46576 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46577
46578         * lib/.cppi-disable: Add wcwidth.
46579         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46580         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46581         (ISGRAPH): Remove.  All uses changed to isgraph.
46582         (FOLD) [!defined _LIBC]: Remove special case.
46583         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46584         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46585         HAVE_ISBLANK.
46586         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46587         case.
46588
46589 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46590
46591         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46592         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46593         brackets.  Other minor changes to suppress some compiler
46594         warnings.
46595
46596 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46597         and Paul Eggert  <eggert@cs.ucla.edu>
46598
46599         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46600         of invoking obsolescent AC_HEADER_DIRENT macro.
46601         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46602         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46603         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46604         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46605         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46606         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46607         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46608         * m4/readdir.m4: Remove; no longer needed.
46609
46610 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46611         and Paul Eggert  <eggert@cs.ucla.edu>
46612
46613         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46614         Don't worry about this obsolete case any more.
46615         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46616         directories.
46617         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46618         worry about this obsolete case any more.
46619         * lib/fts.c: Likewise.
46620         * lib/getcwd.c: Likewise.
46621         * lib/glob.h: Likewise.
46622         * lib/savedir.c: Likewise.
46623
46624 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46625
46626         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46627         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46628         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46629         needed.
46630         All uses removed.
46631         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46632         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46633         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46634         needed.
46635         * m4/getdate.m4 (gl_GETDATE): Likewise.
46636         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46637         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46638         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46639         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46640         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46641         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46642         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46643         needed.
46644
46645 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46646
46647         * lib/memcasecmp.c: Include <limits.h>.
46648         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46649         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46650         Don't assume isdigit succeeds only on '0' through '9'.
46651
46652 2006-07-05  Eric Blake  <ebb9@byu.net>
46653
46654         * modules/getaddrinfo (Depends-on): Add snprintf.
46655
46656 2006-07-05  Eric Blake  <ebb9@byu.net>
46657
46658         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46659         to avoid 'header present but could not be compiled' on cygwin.
46660
46661 2006-07-05  Eric Blake  <ebb9@byu.net>
46662
46663         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46664         missing from netdb.h.
46665         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46666
46667 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46668
46669         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46670         no longer needed.
46671         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46672         * m4/getdate.m4 (gl_GETDATE): Likewise.
46673         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46674         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46675         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46676         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46677         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46678
46679 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46680
46681         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46682         All uses of is_space replaced by isspace.
46683         * lib/exit.h: Don't talk about STDC_HEADERS.
46684         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46685         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46686         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46687         replaced by isprint etc.
46688         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46689         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46690         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46691         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46692         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46693         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46694
46695 2006-07-05  Bruno Haible  <bruno@clisp.org>
46696
46697         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46698         the function exists, before testing against AIX.
46699         Reported by Martin Lambers <marlam@marlam.de>.
46700
46701 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46702
46703         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46704         From Mark D. Baushke.
46705
46706 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46707
46708         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46709         to the absolute name, not just one, to bypass Sun C 5.8's
46710         "warning: #include of /usr/include/... may be non-portable".
46711
46712 2006-07-04  Eric Blake  <ebb9@byu.net>
46713
46714         * modules/dirname-tests: New test module.
46715         * tests/test-dirname.c: New file, replacing dirname.c
46716         TEST_DIRNAME section that was recently deleted.
46717
46718 2006-07-04  Bruno Haible  <bruno@clisp.org>
46719
46720         Assume ANSI C header files and <ctype.h> functions.
46721         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46722         (mbsnwidth): Use isprint, iscntrl instead.
46723
46724 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46725
46726         Merge from coreutils.
46727         * MODULES.html.sh: Add xstrtold.
46728         * modules/xstrtold: New file.
46729         * modules/cycle-check (Files): Add lib/same-inode.h.
46730         * modules/dirname (Files): Add m4/double-slash-root.m4.
46731         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46732         * modules/mkdir-p (Files): Add lib/same-inode.h.
46733         * modules/same (Files): Add lib/same-inode.h.
46734
46735 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46736
46737         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46738         This is to keep the terminology clean; POSIX talks about
46739         "absolute pathnames", not "full pathnames", but the GNU
46740         Coding Standards say to use "path" for something else;
46741         so use "absolute" to keep both sides happy.
46742         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46743         Set gl_absolute_header, not gl_full_header_path.
46744         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46745         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46746         All uses changed.
46747
46748         Merge from coreutils.
46749
46750         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46751
46752         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46753         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46754         want to require the building of c-strtod.o.
46755         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46756         needs -lm directly.
46757         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46758
46759         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46760
46761         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46762         --as-needed option if available.  Problem reported by Albert Chin in
46763         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46764         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46765         cc merely issues a bunch of annoying warnings for --as-needed
46766         (this problem was reported by Bob Proulx).  Also, try linking with
46767         -lm to detect a bug in binutils 2.16 (this problem was reported
46768         by Ralf Wildenhues).
46769
46770         2006-06-18  Jim Meyering  <jim@meyering.net>
46771
46772         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46773         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46774         macro.
46775         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46776         also check for glibc-2.4's abort-inducing bug.
46777
46778         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46779         Low-probability clean-up should be to use rmdir to get rid of
46780         the just-created directory, not unlink.
46781
46782         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46783         configure fail, and request a bug report to inform us about it.
46784         Add a comment that, barring reports to the contrary, in 2007 we'll
46785         assume ftruncate is universally available.
46786
46787         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46788
46789         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46790
46791         2006-03-12  Jim Meyering  <jim@meyering.net>
46792
46793         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46794         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46795         * m4/same.m4 (gl_SAME): Likewise.
46796         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46797
46798         2006-03-11  Eric Blake  <ebb9@byu.net>
46799
46800         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46801         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46802         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46803         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46804
46805 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46806
46807         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46808         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46809         reported by Mark D. Baushke, one in
46810         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46811
46812         Merge from coreutils.
46813
46814         * lib/.cppi-disable: Add stdint_.h.
46815         * lib/.cvsignore: Add stdint.h.
46816
46817         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46818
46819         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46820         both double and long double versions.
46821         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46822         * lib/xstrtold.c: New file.
46823         * lib/xstrtod.h (xstrtold): New decl.
46824
46825         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46826
46827         * lib/filemode.c (setst): Remove.
46828         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46829         (arguably) clearer, and the generated code is a bit smaller on my
46830         Debian GNU/Linux stable x86 host.
46831
46832         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46833
46834         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46835         Assume that filemode.h includes sys/types.h and sys/stat.h.
46836         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46837         (ftypelet): Reorder to put common cases first, for efficiency.
46838         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46839         to do 'M'.
46840         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46841         of 10, for compatibility with FreeBSD.  All callers changed.
46842         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46843         types that can't be deduced solely from st_mode.  First arg is now a
46844         const pointer.
46845         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46846         (strmode): Renamed from mode_string.
46847         (filemodestring): New decl.
46848         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46849         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46850         needed.
46851         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46852
46853         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46854
46855         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46856         fsusage.h now does that.  Include fsusage.h first, to test interface.
46857         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46858         at most one method (the old code could have generated decls that
46859         didn't conform to C89, not that this was ever exercised).
46860         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46861
46862         2006-03-19  Jim Meyering  <jim@meyering.net>
46863
46864         Work even in a chroot where d_ino values for entries in "/"
46865         don't match the stat.st_ino values for the same names.
46866         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46867         number, iterate through all entries again, using lstat instead.
46868         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46869         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46870
46871         * lib/getcwd.c (__getcwd): Clarify a comment.
46872         Use memcpy in place of a call to strcpy.
46873
46874         2006-03-12  Jim Meyering  <jim@meyering.net>
46875
46876         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46877         matches that of the current directory (which we're about to chdir ".."
46878         out of), then save the dev-ino of the parent, instead.
46879
46880         * lib/same-inode.h (SAME_INODE): New file/macro.
46881         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46882         Include "same-inode.h", instead.
46883         * lib/same.c: Likewise.
46884         * lib/cycle-check.h: Include "same-inode.h".
46885         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46886         * lib/cycle-check.c (SAME_INODE): Remove definition.
46887         * lib/root-dev-ino.h: Include "same-inode.h".
46888
46889         2006-03-11  Eric Blake  <ebb9@byu.net>
46890
46891         * lib/same.c (same_name): s/base_name/last_component/
46892         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46893         * lib/filenamecat.c (file_name_concat): Likewise.
46894
46895         2006-03-11  Eric Blake  <ebb9@byu.net>,
46896                     Paul Eggert  <eggert@cs.ucla.edu>
46897
46898         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46899         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46900         drive prefix.
46901         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46902         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46903         (last_component): New method.
46904         * lib/dirname.c (dir_len): Determine when drive letters need a
46905         subsequent slash.  Preserve // when it is special.
46906         (dir_name): Don't append dot when drive letter is absolute.
46907         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46908         * lib/basename.c (base_name): New semantics - malloc the result.
46909         Preserve // when it is special.  Preserve relative files that look
46910         like drive letters.
46911         (base_len): Preserve // when it is special.
46912         (last_component): New method, similar to old base_name semantics.
46913         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46914         base_name.  Strip redundant slashes from ///.
46915
46916 2006-07-03  Jim Meyering  <jim@meyering.net>
46917
46918         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46919         macro is used before the first cycle_check call.
46920
46921 2006-07-03  Eric Blake  <ebb9@byu.net>
46922
46923         * modules/dirname (Depends-on): Add xstrndup.
46924
46925 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46926
46927         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46928         test cases, so that config.log is a bit easier to follow.
46929
46930 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46931
46932         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46933         both are 64 bits, since this seems to be the tradition, and this
46934         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46935         we ever run into a host that prefers long long to long in this
46936         case, we'll need another configure-time test.  Problem reported by
46937         Jim Meyering.
46938
46939 2006-07-02  Eric Blake  <ebb9@byu.net>
46940
46941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46942
46943 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46944
46945         * modules/inttypes (Depends-on): No longer depends on stdint.
46946         * modules/stdint (Description): Say more about assumptions.
46947         Say that the fast types might differ.  Say macros are used.
46948         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46949         (Makefile.am): Revise list of substituted symbols to match
46950         new stdint.m4.
46951         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46952         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46953         * tests/test-stdint.c (verify_same_types)
46954         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46955         the code conforms to C99/C89.
46956         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46957         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46958
46959 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46960
46961         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46962         but fix a bug, by requiring at least 64 bits.
46963         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46964         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46965         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46966         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46967
46968         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46969         changes.  Make 2.59 a prerequisite.  Check and substitute for
46970         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46971         inttypes.h.  Do not use special include files; just use the
46972         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46973         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46974         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46975         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46976         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46977         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46978         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46979         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46980         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46981         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46982         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46983         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46984         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46985         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46986         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46987         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46988         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46989         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46990         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46991         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46992         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46993         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46994         not check for things that C99 does not require, e.g., int8_t.  If
46995         a test isn't needed unless <stdint.h> isn't working, and is
46996         unlikely to be needed for any other reason, then don't do it
46997         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46998         size_t, since we assume C89 freestanding at least.  Do not check
46999         for sig_atomic_t, wchar_t, or wint_t, since the code now does
47000         the right thing even if the types are not defined.  Instead use:
47001         (gl_STDINT_TYPE_PROPERTIES): New macro.
47002         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
47003         testing whether <sys/types.h> clashes, as Autoconf does this for
47004         us now.  All uses removed.
47005         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
47006         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
47007         (gl_CHECK_TYPE_SAME):
47008         Remove; no longer needed.
47009         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
47010         exists, since we'll return 0 anyway in that case.
47011         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
47012
47013 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47014
47015         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
47016         possible collision with system files.
47017         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
47018         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
47019         WCHAR_MIN and WCHAR_MAX in this case.
47020         (<stddef.h>): Do not include; no longer needed.
47021         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
47022         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
47023         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
47024         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
47025         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
47026         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
47027         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
47028         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
47029         !defined(__c99))]: Include in this case too, since it's harmless
47030         now.
47031         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
47032         dangerous to do so.
47033         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
47034         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
47035         (_STDINT_MIN, _STDINT_MAX): New macros.
47036         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
47037         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
47038         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
47039         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
47040         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
47041         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
47042         macros, not typedefs; this simplifies things quite a bit.
47043         Use long int for all types narrower than int64_t.
47044         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
47045         Define in terms of long long int or int64_t or long int,
47046         not int64_t or int32_t.  This saves some compile-time testing.
47047         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
47048         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
47049         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
47050         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
47051         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
47052         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
47053         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
47054         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
47055         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
47056         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
47057         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47058         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47059         undef any previous version and define our own version, for
47060         simplicity and consistency with the new macros for types.
47061         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47062         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47063         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
47064         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
47065         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
47066         @WINT_T_SUFFIX@ to keep things simple here.
47067         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
47068         Simplify by assuming typical 8/16/32/64 host, since we're
47069         already doing that elsewhere anyway.
47070         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
47071         and assume long long int is 64 bits if available.  This
47072         speeds up 'configure'.
47073
47074 2006-07-01  Eric Blake  <ebb9@byu.net>
47075
47076         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
47077         Reported by Andreas Buening.
47078
47079 2006-07-01  Eric Blake  <ebb9@byu.net>
47080
47081         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
47082
47083 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
47084
47085         * lib/getaddrinfo.c: fixed typo
47086
47087 2006-06-29  Jim Meyering  <jim@meyering.net>
47088
47089         * modules/strftime (Maintainer): Add my name, since with the
47090         FPRINTFTIME changes strftime.c has forked from glibc.
47091
47092 2006-06-29  Eric Blake  <ebb9@byu.net>
47093
47094         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
47095
47096 2006-06-29  Eric Blake  <ebb9@byu.net>
47097
47098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
47099
47100 2006-06-29  Eric Blake  <ebb9@byu.net>
47101
47102         * lib/stat_.h: New file.
47103
47104 2006-06-29  Eric Blake  <ebb9@byu.net>
47105
47106         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
47107         unused static function.
47108
47109 2006-06-29  Eric Blake  <ebb9@byu.net>
47110
47111         * doc/functions.texi (Function Portability): Document missing lstat
47112         on mingw.
47113
47114 2006-06-29  Eric Blake  <ebb9@byu.net>
47115
47116         * MODULES.html.sh: Add sys_stat.
47117         * modules/sys_stat: New module.
47118         * modules/mkstemp (Depends-on): Add sys_stat.
47119
47120 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47121
47122         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
47123
47124 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47125
47126         * m4/c-bs-a.m4: Removed.
47127
47128 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47129
47130         * lib/strftime.c: Assume strftime() exists.
47131
47132 2006-06-29  Derek Price  <derek@ximbiot.com>
47133
47134         * modules/c-bs-a: Removed - \a is C89.
47135         * MODULES.html.sh: Remove c-bs-a.
47136
47137 2006-06-29  Bruno Haible  <bruno@clisp.org>
47138
47139         * modules/wcwidth (License): Change to LGPL.
47140
47141 2006-06-28  Simon Josefsson  <jas@extundo.com>
47142
47143         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
47144         on _WIN32.
47145
47146         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
47147         getnameinfo.
47148
47149 2006-06-28  Simon Josefsson  <jas@extundo.com>
47150
47151         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
47152
47153 2006-06-28  Simon Josefsson  <jas@extundo.com>
47154
47155         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
47156         functions there.  It will succeed on Windows XP, but on Windows
47157         2000 and (presumably) earlier, it will fail, and use the internal
47158         re-implementation.
47159         (use_win32_p): New function.
47160         (getaddrinfo): Use strtoul on servname, to support numeric ports.
47161         Support AI_NUMERICSERV to disable getservbyname.
47162         (getnameinfo): New function, only supports
47163         NI_NUMERICHOST|NI_NUMERICSERV for now.
47164
47165         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
47166         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
47167         getnameinfo.
47168
47169 2006-06-28  Eric Blake  <ebb9@byu.net>
47170
47171         * modules/wcwidth: New file.
47172         * modules/mbchar (Depends-on): Add wcwidth.
47173         * modules/mbswidth (Depends-on): Add wcwidth.
47174         * MODULES.html.sh: Add wcwidth.
47175
47176 2006-06-28  Eric Blake  <ebb9@byu.net>
47177
47178         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
47179         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
47180
47181 2006-06-28  Eric Blake  <ebb9@byu.net>
47182
47183         * lib/xvasprintf.h: Fix comments.
47184
47185 2006-06-28  Eric Blake  <ebb9@byu.net>
47186
47187         * lib/mbchar.h (wcwidth): Include wcwidth.h.
47188         * lib/mbswidth.c (wcwidth): Move from here...
47189         * lib/wcwidth.h: ...to this new file.
47190
47191 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47192
47193         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
47194
47195         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
47196         it's obsolete.
47197         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
47198
47199 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47200
47201         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
47202         Autoconf 2.60 says this stuff was obsolete.
47203
47204 2006-06-28  Bruno Haible  <bruno@clisp.org>
47205
47206         * modules/wcwidth (Files): Add m4/wchar_t.m4.
47207
47208 2006-06-28  Bruno Haible  <bruno@clisp.org>
47209
47210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
47211         gt_TYPE_WCHAR_T.
47212
47213 2006-06-28  Bruno Haible  <bruno@clisp.org>
47214
47215         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
47216         declaration for wcwidth.
47217         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
47218
47219 2006-06-28  Bruno Haible  <bruno@clisp.org>
47220
47221         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47222         (mkdir): Define using _mkdir.
47223
47224 2006-06-28  Bruno Haible  <bruno@clisp.org>
47225
47226         * lib/getaddrinfo.h: Fix POSIX URL.
47227         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47228         _WIN32.
47229         (use_win32_p): Make static.
47230         (getaddrinfo): Reject service name if it is empty or does not consist
47231         solely of decimal digits, or if its value is > 65535.
47232         (getnameinfo): Remove useless casts.
47233
47234 2006-06-27  Simon Josefsson  <jas@extundo.com>
47235
47236         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47237         Eggert and Martin Lambers.
47238
47239 2006-06-27  Simon Josefsson  <jas@extundo.com>
47240
47241         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47242         Eggert and Martin Lambers.
47243
47244 2006-06-27  Bruno Haible  <bruno@clisp.org>
47245
47246         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47247         result to 0, not to empty.
47248         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47249
47250 2006-06-27  Bruno Haible  <bruno@clisp.org>
47251
47252         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47253
47254 2006-06-26  Simon Josefsson  <jas@extundo.com>
47255
47256         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47257         present.
47258
47259 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47260
47261         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47262         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47263         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47264
47265 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47266
47267         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47268
47269 2006-06-26  Bruno Haible  <bruno@clisp.org>
47270
47271         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47272
47273 2006-06-26  Bruno Haible  <bruno@clisp.org>
47274
47275         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47276
47277 2006-06-26  Bruno Haible  <bruno@clisp.org>
47278
47279         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47280         SGI C compiler in pre-C99 mode.
47281         Suggested by Mark D. Baushke and Larry Jones.
47282
47283 2006-06-26  Bruno Haible  <bruno@clisp.org>
47284
47285         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47286         WCHAR_MAX.
47287         Reported by Mark D. Baushke and Larry Jones.
47288
47289 2006-06-26  Bruno Haible  <bruno@clisp.org>
47290
47291         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47292         in pre-C99 mode.
47293         Suggested by Mark D. Baushke and Larry Jones.
47294
47295 2006-06-23  Simon Josefsson  <jas@extundo.com>
47296             Bruno Haible  <bruno@clisp.org>
47297
47298         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47299         Emit mostlyclean-local rule.
47300         (func_emit_tests_Makefile_am): Likewise.
47301         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47302
47303 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47304
47305         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47306
47307 2006-06-23  Bruno Haible  <bruno@clisp.org>
47308
47309         * tests/test-stdint.c: Update to match ISO C 99 Technical
47310         Corrigendum 1.
47311
47312 2006-06-23  Bruno Haible  <bruno@clisp.org>
47313
47314         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47315
47316 2006-06-23  Bruno Haible  <bruno@clisp.org>
47317
47318         * lib/stdint_.h: Treat IRIX like OpenBSD.
47319
47320 2006-06-23  Bruno Haible  <bruno@clisp.org>
47321
47322         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47323         ISO C 99 Technical Corrigendum 1.
47324
47325 2006-06-22  Simon Josefsson  <jas@extundo.com>
47326
47327         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47328         MinGW.
47329
47330 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47331
47332         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47333         needed.  Some compiler complained about some of them.  Problem reported
47334         by Larry Jones in
47335         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47336
47337 2006-06-21  Simon Josefsson  <jas@extundo.com>
47338
47339         * tests/test-getaddrinfo.c: New file.
47340
47341         * modules/getaddrinfo-tests: New file.
47342
47343         * MODULES.html.sh: Add inet_pton.
47344
47345         * modules/inet_pton: New file.
47346
47347 2006-06-21  Simon Josefsson  <jas@extundo.com>
47348
47349         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47350         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47351         of using the (limited) gnulib implementation on Windows XP.
47352
47353         * m4/inet_pton.m4: New file.
47354
47355 2006-06-21  Simon Josefsson  <jas@extundo.com>
47356
47357         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47358         variable.
47359
47360         * lib/socket_.h: Don't define WINVER.
47361
47362         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47363         slightly modified to work in gnulib.
47364
47365 2006-06-21  Simon Josefsson  <jas@extundo.com>
47366
47367         * doc/gnulib.texi (Windows sockets): Add.
47368
47369 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47370
47371         * lib/read-file.c (fread_file): Start with buffer allocation of
47372         0 bytes rather than 1 byte; this simplifies the code.
47373         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47374         code to free buffer and save/restore errno.
47375         (internal_read_file): Remove unused local.
47376
47377 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47378
47379         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47380         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47381         Problem reported by Denis Excoffier in
47382         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47383
47384 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47385
47386         * modules/sys_socket, modules/socklen: Include sys/types since
47387         FreeBSD 4.x's sys/socket.h needs it.
47388
47389 2006-06-19  Simon Josefsson  <jas@extundo.com>
47390
47391         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47392
47393 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47394
47395         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47396
47397 2006-06-19  Bruno Haible  <bruno@clisp.org>
47398
47399         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47400         and FULL_PATH_INTTYPES_H in angle brackets.
47401         Reported by Mark D. Baushke <mdb@gnu.org>.
47402
47403 2006-06-17  Eric Blake  <ebb9@byu.net>
47404
47405         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47406         errno.
47407
47408 2006-06-17  Bruno Haible  <bruno@clisp.org>
47409
47410         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47411         <sys/inttypes.h>.
47412
47413 2006-06-17  Bruno Haible  <bruno@clisp.org>
47414
47415         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47416         whether errno is declared. Assume <errno.h> declares errno.
47417
47418 2006-06-17  Bruno Haible  <bruno@clisp.org>
47419
47420         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47421
47422 2006-06-17  Bruno Haible  <bruno@clisp.org>
47423
47424         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47425         problem on Solaris 2.5.1.
47426
47427 2006-06-16  Eric Blake  <ebb9@byu.net>
47428
47429         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47430         * lib/unicodeio.c [!defined errno]: Likewise.
47431         * lib/strtol.c [!defined errno]: Likewise.
47432         * lib/strtod.c [!defined errno]: Likewise.
47433
47434 2006-06-15  Eric Blake  <ebb9@byu.net>
47435
47436         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47437
47438 2006-06-15  Eric Blake  <ebb9@byu.net>
47439
47440         * config/srclist.txt (ssize_t.m4): Lose sync.
47441
47442 2006-06-15  Bruno Haible  <bruno@clisp.org>
47443
47444         * modules/stdint (Files): Include m4/full-header-path.m4,
47445         m4/size_max.m4, m4/wchar_t.m4.
47446         (Makefile.am): Many more substitutions.
47447         * modules/stdint-tests: New file.
47448         * tests/test-stdint.c: New file.
47449
47450 2006-06-15  Bruno Haible  <bruno@clisp.org>
47451
47452         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47453         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47454         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47455         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47456         gl_CHECK_TYPE_SAME): New macros.
47457
47458 2006-06-15  Bruno Haible  <bruno@clisp.org>
47459
47460         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47461
47462 2006-06-15  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/stdint_.h: Rewritten to be fully auto-configured.
47465         Fixes bug on HP-UX/IA64.
47466
47467 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47468
47469         * lib/getdate.y (__attribute__): Don't define if already defined.
47470         Problem reported by Larry Jones.
47471         * lib/utimens.c (__attribute__): Likewise.
47472
47473 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47474
47475         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47476         reported by Andreas Schwab.
47477
47478 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47479             Bruno Haible  <bruno@clisp.org>
47480
47481         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47482         check for the declaration of strnlen and a run test that exposes the
47483         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47484         rpl_strndup.
47485
47486 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47487             Bruno Haible  <bruno@clisp.org>
47488
47489         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47490
47491 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47492
47493         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47494         compile test, for Tru64 4.0D.
47495
47496 2006-05-28  Karl Berry  <karl@gnu.org>
47497
47498         * config/srclist.txt (printf-args.c): lose sync.
47499
47500 2006-05-26  Martin Lambers  <marlam@marlam.de>
47501
47502         * lib/getpass.c: Updates the test for the native W32 API, and adds
47503         missing includes, thus fixing compilation warnings.
47504
47505 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47506
47507         * lib/exclude.c (exclude_fnmatch): New function.
47508         (excluded_file_name): Call exclude_fnmatch.
47509         * lib/exclude.h (excluded_file_name): New prototype
47510
47511 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47512
47513         * lib/tempname.c (small_open, large_open): New macros.
47514         (__open, __open64) [!_LIBC]: Remove.
47515         (__gen_tempname): Use small_open and large_open instead of __open
47516         and __open64.  This fixes a portability bug on HP-UX 11.11i
47517         reported by Simon Wing-Tang in
47518         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47519
47520 2006-05-24  Bruno Haible  <bruno@clisp.org>
47521
47522         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47523         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47524         Reported by Thorsten Maerz <torte@netztorte.de> via
47525         Aaron Stone <aaron@serendipity.cx>.
47526
47527 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47528
47529         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47530         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47531         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47532         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47533         not really conditional on the cache.
47534         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47535
47536 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47537
47538         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47539         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47540         (my_usleep): Don't mishandle maximum value.
47541
47542 2006-05-19  Jim Meyering  <jim@meyering.net>
47543
47544         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47545
47546 2006-05-17  Bruno Haible  <bruno@clisp.org>
47547
47548         Cygwin portability.
47549         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47550
47551 2006-05-17  Bruno Haible  <bruno@clisp.org>
47552
47553         * lib/stdint_.h: Fix recognition of Cygwin.
47554
47555 2006-05-15  Bruno Haible  <bruno@clisp.org>
47556
47557         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47558         on libtool patch by Ralf Wildenhues.
47559
47560 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47561
47562         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47563         test for C99 conformance; (bool) 0.5 is an integer constant
47564         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47565         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47566
47567 2006-05-11  Simon Josefsson  <jas@extundo.com>
47568
47569         * m4/xvasprintf.m4: Fix obvious typo.
47570
47571 2006-05-11  Jim Meyering  <jim@meyering.net>
47572
47573         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47574         James Lemley.
47575
47576 2006-05-10  Simon Josefsson  <jas@extundo.com>
47577
47578         * lib/md4.c: Typo fix, update copyright years.
47579         (K1, K2): Don't use L because it turn computations into 64-bit on
47580         64-bit platforms.
47581
47582 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47583
47584         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47585         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47586         unwanted sign propagation, e.g., on hosts with 64-bit int.
47587         There still are some problems with reeelly weird theoretical hosts
47588         (e.g., 33-bit int) but it's not worth worrying about now.
47589         * lib/sha1.c (rol): Likewise.
47590         (K1, K2, K3, K4): Remove unnecessary L suffix.
47591
47592 2006-05-10  Bruno Haible  <bruno@clisp.org>
47593
47594         * lib/des.c: Cast to avoid warnings.
47595
47596 2006-05-09  Bruno Haible  <bruno@clisp.org>
47597
47598         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47599         (Depends-on): Depend also on xsize, stdarg.
47600         (configure.ac): Add gl_XVASPRINTF.
47601
47602 2006-05-09  Bruno Haible  <bruno@clisp.org>
47603
47604         * m4/xvasprintf.m4: New file.
47605
47606 2006-05-09  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47609         (EOVERFLOW): Define fallback value.
47610         (xstrcat): New function.
47611         (xvasprintf): Recognize the special case of a string concatenation.
47612
47613 2006-05-08  Eric Blake  <ebb9@byu.net>
47614
47615         * gnulib-tool (func_version): Base copyright year on CVS date.
47616         (func_emit_copyright_notice): New function.
47617         (func_emit_lib_Makefile_am): Use it.
47618         (func_emit_tests_Makefile_am): Likewise.
47619         (func_import): Likewise.
47620
47621 2006-05-08  Bruno Haible  <bruno@clisp.org>
47622
47623         * modules/stdarg: New file.
47624         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47625
47626 2006-05-08  Bruno Haible  <bruno@clisp.org>
47627
47628         * m4/stdarg.m4: New file, from GNU gettext.
47629
47630 2006-05-08  Bruno Haible  <bruno@clisp.org>
47631
47632         * config/srclist.txt (build-aux/config.rpath): different from latest
47633         release.
47634
47635 2006-05-08  Bruno Haible  <bruno@clisp.org>
47636
47637         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47638
47639 2006-05-05  Jim Meyering  <jim@meyering.net>
47640
47641         * m4/warning.m4: New file, derived from bison's file by the same name.
47642
47643 2006-05-03  Bruno Haible  <bruno@clisp.org>
47644
47645         * lib/stdint_.h: Shorter URL.
47646         * lib/inttypes.h: Likewise.
47647
47648 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47649
47650         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47651
47652 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47653
47654         * lib/verify.h: Document the internals better.  Most of this change
47655         was written by Bruno Haible.
47656
47657 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47658
47659         * doc/verify.texi: New file, partly based on a proposal by
47660         Bruno Haible.
47661
47662 2006-05-02  Bruno Haible  <bruno@clisp.org>
47663
47664         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47665         test from here...
47666         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47667
47668 2006-04-29  Bruno Haible  <bruno@clisp.org>
47669
47670         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47671         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47672
47673 2006-04-29  Bruno Haible  <bruno@clisp.org>
47674
47675         * gnulib-tool: Make --update option actually work.
47676
47677 2006-04-29  Bruno Haible  <bruno@clisp.org>
47678
47679         * doc/gcd.texi: New file.
47680         * doc/gnulib.texi: Include it.
47681
47682 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47683
47684         * lib/getdate.y (get_date): When adding relative date, start with the
47685         initial time, not with the result of the first mktime call.
47686
47687 2006-04-25  Bruno Haible  <bruno@clisp.org>
47688
47689         * gnulib-tool (func_import): Output the include directives in three
47690         blocks, sorted separately.
47691         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47692
47693 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47694
47695         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47696         to define main with arguments, for C++.  Reported by Eric Blake.
47697         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47698         Prefer 'int main ()' to 'int main (void)', for C++.
47699         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47700         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47701         for 'main', for C99 and C++.
47702
47703 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47704
47705         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47706         Don't assume that exit status -1 is valid.
47707         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47708         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47709         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47710         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47711         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47712         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47713         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47714         functions can be used without declaring them, or that you can
47715         exit with status -1.
47716         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47717
47718 2006-04-24  Karl Berry  <karl@gnu.org>
47719
47720         * config/srclist.txt (longdouble.m4): sync lost.
47721
47722 2006-04-24  Eric Blake  <ebb9@byu.net>
47723
47724         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47725
47726 2006-04-24  Bruno Haible  <bruno@clisp.org>
47727
47728         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47729         poll() implementation in AIX.
47730         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47731
47732 2006-04-24  Bruno Haible  <bruno@clisp.org>
47733
47734         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47735         assigned exactly once.
47736
47737 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47738             Bruno Haible  <bruno@clisp.org>
47739
47740         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47741         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47742         for AM_CPPFLAGS.
47743
47744 2006-04-23  Bruno Haible  <bruno@clisp.org>
47745
47746         * modules/copy-file: Depend on unistd.
47747         * modules/execute: Likewise.
47748         * modules/fatal-signal: Likewise.
47749         * modules/findprog: Likewise.
47750         * modules/mkdtemp : Likewise.
47751         * modules/pipe: Likewise.
47752         * modules/wait-process: Likewise.
47753
47754 2006-04-23  Bruno Haible  <bruno@clisp.org>
47755
47756         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47757         condition was already detected.
47758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47759
47760 2006-04-23  Bruno Haible  <bruno@clisp.org>
47761
47762         * lib/copy-file.c: Include <unistd.h> unconditionally.
47763         * lib/execute.c: Likewise.
47764         * lib/fatal-signal.c: Likewise.
47765         * lib/findprog.c: Likewise.
47766         * lib/mkdtemp.c: Likewise.
47767         * lib/pipe.h: Likewise.
47768         * lib/pipe.c: Likewise.
47769         * lib/wait-process.h: Likewise.
47770
47771 2006-04-23  Bruno Haible  <bruno@clisp.org>
47772
47773         * gnulib-tool (func_usage): Fix --import description. Document
47774         --update.
47775         (func_import): Create temporary file in a temporary directory, if
47776         --dry-run is specified. Silence errors from 'grep' when there are no
47777         m4 files in $m4dir.
47778         (func_create_testdir): Silence errors from 'grep' when there are no
47779         m4 files in $m4dir.
47780         Reported by Karl Berry <karl@freefriends.org>.
47781
47782 2006-04-20  Bruno Haible  <bruno@clisp.org>
47783
47784         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47785         one argument, so that the code will be portable to Autoconf 2.60.
47786         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47787         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47788         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47789
47790 2006-04-19  Derek Price  <derek@ximbiot.com>
47791             Eric Blake  <ebb9@byu.net>
47792
47793         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47794         rather than "/full/path.h".  Update comment to match.  Shorten &
47795         generalize m4_translit call via AS_TR_CPP.
47796
47797 2006-04-19  Derek Price  <derek@ximbiot.com>
47798             Eric Blake  <ebb9@byu.net>
47799
47800         * lib/inttypes.h: Correct grammar in comment.
47801
47802 2006-04-18  Derek Price  <derek@ximbiot.com>
47803             Paul Eggert  <eggert@cs.ucla.edu>
47804
47805         * modules/inttypes: New file.
47806         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47807
47808 2006-04-18  Derek Price  <derek@ximbiot.com>
47809             Paul Eggert  <eggert@cs.ucla.edu>
47810
47811         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47812         New files.
47813
47814 2006-04-18  Derek Price  <derek@ximbiot.com>
47815             Paul Eggert  <eggert@cs.ucla.edu>
47816
47817         * lib/inttypes.h: New file.
47818         * lib/strtoimax.c: Assume <inttypes.h>.
47819
47820 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47821
47822         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47823         isn't mounted.  Problem reported by Kir Kolyshkin.
47824
47825 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47826
47827         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47828         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47829         Derek R. Price.
47830         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47831         implementation.
47832
47833 2006-04-12  Eric Blake  <ebb9@byu.net>
47834
47835         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47836         is now done automatically by the corresponding Autoconf macro.
47837
47838 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47839
47840         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47841         time_r.h.
47842
47843 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47844
47845         Merge regex changes from libc, removing some of our
47846         POSIX-conformance changes that were rejected and redoing them in a
47847         less-intrusive way.
47848
47849         * lib/regcomp.c (re_compile_internal, init_dfa):
47850         Length arg is now size_t, not Idx.  All uses changed.
47851         (peek_token): Forward decl now says internal_function.
47852         (__re_error_msgid, __re_error_msgid_idx):
47853         Now static rather than extern with attribute_hidden.
47854         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47855         For some reason libc prefers K&R style defns for external functions.
47856         (regerror) [!defined _LIBC]: Likewise.
47857         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47858         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47859         (build_range_exp, build_collating_symbol):
47860         Use K&R-style defn.
47861         (re_compile_fastmap): Use '\0' to memset, not 0.
47862         (utf8_sb_map): Make the calculations more obvious.
47863         (init_dfa, parse_bracket_exp, build_charclass_op):
47864         Call calloc and cast result, as glibc does.
47865         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47866         (build_range_exp, build_collating_symbol):
47867         Now internal functions.
47868
47869         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47870
47871         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47872         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47873         Don't depend on VMS; depend on __VMS instead, for POSIX
47874         namespace cleanness.
47875         (regoff_t): Define to ssize_t, not long int.
47876
47877         Remove the REG_ macros named below.  Instead, make the old names
47878         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47879         __USE_GNU_REGEX.
47880         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47881         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47882         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47883         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47884         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47885         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47886         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47887         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47888         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47889         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47890         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47891         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47892         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47893         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47894         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47895         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47896         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47897         (REG_NREGS):
47898         Remove.  All uses replaced by the old RE_* names.
47899         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47900         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47901         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47902         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47903         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47904         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47905         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47906         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47907         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47908         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47909         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47910         Don't bother having these macros be independent of each others'
47911         values, since they no longer exist in the POSIX name space.
47912
47913         Rename the following member names back to their old names,
47914         unless !__USE_GNU_REGEX.  All uses changed back.
47915         (buffer): Renamed from re_buffer.
47916         (allocated): Renamed from re_allocated.
47917         (used): Renamed from re_used.
47918         (syntax): Renamed from re_syntax.
47919         (fastmap): Renamed from re_fastmap.
47920         (translate): Renamed from re_translate.
47921         (can_be_null): Renamed from re_can_be_null.
47922         (regs_allocated): Renamed from re_regs_allocated.
47923         (fastmap_accurate): Renamed from re_fastmap_accurate.
47924         (no_sub): Renamed from re_no_sub.
47925         (not_bol): Renamed from re_not_bol.
47926         (not_eol): Renamed from re_not_eol.
47927         (newline_anchor): Renamed from re_newline_anchor.
47928         (num_regs): Renamed from rm_num_regs.
47929         (start): Renamed from rm_start.
47930         (end): Renamed from rm_end.
47931
47932         (free_state): Move up a bit.
47933
47934         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47935         #define to be empty.
47936         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47937         when that is what is intended.
47938         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47939         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47940         (MAX): New macro.
47941         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47942         All uses changed back to re_malloc, etc.  It's now the caller's
47943         responsibility to check for overflow; all callers changed.
47944         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47945         (re_x2nrealloc): Remove.
47946         (free_state): Remove decl.
47947
47948         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47949         (re_set_registers, re_exec):
47950         Use K&R-style defn.
47951
47952         2006-01-31  Roland McGrath  <roland@redhat.com>
47953
47954         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47955         Reported by Mike Frysinger <vapier@gentoo.org>.
47956
47957         2006-01-15  Andreas Jaeger  <aj@suse.de>
47958
47959         [BZ #1950]
47960         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47961         build_wcs_upper_buffer change.
47962         (build_wcs_upper_buffer): Change return type.
47963
47964         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47965
47966         * lib/regex_internal.h: Include <stdint.h> if available.
47967
47968         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47969
47970         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47971
47972         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47973
47974         * lib/regcomp.c: Adjust for changed secondary hash function.
47975
47976         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47977
47978         * lib/regex.h: Pretty printing.
47979         Clean up namespace a bit.
47980
47981         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47982
47983         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47984         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47985
47986         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47987                     Ulrich Drepper  <drepper@redhat.com>
47988
47989         [BZ #1302]
47990         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47991         changed.
47992         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47993
47994         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47995
47996         [BZ #281]
47997         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47998         * lib/regcomp.c: Remove unnecessary uses of
47999         unsigned RE_TRANSLATE_TYPE.
48000         * lib/regex_internal.h: Likewise.
48001         * lib/regex_internal.c: Likewise.
48002         * lib/regexec.c: Likewise.
48003         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
48004
48005         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
48006
48007         * lib/regexec.c (find_recover_state): Remove unnecessary
48008         initialization.
48009         (transit_state_bkref): Make DFA a const pointer.
48010         (get_subexp): Likewise.
48011         (check_arrival): Likewise.
48012         (update_cur_sifted_state): Likewise.
48013         (re_search_internal): Likewise.
48014         (prune_impossible_nodes): Likewise.
48015         (acquire_init_state_context): Likewise.
48016         (proceed_next_node): Likewise.
48017         (set_regs): Likewise.
48018         (free_fail_stack_return): Likewise.
48019         (check_arrival_expand_ecl): Mark DFA parameter as const.
48020         (check_arrival_expand_ecl_sub): Likewise.
48021         (check_subexp_limits): Likewise.
48022         (sub_epsilon_src_nodes):  Likewise.
48023         (add_epsilon_src_nodes):  Likewise.
48024         (merge_state_array): Likewise.
48025         (update_regs): Likewise.
48026         (build_trtable): Likewise.
48027         (sift_states_backward): Mark MCTX parameter as const.
48028         (build_sifted_states): Likewise.
48029         (update_cur_sifted_state): Likewise.
48030         (sift_states_mkref): Likewise.
48031         (check_arrival_expand_ecl): Mark eclosure as const.
48032         (check_dst_limits_calc_pos_1): Likewise.
48033         * lib/regex_internal.h (re_match_context_t): Make dfa a const
48034         pointer.
48035
48036         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
48037
48038         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
48039         (transit_state_sb): Likewise.
48040         (transit_state_mb): Likewise.
48041         (sift_states_iter_mb): Likewise.
48042         (check_arrival_add_next_nodes): Likewise.
48043         (check_node_accept_bytes): Change first parameter to pointer-to-const.
48044         [_LIBC] (re_search_2_stub): Use mempcpy.
48045
48046         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
48047         mbrtowc for very simple UTF-8 case.
48048
48049         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
48050         a pointer-to-const.
48051         (re_acquire_state_context): Likewise.
48052         * lib/regex_internal.h: Adjust prototypes.
48053
48054         * lib/regex.c: Prevent using C++ compilers.
48055
48056         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
48057         (re_acquire_state_context): Likewise.
48058
48059 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48060
48061         * modules/regex (Depends-on): Add ssize_t.
48062
48063 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48064
48065         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
48066         translation table.
48067
48068 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48069
48070         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
48071
48072 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
48073             Bruno Haible  <bruno@clisp.org>
48074
48075         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
48076         <sys/types.h> and <inttypes.h>.
48077
48078 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48079
48080         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
48081         `__error_t_defined', so argp.h will not typedef the former.
48082
48083 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48084
48085         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
48086         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
48087         glibc names.  Even if glibc is changed to conform to POSIX, the
48088         traditional names will be available anyway, since regex depends on
48089         the extensions module.  Also, fix a longstanding typo in the
48090         implementation of Spencer ERE test #75 from grep 2.3.  Problems
48091         reported by Emanuele Giaquinta.  Also, change sense of cached
48092         variable, so that the message makes sense.
48093
48094 2006-03-24  Simon Josefsson  <jas@extundo.com>
48095
48096         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
48097         including some doc fixes.
48098         (base64_encode_alloc): Fix +1 bug on allocation failures.
48099
48100 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48101
48102         * lib/base64.c (base64_encode): Do not read past end of array with
48103         unsanitized input on systems with CHAR_BIT > 8.
48104
48105 2006-03-24  Eric Blake  <ebb9@byu.net>
48106
48107         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
48108
48109 2006-03-22  Karl Berry  <karl@gnu.org>
48110
48111         * config/srclist.txt (*setenv.[ch]): get from coreutils.
48112         * config/srclistvars.sh (COREUTILS): new var.
48113
48114 2006-03-17  Jim Meyering  <jim@meyering.net>
48115
48116         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
48117         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
48118
48119 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48120
48121         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
48122         no longer needs it.  Instead, check that regoff_t is as least
48123         as wide as ptrdiff_t.
48124
48125         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
48126         so that our regex.h stays compatible with the installed regex.
48127         This is helpful for installers who configure --without-included-regex.
48128         Problem reported by Emanuele Giaquinta.
48129
48130 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48131
48132         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
48133         Typedef to long int, not to off_, as POSIX will likely change
48134         in that direction.
48135
48136 2006-03-15  Eric Blake  <ebb9@byu.net>
48137
48138         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
48139
48140 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48141
48142         * lib/argp-help.c (validate_uparams): Fix typo
48143         * lib/argp-parse.c (argp_default_options): Consistently begin help
48144         messages with a lowercase letter.
48145
48146 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
48147
48148         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
48149         overrun buffers and shouldn't be used (much as gets shouldn't be
48150         used).
48151         * lib/time_r.c (asctime_r, ctime_r): Likewise.
48152
48153 2006-03-08  Simon Josefsson  <jas@extundo.com>
48154
48155         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
48156         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48157
48158 2006-03-08  Simon Josefsson  <jas@extundo.com>
48159
48160         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
48161         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48162
48163 2006-03-08  Simon Josefsson  <jas@extundo.com>
48164
48165         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
48166         signal that configure disabled the device.
48167
48168 2006-03-08  Simon Josefsson  <jas@extundo.com>
48169
48170         * build-aux/maint.mk: Fix refresh-po, to handle no translated
48171         languages.
48172
48173 2006-03-07  Simon Josefsson  <jas@extundo.com>
48174
48175         * modules/getopt (Depends-on): Add unistd.
48176
48177         * modules/unistd: New file.
48178
48179 2006-03-07  Simon Josefsson  <jas@extundo.com>
48180
48181         * modules/gc-random: New file.
48182
48183 2006-03-07  Simon Josefsson  <jas@extundo.com>
48184
48185         * m4/unistd_h.m4: New file.
48186
48187 2006-03-07  Simon Josefsson  <jas@extundo.com>
48188
48189         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
48190         test to be side-effect free by storing the result in the cache
48191         variable gl_cv_lib_readline, and moving the assignment of
48192         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
48193         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48194
48195 2006-03-07  Simon Josefsson  <jas@extundo.com>
48196
48197         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
48198         error on missing devices (the functions will return an error).
48199
48200         * m4/gc.m4: Move random stuff to gc-random.m4
48201
48202 2006-03-07  Simon Josefsson  <jas@extundo.com>
48203
48204         * lib/unistd_.h: New file.
48205
48206 2006-03-07  Simon Josefsson  <jas@extundo.com>
48207
48208         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
48209
48210 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48211
48212         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
48213         Problem reported by Juan Manuel Guerrero.
48214
48215 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48216
48217         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
48218         the unistd module.
48219         * lib/getlogin_r.c: Likewise.
48220         * lib/getlogin_r.h: Likewise.
48221         * lib/glob.c: Likewise.
48222         * lib/pagealign_alloc.c: Likewise.
48223         * lib/unistd_.h: Remove; no longer needed.
48224
48225 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48226
48227         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48228         Add unistd.
48229         * modules/c-stack (Depends-on): Add unistd.
48230         * modules/getlogin_r: Likewise.
48231         * modules/glob: Likewise.
48232         * modules/pagealign_alloc: Likewise.
48233         * modules/unistd (Files): Remove lib/unistd_.h.
48234         (EXTRA_DIST): Remove.
48235         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48236         need unistd_.h.
48237         (MOSTLYCLEANFILES): Remove unistd.h-t.
48238
48239 2006-03-03  Simon Josefsson  <jas@extundo.com>
48240
48241         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48242
48243 2006-03-03  Simon Josefsson  <jas@extundo.com>
48244
48245         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48246         libidn and bison.
48247
48248 2006-03-03  Simon Josefsson  <jas@extundo.com>
48249
48250         * build-aux/maint.mk: Add indent target.
48251
48252 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48253
48254         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48255         our replacement poll.h in any case, to avoid a differing
48256         declaration from a system header.  Seen on AIX.
48257
48258 2006-03-01  Simon Josefsson  <jas@extundo.com>
48259
48260         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48261         <kasal@ucw.cz>.
48262
48263 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48264
48265         * modules/gettime (Depends-on): Add extensions module.
48266         * modules/nanosleep (Depends-on): Likewise.
48267         * modules/settime (Depends-on): Likewise.
48268
48269 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48270
48271         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48272         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48273         pedantically.
48274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48275         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48276
48277         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48278         not "==".  Reported by Ralf Wildenhues.
48279
48280 2006-03-01  Karl Berry  <karl@gnu.org>
48281
48282         * doc/Copyright/request-*: new files, synced from gnuorg.
48283
48284 2006-03-01  Karl Berry  <karl@gnu.org>
48285
48286         * config/srclist.txt (Copyright/*): new entries.
48287
48288 2006-02-28  Simon Josefsson  <jas@extundo.com>
48289
48290         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48291
48292 2006-02-27  Simon Josefsson  <jas@extundo.com>
48293
48294         * lib/base64.h: Indent #define's.  From Jim Meyering
48295         <jim@meyering.net>.
48296
48297 2006-02-27  Jim Meyering  <jim@meyering.net>
48298
48299         Revert the change of 2006-02-24, so these files can continue
48300         to be sync'd from gettext.
48301         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48302         of `config.h'.
48303
48304 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48305
48306         * modules/intprops: New file.
48307         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48308         Add intprops.
48309         * modules/getloadavg (Files): Remove lib/intprops.h.
48310         (Depends-on): Add intprops.
48311         * modules/human: Likewise.
48312         * modules/inttostr: Likewise.
48313         * modules/openat: Likewise.
48314         * modules/sig2str: Likewise.
48315         * modules/userspec: Likewise.
48316         * modules/utimecmp: Likewise.
48317         * modules/xnanosleep: Likewise.
48318         * modules/xstrtol: Likewise.
48319
48320 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48321
48322         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48323         * modules/lock-tests (TESTS): Use $(EXEEXT).
48324         * modules/tls-tests: Likewise.
48325         * modules/argp-tests: Likewise.
48326         (check_PROGRAMS): New var, replacing...
48327         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48328
48329 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48330
48331         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48332         `config.h'.
48333
48334 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48335
48336         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48337
48338 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48339
48340         Sync from coreutils.
48341         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48342         gl_CHDIR_SAFER.
48343
48344 2006-02-22  Jim Meyering  <jim@meyering.net>
48345
48346         Sync from coreutils.
48347         * m4/chdir-safer.m4: New file.
48348
48349 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48350
48351         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48352         AT_FDCWD exceeds INT_MAX.
48353         * lib/openat.h (AT_FDCWD): Likewise.
48354
48355 2006-02-17  Eric Blake  <address@hidden>
48356
48357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48358
48359 2006-02-16  Simon Josefsson  <jas@extundo.com>
48360
48361         * modules/getaddrinfo (Depends-on): Add sys_socket.
48362
48363 2006-02-15  Simon Josefsson  <jas@extundo.com>
48364
48365         * build-aux/maint.mk: Add dsyntax-check rule.
48366
48367 2006-02-15  Eric Blake  <ebb9@byu.net>
48368
48369         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48370         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48371         'present but cannot compile' warnings on cygwin.
48372         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48373         use ws2tcpip.h if sys/socket.h works.
48374         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48375         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48376
48377 2006-02-14  Simon Josefsson  <jas@extundo.com>
48378
48379         * modules/maintainer-makefile (Files): Rename.
48380
48381         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48382         and (the local) Makefile.cfg to maint-cfg.mk.
48383
48384         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48385         to the latter.
48386
48387         * modules/maintainer-makefile: New module.
48388
48389         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48390         severaly stripped to make it possible to build it up from scratch
48391         with reliable tests.
48392
48393         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48394         fixes to permit overriding the default actions when configure and
48395         makefile are not available.
48396
48397 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48398
48399         Sync from coreutils.
48400         * modules/lstat (Depends-on): Don't depend on xalloc.
48401         (License): Change from GPL to LGPL, since this is now simply a
48402         replacement for a libc function.
48403
48404 2006-02-14  Jim Meyering  <jim@meyering.net>
48405
48406         Sync from coreutils.
48407
48408         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48409         failure on deficient systems, and simplify gnulib lgpl dependencies.
48410         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48411         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48412
48413         * lib/xalloc-die.c: Remove unused definition of N_.
48414
48415 2006-02-14  Jim Meyering  <jim@meyering.net>
48416
48417         Sync from coreutils.
48418         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48419         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48420         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48421         double-quote uses of that variable, to accommodate the rare case in
48422         which getmntent is available in none of the libraries checked.  This
48423         happens at least on FreeBSD 5.0.
48424
48425 2006-02-13  Simon Josefsson  <jas@extundo.com>
48426
48427         * gnulib-tool (Usage): Fix --import, from
48428         karl@freefriends.org (Karl Berry).
48429
48430 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48431
48432         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48433
48434 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48435
48436         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48437         "autoupdate" on 2005-12-12.
48438
48439 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48440
48441         * modules/closeout (Depends-on): Remove atexit.
48442
48443 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48444
48445         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48446         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48447
48448 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48449
48450         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48451         __EXTENSIONS__ if this causes compilation to fail.  Problem
48452         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48453         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48454
48455 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48456
48457         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48458         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48459         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48460         All uses changed.
48461
48462 2006-01-26  Simon Josefsson  <jas@extundo.com>
48463
48464         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48465         prototype is visible on mingw32.
48466
48467         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48468         for mingw32.
48469
48470         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48471         mingw32).
48472
48473 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48474
48475         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48476         attempt to open for write; this always fails, at least on POSIX
48477         hosts.  This reinstates the 2006-01-09 change, which was
48478         inadvertently removed.
48479
48480 2006-01-26  Bruno Haible  <bruno@clisp.org>
48481
48482         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48483         Reported by Paul Eggert.
48484
48485 2006-01-26  Bruno Haible  <bruno@clisp.org>
48486             Paul Eggert  <eggert@cs.ucla.edu>
48487
48488         * lib/stdbool_.h (_Bool)
48489         [(! (defined __cplusplus || defined __BEOS__)
48490           && !defined __GNUC__
48491           && !(defined __HP_cc || defined __xlc__
48492                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48493                || defined __sgi))]:
48494         #define to signed char in these cases too; this simplifies
48495         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48496         etc., separately) and makes it more conservative.
48497
48498 2006-01-25  Simon Josefsson  <jas@extundo.com>
48499
48500         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48501         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48502         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48503
48504 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48505
48506         * lib/argp-namefrob.h: Bugfix. Remove stray #
48507
48508 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48509
48510         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48511         so that we test the test.
48512         Check for yet another HP-UX cc bug involving *bool |= bool.
48513
48514 2006-01-25  Karl Berry  <karl@gnu.org>
48515
48516         * config/srclist.txt (vasnprintf.c): sync lost.
48517
48518 2006-01-25  Jim Meyering  <jim@meyering.net>
48519
48520         Sync from the stable (b5) branch of coreutils:
48521
48522         * lib/fts.c (fts_children): Don't let close() clobber errno from
48523         failed fchdir().
48524
48525         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48526         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48527         a dangling symlink.  That can also happen at least for ELOOP.
48528         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48529         FYI, this bug predates the inclusion of fts.c in coreutils.
48530
48531         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48532         in their own block, so pre-c99 compilers don't object.
48533
48534         Avoid the double-free (first in fts_read, second in fts_close) that
48535         would occur when an `active' directory is made inaccessible (e.g.,
48536         via chmod a-x) during a traversal.
48537         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48538         before returning.  Reproduce this failure by
48539         mkdir -p a/b; cd a; chmod a-x . b
48540         Reported by Stavros Passas.
48541
48542 2006-01-25  Jim Meyering  <jim@meyering.net>
48543
48544         * lib/fileblocks.c: Remove more useless parentheses.
48545         * lib/readutmp.h: Likewise.
48546
48547 2006-01-25  Bruno Haible  <bruno@clisp.org>
48548
48549         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48550         warnings.
48551         Reported by Paul Eggert.
48552
48553 2006-01-25  Bruno Haible  <bruno@clisp.org>
48554
48555         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48556         rid of a trap command. For Solaris sh.
48557         Reported by Mark D. Baushke <mdb@gnu.org>.
48558
48559 2006-01-24  Simon Josefsson  <jas@extundo.com>
48560
48561         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48562         Bruno.
48563
48564 2006-01-24  Karl Berry  <karl@gnu.org>
48565
48566         * config/srclist.txt (argp-namefrob.h): sync lost.
48567
48568 2006-01-24  Jim Meyering  <jim@meyering.net>
48569
48570         * modules/openat (Files): Add lib/intprops.h.
48571         From Mark D. Baushke.
48572
48573 2006-01-24  Jim Meyering  <jim@meyering.net>
48574
48575         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48576         Reported by Mark D. Baushke.
48577
48578 2006-01-24  Jim Meyering  <jim@meyering.net>
48579
48580         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48581
48582 2006-01-24  Bruno Haible  <bruno@clisp.org>
48583
48584         * modules/strnlen (Maintainer): Change from glibc to all.
48585
48586 2006-01-24  Bruno Haible  <bruno@clisp.org>
48587
48588         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48589         Patch by Paul Eggert.
48590
48591 2006-01-24  Bruno Haible  <bruno@clisp.org>
48592
48593         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48594         already has it.
48595         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48596         2005-11-26.
48597
48598         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48599         'signed char' to avoid problems with the built-in _Bool type.
48600         Reported by Paul Eggert on 2005-11-26.
48601
48602 2006-01-24  Bruno Haible  <bruno@clisp.org>
48603
48604         * gnulib-tool (func_import): Avoid constructing complicated sed
48605         expressions inside backquote.
48606         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48607
48608 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48609
48610         These changes imported from libc.
48611         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48612         test and two separate function calls.
48613         * lib/strndup.c (__strndup): Add libc_hidden_def.
48614
48615 2006-01-23  Simon Josefsson  <jas@extundo.com>
48616
48617         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48618         Remove the test_*_SOURCES variable: automake infers it by default.
48619         * modules/tls-tests: Likewise.
48620
48621 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48622
48623         Work around porting bugs reported by Dieter in
48624         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48625         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48626         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48627         Include "getopt.h" first, to check interface.
48628         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48629         !HAVE_DECL_GETENV.
48630         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48631         (__strndup): Revert to K&R-style function dfns, the glibc style.
48632         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48633         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48634         Include strnlen.h first, to get prototype properly.
48635         (strnlen): Renamed from __strnlen.
48636         Remove weak alias.
48637
48638 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48639
48640         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48641
48642 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48643
48644         * config/srclist.txt: Adjust to reflect glibc reorganization.
48645         This affects only comments.
48646
48647 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48648
48649          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48650          Reported by Bruce Korb <bkorb@gnu.org>.
48651
48652 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48653
48654         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48655         to pacify gcc -Wswitch-default.
48656
48657 2006-01-22  Bruno Haible  <bruno@clisp.org>
48658
48659         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48660         temporary buffer for sprintf, take into account the precision also
48661         for 'd', 'i', 'u', 'o', 'x', 'X'.
48662
48663 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48664
48665         * modules/argp-tests: New module
48666         * tests/test-argp.c: New file
48667         * tests/test-argp-2.sh: New file
48668
48669 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48670
48671         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48672         (__argp_base_name): Removed
48673         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48674         typo.
48675         (__argp_base_name): Provide macro definition or extern declaration
48676         depending on the configuration
48677
48678 2006-01-20  Simon Josefsson  <jas@extundo.com>
48679
48680         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48681
48682 2006-01-20  Simon Josefsson  <jas@extundo.com>
48683
48684         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48685
48686 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48687
48688         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48689         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48690         Suggested by Bruno Haible.
48691
48692 2006-01-20  Karl Berry  <karl@gnu.org>
48693
48694         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48695         until changes propagate, I guess.
48696
48697 2006-01-19  Simon Josefsson  <jas@extundo.com>
48698
48699         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48700
48701 2006-01-19  Simon Josefsson  <jas@extundo.com>
48702
48703         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48704
48705 2006-01-19  Simon Josefsson  <jas@extundo.com>
48706
48707         * gnulib-tool: Set check_PROGRAMS.
48708
48709         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48710         modules/des-tests, modules/gc-arcfour-tests,
48711         modules/gc-arctwo-tests, modules/gc-des-tests,
48712         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48713         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48714         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48715         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48716         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48717         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48718         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48719         test_*_SOURCES.
48720
48721 2006-01-18  Simon Josefsson  <jas@extundo.com>
48722
48723         * modules/socklen (Depends-on): Depend on sys_socket.
48724
48725 2006-01-18  Simon Josefsson  <jas@extundo.com>
48726
48727         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48728         modules/des-tests, modules/gc-arcfour-tests,
48729         modules/gc-arctwo-tests, modules/gc-des-tests,
48730         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48731         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48732         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48733         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48734         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48735         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48736         $(EXEEXT) to automake TESTS variable, for mingw32.
48737
48738 2006-01-17  Simon Josefsson  <jas@extundo.com>
48739
48740         * modules/socklen (Include): Need sys/socket.h.
48741
48742 2006-01-17  Bruno Haible  <bruno@clisp.org>
48743
48744         * modules/ssize_t (Include): Add <sys/types.h>.
48745
48746 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48747
48748         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48749         it's not portable and it doesn't work with cross-compiles.
48750         Problem reported by Bruno Haible.  Fix missing-$ typo in
48751         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48752         -zignore from being used with Sun's C compiler.
48753
48754 2006-01-12  Simon Josefsson  <jas@extundo.com>
48755
48756         * lib/base64.c: Fix warning, reported by Bruno Haible
48757         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48758
48759 2006-01-12  Bruno Haible  <bruno@clisp.org>
48760
48761         * modules/ldd: New file.
48762         * build-aux/ldd.sh.in: New file.
48763         * MODULES.html.sh (Support for building libraries and executables): Add
48764         ldd.
48765
48766 2006-01-12  Bruno Haible  <bruno@clisp.org>
48767
48768         * m4/ldd.m4: New file.
48769
48770 2006-01-12  Bruno Haible  <bruno@clisp.org>
48771
48772         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48773         endless loop while replacing $auxdir with build-aux.
48774
48775 2006-01-11  Simon Josefsson  <jas@extundo.com>
48776
48777         * lib/stdint_.h (SIZE_MAX): Add missing (.
48778
48779 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48780
48781         Sync from coreutils.
48782         * lib/md5.c: Fix commentary typos.
48783         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48784         * lib/md5.h (__attribute__): Remove; unused.
48785         * lib/sha1.c: Fix commentary to match md5 better.
48786         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48787         so that we don't need to worry about alignment.  All uses changed.
48788         This merges the 2005-10-28 md5 change into sha1.
48789
48790 2006-01-11  Jim Meyering  <jim@meyering.net>
48791
48792         Sync from coreutils.
48793         * lib/md5.c (OP): Fix spacing.
48794
48795 2006-01-11  Bruno Haible  <bruno@clisp.org>
48796
48797         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48798         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48799         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48800
48801 2006-01-11  Bruno Haible  <bruno@clisp.org>
48802
48803         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48804         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48805         the "early" section as well.
48806
48807 2006-01-11  Bruno Haible  <bruno@clisp.org>
48808
48809         Avoid "ar: no archive members specified" error on MacOS X.
48810         * gnulib-tool (func_modules_add_dummy): New function.
48811         (func_import, func_create_testdir): Invoke it.
48812
48813 2006-01-11  Bruno Haible  <bruno@clisp.org>
48814
48815         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48816         with $auxdir in AC_CONFIG_FILES statements.
48817
48818 2006-01-11  Bruno Haible  <bruno@clisp.org>
48819
48820         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48821         Initialize also noinst_HEADERS to empty.
48822
48823 2006-01-11  Bruno Haible  <bruno@clisp.org>
48824
48825         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48826         variables.
48827         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48828         autoreconf.
48829
48830 2006-01-11  Bruno Haible  <bruno@clisp.org>
48831
48832         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48833         overridable by the user.
48834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48835
48836 2006-01-10  Simon Josefsson  <jas@extundo.com>
48837
48838         * modules/sys_socket: New file.
48839
48840 2006-01-10  Simon Josefsson  <jas@extundo.com>
48841
48842         * m4/sys_socket_h.m4: New file.
48843
48844 2006-01-10  Simon Josefsson  <jas@extundo.com>
48845
48846         * lib/socket_.h: New file.
48847
48848 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48849
48850         * modules/readutmp (Maintainer): Add myself.
48851
48852 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48853
48854         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48855         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48856         People who are still concerned with buggy memcmp implementations
48857         can invoke gl_FUNC_MEMCMP themselves.
48858
48859 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48860
48861         * lib/regex_internal.h (BITSET_WORD_BITS):
48862         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48863         preprocessor mishandles large unsigned values as if they were signed.
48864         Problem reported by Claudio Fontana in
48865         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48866
48867 2006-01-10  Jim Meyering  <jim@meyering.net>
48868
48869         Avoid the double-free (first in fts_read, second in fts_close) that
48870         would occur when an `active' directory is made inaccessible (e.g.,
48871         via chmod a-x) during a traversal.
48872         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48873         before returning.  Reproduce this failure by
48874         mkdir -p a/b; cd a; chmod a-x . b
48875         Reported by Stavros Passas.
48876
48877         Sync from coreutils.
48878         * lib/sha1.c: Tweak grammar in a comment.
48879
48880 2006-01-10  Jim Meyering  <jim@meyering.net>
48881
48882         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48883         Patch by Joerg Sonnenberger.
48884
48885 2006-01-10  Bruno Haible  <bruno@clisp.org>
48886
48887         * modules/readutmp: Depend on module free.
48888         * modules/strtok_r: Depend on module restrict.
48889
48890 2006-01-10  Bruno Haible  <bruno@clisp.org>
48891
48892         * modules/gettext (configure.ac): Add an invocation of
48893         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48894
48895 2006-01-10  Bruno Haible  <bruno@clisp.org>
48896
48897         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48898         Reported by Werner Lemberg <wl@gnu.org>.
48899
48900 2006-01-10  Bruno Haible  <bruno@clisp.org>
48901
48902         * lib/localcharset.c: Update from GNU gettext.
48903
48904 2006-01-10  Bruno Haible  <bruno@clisp.org>
48905
48906         * lib/argp.h (__const): Remove macro. Use const instead.
48907         * lib/argp-fmtstream.h (__const): Likewise.
48908         * lib/glob_.h (__const): Remove macro.
48909         * lib/glob-libc.h: Use const instead of __const.
48910
48911 2006-01-10  Bruno Haible  <bruno@clisp.org>
48912
48913         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48914         variable.
48915         Needed to avoid an automake error regarding the 'gettext' module.
48916
48917 2006-01-09  Simon Josefsson  <jas@extundo.com>
48918
48919         * modules/inet_ntop (Depends-on): Add restrict.
48920
48921 2006-01-09  Simon Josefsson  <jas@extundo.com>
48922
48923         * modules/gc-rijndael-tests (License): Put under LGPL.
48924
48925         * modules/gc-des-tests (License): Likewise.
48926
48927         * modules/gc-arcfour-tests (License): Likewise.
48928
48929         * modules/gc-arctwo-tests (License): Likewise.
48930
48931         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48932
48933         * modules/gc-hmac-sha1-tests (Files): Likewise.
48934
48935         * modules/gc-hmac-md5-tests (License): Likewise.
48936
48937         * modules/gc-sha1-tests (License): Likewise.
48938
48939         * modules/gc-md5-tests (License): Likewise.
48940
48941         * modules/gc-md4-tests (License): Likewise.
48942
48943         * modules/gc-md2-tests (License): Likewise.
48944
48945         * modules/gc-tests (License): Likewise.
48946
48947         * modules/des-tests (License): Likewise.
48948
48949         * modules/md4-tests (License): Likewise.
48950
48951         * modules/md2-tests (License): Likewise.
48952
48953 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48954
48955         Sync from coreutils:
48956
48957         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48958         * modules/lib-ignore: New file.
48959         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48960         chdir-safer.m4, lchmod.m4.
48961         * modules/openat: Add mkdirat.c, openat-priv.h.
48962
48963 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48964
48965         Sync from coreutils.
48966         * m4/lib-ignore.m4: New file.
48967         * m4/lchmod.m4: New file.
48968
48969 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48970
48971         Sync from coreutils.
48972         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48973         for write access: POSIX says that must fail.
48974         * lib/fts.c (diropen): Likewise.
48975         * lib/save-cwd.c (save_cwd): Likewise.
48976         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48977         well, for minor improvements on hosts that lack O_DIRECTORY.
48978         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48979         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48980         Fall back on chown if open failed with EACCES.
48981
48982         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48983         Report an error at compile-time if only a 1-second nominal clock
48984         resolution is found.
48985
48986         * lib/lchmod.h: New file.
48987         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48988         (make_dir_parents): Use lchown rather than chown, and
48989         lchmod rather than chmod.
48990
48991         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48992         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48993         "proc" reported by n0dalus.
48994
48995         * lib/mountlist.c: Include <limits.h>.
48996         (dev_from_mount_options)
48997         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48998         New function.  It no longer assumes "dev=" has the System V meaning
48999         on Linux (since it doesn't).  It also parses "dev=" more carefully.
49000         (read_file_system_list)
49001         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
49002         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
49003         dev= in that case.
49004
49005         * lib/posixtm.h (PDS_PRE_2000): New macro.
49006         * lib/posixtm.c (year): Arg is now syntax_bits rather than
49007         allow_century.  All usages changed.  Reject dates outside the range
49008         1969-1999 if PDS_PRE_2000 is used.
49009
49010 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49011
49012         Sync from coreutils.
49013         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
49014         (Time of day items): Mention the possibility of leap seconds.
49015         Problem reported by Dr. David Alan Gilbert.
49016
49017 2006-01-09  Jim Meyering  <jim@meyering.net>
49018
49019         Sync from coreutils.
49020
49021         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
49022
49023         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
49024
49025         * lib/modechange.c (mode_compile): Reject an invalid mode string
49026         that starts with an octal digit.  From Andreas Gruenbacher.
49027
49028         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
49029         and dup to open_safer and dup_safer, respectively.
49030         (openat_permissive): Fix typo in comment.
49031
49032         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
49033         "gettext.h"; either no longer needed or are guaranteed by openat.h.
49034         (_): Remove; no longer needed.
49035         (openat): Renamed from rpl_openat; no need for rpl_openat
49036         since openat.h renames openat for us.
49037         Replace most of the body with a call to openat_permissive,
49038         to avoid duplicate code.
49039         Port to (probably hypothetical) environments were mode_t is
49040         wider than int.
49041         (openat_permissive): Require mode arg, so that we can check
49042         types better.  Put it just after flags.  Change cwd failure
49043         indicator from pointer-to-bool to pointer-to-errno-value.
49044         All callers changed.
49045         Invoke openat_save_fail and/or openat_restore_fail if
49046         cwd_errno is null, so that openat can call us.
49047         (openat_permissive, fdopendir, fstatat, unlinkat):
49048         Simplify errno handling to avoid some duplicate code,
49049         as it's OK to set errno on success.
49050         * lib/openat.h: Revamp code so that function macros depend on
49051         __OPENAT_PREFIX only, not also on AT_FDCWD.
49052         (openat_ro): Remove.  Caller changed to use openat_permissive.
49053         (openat_permissive): Now a macro, if not a function.
49054         (openat_restore_fail, openat_save_fail): Now always functions,
49055         since mkdirat needs them even if __OPENAT_PREFIX is defined.
49056
49057         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
49058         and openat.c.
49059         * lib/mkdirat.c: Include openat-priv.h.
49060         Remove definitions of macros defined therein.
49061         * lib/openat.c: Likewise.
49062
49063         * lib/mkdirat.c (mkdirat): New file and function.
49064         * lib/openat.h (mkdirat): Declare.
49065
49066         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
49067
49068         * lib/openat.h (openat_permissive): Declare.
49069         (openat_ro): Define.
49070
49071         * lib/openat.c (EXPECTED_ERRNO): New macro.
49072         (openat_permissive): New function -- used in remove.c rewrite.
49073         (all functions): Set errno just before returning, only if there
49074         was an actual failure.
49075         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
49076
49077         Emulate openat-family functions using Linux's procfs, if possible.
49078         Idea and some code based on Ulrich Drepper's glibc changes.
49079
49080         * lib/openat.c: (BUILD_PROC_NAME): New macro.
49081         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
49082         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
49083         before falling back on save_cwd and restore_cwd.
49084         (fdopendir, fstatat, unlinkat): Likewise.
49085
49086         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
49087         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
49088
49089         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
49090         as second argument to va_arg.  Otherwise, some versions of gcc
49091         warn that `if this code is reached, the program will abort'.
49092
49093 2006-01-09  Jim Meyering  <jim@meyering.net>
49094
49095         Sync from coreutils.
49096         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
49097         Require openat-priv.h.
49098
49099 2006-01-09  Bruno Haible  <bruno@clisp.org>
49100
49101         * modules/strnlen (Include): Use strnlen.h.
49102
49103 2006-01-09  Bruno Haible  <bruno@clisp.org>
49104
49105         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
49106
49107 2006-01-09  Bruno Haible  <bruno@clisp.org>
49108
49109         * lib/sysexit_.h (EX_OK): New macro.
49110         Suggested by Martin Lambers <marlam@marlam.de>.
49111
49112 2006-01-09  Bruno Haible  <bruno@clisp.org>
49113
49114         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
49115         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
49116
49117 2006-01-09  Bruno Haible  <bruno@clisp.org>
49118
49119         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
49120         numbers.
49121
49122 2006-01-09  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
49125         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
49126         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
49127         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
49128
49129 2006-01-09  Bruno Haible  <bruno@clisp.org>
49130
49131         * build-aux/javacomp.sh.in: New file, moved from lib/.
49132         * modules/javacomp-script (Files): Update.
49133         (configure.ac): Add AC_CONFIG_FILES invocation.
49134         (EXTRA_DIST): Remove variable.
49135
49136         * build-aux/javaexec.sh.in: New file, moved from lib/.
49137         * modules/javaexec (Files): Update.
49138         (configure.ac): Add AC_CONFIG_FILES invocation.
49139         (EXTRA_DIST): Remove javaexec.sh.in.
49140
49141         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
49142         * modules/csharpcomp-script (Files): Update.
49143         (configure.ac): Add AC_CONFIG_FILES invocation.
49144         (EXTRA_DIST): Remove variable.
49145
49146         * build-aux/csharpexec.sh.in: New file, moved from lib/.
49147         * modules/csharpexec (Files): Update.
49148         (configure.ac): Add AC_CONFIG_FILES invocation.
49149         (EXTRA_DIST): Remove csharpexec.sh.in.
49150
49151 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49152
49153         Sync from coreutils.
49154
49155         Add POSIX ACL support
49156         * lib/acl.h (copy_acl, set_acl): Add declarations.
49157         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
49158         systems other than Linux.
49159         (chmod_or_fchmod): New function: use fchmod when possible,
49160         and chmod otherwise.
49161         (file_has_acl): Add a POSIX ACL implementation, with a
49162         Linux-specific subcase.
49163         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
49164         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
49165         acls are unsupported.
49166         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
49167         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
49168         are unsupported.
49169
49170 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49171
49172         Sync from coreutils.
49173         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
49174
49175 2006-01-07  Bruno Haible  <bruno@clisp.org>
49176
49177         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
49178         gl_EARLY.
49179
49180 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49181
49182         * lib/strftime.c (tzname): Don't declare if it is already #defined.
49183         Problem reported for Mingw by Mark Junker.
49184
49185 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49186
49187         * README: Gnulib normally doesn't generate a tarball.
49188
49189 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
49190
49191         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
49192         long int, not int, for nanosecond counts, so that people who are
49193         used to POSIX struct timespec won't be surprised.  Reported by Jim
49194         Meyering.
49195
49196 2005-12-28  Bruno Haible  <bruno@clisp.org>
49197
49198         * build-aux/config.rpath: Update from GNU gettext.
49199
49200 2005-12-16  Jim Meyering  <jim@meyering.net>
49201
49202         * modules/fprintftime: New module.
49203         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
49204
49205 2005-12-16  Jim Meyering  <jim@meyering.net>
49206
49207         * m4/fprintftime.m4: New file.
49208
49209 2005-12-16  Jim Meyering  <jim@meyering.net>
49210
49211         * lib/fprintftime.c, lib/fprintftime.h: New files.
49212
49213 2005-12-15  Simon Josefsson  <jas@extundo.com>
49214
49215         * modules/socklen (configure.ac): Fix M4 macro name, to align with
49216         new m4/socklen.m4.
49217
49218 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49219
49220         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49221         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49222
49223 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49224
49225         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49226         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49227         struct uparams is valid. Fall back to the default values if it is
49228         not.
49229
49230 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49231
49232         * modules/argp (Files): Add argp-pin.c
49233         (Depends-on): dirname
49234         (lib_SOURCES): Add argp-pin.c
49235
49236 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49237
49238         * m4/argp.m4:  Check if program_invocation_name and
49239         program_invocation_short_name are declared and define appropriate
49240         macros if they are not.
49241
49242 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49243
49244         * lib/argp-help.c (__argp_base_name): New function
49245         (__argp_short_program_name): Rewrite using __argp_base_name
49246         * lib/argp-namefrob.h: Define program_invocation_name and
49247         program_invocation_short_name if requested
49248         (__argp_base_name): Add prototype
49249         * lib/argp-parse.c (argp_def): Use gettext wrappers
49250         (argp_default_parser): Use __argp_base_name
49251         * lib/argp-pin.c: New file. Defines program_invocation_name and
49252         program_invocation_short_name on systems that lack them.
49253
49254 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49255
49256         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49257         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49258         porting problem reported by Georg Schwarz in
49259         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49260
49261 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49262
49263         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49264         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49265         porting problem reported by Georg Schwarz in
49266         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49267
49268 2005-12-05  Bruno Haible  <bruno@clisp.org>
49269
49270         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49271         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49272         Reported by Mark Junker <mjscod@gmx.de>.
49273
49274 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49275
49276         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49277         Use implementation from Albert Chin, with some
49278         comments/corrections by Stepan Kasal and myself.
49279
49280 2005-12-02  Bruno Haible  <bruno@clisp.org>
49281
49282         * gnulib-tool (func_import): Accept GPLed build tool modules when
49283         --lgpl is given.
49284         * modules/csharpcomp-script: New file.
49285         * modules/csharpcomp: Depend on it.
49286         * modules/javacomp-script: New file.
49287         * modules/javacomp: Depend on it.
49288         Suggested by Simon Josefsson.
49289
49290 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49291
49292         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49293         statement, to work around an HP-UX 10.20 compiler bug reported by
49294         Peter O'Gorman.
49295
49296 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49297
49298         * modules/savedir (Depends-on): Add openat.
49299
49300 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49301
49302         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49303         (uintmax_t) [defined uintmax_t]: Do not declare.
49304         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49305         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49306         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49307         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49308         sake of portability to weird hosts that C allows (though we don't
49309         know of any practical examples).
49310
49311         * lib/savedir.h (fdsavedir): New decl.
49312         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49313         contains most of the former guts of savedir.
49314         (savedir): Use savedirstream.
49315         Include "openat.h".
49316
49317 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49318
49319         * modules/obstack (Files): Add m4/ulonglong.m4.
49320         Problem reported by Davide Angelocola.
49321
49322 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49323
49324         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49325         coreutils no longer futzes with rounding modes.
49326
49327 2005-11-14  Jim Meyering  <jim@meyering.net>
49328
49329         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49330         replacement of mkstemp.
49331
49332 2005-11-10  Simon Josefsson  <jas@extundo.com>
49333
49334         * lib/readline.c: Remove EOL.
49335
49336 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49337
49338         * modules/gethrxtime (Depends-on): Add gettime.
49339
49340 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49341
49342         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49343         or gettimeofday; no longer needed.
49344
49345 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49346
49347         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49348         time business.
49349         (gethrxtime) [! (HAVE_NANOUPTIME
49350         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49351         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49352         our own approximation.
49353
49354 2005-11-08  Eric Blake  <ebb9@byu.net>
49355
49356         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49357
49358 2005-11-08  Eric Blake  <ebb9@byu.net>
49359
49360         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49361
49362 2005-11-04  Bruno Haible  <bruno@clisp.org>
49363
49364         * gnulib-tool: Implement --update mode.
49365
49366 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49367
49368         Fix porting problem reported by Theodoros V. Kalamatianos.
49369         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49370         Don't assume that futimes failing means we must fail.
49371
49372 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49373
49374         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49375         variables to suggest the intended function of the PATH_MAX check.
49376
49377 2005-10-30  Kean Johnston  <jkj@sco.com>
49378
49379         Trivial changes to support SCO systems.
49380         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49381         as PATH_MAX.
49382         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49383         where __ptr is null when no I/O is pending.
49384
49385 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49386
49387         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49388         leave errno alone.  Problem reported by Dmitry V. Levin.
49389
49390 2005-10-28  Simon Josefsson  <jas@extundo.com>
49391
49392         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49393         Test more.
49394
49395         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49396
49397         * modules/md2, modules/md2-tests: New files.
49398
49399 2005-10-28  Simon Josefsson  <jas@extundo.com>
49400
49401         * m4/inet_ntop.m4: More tests.
49402
49403         * m4/gc-md2.m4, md2.m4: New file.
49404
49405 2005-10-28  Simon Josefsson  <jas@extundo.com>
49406
49407         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49408         "restrict" keywords, as per POSIX.  Protect the function
49409         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49410         Don't use K&R prototypes.  Check the sprintf return values.
49411         Re-define EAFNOSUPPORT if not present.  Indent.
49412
49413         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49414         suggested by Bruno Haible <bruno@clisp.org>.
49415
49416         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49417
49418         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49419
49420         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49421         libgcrypt).
49422
49423         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49424
49425         * lib/md2.h, lib/md2.c: New files.
49426
49427 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49428
49429         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49430         errno alone.  Problem reported by Frederic Jolliton.
49431
49432 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49433
49434         * modules/verify (License): Change from GPL to LGPL.  This is a
49435         tiny module and there are apparently near-equivalents that are
49436         under the BSD license.
49437
49438 2005-10-24  Simon Josefsson  <jas@extundo.com>
49439
49440         * modules/sha1: Relicense to LGPL.
49441
49442 2005-10-24  Simon Josefsson  <jas@extundo.com>
49443
49444         * lib/md4.h: Shrink buffer size, now that we changed the type.
49445
49446 2005-10-23  Simon Josefsson  <jas@extundo.com>
49447
49448         * gnulib-tool (func_import): Fix --tests-base.
49449
49450 2005-10-22  Simon Josefsson  <jas@extundo.com>
49451
49452         * modules/arcfour (Depends-on): Need stdint.
49453
49454 2005-10-22  Simon Josefsson  <jas@extundo.com>
49455
49456         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49457         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49458
49459 2005-10-22  Simon Josefsson  <jas@extundo.com>
49460
49461         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49462         suggested by Bruno Haible <bruno@clisp.org>.
49463
49464 2005-10-22  Simon Josefsson  <jas@extundo.com>
49465
49466         * lib/crc.h: Include stddef.h, for size_t.
49467
49468 2005-10-22  Simon Josefsson  <jas@extundo.com>
49469
49470         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49471         arcfour_context struct (simplify test vector testing in GNU
49472         Shishi).
49473
49474 2005-10-21  Simon Josefsson  <jas@extundo.com>
49475
49476         * modules/des, modules/des-tests: New files.
49477
49478         * modules/gc-des, modules/gc-des-tests: New files.
49479
49480         * tests/test-des.c, tests/test-gc-des.c: New file.
49481
49482 2005-10-21  Simon Josefsson  <jas@extundo.com>
49483
49484         * modules/arctwo, modules/arctwo-tests: New files.
49485
49486         * tests/test-arctwo.c: New file.
49487
49488         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49489
49490         * tests/test-gc-arctwo.c: New file.
49491
49492 2005-10-21  Simon Josefsson  <jas@extundo.com>
49493
49494         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49495         Bruno Haible <bruno@clisp.org>.
49496
49497         * m4/gc-des.m4: New file.
49498
49499 2005-10-21  Simon Josefsson  <jas@extundo.com>
49500
49501         * m4/arctwo.m4: New file.
49502
49503         * m4/gc-arctwo.m4: New file.
49504
49505 2005-10-21  Simon Josefsson  <jas@extundo.com>
49506
49507         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49508         block.
49509
49510 2005-10-21  Simon Josefsson  <jas@extundo.com>
49511
49512         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49513         <bruno@clisp.org>.
49514
49515         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49516
49517         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49518         Bruno Haible <bruno@clisp.org>.
49519
49520         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49521         <bruno@clisp.org>.
49522
49523 2005-10-21  Simon Josefsson  <jas@extundo.com>
49524
49525         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49526
49527 2005-10-21  Simon Josefsson  <jas@extundo.com>
49528
49529         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49530
49531 2005-10-21  Simon Josefsson  <jas@extundo.com>
49532
49533         * lib/des.h, lib/des.c: New files.
49534
49535         * lib/gc-gnulib.c: Support DES.c
49536
49537 2005-10-21  Simon Josefsson  <jas@extundo.com>
49538
49539         * lib/arctwo.h, lib/arctwo.c: New files.
49540
49541         * lib/gc-gnulib.c: Support ARCTWO.
49542
49543 2005-10-21  Simon Josefsson  <jas@extundo.com>
49544
49545         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49546         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49547
49548 2005-10-21  Simon Josefsson  <jas@extundo.com>
49549
49550         * gnulib-tool (func_import, func_create_testdir): Define automake
49551         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49552         Makefile.am snippet),
49553         suggested by Bruno Haible <bruno@clisp.org>.
49554
49555         * modules/gc (Makefile.am): Use it.
49556
49557 2005-10-21  Bruno Haible  <bruno@clisp.org>
49558
49559         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49560         patch.
49561
49562 2005-10-19  Simon Josefsson  <jas@extundo.com>
49563
49564         * tests/test-gc-rijndael.c: New file.
49565
49566         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49567
49568 2005-10-19  Simon Josefsson  <jas@extundo.com>
49569
49570         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49571         interface too.
49572
49573 2005-10-19  Simon Josefsson  <jas@extundo.com>
49574
49575         * tests/test-gc-arcfour.c: New file.
49576
49577         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49578
49579 2005-10-19  Simon Josefsson  <jas@extundo.com>
49580
49581         * modules/gc-md4, modules/gc-md4-tests: New file.
49582
49583         * tests/test-gc-md4.c: New file.
49584
49585 2005-10-19  Simon Josefsson  <jas@extundo.com>
49586
49587         * m4/gc-md4.m4: New file.
49588
49589 2005-10-19  Simon Josefsson  <jas@extundo.com>
49590
49591         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49592         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49593         <kasal@ucw.cz>.
49594
49595 2005-10-19  Simon Josefsson  <jas@extundo.com>
49596
49597         * m4/gc-arcfour.m4: New file.
49598
49599         * m4/gc-rijndael.m4: New file.
49600
49601 2005-10-19  Simon Josefsson  <jas@extundo.com>
49602
49603         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49604
49605 2005-10-19  Simon Josefsson  <jas@extundo.com>
49606
49607         * lib/gc-gnulib.c: Support ARCFOUR.
49608
49609 2005-10-19  Simon Josefsson  <jas@extundo.com>
49610
49611         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49612         support.
49613
49614         * lib/gc.h: Add ECB enum type.
49615
49616         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49617
49618 2005-10-18  Simon Josefsson  <jas@extundo.com>
49619
49620         * tests/test-md5.c: New file.
49621
49622         * modules/md5-tests: New file.
49623
49624 2005-10-18  Simon Josefsson  <jas@extundo.com>
49625
49626         * tests/test-md4.c: New file.
49627
49628         * modules/md4, modules/md4-tests: New files.
49629
49630 2005-10-18  Simon Josefsson  <jas@extundo.com>
49631
49632         * m4/md4.m4: New file.
49633
49634 2005-10-18  Simon Josefsson  <jas@extundo.com>
49635
49636         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49637
49638 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49639
49640         * gnulib-tool (func_create_testdir): Omit the second check whether
49641         BUILT_SOURCES in nonempty.
49642
49643 2005-10-17  Simon Josefsson  <jas@extundo.com>
49644
49645         * tests/test-rijndael.c: New file.
49646
49647 2005-10-17  Simon Josefsson  <jas@extundo.com>
49648
49649         * modules/sha1: Depend on stdint instead of md5.
49650
49651         * modules/md5: Depend on stdint, remove uint32_t.
49652
49653 2005-10-17  Simon Josefsson  <jas@extundo.com>
49654
49655         * modules/gc-sha1-tests: New file.
49656
49657         * tests/test-gc-sha1.c: New file.
49658
49659 2005-10-17  Simon Josefsson  <jas@extundo.com>
49660
49661         * m4/md5.m4: Remove call to uint32_t.m4.
49662
49663 2005-10-17  Simon Josefsson  <jas@extundo.com>
49664
49665         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49666
49667         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49668         md5.h.
49669
49670         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49671
49672         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49673
49674 2005-10-17  Simon Josefsson  <jas@extundo.com>
49675
49676         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49677
49678 2005-10-17  Simon Josefsson  <jas@extundo.com>
49679
49680         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49681
49682 2005-10-17  Simon Josefsson  <jas@extundo.com>
49683
49684         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49685
49686         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49687
49688 2005-10-17  Bruno Haible  <bruno@clisp.org>
49689
49690         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49691         that it can also be used in a test.
49692
49693 2005-10-16  Bruno Haible  <bruno@clisp.org>
49694
49695         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49696         TESTS_ENVIRONMENT, so that individual tests can augment it.
49697
49698         * gnulib-tool (func_create_testdir): Use an intermediate target for
49699         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49700         macros, like $(ALLOCA_H), which cannot be passed through the command
49701         line.
49702
49703 2005-10-15  Simon Josefsson  <jas@extundo.com>
49704
49705         * modules/rijndael-tests: New file.
49706
49707         * modules/rijndael: New file.
49708
49709 2005-10-15  Simon Josefsson  <jas@extundo.com>
49710
49711         * m4/rijndael.m4: New file.
49712
49713 2005-10-15  Simon Josefsson  <jas@extundo.com>
49714
49715         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49716
49717         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49718
49719 2005-10-14  Simon Josefsson  <jas@extundo.com>
49720
49721         * tests/test-arcfour.c: New file.
49722
49723         * modules/arcfour, modules/arcfour-tests: New files.
49724
49725 2005-10-14  Simon Josefsson  <jas@extundo.com>
49726
49727         * m4/arcfour.m4: New file.
49728
49729 2005-10-14  Simon Josefsson  <jas@extundo.com>
49730
49731         * lib/arcfour.h, lib/arcfour.c: New files.
49732
49733 2005-10-14  Roland McGrath  <roland@redhat.com>
49734
49735         Import from libc.  [BZ #1331]
49736         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49737         macro argument.
49738         Reported by Matej Vela <vela@debian.org>.
49739
49740 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49741
49742         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49743         include <wchar.h>; no longer needed.
49744
49745 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49746
49747         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49748
49749 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49750         and  Ulrich Drepper  <drepper@redhat.com>
49751
49752         Import from libc.
49753         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49754         instead of inline stream orientation test and two separate
49755         function calls.  Pay no attention to USE_IN_LIBIO.
49756
49757 2005-10-13  Simon Josefsson  <jas@extundo.com>
49758
49759         * modules/gc-hmac-md5-tests: New file.
49760
49761         * tests/test-gc-hmac-sha1.c: New file.
49762
49763         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49764
49765         * modules/gc-hmac-md5-tests: New file.
49766
49767         * tests/test-gc-md5.c: New file.
49768
49769         * modules/gc-md5-tests: New file.
49770
49771 2005-10-13  Simon Josefsson  <jas@extundo.com>
49772
49773         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49774         Move memory allocation outside of loop.
49775
49776 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49777
49778         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49779         intermediate directory is in a read-only file system.  Problem
49780         reported by Eric Blake.
49781
49782 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49783
49784         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49785
49786 2005-10-12  Simon Josefsson  <jas@extundo.com>
49787
49788         * tests/test-hmac-sha1.c: New file.
49789
49790         * modules/hmac-sha1-tests: New file.
49791
49792         * modules/hmac-sha1: New file.
49793
49794 2005-10-12  Simon Josefsson  <jas@extundo.com>
49795
49796         * modules/gc-sha1: New file.
49797
49798 2005-10-12  Simon Josefsson  <jas@extundo.com>
49799
49800         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49801
49802         * tests/test-gc-pbkdf2-sha1.c: New file.
49803
49804 2005-10-12  Simon Josefsson  <jas@extundo.com>
49805
49806         * modules/gc-md5, modules/gc-hmac-md5: New files.
49807
49808         * modules/gc (Files): Remove md5, memxor and hmac files.
49809
49810 2005-10-12  Simon Josefsson  <jas@extundo.com>
49811
49812         * m4/gc-pbkdf2-sha1.m4: New file.
49813
49814         * m4/gc-hmac-sha1.m4: New file.
49815
49816         * m4/gc-sha1: New file.
49817
49818         * m4/hmac-sha1.m4: New file.
49819
49820 2005-10-12  Simon Josefsson  <jas@extundo.com>
49821
49822         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49823
49824         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49825
49826 2005-10-12  Simon Josefsson  <jas@extundo.com>
49827
49828         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49829         suggested by Bruno Haible <bruno@clisp.org>.
49830
49831 2005-10-12  Simon Josefsson  <jas@extundo.com>
49832
49833         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49834
49835 2005-10-12  Simon Josefsson  <jas@extundo.com>
49836
49837         * lib/gc-pbkdf2-sha1.c: New file.
49838
49839         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49840
49841 2005-10-12  Simon Josefsson  <jas@extundo.com>
49842
49843         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49844
49845         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49846
49847 2005-10-12  Simon Josefsson  <jas@extundo.com>
49848
49849         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49850         GC_USE_HMAC_MD5, respectively.
49851
49852         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49853         (gc_md5): Fix typo.
49854
49855         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49856
49857         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49858
49859         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49860
49861 2005-10-12  Bruno Haible  <bruno@clisp.org>
49862
49863         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49864         Reported by Stepan Kasal <kasal@ucw.cz>.
49865
49866 2005-10-11  Simon Josefsson  <jas@extundo.com>
49867
49868         * tests/test-crc.c: New file.
49869
49870         * modules/crc, modules/crc-tests: New files.
49871
49872 2005-10-11  Simon Josefsson  <jas@extundo.com>
49873
49874         * m4/crc.m4: New file.
49875
49876 2005-10-11  Simon Josefsson  <jas@extundo.com>
49877
49878         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49879
49880         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49881
49882         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49883
49884 2005-10-11  Simon Josefsson  <jas@extundo.com>
49885
49886         * lib/crc.h, lib/crc.c: New files.
49887
49888         * lib/gc.h (gc_hash_buffer): Add doc.
49889
49890 2005-10-11  Bruno Haible  <bruno@clisp.org>
49891
49892         * modules/c-strcasestr: New file.
49893         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49894
49895 2005-10-11  Bruno Haible  <bruno@clisp.org>
49896
49897         * modules/c-strcase: New file.
49898         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49899
49900 2005-10-11  Bruno Haible  <bruno@clisp.org>
49901
49902         * lib/strcasecmp.c: Include limits.h.
49903         (strcasecmp): Avoid integer overflow on exotic platforms.
49904         * lib/strncasecmp.c: Include limits.h.
49905         (strncasecmp): Avoid integer overflow on exotic platforms.
49906         Reported by Paul Eggert.
49907
49908 2005-10-11  Bruno Haible  <bruno@clisp.org>
49909
49910         * lib/c-strcasestr.h: New file, from GNU gettext.
49911         * lib/c-strcasestr.c: New file, from GNU gettext.
49912
49913 2005-10-11  Bruno Haible  <bruno@clisp.org>
49914
49915         * lib/c-strcase.h: New file, from GNU gettext.
49916         * lib/c-strcasecmp.c: New file, from GNU gettext.
49917         * lib/c-strncasecmp.c: New file, from GNU gettext.
49918
49919 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49920
49921         * modules/mempcpy (License): GPL -> LGPL.
49922         * modules/strchrnul (License): Likewise.
49923         * modules/sysexits (License): Likewise.
49924
49925 2005-10-08  Simon Josefsson  <jas@extundo.com>
49926
49927         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49928
49929 2005-10-07  Simon Josefsson  <jas@extundo.com>
49930
49931         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49932
49933 2005-10-06  Simon Josefsson  <jas@extundo.com>
49934
49935         * tests/test-hmac-md5.c: New file.
49936
49937         * modules/hmac-md5-tests: New file.
49938
49939         * modules/hmac-md5: New file.
49940
49941 2005-10-06  Simon Josefsson  <jas@extundo.com>
49942
49943         * m4/hmac-md5.m4: New file.
49944
49945         * m4/memxor.m4: Require gl_C_RESTRICT.
49946
49947 2005-10-06  Simon Josefsson  <jas@extundo.com>
49948
49949         * lib/memxor.c (memxor): Avoid casts and warnings.
49950
49951 2005-10-06  Simon Josefsson  <jas@extundo.com>
49952
49953         * lib/hmac-md5.c: New file.
49954
49955         * lib/hmac.h: New file.
49956
49957 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49958
49959         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49960         promotes to int, not unsigned int, to catch the AIX 5.3
49961         compiler bug.
49962
49963 2005-10-05  Simon Josefsson  <jas@extundo.com>
49964
49965         * modules/memxor: New file.
49966
49967         * modules/iconv (Files): Move config.rpath to havelib, it is used
49968         there.
49969
49970         * modules/havelib (Files): Add config.rpath.
49971
49972 2005-10-05  Simon Josefsson  <jas@extundo.com>
49973
49974         * m4/memxor.m4: New file.
49975
49976 2005-10-05  Simon Josefsson  <jas@extundo.com>
49977
49978         * lib/memxor.c (memxor): Fix compiler error.
49979
49980         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49981         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49982
49983         * lib/memxor.h, lib/memxor.c: New files.
49984
49985         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49986         we assume all systems have it, suggested by Jim Meyering
49987         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49988         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49989         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49990         same reasons.
49991
49992 2005-10-05  Simon Josefsson  <jas@extundo.com>
49993
49994         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49995
49996 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49997
49998         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49999         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
50000         needed, since the source code now assumes these .h files.
50001
50002 2005-10-05  Derek Price  <derek@ximbiot.com>
50003
50004         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
50005
50006 2005-10-05  Bruno Haible  <bruno@clisp.org>
50007
50008         * modules/stdint (License): Change to LGPL.
50009
50010 2005-10-04  Simon Josefsson  <jas@extundo.com>
50011
50012         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
50013         D. Baushke" <mdb@gnu.org>.
50014
50015 2005-10-04  Bruno Haible  <bruno@clisp.org>
50016
50017         * lib/verify.h (verify_true): Provide alternative definition for C++.
50018
50019 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
50020
50021         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
50022         (SSIZE_MAX): New macro, if not already defined.
50023         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
50024         than 2 GiB.
50025
50026 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50027
50028         Sync from coreutils.
50029         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
50030         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
50031         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
50032         ULLONG_MAX doesn't work with 2.7.2.1.
50033
50034 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50035
50036         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
50037         From Ben Pfaff.
50038
50039         * modules/exclude (Depends-on): Depend on verify.
50040         * modules/strtoimax (Depends-on): Likewise.
50041         * modules/utimecmp (Depends-on): Likewise.
50042
50043 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50044
50045         * lib/exclude.c: Include verify.h.
50046         (verify): Remove.  All callers changed to use verify.h's version.
50047         * lib/strtoimax.c: Likewise.
50048         * lib/utimecmp.c: Likewis.e
50049
50050         Sync from coreutils.
50051         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
50052         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
50053         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
50054         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
50055         bother returning ENOSYS if settimeofday or stime fails; just let
50056         them return whatever errno they want to return.
50057         * lib/utimens.c: Include unistd.h, for dup2.
50058         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
50059         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
50060
50061 2005-10-02  Jim Meyering  <jim@meyering.net>
50062
50063         Sync from coreutils.
50064         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
50065         from glibc-2.2.5 that fails for read-only files.
50066
50067 2005-10-02  Jim Meyering  <jim@meyering.net>
50068
50069         Sync from coreutils.
50070         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
50071         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
50072         `#if HAVE_CONFIG_H'.
50073         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
50074         Remove AT_FDCWD test.
50075         Do not consume the fd unless successful.
50076         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
50077         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
50078         block, so that we don't even try to compile it if settimeofday is
50079         available.  This works around a compilation failure on OSF1 V5.1,
50080         due to stime requiring a `long int*' while tv_sec is `int'.
50081
50082 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
50083
50084         Sync from coreutils.
50085         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
50086         against `yes', rather than just testing for nonempty.
50087
50088 2005-10-01  Simon Josefsson  <jas@extundo.com>
50089
50090         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
50091         and Darwin.
50092
50093         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
50094         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
50095         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
50096         freeaddrinfo and gai_strerror are declared by the POSIX headers.
50097         Check if struct addrinfo is declared.
50098
50099 2005-10-01  Simon Josefsson  <jas@extundo.com>
50100
50101         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
50102         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
50103         AI_* and EAI_* definitions.  Protect function declarations.
50104
50105 2005-10-01  Jim Meyering  <jim@meyering.net>
50106
50107         Sync from coreutils.
50108
50109         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
50110         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
50111         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
50112         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50113         in the inet and nsl libraries.  Required on Solaris 5.7.
50114
50115 2005-10-01  Jim Meyering  <jim@meyering.net>
50116
50117         Sync from coreutils.
50118         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50119         in the inet and nsl libraries.  Required on Solaris 5.7.
50120
50121 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
50122
50123         * lib/getdelim.c (getdelim): Remove unused variables.
50124
50125 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50126
50127         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
50128         so that the code works even with ancient cpp.  Portability problem
50129         with GCC 2.7.2.1 reported by Thomas M.Ott.
50130
50131 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50132
50133         * modules/regex (Depends-on): Add strcase.
50134
50135         * modules/gethostname (Licence): Change from GPL to LGPL, since
50136         gethostname.c is a trivial implementation of a standard library
50137         function.
50138         * modules/poll (License): Change from GPL to LGPL, since it's
50139         derived from LGPL code.
50140
50141 2005-09-27  Jim Meyering  <jim@meyering.net>
50142
50143         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
50144         HAVE_CONFIG_H.
50145
50146         * lib/intprops.h (signed_type_or_expr__): Define.
50147         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
50148         for unsigned types.
50149
50150 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50151
50152         * lib/verify.h (verify_expr): Remove, replacing with:
50153         (verify_true): New macro that returns true instead of void.
50154         (verify_type__): Remove.
50155         (verify): Use verify_true rather than verify_type__.
50156
50157 2005-09-26  Bruno Haible  <bruno@clisp.org>
50158
50159         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
50160         is necessary.
50161         (lib_SOURCES): Remove mbchar.c.
50162         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
50163         (Files): Add m4/mbrtowc.m4.
50164         * modules/mbiter: Likewise.
50165         * modules/mbuiter: Likewise.
50166
50167 2005-09-26  Bruno Haible  <bruno@clisp.org>
50168
50169         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
50170         compile mbchar.c if they are not both present.
50171         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
50172         * m4/mbiter.m4 (gl_MBITER): Likewise.
50173         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
50174         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
50175         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
50176
50177 2005-09-25  Jim Meyering  <jim@meyering.net>
50178
50179         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
50180         also uses socklen_t.
50181
50182 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
50183
50184         * lib/utimens.c (ENOSYS): Define if not already defined.
50185         (futimens): Support having a null PATH if the file descriptor
50186         is nonnegative.
50187
50188         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
50189         Remove.
50190         (__attribute): Define to empty unless GCC 3.1 or later.
50191         This works around a core dump on OpenBSD 3.4, which has GCC
50192         2.95.3, which dumps core when given __attribute__(()).  It also
50193         simplifies other tests, since we really don't want to bother with
50194         worrying about which ancient version of GCC supported what.
50195         Original problem reported by Yoann Vandoorselaere, with part of
50196         the fix suggested by Derek Price.
50197
50198 2005-09-24  Jim Meyering  <jim@meyering.net>
50199
50200         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
50201         so we can once again use a positive bitfield width of 1 -- now we
50202         don't have to explain why we were using a bitfield width of 2.
50203
50204 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50205
50206         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
50207         and similarly for the other external symbols.  Problem reported
50208         by James Gallager.
50209
50210         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
50211         bug reported by Jim Meyering.
50212
50213         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
50214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
50215         not needed, since socklen is a prerequisite module.
50216
50217 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50218
50219         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
50220         Problem reported by Eric Blake.
50221         (getaddrinfo): Initialize se so that it's not garbage.
50222         Redo internal storage allocation so that it doesn't make unportable
50223         assumptions about alignment.
50224         Fix a memory leak.
50225
50226         * lib/utimens.c (futimens): Use futimesat if available.
50227         Prefer it to futimes since it doesn't have the futimes bug.
50228
50229         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50230         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50231         Instead, declare a function that returns a pointer to an array,
50232         and use verify_type__ to declare the size of the array.
50233         Problem and germ of a solution reported by Bruno Haible.
50234         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50235         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50236
50237 2005-09-23  Jim Meyering  <jim@meyering.net>
50238
50239         Sync from coreutils.
50240         Correct build failure (socklen_t not defined) on at least
50241         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50242         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50243
50244 2005-09-23  Jim Meyering  <jim@meyering.net>
50245
50246         * modules/getaddrinfo (Depends-on): Add socklen.
50247
50248 2005-09-23  Bruno Haible  <bruno@clisp.org>
50249
50250         * tests/test-verify.c: New file.
50251
50252 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50253
50254         Sync from coreutils.
50255
50256         * modules/argmatch (Depends-on): Add verify.
50257         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50258         unistd-safer.
50259         * modules/save-cwd (Depends-on): Likewise.
50260
50261         * modules/openat (Files): Add lib/openat-die.c.
50262         (Depends-on): Remove error, exitfail.
50263         Add dirname.
50264
50265         * modules/verify: New file.
50266         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50267         with "verify" module.
50268
50269 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50270
50271         Sync from coreutils.
50272
50273         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50274         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50275         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50276         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50277         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50278         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50279         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50280         Don't bother checking for string.h, stdlib.h, unistd.h.
50281         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50282         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50283         module's job.
50284         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50285         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50286
50287         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50288         (gl_GETDATE): Use it.
50289
50290         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50291
50292 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50293
50294         Sync from coreutils.
50295
50296         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50297         stat-time.h.
50298         * lib/argmatch.h: Include verify.h
50299         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50300         (ARGMATCH_ASSERT): Remove; unused.
50301         * lib/canonicalize.c: Assume STDC_HEADERS.
50302         * lib/exclude.c: Include "strcase.h".
50303         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50304         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50305         and stdio-safer.h.
50306         (getusershell): Call fopen, not fopen_safer.
50307         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50308         Do not include unistd-safer.h.
50309         (save_cwd): Don't call fd_safer; no longer needed
50310         now that we include fcntl--.h.
50311
50312         * lib/getdate.y (relative_time): New type.
50313         (RELATIVE_TIME_0): New constant.
50314         (parser_control): Use relative_time instead of doing it ourselves.
50315         (%union): Add new relative_time rel member.
50316         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50317         Now typeless.
50318         (relunit, relunit_snumber): Now of type rel.
50319         (zone, rel, relunit, get_date): Adjust to above changes.
50320
50321         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50322         Do not include unistd-safer.h.
50323         (getloadavg): Don't call fd_safer; no longer needed
50324         now that we include fcntl--.h.
50325
50326         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50327         (make_dir_parents): Treat ENOSYS like EEXIST.
50328
50329         Improve quality of diagnostics on restore_cwd failure.
50330         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50331         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50332         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50333         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50334         each time through the loop.  Do not diagnose restore_cwd failure;
50335         that is the caller's job (and perhaps the caller does not care).
50336
50337         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50338         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50339         If the file already exists but is not a directory, don't bother
50340         to try to make its parents.
50341         Close potential file descriptor leak if we can't chdir("/") (!).
50342         Don't always return true if chdir($PWD) fails; return true only
50343         if the requested action was done successfully (except for the
50344         chdir($PWD)).
50345         Don't log final directory unless we actually made it.
50346         Refactor to avoid duplicate code to fix up permissions.
50347         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50348
50349         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50350         to make it a bit faster and (I hope) clearer.
50351         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50352         Fix bug in formats like %2N.
50353
50354         * lib/verify.h: New file.
50355
50356 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50357
50358         Sync from coreutils.
50359         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50360
50361 2005-09-22  Jim Meyering  <jim@meyering.net>
50362
50363         Sync from coreutils.
50364
50365         * m4/lstat.m4 (gl_FUNC_LSTAT):
50366         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50367         Remove obsolete comment.
50368         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50369         * m4/xstrtod.m4: Likewise.
50370
50371         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50372
50373 2005-09-22  Jim Meyering  <jim@meyering.net>
50374
50375         Sync from coreutils.
50376
50377         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50378
50379         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50380         the .tm_year member, since otherwise gcc-4.0 would now warn about
50381         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50382
50383         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50384         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50385
50386         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50387         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50388         when run in a time zone for which daylight savings time is in effect
50389         for the starting date.
50390
50391         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50392         stop us from restricting permissions of just-created absolute-named
50393         directories.
50394         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50395         to restore initial working directory.
50396         * lib/mkdir-p.c (make_dir_parents): New parameter:
50397         different_working_dir, to tell caller if/when we change the working
50398         directory and are unable to return to the initial one.
50399         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50400         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50401         `return false'.  This fixes a bug introduced on 2004-07-30.
50402
50403         * lib/openat.c (fdopendir): Be sure to close the supplied
50404         file descriptor before returning.  This makes our replacement
50405         implementation a little closer to Solaris's, where fdopendir
50406         ties the file descriptor to the returned DIR* pointer.
50407         * lib/openat.c (unlinkat): New function.
50408         * lib/openat.h (unlinkat): Add prototype.
50409         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50410         (openat_restore_fail): Rename from openat_restore_die.
50411         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50412
50413         Provide an alternative to exiting immediately upon save_cwd or
50414         restore_cwd failure.  Now, an application can arrange e.g.,
50415         to perform a longjump in that case.
50416         * lib/openat.c: Include dirname.h.
50417         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50418         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50419         and openat_restore_die rather than calling error directly.
50420         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50421
50422         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50423         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50424         define.
50425
50426         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50427         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50428                             int utc, int nanoseconds);
50429         Background:
50430         date should not have to allocate a megabyte of virtual memory to
50431         handle a format argument like +%1048575T.  When implemented with
50432         strftime, it must allocate such a buffer, use strftime to fill it
50433         in, print it, then free it.
50434         With fprintftime, it simply prints everything and exits.
50435         With no need for memory allocation, that's one fewer way to fail.
50436         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50437         optional field width, not before, so we accept %9:z, not %:9z.
50438         (my_strftime): Be sure to use L_('x') for literals.
50439
50440         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50441         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50442         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50443         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50444         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50445         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50446         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50447         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50448         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50449         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50450         * lib/xgethostname.c, lib/xreadlink.c:
50451         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50452
50453         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50454         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50455         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50456         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50457         and don't include <sys/file.h>).
50458
50459 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50460
50461         Sync from coreutils.
50462
50463         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50464         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50465         [!LDAV_DONE]: Avoid unused variable warning.
50466
50467 2005-09-21  Bruno Haible  <bruno@clisp.org>
50468
50469         * lib/unicodeio.h (unicode_to_mb): New declaration.
50470
50471 2005-09-20  Derek Price  <derek@ximbiot.com>
50472
50473         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50474         getaddrinfo.h.
50475
50476 2005-09-20  Bruno Haible  <bruno@clisp.org>
50477
50478         * gnulib-tool: Remove trailing slashes from the values specified for
50479         --source-base, --m4-base, --tests-base, --aux-dir.
50480         Suggested by Simon Josefsson <jas@extundo.com>.
50481
50482 2005-09-20  Bruno Haible  <bruno@clisp.org>
50483
50484         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50485         func_modules_to_filelist, func_import, func_create_testdir): Make all
50486         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50487         change when gnulib-tool is invoked in a different locale.
50488
50489 2005-09-19  Simon Josefsson  <jas@extundo.com>
50490
50491         * m4/socklen.m4: Fix typo.
50492
50493 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50494
50495         Use a consistent style for including <config.h>.
50496         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50497         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50498         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50499         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50500         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50501         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50502         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50503         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50504         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50505         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50506         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50507         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50508         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50509         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50510         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50511         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50512         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50513         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50514         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50515         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50516         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50517         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50518         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50519         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50520         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50521         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50522         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50523         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50524         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50525         lib/xstrtoumax.c, lib/yesno.c:
50526         Standardize inclusion of config.h.
50527         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50528         lib/inttostr.h:  Removed inclusion of config.h from header files.
50529         * lib/inttostr.c:  Adjusted in-tree users.
50530         * lib/timespec.h: Remove superfluous warning to include config.h.
50531         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50532         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50533         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50534         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50535         config.h with HAVE_CONFIG_H.
50536
50537 2005-09-19  Jim Meyering  <jim@meyering.net>
50538
50539         * modules/pathmax (License): Change to LGPL.
50540
50541 2005-09-19  Derek Price  <derek@ximbiot.com>
50542
50543         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50544
50545 2005-09-19  Bruno Haible  <bruno@clisp.org>
50546
50547         * gnulib-tool (import): Provide default for --tests-base.
50548
50549 2005-09-19  Bruno Haible  <bruno@clisp.org>
50550
50551         * doc/quote.texi: New file, extracted from gnulib.texi.
50552         * doc/ctime.texi: New file, extracted from gnulib.texi.
50553         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50554         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50555         * doc/gnulib.texi: Include them.
50556
50557 2005-09-18  Bruno Haible  <bruno@clisp.org>
50558
50559         Portability fix.
50560         * gnulib-tool (func_readlink): New function.
50561         (func_ln_if_changed): Use it.
50562
50563 2005-09-18  Bruno Haible  <bruno@clisp.org>
50564
50565         * gnulib-tool: Support --with-tests also with --import.
50566         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50567         (func_import): Use variables $testsbase and $inctests. Emit a
50568         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50569         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50570         SUBDIRS += $testsdir.
50571         (func_create_testdir): Update.
50572
50573 2005-09-18  Bruno Haible  <bruno@clisp.org>
50574
50575         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50576         instead of $dry_run.
50577         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50578         (func_ln_if_changed): Don't handle dry-run here.
50579         (func_import): In dry-run mode, detect more precisely which actions
50580         would be performed, and don't use "...ing" verbs.
50581
50582 2005-09-18  Bruno Haible  <bruno@clisp.org>
50583
50584         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50585         (func_import): Use join on two temporary files instead of three nested
50586         loops, in order to determine which files are new or old.
50587
50588 2005-09-18  Bruno Haible  <bruno@clisp.org>
50589
50590         * gnulib-tool (func_import): Comment out code that spits out the
50591         new files with --dry-run.
50592
50593 2005-09-18  Bruno Haible  <bruno@clisp.org>
50594
50595         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50596
50597 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50598
50599         * lib/stat-time.h: New file.
50600         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50601         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50602         in a different way.
50603         (timespec_cmp): New function.
50604         * lib/utimecmp.c: Include stat-time.h.
50605         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50606         members exist, not on the obsolescent ST_MTIM_NSEC.
50607         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50608
50609 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50610
50611         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50612
50613 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50614
50615         * MODULES.html.sh (File system functions): Add stat-time.
50616         * modules/stat-time: New file.
50617         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50618         is now done in a different way, by the stat-time module.
50619         * modules/utimecmp (Depends-on): Add stat-time.
50620
50621 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50622
50623         * m4/st_mtim.m4: Remove.  Superseded by...
50624         * m4/stat-time.m4: New file.
50625         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50626         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50627
50628 2005-09-15  Derek Price  <derek@ximbiot.com>
50629
50630         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50631
50632 2005-09-15  Derek Price  <derek@ximbiot.com>
50633
50634         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50635         * lib/regex_internal.c: Ditto, using this...
50636         (__GNUC_PREREQ): ...new macro.
50637         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50638         using...
50639         (__GNUC_PREREQ): ...this new macro.
50640
50641         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50642
50643 2005-09-15  Derek Price  <derek@ximbiot.com>
50644             Paul Eggert  <eggert@cs.ucla.edu>
50645
50646         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50647         changes, consolidating in...
50648         * lib/regex_internal.h: ...this file.
50649
50650 2005-09-13  Jim Meyering  <jim@meyering.net>
50651
50652         * lib/canon-host.c: Filter through gnu indent and reword comments
50653         slightly.
50654         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50655
50656 2005-09-13  Derek Price  <derek@ximbiot.com>
50657
50658         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50659         failure.
50660         Reported by Jim Meyering  <jim@meyering.net>.
50661
50662 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50663
50664         * lib/base64.c: Typo.
50665         (base64_encode): Put b64str in initialized data section.
50666
50667 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50668
50669         Merge glibc and coreutils changes into gnulib, plus a few
50670         extra fixes.
50671         * lib/md5.c: Use #error rather than a string.
50672         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50673         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50674         (__attribute__): Define to empty for non recent-GCC.
50675         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50676         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50677         Renamed from their non-__ counterparts, with new macros replacing
50678         them if not _LIBC.  Add __THROW attribute.
50679         (rol): Remove.
50680         (struct md5_ctx): Align buffer if using GCC.
50681         * lib/sha1.h (struct sha1_ctx): Likewise.
50682         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50683         The old name was backwards.
50684         (NOTSWAP): Remove; not used.
50685         (rol): New macro, moved here from md5.h.
50686         (sha1_process_block): Remove a FIXME that doesn't make sense.
50687
50688 2005-09-12  Derek Price  <derek@ximbiot.com>
50689
50690         Return usable errors from canon-host.
50691         * lib/canon-host.h: New file.
50692         * lib/canon-host.c (canon_host): Wrap...
50693         (canon_host_r): ...this new function, which now relies exclusively on
50694         getaddrinfo.
50695         (ch_strerror): New function.
50696         (last_cherror): New global.
50697         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50698         interface.
50699         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50700         void *.
50701         (freeaddrinfo): Free ai->ai_canonname when set.
50702
50703 2005-09-12  Derek Price  <derek@ximbiot.com>
50704
50705         Make canon-host require getaddrinfo.
50706         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50707         AC_LIBSOURCE canon-host.h.  Call...
50708         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50709         gl_GETADDRINFO.
50710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50711
50712 2005-09-12  Derek Price  <derek@ximbiot.com>
50713
50714         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50715         LGPL.
50716         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50717
50718 2005-09-12  Derek Price  <derek@ximbiot.com>
50719
50720         * lib/gai_strerror.c: Include config.h when available.  Include
50721         getaddrinfo.h before other headers to test interface.
50722         Reported by Larry Jones <lawrence.jones@ugs.com>.
50723
50724 2005-09-12  Derek Price  <derek@ximbiot.com>
50725             Paul Eggert  <eggert@cs.ucla.edu>
50726
50727         * modules/glob (Files): Add glob-libc.h.
50728
50729 2005-09-12  Derek Price  <derek@ximbiot.com>
50730             Paul Eggert  <eggert@cs.ucla.edu>
50731
50732         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50733         glob_.h, glob-libc.h.
50734         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50735
50736 2005-09-12  Derek Price  <derek@ximbiot.com>
50737             Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50740         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50741         protecting things that should be done only in gnulib contexts.
50742         * lib/glob_.h: New file, containing only the glob things needed for
50743         gnulib.
50744         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50745         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50746         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50747         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50748         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50749         and to respect the namespace rules better.
50750
50751 2005-09-08  Simon Josefsson  <jas@extundo.com>
50752
50753         * modules/socklen: New file.
50754
50755 2005-09-08  Simon Josefsson  <jas@extundo.com>
50756
50757         * m4/socklen.m4: New file.
50758
50759 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50760
50761         * modules/utimens (Files): Add m4/utimbuf.m4, since
50762         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50763         Reported by Sergey Poznyakoff.
50764
50765 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50766
50767         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50768         definitions, since that's the preferred style in glibc.
50769         Fix a minor spacing issue, and update copyright notice to match
50770         glibc's.
50771
50772 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50773
50774         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50775
50776 2005-09-06  Simon Josefsson  <jas@extundo.com>
50777
50778         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50779         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50780
50781 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50782
50783         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50784         warning.
50785
50786 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50787
50788         * config/srclist.txt: Add glibc bug 1302.
50789
50790 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50791
50792         Change bitset word type from unsigned int to unsigned long int,
50793         as this has better performance on typical 64-bit hosts.
50794         Port bitset code to hosts with unusual word sizes.
50795         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50796         (build_collating_symbol):
50797         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50798         argument is a bitset.  This is merely a style issue, but it makes
50799         it clearer that an entire array is expected.
50800         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50801         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50802         Port to the case where bitset_word is not the same as unsigned int.
50803         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50804         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50805         Likewise.
50806         * lib/regexec.c (check_dst_limits_calc_pos_1,
50807         check_subexp_matching_top):
50808         (build_trtable, group_nodes_into_DFAstates):
50809         Likewise.
50810         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50811         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50812         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50813         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50814         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50815         * lib/regcomp.c (optimize_subexps, lower_subexp):
50816         Work even if bitset_word has holes in its bitwise representation.
50817         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50818         * lib/regexec.c (check_dst_limits_calc_pos_1,
50819         check_subexp_matching_top):
50820         Likewise.
50821         * lib/regex_internal.c (re_string_reconstruct):
50822         Don't assume UCHAR_MAX == 255.
50823         * lib/regex_internal.h (bitset_set_all): Likewise.
50824         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50825         All uses changed.
50826         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50827         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50828         All uses changed.
50829         (BITSET_WORD_MAX): New macro.
50830         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50831         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50832         (bitset_empty, bitset_copy):
50833         Prefer sizeof (bitset) to multiplying it out ourselves.
50834         (bitset_not_merge): Remove; unused.
50835         (bitset_contain): Return bool, not unsigned int with one bit on.
50836         All callers changed.
50837         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50838         alignment than re_node_set; do this by defining a new internal
50839         type struct dests_alloc and using it to allocate memory.
50840
50841 2005-09-05  Bruno Haible  <bruno@clisp.org>
50842
50843         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50844         links.
50845
50846 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50847
50848         * modules/size_max (Makefile.am): Add size_max.h
50849
50850 2005-09-04  Derek Price  <derek@ximbiot.com>
50851
50852         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50853
50854 2005-09-03  Simon Josefsson  <jas@extundo.com>
50855
50856         * gnulib-tool: Fix typo.
50857
50858 2005-09-03  Simon Josefsson  <jas@extundo.com>
50859
50860         * config/srclist.txt: Add glibc bug 1293.
50861
50862 2005-09-03  Derek Price  <derek@ximbiot.com>
50863
50864         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50865         From Larry Jones <lawrence.jones@ugs.com>.
50866
50867 2005-09-02  Simon Josefsson  <jas@extundo.com>
50868
50869         * modules/socklen: New file.
50870
50871 2005-09-02  Simon Josefsson  <jas@extundo.com>
50872
50873         * modules/havelib: New module.
50874
50875         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50876         Use havelib.
50877
50878 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50879
50880         Check for arithmetic overflow when calculating sizes, to prevent
50881         some buffer-overflow issues.  These patches are conservative, in the
50882         sense that when I couldn't determine whether an overflow was possible,
50883         I inserted a run-time check.
50884         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50885         macros.
50886         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50887         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50888         (re_xnrealloc, re_x2nrealloc): New inline functions.
50889         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50890         parse_bracket_exp):
50891         (build_equiv_class, build_charclass): Check for arithmetic overflow
50892         in size expression calculations.
50893         * lib/regex_internal.c (re_string_realloc_buffers):
50894         (build_wcs_upper_buffer, re_node_set_add_intersect):
50895         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50896         (re_dfa_add_node, register_state): Likewise.
50897         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50898         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50899         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50900         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50901
50902 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50903
50904         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50905         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50906
50907 2005-09-02  Bruno Haible  <bruno@clisp.org>
50908
50909         Support for lib vs. lib64 distinction on biarch platforms.
50910         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50911         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50912         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50913
50914 2005-09-02  Bruno Haible  <bruno@clisp.org>
50915
50916         * gnulib-tool (import): In the other first-use case, provide defaults
50917         as well.
50918
50919 2005-09-02  Bruno Haible  <bruno@clisp.org>
50920
50921         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50922         patches not yet found in the latest gettext release.
50923
50924 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50925
50926         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50927         to avoid a collision with bits/local_lim.h in glibc.
50928         All uses changed.  Problem reported by Dmitry V. Levin in
50929         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50930
50931         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50932         bugs in int versus size_t comparisons.
50933         (re_string_context_at): Fix bug where the code assumed that
50934         Idx is signed.
50935
50936         Use bool where appropriate.
50937         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50938         All callers changed.
50939         (calc_eclosure_iter): Likewise, for ROOT arg.
50940         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50941         (build_charclass_op): Likewise, for NON_MATCH arg.
50942         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50943         (re_string_construct_common): Likewise, for ICASE arg.
50944         * lib/regexec.c (re_search_2_stub, re_search_stub):
50945         Likewise, for RET_LEN arg.
50946         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50947         (set_regs): Likewise, for FL_BACKTRACK arg.
50948         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50949         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50950         (calc_eclosure_iter, parse_bracket_exp):
50951         Use bool for internal variables that are booleans.
50952         * lib/regexec.c (re_search_internal, check_matching,
50953         proceed_next_node):
50954         (set_regs, build_sifted_states, sift_states_bkref):
50955         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50956         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50957         (find_collation_sequence_value):
50958         Likewise.
50959         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50960         (re_node_set_compare):
50961         Return bool, not int. All callers changed.
50962         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50963         (build_trtable, check_node_accept): Likewise.
50964         * lib/regex_internal.h: Include stdbool.h.
50965
50966         Fix bugs uncovered when converting to bool.
50967         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50968         failure instead of charging ahead blindly.
50969         * lib/regex_internal.c (register_state): Likewise.
50970         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50971         for freeing internal storage.
50972         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50973         bitset pieces used as boolean, to avoid undefined behavior
50974         on hosts that do int overflow checking.
50975
50976 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50977
50978         * config/srclist.txt: Add glibc bugs 1285-1287.
50979
50980 2005-09-01  Jim Meyering  <jim@meyering.net>
50981
50982         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50983         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50984         Require gl_STAT_MACROS, too.
50985
50986 2005-09-01  Bruno Haible  <bruno@clisp.org>
50987
50988         * gnulib-tool (import): In the first-use case, provide defaults.
50989
50990 2005-09-01  Bruno Haible  <bruno@clisp.org>
50991
50992         * gnulib-tool (func_import): Remove the .tmp files.
50993
50994 2005-09-01  Bruno Haible  <bruno@clisp.org>
50995
50996         * gnulib-tool (func_import): Fix handling of symbolic links.
50997
50998 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50999
51000         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
51001         old glibc regex code mishandles strings longer than 2**31 bytes.
51002         This patch fixes this when the regex code is used in gnulib
51003         (i.e., outside glibc).
51004
51005         This patch should not affect the use of the regex code inside
51006         glibc.  No doubt this problem also needs to be handled for glibc
51007         as well, but the result will be an incompatible change to the
51008         glibc ABI, and the old ABI will have to be supported too.  That
51009         can be the the subject for another patch.
51010
51011         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
51012         governing whether the rest of this patch is active.  By default,
51013         the macro is disabled and the patch has no effect.
51014         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
51015         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
51016         (struct re_pattern_buffer, re_search, re_search_2, re_match):
51017         (re_match_2, re_set_registers): Use the new types.
51018         * lib/regex_internal.h (Idx, re_hashval_t): New types.
51019         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
51020         New macros.
51021         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
51022         (re_string_context_at, bin_tree_t, re_dfastate_t):
51023         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
51024         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
51025         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
51026         (re_string_char_size_at, re_string_wchar_at):
51027         (re_string_elem_size_at):
51028         Use the new types and macros to port to 64-bit hosts.
51029         Use unsigned types for internal values, so that the code
51030         mostly works even for arrays larger than SSIZE_MAX.
51031         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
51032         (search_duplicated_node, calc_eclosure_iter, fetch_number):
51033         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
51034         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
51035         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
51036         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
51037         (calc_inveclosure, parse_dup_op, build_range_exp):
51038         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
51039         (fetch_number, create_token_tree, mark_opt_subexp):
51040         Likewise.
51041         * lib/regex_internal.c (re_string_construct_common,
51042         create_ci_newstate):
51043         (create_cd_newstate, re_string_allocate, re_string_construct):
51044         (re_string_realloc_buffers, build_wcs_upper_buffer):
51045         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51046         (re_string_reconstruct, re_string_peek_byte_case):
51047         (re_string_fetch_byte_case, re_string_context_at):
51048         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51049         (re_node_set_init_copy, re_node_set_add_intersect):
51050         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51051         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51052         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51053         (re_acquire_state, re_acquire_state_context, register_state):
51054         Likewise.
51055         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
51056         search_cur_bkref_entry):
51057         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
51058         (re_search_internal, re_search_2_stub, re_search_stub)
51059         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
51060         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
51061         (update_cur_sifted_state, check_dst_limits):
51062         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51063         (check_subexp_limits, sift_states_bkref, merge_state_array):
51064         (check_subexp_matching_top, get_subexp, get_subexp_sub):
51065         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
51066         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51067         (expand_bkref_cache, check_node_accept_bytes):
51068         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
51069         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
51070         (acquire_init_state_context, check_halt_node_context):
51071         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
51072         (sift_states_backward, clean_state_log_if_needed):
51073         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
51074         (find_recover_state, transit_state_sb, transit_state_mb):
51075         (transit_state_bkref, build_trtable, match_ctx_clean):
51076         Likewise.
51077         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
51078         to work around an assumption that REG_MISSING is negative.
51079
51080         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
51081         (seek_collating_symbol_entry) [defined _LIBC]:
51082         (lookup_collation_sequence_value) [defined _LIBC]:
51083         (build_range_exp, build_collating_symbol) [defined _LIBC]:
51084         Use prototypes rather than old-style function definitions.
51085         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
51086         (transit_state_sb) [0]:
51087         (find_collation_sequence_value) [defined _LIBC]: Likewise.
51088
51089         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
51090         rm_eo.
51091
51092         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
51093         (optimize_subexps, lower_subexp):
51094         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
51095         since the signed shift might overflow.  Use 1u<<31 instead.
51096         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
51097         Likewise.
51098         * lib/regexec.c (check_dst_limits_calc_pos_1,
51099         check_subexp_matching_top): Likewise.
51100
51101         * lib/regcomp.c (optimize_subexps, lower_subexp):
51102         Use CHAR_BIT rather than 8, for clarity.
51103         * lib/regexec.c (check_dst_limits_calc_pos_1):
51104         (check_subexp_matching_top): Likewise.
51105         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
51106         have to worry about portability issues when shifting it left.
51107         Remove no-longer-needed test for table_size > 0.
51108         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
51109         in a word, as the resulting behavior is undefined.
51110         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
51111         in one case, a <= should have been an <, and in another case the
51112         whole test was missing.
51113         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
51114         the standard name CHAR_BIT.
51115         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
51116         this is not true on one's complement and signed-magnitude hosts.
51117
51118         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
51119         next_last_offset.
51120         (struct re_dfa_t): Remove unused member states_alloc.
51121         * lib/regcomp.c (init_dfa): Don't initialize unused members.
51122
51123 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51124
51125         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
51126         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
51127         and large-file glibc and in 32-bit large-file Solaris.
51128
51129 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51130
51131         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
51132         lengths fit in regoff_t; this isn't true if regoff_t is the same
51133         width as size_t.
51134         * lib/regex.c (re_search_internal): 5th arg is LAST_START
51135         (= START + RANGE) instead of RANGE.  This avoids overflow
51136         problems when regoff_t is the same width as size_t.
51137         All callers changed.
51138         (re_search_2_stub): Check for overflow when adding the
51139         sizes of the two strings.
51140         (re_search_stub): Check for overflow when adding START
51141         to RANGE; if it occurs, substitute the extreme value.
51142
51143 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51144
51145         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
51146
51147 2005-08-31  Jim Meyering  <jim@meyering.net>
51148
51149         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
51150         a pointer-to-const.
51151         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
51152         (register_state): Likewise.
51153         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
51154         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51155         (group_nodes_into_DFAstates): Likewise.
51156
51157 2005-08-31  Jim Meyering  <jim@meyering.net>
51158
51159         * check-module: Add a FIXME comment.
51160
51161 2005-08-31  Eric Blake  <ebb9@byu.net>
51162
51163         * modules/unistd-safer (Files): Add unistd--.h.
51164         * modules/stdio-safer (Files): Add stdio--.h.
51165
51166 2005-08-31  Derek Price  <derek@ximbiot.com>
51167
51168         * lib/getdelim.c (getdelim): Return EOF on EOF.
51169         Reported by Larry Jones <lawrence.jones@ugs.com>.
51170
51171 2005-08-31  Bruno Haible  <bruno@clisp.org>
51172
51173         Avoid unnecessary diffs in the generated lib/Makefile.am.
51174         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
51175         the generated files.
51176         (func_import): Don't set cmd.
51177
51178 2005-08-31  Bruno Haible  <bruno@clisp.org>
51179
51180         * lib/strstr.c: Include <stddef.h>, for NULL.
51181         * lib/strcasestr.c: Likewise.
51182         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51183
51184 2005-08-31  Bruno Haible  <bruno@clisp.org>
51185
51186         * gnulib-tool: New option --macro-prefix.
51187         (func_import): Use macro_prefix.
51188         (import): Handle option --macro-prefix.
51189
51190 2005-08-31  Bruno Haible  <bruno@clisp.org>
51191
51192         * gnulib-tool (import): Rename most ac_* variables to cached_*.
51193         Also use new variables cached_lgpl, cached_libtool.
51194
51195 2005-08-31  Bruno Haible  <bruno@clisp.org>
51196
51197         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
51198         always instantiating them.
51199
51200 2005-08-31  Bruno Haible  <bruno@clisp.org>
51201
51202         * gnulib-tool (func_import): Read the previous cached settings
51203         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
51204         earlier added by gnulib but are now dropped. Warn when a gnulib file
51205         overwrites a non-gnulib file.
51206
51207 2005-08-31  Bruno Haible  <bruno@clisp.org>
51208
51209         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
51210         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
51211         projects that don't keep autogenerated files in CVS. Put into
51212         actioncmd only the specified modules, not the transitive closure.
51213
51214 2005-08-31  Bruno Haible  <bruno@clisp.org>
51215
51216         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
51217         Create directories that shall be filled.
51218         (import): Don't look for gl_* macros in configure.ac. Recurse across
51219         all directories containing a gnulib-cache.m4 files, if meaningful.
51220
51221 2005-08-31  Bruno Haible  <bruno@clisp.org>
51222
51223         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51224         (import): Set seen_libtool when we see gl_LIBTOOL.
51225
51226 2005-08-31  Bruno Haible  <bruno@clisp.org>
51227
51228         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51229         declaration macro definitions from generated gnulib.m4.
51230
51231 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51232
51233         * lib/iconvme.h: Add prototype for iconv_alloc.
51234
51235 2005-08-29  Simon Josefsson  <jas@extundo.com>
51236
51237         * lib/iconvme.c: Fix errno.
51238
51239 2005-08-29  Bruno Haible  <bruno@clisp.org>
51240
51241         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51242         that it works when the directory contains spaces.
51243
51244 2005-08-29  Bruno Haible  <bruno@clisp.org>
51245
51246         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51247
51248 2005-08-29  Bruno Haible  <bruno@clisp.org>
51249
51250         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51251         Emit more advice.
51252
51253 2005-08-29  Bruno Haible  <bruno@clisp.org>
51254         and Stepan Kasal  <kasal@ucw.cz>
51255
51256         * check-module: If more parameters are given, check each of them
51257         separately; add more exceptions, as noted by Jim Meyering.
51258         (check_module): New procedure.
51259         (%exempt_header): Now contains all exceptions.
51260
51261 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51262
51263         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51264
51265 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51266
51267         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51268
51269 2005-08-28  Bruno Haible  <bruno@clisp.org>
51270
51271         * m4/gnulib-tool.m4: New file.
51272
51273 2005-08-27  Jim Meyering  <jim@meyering.net>
51274
51275         * modules/unistd-safer (Files): Add pipe-safer.c.
51276         * modules/fcntl-safer (Files): Add creat-safer.c.
51277
51278 2005-08-27  Jim Meyering  <jim@meyering.net>
51279
51280         * m4/stdlib-safer.m4: New file.  From coreutils.
51281         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51282         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51283         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51284         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51285         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51286
51287 2005-08-27  Jim Meyering  <jim@meyering.net>
51288
51289         * lib/fopen-safer.c: Merge minor changes from coreutils.
51290         * lib/dup-safer.c: Likewise.
51291         * lib/fd-safer.c: Likewise.
51292
51293         Merge from coreutils.
51294         * lib/stdio--.h: New file.
51295         * lib/stdlib--.h: New file.
51296         * lib/mkstemp-safer.c: New file.
51297
51298         GNU tar needs these.
51299         * lib/pipe-safer.c: New file.
51300         * lib/creat-safer.c: New file.
51301         * lib/fcntl--.h (creat): Define to creat_safer.
51302         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51303         * lib/unistd--.h (pipe): Define to pipe_safer.
51304         * lib/unistd-safer.h: Declare pipe_safer.
51305
51306 2005-08-26  Simon Josefsson  <jas@extundo.com>
51307
51308         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51309         Haible <bruno@clisp.org>.
51310
51311 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51312
51313         * lib/regex_internal.h: Remove all references to
51314         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51315         or better.
51316         (bitset_not, bitset_merge, bitset_not_merge):
51317         (bitset_mask, re_string_allocate, re_string_construct):
51318         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51319         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51320         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51321         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51322         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51323         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51324         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51325         (re_acquire_state_context):
51326         Remove unnecessary forward decls.
51327         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51328         Put __attribute at function definition,
51329         now that the function decl has been removed.
51330         * lib/regex_internal.c (re_string_peek_byte_case):
51331         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51332         Likewise.
51333
51334 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51335
51336         * m4/regex.m4: Add AC_PREREQ(2.50).
51337         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51338
51339 2005-08-25  Simon Josefsson  <jas@extundo.com>
51340
51341         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51342         __fsetlocking.
51343
51344 2005-08-25  Simon Josefsson  <jas@extundo.com>
51345
51346         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51347         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51348         GLIBC specific code.
51349
51350 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51351
51352         Make regex safe for g++.  This fixes one real bug (an "err"
51353         that should have been "*err").  g++ problem reported by
51354         Sam Steingold.
51355         * lib/regex_internal.h (re_calloc): New macro, consistent with
51356         re_malloc etc.  All callers of calloc changed to use re_calloc.
51357         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51358         not int.  All callers changed.
51359         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51360         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51361         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51362         (find_recover_state): Change "err" to "*err"; this fixes what
51363         appears to be a real bug.
51364         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51365         versus int.
51366
51367 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51368
51369         * modules/regex (Depends-on): Add malloc, since the code
51370         assumes that !malloc(0) means failure.
51371
51372 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51373
51374         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51375
51376         alloca modernization/simplification for regex.
51377         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51378         needs to be at the start of the file, and can be moved into
51379         regex_internal.h and simplified.
51380         * lib/regex_internal.h: Include <alloca.h>.
51381         (__libc_use_alloca) [!defined _LIBC]: New macro.
51382         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51383         now works outside glibc.
51384
51385 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51386
51387         * config/srclist.txt: Add glibc bugs 1241, 1245.
51388
51389 2005-08-25  Jim Meyering  <jim@meyering.net>
51390
51391         * lib/open-safer.c: Include <config.h>.
51392         Otherwise, we'd lose LARGEFILE support in any file using
51393         e.g. "fcntl--.h"
51394
51395 2005-08-25  Bruno Haible  <bruno@clisp.org>
51396
51397         * m4/minmax.m4: Require autoconf 2.52.
51398         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51399         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51400         alternatives of translit over the alphabet.
51401         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51402
51403 2005-08-24  Simon Josefsson  <jas@extundo.com>
51404
51405         * tests/test-getpass.c: New file.
51406
51407 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51408
51409         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51410         for GNU regex features.
51411
51412 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51413
51414         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51415         * lib/regex.h (regerror): Likewise.
51416
51417         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51418         requires this.  (The code never needed it.)
51419
51420         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51421         All uses of recently-renamed identifiers changed to use the new,
51422         POSIX-compliant names.  The code will build and run just fine
51423         without these changes, but it's better to eat our own dog food
51424         and use the standard-conforming names.
51425
51426         * lib/regex.h: Fix a multitude of POSIX name space violations.
51427         These changes have an effect only for programs that define
51428         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51429         do not change anything for programs compiled in the normal way.
51430         Also, there is no effect on the ABI.
51431
51432         (_REGEX_SOURCE): New macro.
51433         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51434         defined and _GNU_SOURCE is not; this fixes a name space violation.
51435
51436         Rename the following macros to obey POSIX requirements.
51437         The old names are still visible as macros if _REGEX_SOURCE is defined.
51438         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51439         RE_BACKSLASH_ESCAPE_IN_LISTS.
51440         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51441         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51442         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51443         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51444         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51445         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51446         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51447         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51448         (REG_INTERVALS): renamed from RE_INTERVALS.
51449         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51450         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51451         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51452         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51453         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51454         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51455         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51456         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51457         RE_UNMATCHED_RIGHT_PAREN_ORD.
51458         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51459         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51460         (REG_DEBUG): renamed from RE_DEBUG.
51461         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51462         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51463         unusual, since we can't clash with the POSIX REG_ICASE.
51464         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51465         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51466         (REG_NO_SUB): renamed from RE_NO_SUB.
51467         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51468         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51469         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51470         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51471         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51472         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51473         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51474         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51475         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51476         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51477         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51478         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51479         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51480         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51481         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51482         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51483         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51484         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51485         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51486         (REG_FIXED): Renamed from REGS_FIXED.
51487         (REG_NREGS): Renamed from RE_NREGS.
51488
51489         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51490         of other REG_* macros, since POSIX says the user is allowed to
51491         #undef these macros selectively.
51492
51493         (reg_errcode_t): Update comment stating what other tables need
51494         to be consistent.
51495
51496         Rename the following enum values to obey POSIX requirements.
51497         The old names are still visible as macros.
51498         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51499         is not defined, since GNU is supposed to be a superset of POSIX as
51500         much as possible, and since we want reg_errcode_t to be a signed
51501         type for implementation consistency.
51502         (_REG_NOERROR): Renamed from REG_NOERROR.
51503         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51504         (_REG_BADPAT): Renamed from REG_BADPAT.
51505         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51506         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51507         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51508         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51509         (_REG_EBRACK): Renamed from REG_EBRACK.
51510         (_REG_EPAREN): Renamed from REG_EPAREN.
51511         (_REG_EBRACE): Renamed from REG_EBRACE.
51512         (_REG_BADBR): Renamed from REG_BADBR.
51513         (_REG_ERANGE): Renamed from REG_ERANGE.
51514         (_REG_ESPACE): Renamed from REG_ESPACE.
51515         (_REG_BADRPT): Renamed from REG_BADRPT.
51516         (_REG_EEND): Renamed from REG_EEND.
51517         (_REG_ESIZE): Renamed from REG_ESIZE.
51518         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51519         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51520         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51521         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51522         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51523
51524         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51525         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51526         changed.  But support the old name if the new one is not defined
51527         and if _REGEX_SOURCE.
51528
51529         Change the following member names in struct re_pattern_buffer.
51530         The old names are still supported if !_REGEX_SOURCE.
51531         The new names are always supported, regardless of _REGEX_SOURCE.
51532         (re_buffer): Renamed from buffer.
51533         (re_allocated): Renamed from allocated.
51534         (re_used): Renamed from used.
51535         (re_syntax): Renamed from syntax.
51536         (re_fastmap): Renamed from fastmap.
51537         (re_translate): Renamed from translate.
51538         (re_can_be_null): Renamed from can_be_null.
51539         (re_regs_allocated): Renamed from regs_allocated.
51540         (re_fastmap_accurate): Renamed from fastmap_accurate.
51541         (re_no_sub): Renamed from no_sub.
51542         (re_not_bol): Renamed from not_bol.
51543         (re_not_eol): Renamed from not_eol.
51544         (re_newline_anchor): Renamed from newline_anchor.
51545
51546         Change the following member names in struct re_registers.
51547         The old names are still supported if !_REGEX_SOURCE.
51548         The new names are always supported, regardless of _REGEX_SOURCE.
51549         (rm_num_regs): Renamed from num_regs.
51550         (rm_start): Renamed from start.
51551         (rm_end): Renamed from end.
51552
51553         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51554         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51555         Prepend __ to parameter names.
51556
51557         Undo yesterday's changes.
51558
51559 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51560
51561         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51562         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51563         lib/regex.c.
51564
51565 2005-08-24  Jim Meyering  <jim@meyering.net>
51566
51567         Sync from coreutils.
51568         * m4/fcntl-safer.m4: New file.
51569
51570         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51571         and object files for this module.
51572
51573 2005-08-24  Jim Meyering  <jim@meyering.net>
51574
51575         Sync from coreutils.
51576         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51577
51578 2005-08-24  Jim Meyering  <jim@meyering.net>
51579
51580         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51581         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51582
51583 2005-08-24  Jim Meyering  <jim@meyering.net>
51584
51585         * modules/fcntl-safer: New module.
51586         * modules/fts (Depends-on): Add fcntl-safer.
51587         * MODULES.html.sh (File descriptor based Input/Output):
51588         Add fcntl-safer.
51589
51590 2005-08-24  Bruno Haible  <bruno@clisp.org>
51591
51592         Support for unit test modules.
51593         * modules/README: Mention tests modules.
51594         * modules/TEMPLATE-TESTS: New file.
51595         * gnulib-tool: New options --extract-tests-module, --with-tests and
51596         --tests-base (unused for the moment).
51597         (testsbase, inctests): New variables.
51598         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51599         (func_verify_module): Exclude TEMPLATE-TESTS.
51600         (func_verify_nontests_module, func_verify_tests_module): New functions.
51601         (func_get_dependencies): Add implicit dependency for tests modules.
51602         (func_get_tests_module): New function.
51603         (func_modules_transitive_closure): When --with-tests was specified,
51604         include the unit tests as well, unless explicitly avoided.
51605         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51606         (func_emit_tests_Makefile_am): New function.
51607         (func_create_testdir): When --with-tests was specified, emit a
51608         tests/ directory.
51609         * MODULES.html.sh (Future developments): Update.
51610
51611 2005-08-24  Bruno Haible  <bruno@clisp.org>
51612
51613         * modules/tls-tests: New file.
51614         * tests/test-tls.c: New file, from GNU gettext.
51615
51616 2005-08-24  Bruno Haible  <bruno@clisp.org>
51617
51618         * modules/lock-tests: New file.
51619         * tests/test-lock.c: New file, from GNU gettext.
51620
51621 2005-08-24  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/lock.h: Add multiple inclusion guard.
51624         * lib/tls.h: Add multiple inclusion guard.
51625
51626 2005-08-24  Bruno Haible  <bruno@clisp.org>
51627
51628         * gnulib-tool: Add support for the --aux-dir option to
51629         --create-testdir, --create-megatestdir, --test, --megatest.
51630         (func_create_testdir, func_create_megatestdir): Optionally emit a
51631         AC_CONFIG_AUX_DIR directive.
51632         (create-testdir, create-megatestdir, test, megatest): Provide a
51633         default value for $auxdir.
51634
51635 2005-08-24  Bruno Haible  <bruno@clisp.org>
51636
51637         * gnulib-tool (import): Use compound statement instead of subshell
51638         where possible.
51639
51640 2005-08-24  Bruno Haible  <bruno@clisp.org>
51641
51642         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51643
51644 2005-08-24  Bruno Haible  <bruno@clisp.org>
51645
51646         * gnulib-tool (func_version): Update.
51647
51648 2005-08-24  Bruno Haible  <bruno@clisp.org>
51649
51650         * gnulib-tool (func_import, func_create_testdir,
51651         func_create_megatestdir): Quote all autoconf macro arguments.
51652
51653 2005-08-24  Bruno Haible  <bruno@clisp.org>
51654
51655         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51656         option --force, because --force causes the aclocal.m4 of each
51657         subdirectory to be newer than the corresponding config.h.in.
51658
51659 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51660
51661         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51662         All contents moved to gl_REGEX.
51663         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51664         assume that it does.
51665
51666 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51667
51668         * lib/regex.h (REG_NOSYS)
51669         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51670         Define, since POSIX requires it as of 2001.
51671         (_REG_ENOSYS)
51672         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51673         New private symbol, used to keep the enum signed in all cases.
51674         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51675         Youngman in
51676         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51677
51678         * lib/regex_internal.c (re_string_skip_chars, register_state):
51679         (calc_state_hash):
51680         Remove forward decls; no longer needed now that we use prototypes.
51681         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51682         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51683         (clean_state_log_if_needed): Likewise.
51684
51685 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51686
51687         * config/srclist.txt: Add glibc bugs 1231-1233.
51688
51689 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51690
51691         Fix problems reported by Sam Steingold in
51692         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51693         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51694         assumed that reg_errcode_t is a signed type, which is not
51695         necessarily true if _XOPEN_SOURCE is not defined.
51696         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51697         since some compilers warn about it otherwise.
51698
51699 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51700
51701         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51702         (init_word_char, create_initial_state, duplicate_node_closure):
51703         (fetch_token, peek_token_bracket, build_range_exp):
51704         (build_collating_symbol): Remove forward decls; no longer needed
51705         now that we use prototypes.
51706
51707         * lib/regcomp.c:
51708         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51709         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51710         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51711         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51712         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51713         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51714         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51715         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51716         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51717         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51718         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51719         (build_charclass, build_charclass_op, fetch_number, create_tree):
51720         (create_token_tree, mark_opt_subexp, duplicate_tree):
51721         Use prototypes rather than old-style definitions.
51722
51723         * lib/regex_internal.c:
51724         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51725         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51726         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51727         (re_string_reconstruct, re_string_peek_byte_case):
51728         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51729         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51730         (re_node_set_init_copy, re_node_set_add_intersect):
51731         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51732         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51733         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51734         (re_acquire_state, re_acquire_state_context, register_state):
51735         (create_ci_newstate, create_cd_newstate, free_state):
51736         Likewise.
51737         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51738         re_search_2):
51739         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51740         (re_search_internal, prune_impossible_nodes):
51741         (acquire_init_state_context, check_matching, static):
51742         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51743         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51744         (update_regs, sift_states_backward, build_sifted_states):
51745         (clean_state_log_if_needed, merge_state_array):
51746         (update_cur_sifted_state, add_epsilon_src_nodes):
51747         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51748         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51749         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51750         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51751         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51752         (check_arrival, check_arrival_add_next_nodes):
51753         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51754         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51755         (check_node_accept_bytes, check_node_accept, extend_buffers):
51756         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51757         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51758         (sift_ctx_init):
51759         Likewise.
51760
51761         * lib/regex_internal.h:
51762         (re_string_allocate, re_string_construct, re_string_reconstruct):
51763         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51764         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51765         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51766         (re_string_context_at, re_string_peek_byte_case):
51767         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51768         is defined, since we now use prototypes always.
51769
51770         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51771         C89 or better.  All uses removed.
51772
51773 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51774
51775         * config/srclist.txt: Add glibc bugs 1220-1227.
51776
51777 2005-08-20  Jim Meyering  <jim@meyering.net>
51778
51779         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51780         of unused local, dfa.
51781
51782 2005-08-20  Bruno Haible  <bruno@clisp.org>
51783
51784         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51785
51786 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51787
51788         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51789         (re_node_set_insert_last, re_dfa_add_node):
51790         Rename local variables to avoid GCC shadowing warnings.
51791
51792 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51793
51794         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51795         [defined lint]: Suppress bogus uninitialized-variable warnings.
51796
51797         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51798         and let the caller return REG_ESPACE if out of space.  This
51799         removes an uninitialied-variable warning with GCC 4.0.1, and also
51800         avoids taking the address of a local variable.  All callers
51801         changed.
51802
51803 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51806         $LIBCSRC/posix/regexec.c.
51807         Add glibc bug 1217 for regcomp.c.
51808
51809 2005-08-19  Jim Meyering  <jim@meyering.net>
51810
51811         * lib/regexec.c (proceed_next_node): Redo local variables to
51812         avoid GCC shadowing warnings.
51813
51814 2005-08-18  Bruno Haible  <bruno@clisp.org>
51815
51816         * lib/strstr.c (strstr): Fix return value in multibyte case.
51817         * lib/strcasestr.c (strcasestr): Likewise.
51818
51819 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51820
51821         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51822
51823 2005-08-17  Jim Meyering  <jim@meyering.net>
51824
51825         Make the %s format (seconds since the epoch) work for a negative
51826         number and when used with a zero-padded field width, e.g. %015s.
51827
51828         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51829         label so that it precedes the code to set `digits'.  Otherwise,
51830         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51831         print `00-22'.  Now, it prints `-0022', as it should.
51832
51833 2005-08-17  Bruno Haible  <bruno@clisp.org>
51834
51835         * modules/strstr (Files): Add m4/mbrtowc.m4.
51836         (Depends-on): Add mbuiter.
51837
51838 2005-08-17  Bruno Haible  <bruno@clisp.org>
51839
51840         * modules/strcasestr: New file.
51841         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51842         strcasestr.
51843
51844 2005-08-17  Bruno Haible  <bruno@clisp.org>
51845
51846         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51847
51848 2005-08-17  Bruno Haible  <bruno@clisp.org>
51849
51850         * modules/mbuiter: New file.
51851         * MODULES.html.sh (Extended multibyte and wide character utilities):
51852         Add mbuiter.
51853
51854 2005-08-17  Bruno Haible  <bruno@clisp.org>
51855
51856         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51857         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51858
51859 2005-08-17  Bruno Haible  <bruno@clisp.org>
51860
51861         * m4/strcasestr.m4: New file.
51862
51863 2005-08-17  Bruno Haible  <bruno@clisp.org>
51864
51865         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51866         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51867
51868 2005-08-17  Bruno Haible  <bruno@clisp.org>
51869
51870         * lib/strcasestr.h: New file.
51871         * lib/strcasestr.c: New file.
51872
51873 2005-08-17  Bruno Haible  <bruno@clisp.org>
51874
51875         * lib/strcasecmp.c: Use mbuiter.h.
51876
51877 2005-08-17  Bruno Haible  <bruno@clisp.org>
51878
51879         * lib/mbuiter.h: New file.
51880
51881 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51882
51883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51884         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51885         and gl_GETOPT are both invoked via different paths (as happens
51886         with GNU tar CVS because it uses both argp and getopt), the former
51887         wins.
51888
51889 2005-08-16  Bruno Haible  <bruno@clisp.org>
51890
51891         * modules/tls: New file.
51892         * MODULES.html.sh (Multithreading): Add tls.
51893
51894 2005-08-16  Bruno Haible  <bruno@clisp.org>
51895
51896         * modules/strnlen1: New file.
51897         * MODULES.html.sh (String handling): Add strnlen1.
51898
51899 2005-08-16  Bruno Haible  <bruno@clisp.org>
51900
51901         * modules/strcase (Files): Add m4/mbrtowc.m4.
51902         (Depends-on): Add strnlen1, mbchar.
51903
51904 2005-08-16  Bruno Haible  <bruno@clisp.org>
51905
51906         * modules/mbiter: New file.
51907         * MODULES.html.sh (Extended multibyte and wide character utilities):
51908         Add mbiter.
51909
51910 2005-08-16  Bruno Haible  <bruno@clisp.org>
51911
51912         * modules/mbfile: New file.
51913         * MODULES.html.sh (Extended multibyte and wide character utilities):
51914         Add mbfile.
51915
51916 2005-08-16  Bruno Haible  <bruno@clisp.org>
51917
51918         * modules/mbchar: New file.
51919         * MODULES.html.sh (Extended multibyte and wide character utilities):
51920         New section.
51921
51922 2005-08-16  Bruno Haible  <bruno@clisp.org>
51923
51924         * m4/tls.m4: New file, from GNU gettext.
51925
51926 2005-08-16  Bruno Haible  <bruno@clisp.org>
51927
51928         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51929         always.
51930         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51931
51932 2005-08-16  Bruno Haible  <bruno@clisp.org>
51933
51934         * m4/mbiter.m4: New file.
51935
51936 2005-08-16  Bruno Haible  <bruno@clisp.org>
51937
51938         * m4/mbfile.m4: New file.
51939
51940 2005-08-16  Bruno Haible  <bruno@clisp.org>
51941
51942         * m4/mbchar.m4: New file.
51943
51944 2005-08-16  Bruno Haible  <bruno@clisp.org>
51945
51946         * lib/tls.h: New file, from GNU gettext.
51947         * lib/tls.c: New file, from GNU gettext.
51948
51949 2005-08-16  Bruno Haible  <bruno@clisp.org>
51950
51951         * lib/strnlen1.h: New file.
51952         * lib/strnlen1.c: New file.
51953
51954 2005-08-16  Bruno Haible  <bruno@clisp.org>
51955
51956         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51957         (mbi_init): Update.
51958         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51959         NUL byte, not after it.
51960
51961 2005-08-16  Bruno Haible  <bruno@clisp.org>
51962
51963         * lib/strcase.h (strcasecmp): Add note in comments.
51964         * lib/strncasecmp.c: Use code from strcasecmp.c.
51965         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51966         (strcasecmp): Work correctly in multibyte locales.
51967
51968 2005-08-16  Bruno Haible  <bruno@clisp.org>
51969
51970         * lib/mbiter.h: New file.
51971
51972 2005-08-16  Bruno Haible  <bruno@clisp.org>
51973
51974         * lib/mbfile.h: New file.
51975
51976 2005-08-16  Bruno Haible  <bruno@clisp.org>
51977
51978         * lib/mbchar.h: New file.
51979         * lib/mbchar.c: New file.
51980
51981 2005-08-16  Bruno Haible  <bruno@clisp.org>
51982
51983         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51984         the valid ones. Makes the comparison operations transitive:
51985         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51986         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51987
51988 2005-08-15  Simon Josefsson  <jas@extundo.com>
51989
51990         * modules/ssize_t (License): Change to 'unlimited'.
51991
51992         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51993
51994 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51995
51996         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51997         Add comments for each pending glibc patch.
51998
51999 2005-08-15  Bruno Haible  <bruno@clisp.org>
52000
52001         * lib/regex.h (__restrict_arr): Don't define to __restrict if
52002         __cplusplus is defined.
52003
52004 2005-08-14  Jim Meyering  <jim@meyering.net>
52005
52006         Sync from coreutils.
52007
52008         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
52009         Use the hash-table-based cycle-detection code not just when
52010         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
52011         Reported by James Youngman in
52012         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
52013         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
52014         FTS_TIGHT_CYCLE_CHECK.
52015         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
52016         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
52017         once again.
52018         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
52019         * lib/fts.c (fd_safer): Remove decl.
52020         Include fcntl--.h rather than unistd-safer.h
52021         (fts_safe_changedir): Don't call fd_safer; no longer needed
52022         now that we include fcntl--.h.
52023
52024 2005-08-12  Simon Josefsson  <jas@extundo.com>
52025
52026         * modules/getndelim2: Use ssize_t module.
52027         * modules/getnline: Likewise.
52028         * modules/safe-read: Likewise.
52029         * modules/xreadlink: Likewise.
52030
52031         * modules/ssize_t: New file.
52032
52033 2005-08-12  Simon Josefsson  <jas@extundo.com>
52034
52035         * m4/readline.m4: Look for termcap, curses or ncurses if required.
52036
52037 2005-08-12  Simon Josefsson  <jas@extundo.com>
52038
52039         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52040         ssize_t.
52041
52042 2005-08-12  Simon Josefsson  <jas@extundo.com>
52043
52044         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
52045         readline, getdelim and check_version.
52046         (Support for systems lacking ISO C 99: Sizes of integer types):
52047         Add size_max.
52048
52049 2005-08-12  Bruno Haible  <bruno@clisp.org>
52050
52051         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
52052
52053 2005-08-11  Simon Josefsson  <jas@extundo.com>
52054
52055         * modules/readline: New file.
52056
52057         * modules/strnlen (Files): Add strnlen.h.
52058
52059 2005-08-11  Simon Josefsson  <jas@extundo.com>
52060
52061         * m4/readline.m4: New file.
52062
52063 2005-08-11  Simon Josefsson  <jas@extundo.com>
52064
52065         * lib/readline.h, readline.c: New file.
52066
52067 2005-08-11  Simon Josefsson  <jas@extundo.com>
52068
52069         * doc/gnulib.texi (Initial import, Finishing touches): Mention
52070         gl_AVOID.
52071
52072 2005-08-11  Bruno Haible  <bruno@clisp.org>
52073
52074         * lib/strnlen.h (strnlen): Change parameter name to match comment.
52075
52076 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
52077
52078         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
52079
52080 2005-08-10  Simon Josefsson  <jas@extundo.com>
52081
52082         * tests/test-iconvme.c: New file.
52083
52084 2005-08-10  Simon Josefsson  <jas@extundo.com>
52085
52086         * m4/strnlen.m4: New file.
52087
52088         * m4/strndup.m4: Don't check for strnlen declaration, done in
52089         strnlen.m4.
52090
52091 2005-08-10  Simon Josefsson  <jas@extundo.com>
52092
52093         * lib/strndup.c: Use strnlen.h.
52094
52095         * lib/strnlen.h: New file.
52096
52097 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52098
52099         * README: Typos.
52100
52101 2005-08-02  Simon Josefsson  <jas@extundo.com>
52102
52103         * modules/readline: New file.
52104
52105 2005-08-02  Simon Josefsson  <jas@extundo.com>
52106
52107         * modules/getdelim: New file.
52108
52109         * modules/getline: Rewrite, don't use getndelim2.
52110
52111 2005-08-02  Simon Josefsson  <jas@extundo.com>
52112
52113         * m4/getline.m4: Separate out getdelim stuff into separate module.
52114
52115         * m4/getdelim.m4: New file.
52116
52117 2005-08-02  Simon Josefsson  <jas@extundo.com>
52118
52119         * lib/getline.h, getline.c: Rewrite.
52120
52121         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
52122
52123 2005-07-31  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/lock.h (gl_lock_initializer): New macro.
52126         (gl_lock_define_initialized): Use it.
52127         (gl_rwlock_initializer): New macro.
52128         (gl_rwlock_define_initialized): Use it.
52129         (gl_recursive_lock_initializer): New macro.
52130         (gl_recursive_lock_define_initialized): Use it.
52131
52132 2005-07-30  Karl Berry  <karl@gnu.org>
52133
52134         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
52135         Report from Ben Pfaff, regarding getopt.
52136
52137 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
52138
52139         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
52140         normal way.
52141         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
52142         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
52143         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
52144         (gl_GETOPT): Use the new macros.  Most of the implementation
52145         is moved to the new macros.  This is for programs like Emacs
52146         that don't want all the functionality of gl_GETOPT.
52147
52148 2005-07-26  Bruno Haible  <bruno@clisp.org>
52149
52150         * m4/lock.m4: Update from GNU gettext.
52151
52152 2005-07-26  Bruno Haible  <bruno@clisp.org>
52153
52154         * lib/lock.h: Update from GNU gettext.
52155         * lib/lock.c: Update from GNU gettext.
52156
52157 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
52158
52159         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
52160         obsolescent AC_TRY_RUN.  Include the default includes files, for
52161         'exit'.
52162
52163 2005-07-24  Bruno Haible  <bruno@clisp.org>
52164
52165         * modules/visibility: New file.
52166         * MODULES.html.sh (Misc): Add visibility.
52167
52168 2005-07-24  Bruno Haible  <bruno@clisp.org>
52169
52170         * m4/visibility.m4: New file.
52171
52172 2005-07-24  Bruno Haible  <bruno@clisp.org>
52173
52174         * doc/visibility.texi: New file.
52175
52176 2005-07-22  Bruno Haible  <bruno@clisp.org>
52177
52178         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
52179         $(ALLOCA_H), redundant through BUILT_SOURCES.
52180         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
52181         redundant through BUILT_SOURCES.
52182         * modules/byteswap (Makefile.am): Remove explicit dependency on
52183         $(BYTESWAP_H), redundant through BUILT_SOURCES.
52184         * modules/fnmatch (Makefile.am): Remove explicit dependency on
52185         $(FNMATCH_H), redundant through BUILT_SOURCES.
52186         * modules/getopt (Makefile.am): Remove explicit dependency on
52187         $(GETOPT_H), redundant through BUILT_SOURCES.
52188         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
52189         redundant through BUILT_SOURCES.
52190         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
52191         redundant through BUILT_SOURCES.
52192         * modules/stdbool (Makefile.am): Remove explicit dependency on
52193         $(STDBOOL_H), redundant through BUILT_SOURCES.
52194         * modules/stdint (Makefile.am): Remove explicit dependency on
52195         $(STDINT_H), redundant through BUILT_SOURCES.
52196         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
52197         Remove explicit dependency on $(SYSEXITS_H).
52198         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
52199
52200 2005-07-18  Simon Josefsson  <jas@extundo.com>
52201
52202         * lib/check-version.c (check_version): Accept identical versions too.
52203
52204 2005-07-18  Bruno Haible  <bruno@clisp.org>
52205
52206         * modules/lock: New file.
52207         * MODULES.html.sh (Multithreading): New section.
52208
52209 2005-07-18  Bruno Haible  <bruno@clisp.org>
52210
52211         * m4/lock.m4: New file, from GNU gettext.
52212
52213 2005-07-18  Bruno Haible  <bruno@clisp.org>
52214
52215         * lib/lock.h: New file, from GNU gettext.
52216         * lib/lock.c: New file, from GNU gettext.
52217
52218 2005-07-18  Bruno Haible  <bruno@clisp.org>
52219
52220         * lib/lock.h (gl_once_t): New type.
52221         (gl_once_define, gl_once): New macros.
52222         * lib/lock.c (fresh_once): New variable.
52223         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52224         functions.
52225
52226 2005-07-16  Simon Josefsson  <jas@extundo.com>
52227
52228         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52229         workaround, suggested by Bruno.
52230
52231 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52232
52233         * modules/xalloc (Depends-on): Add xalloc-die.
52234         * modules/xvasprintf (Depends-on): Add xalloc-die.
52235
52236 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52237
52238         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52239         with a minor change.
52240
52241 2005-07-15  Bruno Haible  <bruno@clisp.org>
52242
52243         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52244         When using lib/poll.c, define poll as rpl_poll.
52245
52246 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52247
52248         * modules/argp (Depends-on): Remove unlocked-io.
52249
52250 2005-07-14  Derek Price  <derek@ximbiot.com>
52251
52252         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52253         for glob symlink bug.
52254
52255 2005-07-14  Bruno Haible  <bruno@clisp.org>
52256
52257         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52258         Instead, test for *_unlocked function declarations directly.
52259
52260 2005-07-11  Simon Josefsson  <jas@extundo.com>
52261
52262         * modules/size_max: New file.
52263
52264         * modules/xsize: Depend on size_max module for size_max.m4.
52265
52266 2005-07-11  Simon Josefsson  <jas@extundo.com>
52267
52268         * lib/size_max.h: New file.
52269
52270 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52271
52272         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52273         copyright symbol and the year.
52274         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52275         (version_etc_va): Use parameterized copyright notice.
52276         Reword to conform to the current GNU coding standards.
52277
52278 2005-07-11  Karl Berry  <karl@gnu.org>
52279
52280         * doc/gnulib.texi (Quoting): new node.
52281         (Initial import): more info, from Patrice.
52282
52283 2005-07-11  Bruno Haible  <bruno@clisp.org>
52284
52285         * gnulib-tool (func_usage): Document option --avoid.
52286         (Command line options): Handle --avoid.
52287         (func_acceptable): New function.
52288         (func_modules_transitive_closure): Use it.
52289
52290 2005-07-11  Bruno Haible  <bruno@clisp.org>
52291
52292         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52293         Reported by Jim Meyering.
52294
52295 2005-07-10  Bruno Haible  <bruno@clisp.org>
52296
52297         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52298         Needed when size_t is smaller than 'unsigned int'.
52299         Reported by Paul Eggert.
52300
52301 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52302
52303         * modules/argp (Depends-on): Add unlocked-io
52304
52305 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52306
52307         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52308         block of defines.
52309
52310 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52311
52312         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52313         fix now.
52314
52315 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52316         and Paul Eggert  <eggert@cs.ucla.edu>
52317
52318         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52319         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52320
52321 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52322
52323         * modules/regex (Files): Add lib/regex_internal.c,
52324         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52325         (Depends-on): Add extensions.
52326         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52327
52328 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52329
52330         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52331         pathconf.
52332         * m4/same.m4 (gl_SAME): Likewise.
52333         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52334
52335         * m4/regex.m4: Adjust to new libc regex implementation.
52336         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52337         all the .c and .h parts of (the new) regex.
52338         Quote the m4 stuff better.
52339         Check for RE_ICASE bug of old gnulib.
52340         Check for REG_STARTEND of recent libc.
52341         Rename local variables from jm_* to gl_*.
52342         Quote operand of "test -f".
52343         Say "recent enough" version of libc, not "version 2".
52344         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52345         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52346         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52347         Remove check for btowc, isascii.
52348         Require AM_LANGINFO_CODESET.
52349
52350 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52351
52352         * lib/regex.c, regex.h: Sync from libc.
52353         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52354         * lib/regexec.c:
52355         New files, synced from libc, except that regex_internal.h
52356         currently has a small porting fix.
52357
52358 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52359
52360         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52361         regex_internal.c, regexec.c.
52362         Add regex_internal.h too, but as a comment, since the libc version
52363         is currently broken in gnulib mode.
52364
52365 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52366
52367         Support programs like Emacs that use gnulib but not gettext.
52368         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52369         * modules/gettext-h: New file.
52370         * modules/gettext (Files): Remove lib/gettext.h.
52371         (Depends-on): Add gettext-h.
52372         (Makefile.am): Remove lib_SOURCES.
52373         * modules/argmatch, modules/c-stack, modules/closeout:
52374         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52375         * modules/execute, modules/file-type, modules/getaddrinfo:
52376         * modules/getopt, modules/human, modules/javacomp:
52377         * modules/javaexec, modules/mkdir-p, modules/obstack:
52378         * modules/openat, modules/pagealign_alloc, modules/pipe:
52379         * modules/quotearg, modules/regex, modules/rpmatch:
52380         * modules/unicodeio, modules/userspec, modules/version-etc:
52381         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52382         * modules/xsetenv:
52383         Depend on gettext-h, not gettext.
52384
52385 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52386
52387         * gnulib-tool (func_import): Add support for 'public domain' license.
52388         * modules/alloca, modules/atexit, modules/memmove:
52389         Now public domain, not GPL.
52390         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52391         * modules/realloc, modules/strerror, modules/strtod:
52392         Now LGPL, not GPL.
52393
52394 2005-07-05  Bruno Haible  <bruno@clisp.org>
52395
52396         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52397         autoconf CVS. Needed for mingw.
52398
52399 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         Remove the dependency of the strftime module on the tzset module.
52402         * modules/strftime (Depends-on): Remove dependency on tzset.
52403
52404 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52405
52406         Remove the dependency of the strftime module on the tzset module.
52407         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52408         gl_FUNC_TZSET_CLOBBER.
52409
52410 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52411
52412         Remove the dependency of the strftime module on the tzset module.
52413         * lib/strftime.c (my_strftime)
52414         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52415         Copy the input structure, to work around some of the bug with
52416         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52417         Solaris releases, you should also use the tzset module, but we won't
52418         require it as a dependency any more since we don't want LGPLed code
52419         to depend on GPLed code.
52420
52421 2005-07-02  Jim Meyering  <jim@meyering.net>
52422
52423         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52424         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52425         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52426         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52427
52428 2005-07-02  Jim Meyering  <jim@meyering.net>
52429
52430         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52431
52432 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52433
52434         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52435         declares only 'struct timespec;' (!).
52436
52437 2005-07-01  Jim Meyering  <jim@meyering.net>
52438
52439         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52440         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52441         * lib/save-cwd.c, tempname.c:
52442         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52443         and don't include <sys/file.h>).
52444
52445 2005-06-29  Jim Meyering  <jim@meyering.net>
52446
52447         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52448         type name.  Use the variable name instead.
52449         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52450         Likewise.
52451
52452 2005-06-28  Simon Josefsson  <jas@extundo.com>
52453
52454         * modules/check-version (Files): Add check-version.m4.
52455
52456 2005-06-28  Simon Josefsson  <jas@extundo.com>
52457
52458         * m4/check-version.m4: New file, suggested by Jim Meyering
52459         <jim@meyering.net>.
52460
52461 2005-06-28  Simon Josefsson  <jas@extundo.com>
52462
52463         * lib/check-version.h, lib/check-version.c: New files.
52464
52465 2005-06-28  Simon Josefsson  <jas@extundo.com>
52466
52467         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52468         collision with global variable.  Better indentation.  Don't
52469         increment buffer pointer beyond buffer end.  Based on comments
52470         from Paul Eggert <eggert@cs.ucla.edu>.
52471
52472         * lib/base64.h: Indent.
52473
52474 2005-06-28  Simon Josefsson  <jas@extundo.com>
52475
52476         * doc/gnulib.texi (Library version handling): New section.
52477
52478 2005-06-28  Jim Meyering  <jim@meyering.net>
52479
52480         * check-module (find_included_lib_files): Hard-code another
52481         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52482         but modules/fts-lgpl (correctly) does not list those files.
52483
52484         * modules/canonicalize (Files): Add lib/pathmax.h.
52485
52486 2005-06-25  Simon Josefsson  <jas@extundo.com>
52487
52488         * modules/check-version: New file.
52489
52490 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52491
52492         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52493         initializer of struct addrinfo, as an indication that we don't
52494         care how many members the structure has.
52495
52496 2005-06-24  Derek Price  <derek@ximbiot.com>
52497         and Bruno Haible  <bruno@clisp.org>
52498
52499         Remove stat module & update lstat.
52500         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52501         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52502         * m4/stat.m4: Remove this file.
52503
52504 2005-06-24  Derek Price  <derek@ximbiot.com>
52505         and Bruno Haible  <bruno@clisp.org>
52506
52507         Remove stat module & update lstat.
52508         * lib/stat.c: Remove this file...
52509         (slash_aware_lstat): ...moving this content and its support...
52510         * lib/lstat.c (rpl_lstat): ...into here.
52511         * lib/lstat.h: New file.
52512
52513 2005-06-24  Derek Price  <derek@ximbiot.com>
52514         and Bruno Haible  <bruno@clisp.org>
52515
52516         Remove stat module & update lstat.
52517         * config/srclist.txt (libc sources): Remove stat.
52518
52519 2005-06-24  Derek Price  <derek@ximbiot.com>
52520         and Bruno Haible  <bruno@clisp.org>
52521
52522         Remove stat module & update lstat.
52523         * MODULES.html.sh (stat): Remove.
52524         * MODULES.html: Regenerated.
52525         * modules/lstat (Description): Correct function name.
52526         (Files): Add "lstat.h".
52527         (Depends-on): Remove stat, add xalloc, stat-macros.
52528         * modules/stat: Remove this file.
52529         (Include): Add "lstat.h", remove <sys/stat.h>.
52530
52531 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52534         (ranged_convert): Don't save conversion in a temporary struct.
52535         This causes a warning with GCC 4.0.0, and anyway in the typical
52536         case it's not worth the extra 100 bytes or so of code.
52537         (ranged_convert, __mktime_internal): When calling a function via a
52538         pointer P, use P () rather than (*P) (), as we now assume C89 or
52539         better.
52540
52541 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52544         "who -r" failed to give output.  Problem reported by Tim Waugh.
52545
52546         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52547         (xcalloc): Use it to avoid needless tests.
52548         Problem reported by Jim Meyering.
52549
52550 2005-06-20  Derek Price  <derek@ximbiot.com>
52551
52552         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52553         unnecessary for Autoconfs > 2.59c.
52554
52555 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52556
52557         * lib/argp.h (__option_is_short): Check upper limit of
52558         __key. Isprint() requires its argument to have the value
52559         of an unsigned char or EOF.
52560
52561 2005-06-16  Jim Meyering  <jim@meyering.net>
52562
52563         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52564         when either N or S is zero.
52565
52566 2005-06-16  Derek Price  <derek@ximbiot.com>
52567
52568         * m4/bison.m4: Declare YACC & YFLAGS precious.
52569
52570 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52571
52572         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52573         multibyte string or pattern, fall back on unibyte matching.
52574         Problem reported by James Youngman.
52575
52576 2005-06-08  Bruno Haible  <bruno@clisp.org>
52577
52578         * modules/csharpcomp: New file.
52579         * MODULES.html.sh (C#): Add csharpcomp.
52580
52581 2005-06-08  Bruno Haible  <bruno@clisp.org>
52582
52583         * m4/csharpcomp.m4: New file, from GNU gettext.
52584
52585 2005-06-08  Bruno Haible  <bruno@clisp.org>
52586
52587         * lib/csharpcomp.h: New file, from GNU gettext.
52588         * lib/csharpcomp.c: New file, from GNU gettext.
52589         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52590
52591 2005-06-08  Bruno Haible  <bruno@clisp.org>
52592
52593         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52594         warning on mingw.
52595
52596 2005-06-07  Derek Price  <derek@ximbiot.com>
52597
52598         Sync from CVS.
52599         * lib/glob_.h: Indent nested #ifdef.
52600
52601 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52602
52603         Sync from coreutils.
52604         Use "file name" when talking about file names, instead of "filename"
52605         or "path", as per the GNU coding standards.
52606         * lib/mkdir-p.c: Renamed from makepath.c.
52607         (make_dir_parents): Renamed from make_path.  All callers changed.
52608         * lib/mkdir-p.h: Likewise.  All includers changed.
52609         * lib/filenamecat.c: Renamed from path-concat.c.
52610         (file_name_concat): Renamed from path_concat.  All callers changed.
52611         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52612         * lib/filenamecat.h: Likewise.  All includers changed.
52613         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52614         in comments or local variable names.
52615         * lib/basename.c: Likewise.
52616         * lib/canonicalize.c, canonicalize.h: Likewise.
52617         * lib/dirname.c, dirname.h: Likewise.
52618         * lib/euidaccess.c: Likewise.
52619         * lib/exclude.c: Likewise
52620         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52621         * lib/fsusage.c, fsuage.h: Likewise.
52622         * lib/fts.c, fts_.h: Likewise.
52623         * lib/getcwd.c: Likewise.
52624         * lib/getloadavg.c: Likewise.
52625         * lib/mkstemp.c: Likewise.
52626         * lib/mountlist.c, mountlist.h: Likewise.
52627         * lib/openat.c, openat.h: Likewise.
52628         * lib/readlink-stub.c: Likewise.
52629         * lib/readutmp.c, readutmp.h: Likewise.
52630         * lib/rename.c: Likewise.
52631         * lib/rmdir.c: Likewise.
52632         * lib/same.c: Likewise.
52633         * lib/savedir.c: Likewise.
52634         * lib/stripslash.c: Likewise.
52635         * lib/tempname.c: Likewise.
52636         * lib/xreadlink.c: Likewise.
52637         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52638         All uses changed.
52639         * lib/exclude.h: Likewise.
52640
52641         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52642         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52643         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52644         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52645         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52646         files have been getting away with it for years (MORE/BSD 4.3
52647         is extinct now).
52648         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52649         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52650
52651         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52652         Define to 256, not 255, as per modern POSIX.
52653
52654 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52655
52656         Sync from coreutils.
52657         Use "file name" when talking about file names, instead of "filename"
52658         or "path", as per the GNU coding standards.
52659         * MODULES.html.sh: mkdir-p renamed from makepath.
52660         filenamecat renamed from path-concat.
52661         * modules/filenamecat: Renamed from modules/path-concat.
52662         (Files): filenamecat.h and filenamecat.c renamed from
52663         path-concat.h and path-concat.c.
52664         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52665         (Include): filenamecat.h, not path-concat.h.
52666         * modules/mkdir-p: Renamed from modules/makepath.
52667         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52668         makepath.c.
52669         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52670         (Include): mkdir-p.h, not makepath.h.
52671
52672 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52673
52674         Sync from coreutils.
52675         * m4/mkdir-p.m4: Renamed from makepath.m4.
52676         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52677         Rename files from makepath.c to mkdir-p.c, and from
52678         makepath.h to mkdir-p.h.
52679         * m4/filenamecat.m4: Renamed from path-concat.m4.
52680         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52681         Rename files from path-concat.c to filenamecat.c,
52682         and from path-concat.h to filenamecat.h.
52683         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52684         "file name" in local variables or comments.
52685         * m4/rename.m4: Likewise.
52686
52687 2005-06-01  Bruno Haible  <bruno@clisp.org>
52688
52689         * modules/csharpexec: New file.
52690         * MODULES.html.sh (C#): New section.
52691
52692 2005-06-01  Bruno Haible  <bruno@clisp.org>
52693
52694         * m4/csharp.m4: New file, from GNU gettext.
52695         * m4/csharpexec.m4: New file, from GNU gettext.
52696
52697 2005-06-01  Bruno Haible  <bruno@clisp.org>
52698
52699         * lib/csharpexec.h: New file, from GNU gettext.
52700         * lib/csharpexec.c: New file, from GNU gettext.
52701         * lib/csharpexec.sh.in: New file, from GNU gettext.
52702
52703 2005-05-31  Derek Price  <derek@ximbiot.com>
52704             Paul Eggert  <eggert@cs.ucla.edu>
52705
52706         Sync from cvs.
52707         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52708
52709 2005-05-31  Derek Price  <derek@ximbiot.com>
52710             Paul Eggert  <eggert@cs.ucla.edu>
52711
52712         Sync from cvs.
52713         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52714
52715 2005-05-29  Derek Price  <derek@ximbiot.com>
52716
52717         * config/srclist.txt (glob_.h, glob.c): Add these files.
52718
52719 2005-05-29  Derek Price  <derek@ximbiot.com>
52720
52721         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52722         * modules/glob: New file.
52723         * modules/getlogin_r: Add link to POSIX spec in description.
52724
52725 2005-05-29  Derek Price  <derek@ximbiot.com>
52726             Paul Eggert  <eggert@cs.ucla.edu>
52727
52728         * m4/glob.m4: New file.
52729
52730 2005-05-29  Derek Price  <derek@ximbiot.com>
52731             Paul Eggert  <eggert@cs.ucla.edu>
52732
52733         * lib/glob_.h, lib/glob.c: New files.
52734
52735 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52736
52737         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52738         * modules/fts-lgpl (Depends-on): Remove gettext.
52739
52740 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52741
52742         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52743         and don't require gt_INTTYPES_PRI.
52744
52745 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52746
52747         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52748
52749         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52750         the configuration hassle isn't worth it.
52751         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52752         (LONGEST_MODIFIER, PRIuMAX): Remove.
52753
52754 2005-05-27  Bruno Haible  <bruno@clisp.org>
52755
52756         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52757
52758 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52761         _POSIX_PTHREAD_SEMANTICS for Solaris.
52762
52763 2005-05-25  Derek Price  <derek@ximbiot.com>
52764
52765         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52766
52767 2005-05-25  Derek Price  <derek@ximbiot.com>
52768             Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52771         * lib/getlogin_r.c, getlogin_r.h: New files.
52772
52773 2005-05-25  Bruno Haible  <bruno@clisp.org>
52774             Derek Price  <derek@ximbiot.com>
52775
52776         * lib/getlogin_r.h: Simplify API documentation.
52777
52778 2005-05-23  Derek Price  <derek@ximbiot.com>
52779
52780         * modules/minmax (Files): Add m4/minmax.m4.
52781         (configure.ac): Add gl_MINMAX.
52782
52783 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52784
52785         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52786         so that unistd-safer.h (GPL'ed code) need not be included.
52787
52788 2005-05-22  Bruno Haible  <bruno@clisp.org>
52789
52790         * m4/minmax.m4: New file.
52791         Based on a patch by Derek Price <derek@ximbiot.com>.
52792
52793 2005-05-22  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52796         (INT64_MIN): Fix definition.
52797         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52798
52799         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52800         NEED_SIGNED_INT_TYPES.
52801
52802         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52803         HAVE_SYSTEM_INTTYPES.
52804
52805 2005-05-22  Bruno Haible  <bruno@clisp.org>
52806
52807         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52808         Also include <sys/param.h> if it defines MIN, MAX.
52809         Based on a patch by Derek Price <derek@ximbiot.com>.
52810
52811 2005-05-21  Jim Meyering  <jim@meyering.net>
52812
52813         * modules/fts (Files): Add m4/inttypes-pri.m4.
52814         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52815
52816 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52817
52818         New fts module.
52819         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52820         (setup_dir, free_dir): New functions.
52821         (enter_dir, leave_dir): Define trivial
52822         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52823         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52824         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52825         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52826         Move to fts-cycle.c.
52827         (fts_open): Use setup_dir.
52828         (fts_close): Use free_dir.
52829         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52830         This adds a label and some gotos, but the alternatives were messier.
52831         Check for memory allocation failure when entering a dir.
52832         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52833         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52834         (FTS): New member fts_cycle, that is a union that contains the
52835         old active_dir_ht and cycle_state.  All uses changed to mention
52836         fts_cycle.ht and fts_cycle.state.
52837         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52838         fts.c, with the following changes:
52839         (setup_dir, free_dir): New functions.
52840         (enter_dir): Now returns bool.  Return true if successful, false
52841         if memory exhausted.  All callers changed.
52842         Do not bother partly cleaning up on
52843         memory allocation failure; that is free_dir's job.
52844         However, free ad if hash_insert fails, to avoid memory leak.
52845         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52846         fts->fts_options to see which union member to use.
52847
52848 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52849
52850         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52851         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52852
52853 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52854
52855         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52856
52857 2005-05-20  Jim Meyering  <jim@meyering.net>
52858
52859         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52860         Now a macro, to pacify GCC.
52861
52862 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52863
52864         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52865         of -1.
52866
52867 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52868
52869         * lib/chown.c (rpl_chown): Return -1 on failure.
52870
52871 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52872
52873         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52874         Don't check for stddef.h.
52875         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52876         don't use its results.
52877         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52878         since we include them unconditionally.  Don't require
52879         AM_STDBOOL_H, since stdbool is a prerequisite.
52880         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52881         since we assume C89 or better.
52882         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52883         as we don't use their results.
52884         Don't check for fchdir, memmove, memset, strrchr, as we use
52885         them unconditionally.
52886         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52887         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52888
52889 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52892         Include <stddef.h> unconditionally, since we assume C89 now.
52893         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52894         * lib/fts.c: Include fts_.h first, to check interface.
52895         Do not include intprops.h; no longer needed.
52896         Include cycle-check.h and hash.h, since fts_.h no longer does.
52897         Remove unnecessary casts of closedir to void.
52898         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52899         decide whether to decrement nlinks.
52900         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52901         (FTS): Use struct hash_table * instead of Hash_table, so that
52902         we no longer need to include hash.h here.
52903
52904 2005-05-18  Jim Meyering  <jim@meyering.net>
52905
52906         * modules/dirfd (License): Change to LGPL.  Most of the code
52907         is already in the public domain.
52908
52909 2005-05-18  Jim Meyering  <jim@meyering.net>
52910
52911         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52912         Reported by Yoann Vandoorselaere.
52913
52914 2005-05-17  Jim Meyering  <jim@meyering.net>
52915
52916         * m4/fts.m4: New file, from coreutils.
52917
52918 2005-05-17  Jim Meyering  <jim@meyering.net>
52919
52920         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52921
52922 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52923
52924         Sync from coreutils.
52925         * m4/unlinkdir.m4: New file.
52926
52927 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52928
52929         Sync from coreutils.
52930         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52931         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52932         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52933         White space changes only.
52934         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52935         special.
52936         * lib/yesno.c: Include getline.h, not ctype.h.
52937         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52938         Use getline to remove arbitrary restriction on response length.
52939
52940 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52941
52942         * config/srclist-update: Spell out "Street" in FSF postal
52943         mail address; this is the style the FSF seems to prefer.
52944
52945         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52946         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52947         this updates FSF postal mail address.
52948
52949         Sync from coreutils.
52950         * modules/unlinkdir: New file.
52951         * modules/yesno (Depends-on): Add getline.
52952         * MODULES.html.sh (File system functions): Add unlinkdir.
52953
52954 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52955
52956         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52957         lib/strsep.h:
52958         Change the initial comment to refer to GPL, not LGPL.
52959         gnulib-tool will change it to LGPL as needed.
52960
52961         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52962         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52963         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52964         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52965         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52966         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52967         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52968         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52969         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52970         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52971         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52972         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52973         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52974         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52975         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52976         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52977         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52978         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52979         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52980         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52981         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52982         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52983         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52984         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52985         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52986         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52987         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52988         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52989         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52990         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52991         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52992         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52993         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52994         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52995         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52996         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52997         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52998         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52999         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
53000         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
53001         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
53002         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
53003         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
53004         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
53005         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
53006         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
53007         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
53008         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
53009         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
53010         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
53011         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53012         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
53013         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
53014         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
53015         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
53016         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
53017         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
53018         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
53019         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
53020         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
53021         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
53022         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
53023         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
53024         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
53025         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
53026         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
53027         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
53028         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
53029         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
53030         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
53031         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
53032         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
53033         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
53034         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
53035         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
53036         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
53037         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
53038         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
53039         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
53040         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
53041         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
53042         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
53043         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
53044         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
53045         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
53046         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
53047         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
53048         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
53049         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
53050         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
53051         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
53052         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
53053         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
53054         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
53055         lib/yesno.c, lib/yesno.h:
53056         Update FSF postal mail address.
53057
53058 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53059
53060         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
53061         tests/test-memmem.c, tests/test-stpncpy.c:
53062         Update FSF postal mail address.
53063
53064 2005-05-13  Bruno Haible  <bruno@clisp.org>
53065
53066         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
53067         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
53068         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
53069         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
53070         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
53071         Add support for 64-bit integers in the MSVC compiler.
53072
53073 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53074
53075         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
53076
53077 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
53078
53079         * gnulib-tool (func_import): Sort and uniquify recommended includes.
53080
53081 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
53082
53083         * doc/getdate.texi (General date syntax): Don't say that date
53084         date --iso-8601=ns generates acceptable dates; it doesn't yet.
53085         Problem reported by Nic Ferrier.
53086
53087 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53088
53089         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
53090         specified in ai_socktype. Fix invalid ai_protocol
53091         check. ai_protocol is usually set to 0 or depending on
53092         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
53093         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
53094         ai_socktype / ai_protocol in the returned addrinfo structure.
53095
53096 2005-05-10  Simon Josefsson  <jas@extundo.com>
53097
53098         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
53099         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53100
53101 2005-05-10  Karl Berry  <karl@gnu.org>
53102
53103         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
53104         (from http://www.gnu.org/licenses).
53105         * doc/COPYING.LIB: also rename to COPYING.LESSER.
53106         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
53107         fdl.texi suffices.
53108
53109 2005-05-10  Karl Berry  <karl@gnu.org>
53110
53111         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
53112         (COPYING.DOC): remove.
53113
53114         * config/srclist-update: new FSF address.
53115
53116 2005-05-10  Derek Price  <derek@ximbiot.com>
53117
53118         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
53119         possible.
53120
53121 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53122             Bruno Haible  <bruno@clisp.org>
53123
53124         * modules/inet_ntop: New file.
53125         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53126         inet_ntop.
53127
53128 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53129             Bruno Haible  <bruno@clisp.org>
53130
53131         * m4/inet_ntop.m4: New file.
53132
53133 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53134             Bruno Haible  <bruno@clisp.org>
53135
53136         * lib/inet_ntop.h: New file.
53137         * lib/inet_ntop.c: New file, from glibc with modifications.
53138
53139 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
53140
53141         * modules/time_r (License): Change to LGPL.
53142         * modules/extensions (License): Change to LGPL.  Actually,
53143         the license is more permissive than that, but currently gnulib-tool
53144         doesn't know how to handle more-permissive licenses.
53145
53146         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
53147         Problem reported by Dave Love.
53148
53149 2005-05-08  Jim Meyering  <jim@meyering.net>
53150
53151         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
53152         blank.
53153
53154 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53155
53156         * modules/argmatch (Depends-on): Add stdbool.
53157         * modules/backupfile (Depends-on): Likewise.
53158         * modules/chdir-long (Depends-on): Likewise.
53159         * modules/closeout (Depends-on): Likewise.
53160         * modules/cycle-check (Depends-on): Likewise.
53161         * modules/dirname (Depends-on): Likewise.
53162         * modules/fnmatch (Depends-on): Likewise.
53163         * modules/fsusage (Depends-on): Likewise.
53164         * modules/fwriteerror (Depends-on): Likewise.
53165         * modules/getcwd (Depends-on): Likewise.
53166         * modules/getloadavg (Depends-on): Likewise.
53167         * modules/hard-locale (Depends-on): Likewise.
53168         * modules/makepath (Depends-on): Likewise.
53169         * modules/mountlist (Depends-on): Likewise.
53170         * modules/nanosleep (Depends-on): Likewise.
53171         * modules/posixtm (Depends-on): Likewise.
53172         * modules/quotearg (Depends-on): Likewise.
53173         * modules/readtokens (Depends-on): Likewise.
53174         * modules/readtokens0 (Depends-on): Likewise.
53175         * modules/readutmp (Depends-on): Likewise.
53176         * modules/save-cwd (Depends-on): Likewise.
53177         * modules/strftime (Depends-on): Likewise.
53178         * modules/userspec (Depends-on): Likewise.
53179         * modules/utimecmp (Depends-on): Likewise.
53180         * modules/xgetcwd (Depends-on): Likewise.
53181         * modules/xnanosleep (Depends-on): Likewise.
53182         * modules/xstrtod (Depends-on): Likewise.
53183         * modules/yesno (Depends-on): Likewise.
53184
53185 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53186
53187         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
53188         needless checks.
53189
53190 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53191
53192         Merge from coreutils.  Among other things,
53193         add bulletproofing for cases where stdin, stdout, or stderr are closed.
53194         * lib/fd-safer.c: New file.
53195         * lib/fcntl-safer.h, open-safer.c: Remove.
53196         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
53197         * lib/dup-safer.c: Include unistd-safer.h first.
53198         Don't include errno.h.
53199         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
53200         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
53201         * lib/file-type.c: Rely on file-type.h change.
53202         * lib/getloadavg.c: Include unistd-safer.h.
53203         (getloadavg): Use safer open.
53204         * lib/getusershell.c: Include "stdio-safer.h".
53205         (getusershell): Use safer fopen.
53206         * lib/long-options.c (long_options): Use NULL rather than 0.
53207         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
53208         'free'.
53209         * lib/modechange.c: Likewise.
53210         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
53211         (MODE_DONE): New constant.
53212         (struct mode_change): Remove 'next' member.
53213         (make_node_op_equals): New function; like the old one of the
53214         same name, except it allocates an array.
53215         (mode_compile, mode_create_from_ref): Use it.
53216         (mode_compile): Allocate result as an array, not a linked list.
53217         Parse octal string ourself, so that we catch mistakes like "+0".
53218         (mode_adjust): Arg is an array, not a linked list.
53219         * lib/modechange.c: Include stat-macros.h, xalloc.h.
53220         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53221         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53222         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53223         Remove.  This is now stat-macros.h's job.
53224         (talloc): Remove.  All callers replaced by xalloc, so that
53225         our invokers don't have to worry about reporting memory failures.
53226         (make_node_op_equals): Remove.
53227         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53228         New constants.
53229         (struct mode_change): Moved here from modechange.h.
53230         (mode_append_entry): Remove.
53231         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53232         apps to have incorrect behavior.  Use simpler algorithm for head
53233         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53234         Detect more invalid usages rather than having somewhat-random behavior.
53235         Don't insert an "a=" action, as that leads to incorrect behavior.
53236         (mode_compile, mode_create_from_ref): Return NULL on error instead
53237         of an enum, since now there's only one way to have an error.  All
53238         callers changed.
53239         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53240         at the correct time.  Simplify calculation of "+u" and its ilk.
53241         Don't mishandle "+X".
53242         (mode_free): Remove "register" and localize decls.
53243         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53244         (struct mode_change): Move to modechange.c; callers don't
53245         need to see this stuff.
53246         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53247         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53248         (mode_change, mode_adjust): Reflect the new signatures noted above.
53249         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53250         that might redefine system include files.
53251         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53252         (my_usleep): Use NULL rather than (void *) 0.
53253         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53254         Use siginterrupt to specify that system calls should be interrupted.
53255         (rpl_nanosleep): Move initialization of suspended closer to call of
53256         my_usleep.
53257         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53258         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53259         (desirable_utmp_entry): New function.
53260         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53261         using x2nrealloc, to simplify logic.
53262         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53263         size calculation.  Do not assume utmp file is a regular file.
53264         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53265         (READ_UTMP_CHECK_PIDS): New constant.
53266         * lib/save-cwd.c: Include unistd-safer.h.
53267         (save_cwd): Use fd_safer.
53268         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53269         [!_LIBC] Include "stat-macros.h" instead.
53270         * lib/unistd-safer.h (fd_safer): New decl.
53271
53272 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53273
53274         * modules/getloadavg (Depends-on): Add unistd-safer.
53275         * modules/getusershell (Depends-on): Add stdio-safer.
53276         * modules/lstat (Depends-on): Remove xalloc.
53277         * modules/mkstemp (Depends-on): Add stat-macros.
53278         * modules/modechange (Depends-on): Remove xstrtol.
53279         Add stat-macros, xalloc.
53280         * modules/save-cwd (Depends-on): Add unistd-safer.
53281         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53282         * modules/unistd-safer (Files): Add lib/fd-safer.c
53283         (Makefile.am): Remove lib_SOURCES.
53284
53285         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53286         Remove fcntl-safer; unistd-safer supersedes it.
53287
53288 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53289
53290         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53291         AC_HEADER_STAT.
53292         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53293         (gl_PREREQ_CHOWN): Remove.
53294         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53295         it.  Don't require AC_HEADER_STAT.
53296         (gl_PREREQ_LSTAT): Remove.
53297         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53298         Don't require AC_HEADER_STAT.
53299         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53300         (gl_PREREQ_RMDIR): Remove.
53301         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53302         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53303         the stat-macros module a prerequisite.
53304         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53305         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53306         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53307         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53308         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53309         variable names.
53310         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53311         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53312         variable prefixes.
53313         * m4/fcntl-safer.m4: Remove.
53314         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53315         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53316         Invoke gl_PREREQ_FD_SAFER.
53317         (gl_PREREQ_FD_SAFER): New macro.
53318         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53319         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53320         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53321         Remove duplicate call to AC_LIBOBJ(readutmp).
53322         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53323
53324         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53325         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53326
53327 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53328
53329         * MODULES.html.sh (Misc): Add byteswap.
53330
53331 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53332
53333         * modules/getcwd (Depends-on): Add extensions.
53334         * modules/openat (Depends-on): Likewise.
53335
53336 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53337
53338         * modules/byteswap: New file.
53339
53340 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53341
53342         * m4/byteswap.m4: New file.
53343
53344 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53345
53346         * lib/byteswap_.h: New file.
53347
53348 2005-04-25  Karl Berry  <karl@gnu.org>
53349
53350         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53351
53352 2005-04-25  Albert Chin  <china@thewrittenword.com>
53353
53354         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53355         Toolkit C bug.
53356
53357 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53358
53359         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53360         (func_ln_if_changed) Remove forcibly for no error message
53361         in case file does not exist.
53362
53363 2005-04-19  Simon Josefsson  <jas@extundo.com>
53364
53365         * gnulib-tool (Options): Make --symlink mean --symbolic.
53366
53367 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53368
53369         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53370
53371 2005-04-16  Simon Josefsson  <jas@extundo.com>
53372
53373         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53374
53375 2005-04-15  Simon Josefsson  <jas@extundo.com>
53376
53377         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53378
53379 2005-04-15  Simon Josefsson  <jas@extundo.com>
53380
53381         * gnulib-tool: Rename --symlink to --symbolic.
53382
53383 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53384
53385         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53386         symbolic links to files instead of copying/moving.  Add --aux-dir,
53387         specifying directory relative --dir where auxiliary build tools
53388         are placed.
53389
53390 2005-04-14  Bruno Haible  <bruno@clisp.org>
53391
53392         * modules/allocsa (License): Change to LGPL.
53393         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53394
53395 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53396
53397         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53398         that "UTC +1 second" continues to work.  Problem reported
53399         by Dmitry V. Levin.
53400         (relunit_snumber): New rule.
53401         (relunit): Use it.
53402
53403 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53404
53405         * lib/getdate.y (universal_time_zone_table): New constant.
53406         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53407         universal_time_zone_table.
53408         (lookup_zone): Prefer universal_time_zone_table to
53409         local_time_zone_table, so that "GMT" time stamps are allowed in
53410         London during the summer.  Problem reported by Ian Abbott.
53411
53412 2005-04-12  Jim Meyering  <jim@meyering.net>
53413
53414         * lib/human.c (humblock): Set *options even when returning due to
53415         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53416         warning from gcc-4.
53417
53418 2005-04-09  Jim Meyering  <jim@meyering.net>
53419
53420         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53421         -Wuninitialized: initialize tm0.tm_year.
53422
53423 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53424
53425         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53426         count, since there's no maximum.  All uses changed.
53427         Add member dsts_seen.
53428         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53429         not being INT_MAX.
53430         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53431         Use pc_rels_seen to decide whther a date is absolute.
53432
53433         * lib/getdate.y (number): Don't overwrite year.
53434         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53435         check.
53436
53437 2005-04-02  Simon Josefsson  <jas@extundo.com>
53438
53439         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53440         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53441
53442 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53443
53444         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53445         where no absolute path name can be longer than PATH_MAX.
53446
53447 2005-03-27  Jim Meyering  <jim@meyering.net>
53448
53449         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53450
53451 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53452
53453         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53454         "one's complement" -> "ones' complement" in comment, as per Knuth.
53455         "value of type" -> "type or expression" in comment.
53456         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53457
53458 2005-03-26  Jim Meyering  <jim@meyering.net>
53459
53460         Comment nits.
53461         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53462         Correct typos: s/or/of/.
53463
53464 2005-03-26  Jim Meyering  <jim@meyering.net>
53465
53466         * modules/check-include-files: Move to ../ and rename to...
53467         * check-module: ...this.
53468
53469 2005-03-25  Jim Meyering  <jim@meyering.net>
53470
53471         * modules/xvasprintf (Files): Add xalloc.h.
53472
53473 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53474
53475         * modules/gettext (Files): config/config.rpath ->
53476         build-aux/config.rpath
53477         * modules/iconv (Files): Likewise.
53478         Problem reported by Oskar Liljeblad.
53479
53480 2005-03-23  Jim Meyering  <jim@meyering.net>
53481
53482         * modules/check-include-files: New script to check for
53483         missing dependencies, multiple includes, etc.
53484
53485         * modules/c-strtold (Depends-on): Add xalloc.
53486         * modules/c-strtod (Depends-on): Add xalloc.
53487         * modules/hash (Depends-on): Add xalloc.
53488         (Files): Remove lib/xalloc.h.
53489
53490         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53491         * modules/userspec (Files): Add lib/inttostr.h.
53492
53493 2005-03-23  Jim Meyering  <jim@meyering.net>
53494
53495         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53496
53497 2005-03-22  Jim Meyering  <jim@meyering.net>
53498
53499         * modules/stat-macros: New module.
53500         * modules/canonicalize, modules/euidaccess, modules/file-type,
53501         * modules/filemode, modules/lchown, modules/makepath,
53502         * modules/rmdir, modules/stat: Depend on new stat-macros module
53503         rather than listing lib/stat-macros.h manually.
53504         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53505
53506 2005-03-22  Jim Meyering  <jim@meyering.net>
53507
53508         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53509
53510 2005-03-22  Bruno Haible  <bruno@clisp.org>
53511
53512         * config/srclist.txt: Replace target directory 'config' with
53513         'build-aux'.
53514         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53515         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53516         ../build-aux/.
53517
53518 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53519
53520         * modules/chdir-long (Depends-on): Add mempcpy.
53521
53522         * modules/acl, modules/backupfile, modules/c-strtod,
53523         modules/c-strtold, modules/canon-host, modules/canonicalize,
53524         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53525         modules/exclude, modules/exitfail, modules/file-type,
53526         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53527         modules/getdate, modules/getline, modules/getpagesize,
53528         modules/getpass, modules/getugroups, modules/group-member,
53529         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53530         modules/inttostr, modules/long-options, modules/makepath,
53531         modules/md5, modules/memcasecmp, modules/memcoll,
53532         modules/modechange, modules/mountlist, modules/path-concat,
53533         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53534         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53535         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53536         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53537         modules/strftime, modules/strndup, modules/strverscmp,
53538         modules/timespec, modules/unlocked-io, modules/userspec,
53539         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53540         modules/yesno:
53541         Remove lib_SOURCES line from Makefile.am section, as this is now
53542         done automatically by the corresponding Autoconf macro.
53543
53544 2005-03-21  Jim Meyering  <jim@meyering.net>
53545
53546         Changes imported from coreutils.
53547
53548         * lib/cycle-check.c: Don't include xalloc.h.
53549
53550         * lib/path-concat.c: Don't include assert.h.
53551         (path_concat): Remove assertion that would have triggered
53552         for ABASE starting with more than one slash.
53553         Reported by Andreas Schwab.
53554
53555         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53556         properly when ABASE is an absolute file name.
53557         Correct the description of this function.
53558         Include <assert.h>.
53559         Add an assertion and a test driver.
53560         This fixes a bug introduced on 2004-07-02.
53561         Andreas Schwab reported the resulting failure of cp --parents:
53562         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53563
53564 2005-03-21  Jim Meyering  <jim@meyering.net>
53565
53566         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53567         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53568
53569 2005-03-21  Jim Meyering  <jim@meyering.net>
53570         and  Paul Eggert  <eggert@cs.ucla.edu>
53571
53572         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53573         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53574         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53575         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53576         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53577         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53578         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53579         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53580         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53581         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53582         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53583         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53584         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53585         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53586         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53587         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53588         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53589         for these modules.
53590
53591 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53592
53593         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53594         (which shouldn't happen), generate nothing instead of returning 0
53595         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53596
53597 2005-03-16  Bruno Haible  <bruno@clisp.org>
53598
53599         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53600         HAVE_LONGLONG_64BIT.
53601
53602 2005-03-16  Bruno Haible  <bruno@clisp.org>
53603
53604         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53605         HAVE_LONGLONG_64BIT.
53606
53607 2005-03-16  Bruno Haible  <bruno@clisp.org>
53608
53609         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53610         HAVE_LONGLONG_64BIT.
53611
53612 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53613
53614         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53615         reliably distinguish strftime failure from empty output on POSIX
53616         hosts.
53617
53618 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53619
53620         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53621         (iconv_string): Don't guess a size-zero buffer, as that might cause
53622         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53623         result would be 'too large', where 'too large' is (heuristically)
53624         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53625         overflow concerns.  This will prevent some unwanted malloc failures
53626         when the inputs are very large.
53627
53628 2005-03-15  Karl Berry  <karl@gnu.org>
53629
53630         * config/srclist.txt (config.rpath): from gettext.
53631         * config/config.rpath: update.
53632
53633 2005-03-15  Bruno Haible  <bruno@clisp.org>
53634
53635         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53636         to 'negate'.
53637
53638         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53639         variable.
53640
53641         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53642         results.
53643
53644 2005-03-14  Simon Josefsson  <jas@extundo.com>
53645
53646         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53647         <fx@gnu.org>.
53648
53649 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53652         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53653         intprops.h.
53654         * lib/strtol.c: Likewise.
53655
53656 2005-03-14  Jim Meyering  <jim@meyering.net>
53657
53658         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53659         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53660         to be nonzero so that we (and caller) can detect the difference
53661         between a valid zero-length expansion and an error return, even
53662         when the underlying strftime fails before writing anything into
53663         that location.
53664
53665 2005-03-14  Bruno Haible  <bruno@clisp.org>
53666
53667         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53668         Update from GNU gettext 0.14.3.
53669
53670 2005-03-10  Jim Meyering  <jim@meyering.net>
53671
53672         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53673
53674 2005-03-10  Jim Meyering  <jim@meyering.net>
53675
53676         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53677         so that this module works on systems without fchdir.
53678
53679 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         Factor int-properties macros into a single file, except for
53682         glibc-related files.
53683         * lib/intprops.h: New file.
53684         * lib/getloadavg.c: Include it instead of limits.h.
53685         (INT_STRLEN_BOUND): Remove.
53686         * lib/human.c: Include intprops.h.
53687         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53688         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53689         302/1000.
53690         * lib/inttostr.h: Include intprops.h instead of limits.h.
53691         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53692         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53693         for consistency with intprops.h.
53694         (time_t_is_integer, twos_complement_arithmetic): Use them.
53695         * lib/sig2str.h: Include <signal.h>, intprops.h.
53696         (INT_STRLEN_BOUND): Remove.
53697         * lib/strftime.c (TYPE_SIGNED): Remove.
53698         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53699         * lib/strtol.c: Adjust comments to match intprops.h.
53700         * lib/userspec.c: Include intprops.h.
53701         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53702         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53703         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53704         instead of rolling our own expressions.
53705         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53706
53707         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53708         instead of int.
53709         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53710         the right thing even if adding 1900 would overflow.  Similarly
53711         for tm_mon + 1 and tm_yday + 1.
53712         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53713         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53714         (DO_SIGNED_NUMBER): New macro.
53715         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53716
53717 2005-03-07  Bruno Haible  <bruno@clisp.org>
53718
53719         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53720
53721 2005-03-07  Bruno Haible  <bruno@clisp.org>
53722
53723         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53724
53725 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53726
53727         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53728         (func_import): Only replace files via --import when they have actually
53729         changed.
53730
53731 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53732
53733         * m4/mmap-anon.m4: New file.
53734         * m4/pagealign_alloc.m4: New file.
53735
53736 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53737             Bruno Haible  <bruno@clisp.org>
53738
53739         * modules/pagealign_alloc: New file.
53740         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53741
53742 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53743             Bruno Haible  <bruno@clisp.org>
53744
53745         * lib/pagealign_alloc.h: New file.
53746         * lib/pagealign_alloc.c: New file.
53747
53748 2005-03-03  Bruno Haible  <bruno@clisp.org>
53749
53750         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53751         Use an all-permissive copyright notice, recommended by RMS.
53752
53753 2005-03-02  Bruno Haible  <bruno@clisp.org>
53754
53755         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53756         of AIX, the replacement has to be done only after <string.h> is
53757         included, therefore not in config.h. stpncpy.h does the replacement,
53758         and stpncpy.c uses it.
53759
53760 2005-03-02  Bruno Haible  <bruno@clisp.org>
53761
53762         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53763         stpncpy.c uses it.
53764
53765 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53766
53767         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53768         The workaround isn't strictly needed for POSIX conformance, and
53769         it's too much of a pain to configure and maintain.  We'll ask
53770         people to fix their kernels instead.
53771         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53772         (NANOSLEEP_BUG_WORKAROUND): Remove.
53773         (xnanosleep): Remove the workaround.
53774
53775 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53776
53777         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53778         Reported by Derek Price.
53779         (Include): Add "timespec.h".
53780
53781         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53782
53783 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53784
53785         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53786         to detect nanosleep bug.
53787
53788 2005-03-01  Bruno Haible  <bruno@clisp.org>
53789
53790         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53791
53792 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53793
53794         * modules/gethrxtime: New file.
53795         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53796         (Depends-on): Add gethrxtime.
53797         (configure.ac): Add gl_XNANOSLEEP.
53798         (Makefile.am): Remove lib_SOURCES line.
53799
53800 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53801
53802         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53803         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53804
53805 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53806
53807         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53808         * lib/timespec.h (gettime): Return void, since it always
53809         succeeds now.  All uses changed.
53810         * lib/gettime.c (gettime) Likewise.
53811         [HAVE_NANOTIME]: Prefer nanotime.
53812         Assume gettimeofday succeeds, as POSIX requires.
53813         Assime time () succeeds, since other code already does.
53814         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53815         (timespec_subtract): Remove.
53816         (NANOSLEEP_BUG_WORKAROUND): New constant.
53817         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53818         things considerably.  Use it only on GNU/Linux hosts, since the
53819         workaround shouldn't be needed elsewhere.
53820
53821 2005-02-24  Bruno Haible  <bruno@clisp.org>
53822
53823         * modules/gettext (Files): Add m4/glibc2.m4.
53824
53825 2005-02-24  Bruno Haible  <bruno@clisp.org>
53826
53827         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53828         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53829         * m4/progtest.m4:
53830         Update from GNU gettext 0.14.2.
53831         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53832
53833 2005-02-24  Bruno Haible  <bruno@clisp.org>
53834
53835         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53836         * lib/config.charset: Update from GNU gettext 0.14.2.
53837
53838 2005-02-24  Bruno Haible  <bruno@clisp.org>
53839
53840         * lib/gettext.h: Update from GNU gettext 0.14.2.
53841
53842 2005-02-23  Simon Josefsson  <jas@extundo.com>
53843
53844         * m4/iconvme.m4: New file.
53845
53846 2005-02-23  Jim Meyering  <jim@meyering.net>
53847
53848         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53849         change.
53850         Thanks to Bruno Haible for catching it.
53851
53852 2005-02-22  Simon Josefsson  <jas@extundo.com>
53853
53854         * modules/iconvme: New file.
53855
53856         * MODULES.html.sh: Add iconvme.
53857
53858 2005-02-22  Simon Josefsson  <jas@extundo.com>
53859
53860         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53861
53862 2005-02-22  Simon Josefsson  <jas@extundo.com>
53863
53864         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53865
53866 2005-02-22  Jim Meyering  <jim@meyering.net>
53867
53868         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53869         s/ifndef/ifdef/.
53870
53871 2005-02-20  Neil Conway  <neilc@samurai.com>
53872
53873         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53874         returned by OSX/Darwin if the specified buffer is not large
53875         enough for the hostname.
53876
53877 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53878
53879         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53880         pass it to _help, otherwise the latter coredumps trying to
53881         dereference state.root_argp.
53882
53883 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53884
53885         * modules/chdir-long (Depends-on): Add memrchr.
53886         * modules/memrchr (Files): Add lib/memrchr.h.
53887         (Include): "memrchr.h".
53888
53889 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53890
53891         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53892
53893 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53894
53895         * lib/memrchr.h: New file.
53896         * lib/chdir-long.c: Include it.
53897         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53898         Don't bother including stddef.h.
53899
53900 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53901
53902         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53903         inclusion.
53904         Include <sys/types.h>, for dev_t.
53905         (ME_DUMMY, ME_REMOTE): Move from here....
53906         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53907         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53908         Dmitry V. Levin.
53909         Include mountlist.h first, to test the interface.
53910
53911 2005-01-29  Bruno Haible  <bruno@clisp.org>
53912
53913         * lib/progname.c (program_name): Initialize.
53914         Needed when linking statically on MacOS X.
53915
53916 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53917
53918         Sync from coreutils.
53919         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53920         (Depends-on): Add c-strtod.
53921         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53922
53923 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         Sync from coreutils.
53926         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53927
53928         Remove files that are specific to coreutils.
53929         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53930
53931 2005-01-28  Bruno Haible  <bruno@clisp.org>
53932
53933         * modules/javacomp: New file.
53934         * MODULES.html.sh (Java): Add javacomp.
53935
53936 2005-01-28  Bruno Haible  <bruno@clisp.org>
53937
53938         * m4/javacomp.m4: New file, from GNU gettext.
53939
53940 2005-01-28  Bruno Haible  <bruno@clisp.org>
53941
53942         * lib/javacomp.sh.in: New file, from GNU gettext.
53943         * lib/javacomp.h: New file, from GNU gettext.
53944         * lib/javacomp.c: New file, from GNU gettext.
53945
53946 2005-01-26  Simon Josefsson  <jas@extundo.com>
53947
53948         * lib/gai_strerror.c: Use GPL in header.
53949
53950 2005-01-26  Bruno Haible  <bruno@clisp.org>
53951
53952         * modules/javaexec: New file.
53953         * MODULES.html.sh (Java): Add javaexec.
53954
53955 2005-01-26  Bruno Haible  <bruno@clisp.org>
53956
53957         * m4/javaexec.m4: New file, from GNU gettext.
53958
53959 2005-01-26  Bruno Haible  <bruno@clisp.org>
53960
53961         * lib/javaexec.sh.in: New file, from GNU gettext.
53962         * lib/javaexec.h: New file, from GNU gettext.
53963         * lib/javaexec.c: New file, from GNU gettext.
53964
53965 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53966
53967         * modules/lchown (Depends-on): Remove lchown.h
53968
53969 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53970
53971         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53972         must be defined if the header file was not found, in order
53973         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53974
53975 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53976
53977         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53978         initializers for struct pentry_state.
53979         (__argp_error): Check return value of __asprintf
53980         (__argp_failure): Translate error message
53981
53982         * lib/argp-parse.c: Removed braces around the expansion of N_()
53983
53984 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53985
53986         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53987         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53988         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53989         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53990         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53991         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53992         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53993         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53994         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53995         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53996         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53997         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53998         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53999         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
54000         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
54001         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
54002         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
54003         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
54004         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
54005         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
54006         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
54007         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
54008         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
54009         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
54010         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
54011         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
54012         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
54013         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
54014         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
54015         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
54016         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
54017         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
54018         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
54019         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
54020         xstrtol.m4, xstrtoumax.m4, yesno.m4:
54021         Use an all-permissive copyright notice, recommended by RMS.
54022
54023 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
54024
54025         * modules/chdir-long (Depends-on): Remove mempcpy.
54026
54027 2005-01-21  Jim Meyering  <jim@meyering.net>
54028
54029         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
54030         same value as for Solaris 9.
54031
54032         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
54033         component length.  This included changing the parameter to be
54034         of type `char *' rather than `char const *'.
54035         * lib/chdir-long.h (chdir_long): Update prototype.
54036
54037         * lib/openat.c (fdopendir, fstatat): New functions.
54038         * lib/openat.h: Include headers required for use of DIR and struct
54039         stat.
54040         [AT_SYMLINK_NOFOLLOW]: Define.
54041         (fdopendir, fstatat): Add prototypes.
54042
54043 2005-01-21  Bruno Haible  <bruno@clisp.org>
54044
54045         * modules/classpath: New file.
54046         * MODULES.html.sh (Java): Add classpath.
54047
54048 2005-01-21  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/classpath.h: New file, from GNU gettext.
54051         * lib/classpath.c: New file, from GNU gettext.
54052
54053 2005-01-20  Simon Josefsson  <jas@extundo.com>
54054
54055         * modules/version-etc-fsf: New file.
54056
54057 2005-01-20  Simon Josefsson  <jas@extundo.com>
54058
54059         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
54060         * lib/version-etc.c: Remove version_etc_copyright.
54061         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
54062         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
54063
54064 2005-01-20  Simon Josefsson  <jas@extundo.com>
54065
54066         * lib/base64.h (isbase64): Add.
54067
54068         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
54069         using a unsigned prototype, don't inline.
54070         (base64_decode): Use it.
54071
54072 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54073
54074         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
54075         it.
54076
54077 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54078
54079         * lib/save-cwd.c (save_cwd): Remove code to support the case
54080         where fchdir is missing or flaky.
54081
54082 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
54085
54086 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54087
54088         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
54089         AC_LIBSOURCES now does this.
54090         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
54091         with new ullong_max module.
54092
54093 2005-01-19  Bruno Haible  <bruno@clisp.org>
54094
54095         * modules/sh-quote: New file.
54096         * MODULES.html.sh (Executing programs): Add sh-quote.
54097
54098 2005-01-19  Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/sh-quote.h: New file, from GNU gettext.
54101         * lib/sh-quote.c: New file, from GNU gettext.
54102
54103 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54104
54105         Merge from coreutils.
54106         * m4/ullong_max.m4: New file.
54107         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
54108         (gl_MACROS): Assume localeconv exists.
54109
54110 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54111
54112         Merge changes from coreutils, as described below in several
54113         changelogs dated today.
54114
54115         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
54116         (O_DIRECTORY): Remove; not needed here, since "." must be
54117         a directory.  All uses removed.
54118         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
54119         universal on Suns, and we also need to test for IRIX.
54120         Revamp code to use 'if' rather than '#if'.
54121         Avoid unnecessary comparison of cwd->desc to 0.
54122
54123         * lib/utimens.c (futimens): Robustify the previous patch, by checking
54124         for known valid error numbers rather than observed invalid ones.
54125
54126 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54127
54128         * modules/ullong_max: New file.
54129
54130         * modules/chdir-long, modules/openat: New files.
54131         * modules/save-cwd (Depends-on): Depend on chdir-long.
54132         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
54133
54134 2005-01-18  Jim Meyering  <jim@meyering.net>
54135
54136         Merge from coreutils.
54137         * m4/chdir-long.m4, m4/openat.m4: New files.
54138         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
54139         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
54140         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
54141         is sane and DOES follow symlinks.  Besides, testing 20 different
54142         systems found no broken chown implementations.
54143         Prompted by a change in rsync's copy of this macro.
54144         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
54145
54146         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
54147
54148         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
54149         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
54150         NULL-means-set-to-current-time semantics.
54151         Remove temporary file immediately, rather than waiting
54152         for configure's at-exit trap code to do it.
54153
54154 2005-01-18  Jim Meyering  <jim@meyering.net>
54155
54156         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54157
54158         * lib/utimens.c (futimens): Account for the fact that futimes
54159         can also fail with errno == ENOSYS or errno == ENOENT.
54160         Patch from Dmitry V. Levin.
54161
54162         Change the name of the robust chdir function from chdir to chdir_long.
54163         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
54164         (restore_cwd): Use chdir_long, not chdir.
54165         * lib/chdir-long.c: Renamed from chdir.c.
54166         * lib/chdir-long.h: Renamed from chdir.h.
54167         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
54168         Hurd.
54169
54170 2005-01-18  Bruno Haible  <bruno@clisp.org>
54171
54172         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
54173         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
54174         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
54175         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
54176         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
54177         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
54178         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
54179         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
54180         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
54181         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
54182         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
54183         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
54184         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
54185         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
54186         Use an all-permissive copyright notice, recommended by RMS.
54187
54188 2005-01-18  Bob Proulx  <bob@proulx.com>
54189
54190         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
54191         simplify offsetof() macro construct to avoid compile failure with
54192         native HP-UX 11.0 ANSI C compiler.
54193
54194 2005-01-17  Bruno Haible  <bruno@clisp.org>
54195
54196         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
54197         redundant because stpncpy.m4 takes care of it.
54198
54199 2005-01-17  Bruno Haible  <bruno@clisp.org>
54200
54201         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
54202
54203 2005-01-17  Bruno Haible  <bruno@clisp.org>
54204
54205         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
54206         used.
54207
54208 2005-01-17  Bruno Haible  <bruno@clisp.org>
54209
54210         * lib/fwriteerror.h (fwriteerror): Change specification to include
54211         fclose.
54212         * lib/fwriteerror.c: Include <stdbool.h>.
54213         (fwriteerror): At the end, close the file stream. Record whether
54214         stdout was already closed.
54215
54216 2005-01-17  Bruno Haible  <bruno@clisp.org>
54217
54218         * lib/execute.c (environ): Declare if needed.
54219         * lib/pipe.c (environ): Likewise.
54220         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54221
54222 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54223
54224         * modules/argp: Depend on vsnprintf
54225
54226 2005-01-10  Jim Meyering  <jim@meyering.net>
54227
54228         * modules/closeout (Depends-on): Add atexit.
54229
54230 2005-01-06  Bruno Haible  <bruno@clisp.org>
54231
54232         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54233
54234 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54235
54236         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54237         definitions to be after all include files, to avoid collisions.
54238         Problem reported by Bob Proulx.
54239
54240 2005-01-04  Jim Meyering  <jim@meyering.net>
54241
54242         Changes imported from coreutils.
54243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54244         as the mkstemp template, use a temporary directory and an
54245         8.3-friendly template to avoid trouble on systems like DJGPP.
54246         Reported by Juan M. Guerrero via Stepan Kasal.
54247         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54248         close. Remove the temporary directory right away, rather than waiting
54249         for configure's at-exit trap code to do it.
54250         Suggestion from Stepan Kasal.
54251
54252 2005-01-01  Simon Josefsson  <jas@extundo.com>
54253
54254         * gnulib-tool: Print #include directives when --import'ing.
54255
54256 2004-12-28  Simon Josefsson  <jas@extundo.com>
54257
54258         * tests/test-base64.c: Include required header files.  Remove
54259         unused variables.
54260
54261 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54262
54263         * modules/error (Depends-on): Remove gettext.
54264
54265 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54266
54267         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54268         not needed.  This removes a dependency on the gettext module.
54269         [defined _LIBC]: Do not include <libintl.h>; not needed.
54270
54271 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54272
54273         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54274         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54275
54276 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54277
54278         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54279         HAVE_DECL_STRTOLD.
54280
54281 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54282
54283         * modules/getdate (Depends-on): Remove alloca-opt.
54284
54285 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54286
54287         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54288
54289 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54290
54291         * lib/argp-parse.c: Include <stddef.h>.
54292         (alignof, alignto): New macros.
54293         (parser_init): Don't assume that void * is aligned sufficiently
54294         for struct option.
54295
54296         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54297         need to extend the stack.
54298         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54299         large.
54300
54301 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54302
54303         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54304
54305 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54306
54307         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54308         (2004-10-24) change.  Apparently this was a false alarm.
54309
54310         * modules/getdate: Depend on alloca-opt, not alloca.
54311
54312 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54313
54314         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54315         Remove now-obsolete comment about AIX.
54316         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54317         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54318         (YYMAXDEPTH): New macro.
54319
54320 2004-12-18  Simon Josefsson  <jas@extundo.com>
54321
54322         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54323
54324 2004-12-18  Bruno Haible  <bruno@clisp.org>
54325
54326         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54327
54328 2004-12-18  Bruno Haible  <bruno@clisp.org>
54329
54330         * lib/fatal-signal.c (fatal_signals): Make non-const.
54331         (init_fatal_signals): New function.
54332         (uninstall_handlers, install_handlers): Ignore signals that were set to
54333         SIG_IGN.
54334         (at_fatal_signal): Call init_fatal_signals.
54335         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54336         SIG_IGN.
54337         Reported by Paul Eggert.
54338
54339 2004-12-18  Bruno Haible  <bruno@clisp.org>
54340
54341         * doc/alloca.texi: New file.
54342         * doc/alloca-opt.texi: New file.
54343
54344 2004-12-17  Jim Meyering  <jim@meyering.net>
54345
54346         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54347         Otherwise, install-sh could exit with improper exit status when
54348         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54349
54350 2004-12-16  Simon Josefsson  <jas@extundo.com>
54351
54352         * tests/test-base64.c: Add license.
54353
54354 2004-12-15  Stepan Kasal  <address@hidden>
54355
54356         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54357
54358 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54359
54360         * modules/getcwd (Files): Add m4/d-ino.m4.
54361         Suggested by Mark D. Baushke.
54362
54363 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54364
54365         * lib/getdate.y (textint): New member "negative".
54366         (time_zone_hhmm): New function.
54367         Expect 14 shift-reduce conflicts, not 13.
54368         (o_colon_minutes): New rule.
54369         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54370         (yylex): Set the "negative" member of signed numbers.
54371
54372 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54373
54374         * doc/getdate.texi (Time of day items, Time zone items):
54375         Describe new formats +00:00, UTC+00:00.
54376
54377 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54378
54379         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54380         spurious "-l"s.  Problem reported by Stepan Kasal.
54381
54382 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54383
54384         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54385         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54386
54387 2004-12-04  Simon Josefsson  <jas@extundo.com>
54388
54389         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54390         Vandoorselaere <yoann@prelude-ids.org>.
54391
54392 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54393
54394         Changes imported from coreutils.
54395         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54396         exist.
54397         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54398
54399 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54400
54401         Changes imported from coreutils.
54402         * lib/hard-locale.c: Assume <locale.h> exists.
54403         Include "strdup.h".
54404         (GLIBC_VERSION): New macro.
54405         (hard_locale): Assume setlocale exists.
54406         Rewrite to avoid #ifdef.
54407         Use strdup rather than malloc + strcpy.
54408         * lib/human.c: Assume <locale.h> exists.
54409         (human_readable): Assume localeconv exists.
54410
54411 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54412
54413         * modules/hard-locale (Depends-on): Add strdup.
54414
54415 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54416
54417         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54418         convert T2, not T.  (Imported from libc.)
54419
54420 2004-11-30  Simon Josefsson  <jas@extundo.com>
54421
54422         * modules/restrict (License): Change to LGPL.
54423
54424 2004-11-30  Simon Josefsson  <jas@extundo.com>
54425
54426         * m4/restrict.m4: Add copyright and copying conditions.
54427
54428 2004-11-30  Simon Josefsson  <jas@extundo.com>
54429
54430         * m4/base64.m4: New file.
54431
54432 2004-11-30  Simon Josefsson  <jas@extundo.com>
54433
54434         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54435         base64.
54436
54437         * tests/test-base64.c: New file.
54438
54439         * modules/base64: New file.
54440
54441 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54442
54443         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54444         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54445
54446         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54447
54448 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54449
54450         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54451         (__getcwd.c): Don't restore errno; glibc doesn't.
54452         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54453         first, falling back to our code only if its results look suspicious.
54454         Ensure that the resulting buffer is only as large as necessary.
54455
54456         * lib/readutmp.c: Include readutmp.h first.
54457         Include <errno.h>, since readutmp.h no longer does that.
54458         * lib/readutmp.h: Don't include <errno.h>,
54459         <sys/param.h>, <time.h>; not needed to establish interface.
54460         (errno): Remove decl.
54461         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54462         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54463         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54464
54465 2004-11-28  Simon Josefsson  <jas@extundo.com>
54466
54467         * lib/base64.h, base64.c: New file.
54468
54469 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54470
54471         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54472
54473 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54474
54475         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54476         (Depends-on): Remove pathmax, same.  Add mempcpy.
54477         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54478         (Makefile.am): Append getcwd.h to lib_SOURCES.
54479         (Include): Add getcwd.h.
54480         (Maintainer): Change from Jim Meyering to "all, glibc",
54481         since getdate now uses intended-for-glibc code.
54482         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54483         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54484
54485 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54488         HP's ANSI C compiler.
54489         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54490         Declaring int functions causes warnings on some modern systems and
54491         shouldn't be needed to compile on ancient ones.
54492         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54493         defined.
54494
54495         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54496         with the following changes.
54497         (__set_errno): Parenthesize properly.
54498         Include <stdbool.h>.
54499         (MIN, MAX, MATCHING_INO): New macros.
54500         (__getcwd): Define with prototype, not K&R form.
54501         Use heuristics to allocate default buffer on stack if possible.
54502         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54503         behavior, and to avoid the PATH_MAX limit when computing
54504         ../../../../...
54505         Use MATCHING_INO to compare inode number to file.
54506         Check for arithmetic overflow in size calculations.
54507         Fix bug in reallocation of dot array that caused getcwd to fail
54508         on directories nested deeper than 75.
54509         Be more careful about saving errno on error.
54510         Do not use realloc; use only free+malloc, as this is a bit
54511         more flexible and avoids a needless copy operation.
54512         Do not inspect st_dev and st_ino for symbolic links; POSIX
54513         doesn't specify the latter.
54514         Check for closedir errors.
54515         Avoid needless casts.
54516         Use "#ifdef weak_alias" around weak_alias, to be like other
54517         glibc code.
54518         The following changes to getcwd.c have effect only when used in
54519         gnulib; they have no effect inside glibc proper.
54520         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54521         as alloca isn't used.
54522         (alloca, __alloca): Likewise.
54523         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54524         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54525         unconditionally, as gnulib assumes C89 or better.
54526         Do not include <sys/param.h>.
54527         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54528         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54529         better.
54530         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54531         Include <dirent.h> in a way that is compatible with modern Autoconf.
54532         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54533         New macros, if not already defined.
54534         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54535         Use "_LIBC", not "defined _LIBC", for consistency.
54536         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54537         a mempcpy module.
54538         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54539         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54540         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54541         credit only to Jim Meyering and adjust the copyright dates.
54542         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54543         <stdlib.h>, <unistd.h>, "pathmax.h".
54544         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54545         (INITIAL_BUFFER_SIZE): Remove.
54546         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54547
54548 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54549
54550         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54551         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54552         Use the _ONCE methods, for efficiency.
54553         Check for fcntl.h.  In test program, include <errno.h>
54554         and <fcntl.h> if available.  Remove old K&R cruft from
54555         test program.  Check for common errors in GNU/Linux,
54556         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54557         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54558         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54559         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54560         name accordingly.
54561         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54562         accommodate new getcwd.c.
54563         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54564         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54565         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54566         that's all we need now.
54567
54568 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54569
54570         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54571         argp-parse.c depends on getopt internals, that means we should
54572         always use our getopt, to be on the safe side.
54573         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54574         order not to spoil the result of an eventual previous invocation
54575         of gl_GETOPT_SUBSTITUTE.
54576
54577 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54578
54579         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54580         redefinition warnings. To avoid them, include the defines
54581         in `#if !defined __need_getopt ... #endif'. The only place
54582         where __getopt_argv_const is used is in definitions
54583         of getopt_long and getopt_long_only below, which are as well
54584         protected by `#ifndef __need_getopt'.
54585         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54586         __need_getopt after including <stdio.h> and <unistd.h> These
54587         headers might have defined it.
54588
54589 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54590
54591         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54592
54593 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54594
54595         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54596         (futimens): New function, which uses futimes if available.
54597         (futimens, utimens): Support timespec==NULL, with same semantics
54598         as utime and utimens.
54599         * lib/utimens.h (futimens): New decl.
54600
54601 2004-11-23  Jim Meyering  <jim@meyering.net>
54602
54603         * lib/getopt_.h: Remove trailing blanks.
54604
54605 2004-11-23  Jim Meyering  <jim@meyering.net>
54606
54607         * lib/__fpending.c: Add comment.
54608
54609 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54610
54611         * modules/canonicalize (Depends-on): Add xreadlink.
54612         Problem reported by James Youngman.
54613
54614 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54615
54616         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54617         New macros.
54618         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54619         optopt): Use them instead of invoking ## directly; otherwise, the
54620         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54621
54622 2004-11-19  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/strtok_r.c: Move comments from here...
54625         * lib/strtok_r.h: ... to here.
54626
54627 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54628
54629         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54630         implementations that mishandle size_t overflow.
54631
54632 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54633
54634         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54635         might fail.  Problem reported by Yoann Vandoorselaere.
54636         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54637         implementations that mishandle size_t overflow.
54638
54639 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54640
54641         * modules/canon-host (Depends-on): Add strdup.
54642
54643 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54644
54645         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54646
54647 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         * lib/canon-host.c: Include "strdup.h".
54650         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54651         Use strdup instead of malloc/strcpy to duplicate strings.
54652
54653         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54654         (human_space_before_unit): New constant.
54655         * lib/human.c (human_readable): Support it.
54656
54657         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54658         (xgetcwd): Set errno correctly when failing.
54659         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54660         the failure is actually due to a PATH_MAX problem.
54661
54662         Further getopt changes to make it more likely that glibc will
54663         buy the changes back.
54664         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54665         (getopt): Use it, so to preserve glibc semantic
54666         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54667         when compiling for libc.
54668         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54669         (getopt_long, getopt_long_only): Use it.
54670
54671         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54672         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54673         (getopt): Argv is now char * const *, as per standard.
54674         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54675         not char *__getopt_argv_const *.
54676         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54677         _getopt_long_only_r): Likewise.
54678         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54679         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54680         _getopt_long_r, _getopt_long_only_r): Likewise.
54681         * lib/getopt_.h (__getopt_argv_const): Remove.
54682         (getopt): Argv is now char * const *, as per standard.
54683
54684         * lib/getdate.y (tORDINAL): New token.
54685         (day, relunit): Allow it for relative times.
54686         (relative_time_table): Use tORDINAL for ordinals.
54687
54688 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54689
54690         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54691         Document that "second" isn't allowed as an ordinal number.
54692
54693 2004-11-16  Jim Meyering  <jim@meyering.net>
54694
54695         * modules/closeout (Depends-on): Add fpending.
54696
54697 2004-11-15  Jim Meyering  <jim@meyering.net>
54698
54699         * lib/closeout.c: Include "__fpending.h" once again.
54700         Include <stdbool.h>.
54701         (close_stdout): Don't fail just because stdout was closed initially,
54702         since some programs don't write to stdout in the normal course of
54703         operation (other than --version and --help), and we don't want this
54704         function to make e.g. `touch file >&-' fail.
54705         But do fail if it was closed and someone has tried to write to it.
54706         E.g., `printf foo >&-' must fail.
54707
54708 2004-11-13  Jim Meyering  <jim@meyering.net>
54709
54710         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54711
54712 2004-11-12  Simon Josefsson  <jas@extundo.com>
54713
54714         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54715         small doc fix is still pending.
54716
54717 2004-11-11  Simon Josefsson  <jas@extundo.com>
54718
54719         * modules/strtok_r: New file.
54720
54721         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54722         strtok_r.
54723
54724 2004-11-11  Simon Josefsson  <jas@extundo.com>
54725
54726         * m4/strtok_r.m4: New file.
54727
54728         * m4/getopt.m4: Replace opterr.
54729
54730 2004-11-11  Simon Josefsson  <jas@extundo.com>
54731
54732         * lib/strtok_r.h, strtok_r.c: New file.
54733
54734 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54735
54736         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54737         of replacing opterr, getopt, etc.  This should handle the
54738         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54739
54740 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54741
54742         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54743         we can stop lying to compilers about the constness of argv when we
54744         are compiled outside glibc.
54745         (getopt, getopt_long, getopt_long_only): Use it.
54746         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54747         _getopt_internal, getopt): Likewise.
54748         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54749         _getopt_long_only_r): Likewise.
54750         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54751         _getopt_long_r, _getopt_long_only_r): Likewise.
54752
54753         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54754         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54755         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54756         the other external symbols.
54757         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54758         declaration, since the above renaming now works around collisions.
54759
54760 2004-11-11  Jim Meyering  <jim@meyering.net>
54761
54762         * lib/linebreak.c: Remove trailing blanks.
54763         * lib/alloca_.h: Likewise.
54764         * lib/acosl.c: Likewise.
54765         * lib/euidaccess.c: Likewise.
54766         * lib/allocsa.h: Likewise.
54767
54768 2004-11-10  Simon Josefsson  <jas@extundo.com>
54769
54770         * m4/getaddrinfo.m4: New file.
54771
54772 2004-11-10  Simon Josefsson  <jas@extundo.com>
54773
54774         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54775
54776 2004-11-10  Simon Josefsson  <jas@extundo.com>
54777
54778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54779         getaddrinfo.
54780
54781         * modules/getaddrinfo: New file.
54782
54783 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54784
54785         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54786
54787 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54788
54789         * lib/mktime.c (SHR): New macro, which is a portable
54790         substitute for >> that should work even on Crays.
54791         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54792         Problem reported by Mark D. Baushke in
54793         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54794         * lib/getdate.y (SHR): Likewise.
54795         (tm_diff): Use it.
54796         * lib/strftime.c (SHR): Likewise.
54797         (tm_diff): Use it.
54798         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54799         quote_these_too, so that right shifts are well defined.  All uses
54800         changed.
54801
54802 2004-11-10  Jim Meyering  <jim@meyering.net>
54803
54804         Ensure that no close failure goes unreported.
54805         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54806         return early when it seems there's nothing to flush.
54807         Don't include __fpending.h.
54808
54809 2004-11-10  Jim Meyering  <jim@meyering.net>
54810
54811         * modules/closeout (Depends-on): Remove fpending.
54812
54813 2004-11-10  Jim Meyering  <jim@meyering.net>
54814
54815         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54816
54817 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54818
54819         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54820         gl_FUNC_STRFTIME.
54821         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54822         and AC_REQUIRE when possible, to avoid duplicate checks.
54823         Check for <wchar.h>.
54824
54825 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54826
54827         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54828
54829 2004-11-09  Bruno Haible  <bruno@clisp.org>
54830
54831         * m4/sockpfaf.m4: New file.
54832
54833 2004-11-05  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54836         Reported by Mark D. Baushke <mdb@cvshome.org>.
54837
54838 2004-11-04  Bruno Haible  <bruno@clisp.org>
54839
54840         2004-09-11  Bruno Haible  <bruno@clisp.org>
54841                 * allocsa.valgrind: New file.
54842         2004-02-06  Bruno Haible  <bruno@clisp.org>
54843                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54844                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54845                 Reported by Christopher Seip <chris.seip@hp.com>.
54846
54847 2004-11-04  Bruno Haible  <bruno@clisp.org>
54848
54849         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54850         (Makefile.am): Distribute it.
54851
54852 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54853
54854         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54855         with errno == ERANGE if the buffer is too small.
54856         Problem reported by Mark D. Baushke.
54857
54858 2004-11-03  Albert Chin  <china@thewrittenword.com>
54859             Paul Eggert  <eggert@cs.ucla.edu>
54860
54861         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54862         equivalent, substitute $ac_type for equivalent type rather than
54863         blindly using uint32_t *always* which won't work if uint32_t is not
54864         available.  Define _UINT32_T to work around typedef of uint32_t if
54865         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54866         2.5.1.
54867
54868 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54869
54870         * m4/jm-macros.m4: Sync from coreutils.
54871         (gl_MACROS): Check for mbrlen, for pathchk.
54872         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54873
54874 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54875
54876         * lib/xreadlink.c (MAXSIZE): New macro.
54877         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54878         size does not exceed MAXSIZE.  Avoid cast.
54879         As suggested by Mark D. Baushke in
54880         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54881         if readlink fails with buffer size just under MAXSIZE, try again
54882         with MAXSIZE.
54883
54884 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54885
54886         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54887
54888 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54889         and  Paul Eggert  <eggert@cs.ucla.edu>
54890
54891         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54892         (get_date): Overparenthesize to avoid GCC warning.
54893
54894 2004-11-02  Bruno Haible  <bruno@clisp.org>
54895
54896         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54897         returns void.
54898
54899 2004-11-02  Bruno Haible  <bruno@clisp.org>
54900
54901         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54902         function returns void.
54903
54904 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54905
54906         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54907         fflush_unlocked, flockfile, funlockfile, funlockfile,
54908         fputs_unlocked, putc_unlocked.
54909
54910 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54911
54912         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54913         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54914         already declared.
54915
54916 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54917
54918         * modules/getdate (Files): Add doc/getdate.texi.
54919         (Depends-on): Add setenv, xalloc.
54920
54921 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54922
54923         * lib/getdate.y: Add support for TZ="foo" within a date string.
54924         Fix some bugs near time_t boundaries.  Reject dates with
54925         out-of-range components, e.g., "Sept 31".
54926         Include <stdlib.h>, "setenv.h", "xalloc.h".
54927         (ISDIGIT_LOCALE): Remove; unused.
54928         Note that the TZ and time functions used here are not reentrant.
54929         (mktime_ok, get_tz): New functions.
54930         (TZBUFSIZE): New constant.
54931         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54932         This requires that we sometimes generate our own TZ="XXX..." setting.
54933
54934 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54935
54936         * doc/getdate.texi: New file, from coreutils with modifications for
54937         the new TZ parsing.
54938
54939 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54940
54941         * lib/mktime.c (not_equal_tm): Remove redundant check.
54942
54943 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54944
54945         * modules/regex (lib_SOURCES): Add regex.c.
54946         Reported by James Youngman in
54947         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54948
54949 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54950
54951         * lib/getdate.y: Use Bison 1.875 features, and some minor
54952         code cleanups.  This change does not affect semantics.
54953         Don't include <stdlib.h>; no longer needed.
54954         Don't include unlocked-io.h; only the "#if TEST" code uses
54955         stdio, and performance isn't crucial there.
54956         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54957         Bison 1.875 features as described below.
54958         All uses of "PC." replaced by "pc->".
54959         (YYSTYPE): Add a forward declaration.
54960         (yylex, yyerror): Use full prototypes in forward decls.
54961         Use "%pure-parser" rather than obsolescent "%pure_parser".
54962         Use %parse-param and %lex-param instead of obsolescent
54963         YYPARSE_PARAM and YYLEX_PARAM.
54964         (meridian_table, month_and_day_table, time_units_table,
54965         relative_time_table, time_zone_table, military_table,
54966         lookup_zone, lookup_word, get_date):
54967         Use NULL instead of 0 where appropriate.
54968         (to_hour): Avoid abort (), to avoid a dependency on
54969         stdlib.h.
54970         (yyerror, yylex): Now accepts parser_control * arg.
54971         (main) [TEST]: Use '\0' rather than 0 for char.
54972
54973 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54974
54975         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54976
54977 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54978
54979         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54980         It's now the caller's responsibility to handle the case where
54981         !HAVE_GETPAGESIZE && !defined getpagesize.
54982
54983         * lib/mktime.c (leapyear): Arg is long int, not int.
54984
54985 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54986
54987         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54988
54989 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54990
54991         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54992         missing.  Problem reported by James Youngman.
54993
54994 2004-10-16  Simon Josefsson  <jas@extundo.com>
54995
54996         * gnulib-tool: Fix comments.  Fix parse problem.
54997         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54998
54999 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
55000
55001         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
55002         implementation of getopt_long.  Problem reported by Alexander Taler in:
55003         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
55004
55005 2004-10-15  Bruno Haible  <bruno@clisp.org>
55006
55007         * gnulib-tool: Untabify. Initialize supplied_libname.
55008         (func_usage): More homogenous output.
55009         (func_modules_transitive_closure, func_modules_to_filelist,
55010         func_emit_lib_Makefile_am): New functions.
55011         (func_import): New function, extracted from big case statement. Use
55012         func_get_license, func_modules_transitive_closure,
55013         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
55014         opt_lgpl. Don't use test -a, as it's not portable.
55015         (func_create_testdir): Use func_modules_transitive_closure,
55016         func_modules_to_filelist, func_emit_lib_Makefile_am.
55017
55018 2004-10-15  Bruno Haible  <bruno@clisp.org>
55019
55020         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
55021
55022 2004-10-15  Bruno Haible  <bruno@clisp.org>
55023
55024         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
55025         the portions belonging to each module.
55026         Suggested by Derek Robert Price <derek@ximbiot.com>.
55027
55028 2004-10-12  Simon Josefsson  <jas@extundo.com>
55029
55030         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
55031         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
55032         to real functions.
55033
55034 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55035
55036         * modules/vsnprintf: New file.
55037
55038 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55039
55040         * m4/vsnprintf.m4: New file.
55041
55042 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55043
55044         * lib/vsnprintf.h: New file.
55045         * lib/vsnprintf.c: New file.
55046
55047 2004-10-11  Bruno Haible  <bruno@clisp.org>
55048
55049         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
55050         vsnprintf.
55051
55052 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55053
55054         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
55055
55056 2004-10-07  Bruno Haible  <bruno@clisp.org>
55057
55058         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
55059         fits into the provided buffer.
55060
55061 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55062
55063         * lib/diacrit.c, diacrit.h: Add GPL notice.
55064
55065         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
55066         notice.
55067         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
55068         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
55069         This avoids a potential constant-folding bug.
55070
55071 2004-10-05  Bruno Haible  <bruno@clisp.org>
55072
55073         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
55074         for the declaration of strsep.
55075
55076 2004-10-05  Bruno Haible  <bruno@clisp.org>
55077
55078         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
55079
55080 2004-10-04  Simon Josefsson  <jas@extundo.com>
55081
55082         * modules/memmem: New file.
55083         * tests/test-memmem.c: New file.
55084         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
55085
55086 2004-10-04  Simon Josefsson  <jas@extundo.com>
55087
55088         * m4/memmem.m4: New file.
55089
55090 2004-10-04  Simon Josefsson  <jas@extundo.com>
55091
55092         * lib/memmem.h: New file.
55093         * lib/memmem.c: New file, taken from glibc.
55094
55095 2004-10-04  Simon Josefsson  <jas@extundo.com>
55096
55097         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
55098         '#ifdef USE_UNLOCKED_IO'.
55099
55100 2004-10-04  Simon Josefsson  <jas@extundo.com>
55101
55102         * config/srclist.txt: Add memmem from glibc.
55103
55104 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
55107
55108         * modules/argmatch, modules/argp, modules/closeout, modules/error,
55109         modules/exclude, modules/getdate, modules/getline,
55110         modules/getndelim2, modules/getpass, modules/getpass-gnu,
55111         modules/getusershell, modules/linebuffer, modules/md5,
55112         modules/mountlist, modules/posixtm, modules/readtokens,
55113         modules/readutmp, modules/regex, modules/sha1,
55114         modules/version-etc, modules/yesno:
55115         Remove dependency on unlocked-io.
55116
55117 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55118
55119         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
55120
55121         * m4/unlocked-io.m4: Add copyright notice.
55122         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
55123
55124 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55125
55126         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
55127         * lib/xmalloc.c (xmemdup): Likewise.
55128         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
55129         XFREE): Remove these long-obsolescent macros.
55130         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
55131         * lib/xstrdup.c: Remove.
55132
55133         * lib/regex.c (re_comp): Cast gettext return value to char *,
55134         Problem reported by Martin Neitzel via Mark D. Baushke.
55135
55136 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55137
55138         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
55139         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
55140         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
55141         regex.c, sha1.c, version-etc.c, yesno.c:
55142         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
55143         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
55144         the includer's responsibility.
55145
55146         Sync from coreutils.
55147
55148         * lib/modechange.c (mode_compile): Don't decrement a pointer that
55149         points to the start of a string, as the C Standard says the
55150         resulting behavior is undefined.
55151
55152         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
55153         simple -> simple_backups, numbered_existing ->
55154         numbered_existing_backups, numbered -> numbered_backups
55155         to avoid shadowing problems.  All uses changed.
55156         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
55157         * lib/backupfile.c (check_extension, numbered_backup):
55158         Rename locals to avoid shadowing 'basename'.
55159         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
55160         once.
55161
55162         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
55163         * lib/.cvsignore: Add getopt.h.
55164
55165 2004-10-04  Bruno Haible  <bruno@clisp.org>
55166
55167         * modules/README: New file.
55168         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
55169         not a module.
55170
55171 2004-10-02  Jim Meyering  <jim@meyering.net>
55172
55173         * lib/dirfd.h, getpagesize.h: Add copyright notice.
55174
55175 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55176
55177         * modules/strsep: New file.
55178
55179 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55180
55181         * m4/strsep.m4: New file.
55182
55183 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55184
55185         * lib/strsep.h: New file.
55186         * lib/strsep.c: New file.
55187
55188 2004-10-01  Simon Josefsson  <jas@extundo.com>
55189
55190         * lib/snprintf.c (snprintf): Handle size==0.
55191
55192 2004-10-01  Simon Josefsson  <jas@extundo.com>
55193             Bruno Haible  <bruno@clisp.org>
55194
55195         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
55196         (snprintf): Declare 'args'.
55197
55198 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
55199
55200         * lib/snprintf.c: Remove comments as to why each header is needed.
55201
55202 2004-10-01  Bruno Haible  <bruno@clisp.org>
55203
55204         * MODULES.html.sh: Add strsep.
55205
55206 2004-09-30  Simon Josefsson  <jas@extundo.com>
55207
55208         * modules/snprintf: New file.
55209
55210 2004-09-30  Simon Josefsson  <jas@extundo.com>
55211
55212         * m4/snprintf.m4: New file.
55213
55214 2004-09-30  Simon Josefsson  <jas@extundo.com>
55215
55216         * lib/snprintf.h, lib/snprintf.c: New files.
55217
55218 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55219
55220         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55221         (hol_entry_help): Never translate an empty string.
55222         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55223         * lib/argp.h (OPTION_NO_TRANS): New option.
55224
55225 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55226
55227         * modules/argp (Maintainer): Replace Simon Josefsson
55228         by Sergey Poznyakoff.
55229
55230 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55231
55232         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55233         changes merged back into glibc.
55234
55235 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55236
55237         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55238
55239 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55240
55241         * lib/xvasprintf.c: Include xalloc.h.
55242         (xvasprintf): Use xalloc_die, not xmalloc_die.
55243
55244 2004-09-29  Bruno Haible  <bruno@clisp.org>
55245
55246         * modules/alloca-opt: New file, derived from modules/alloca.
55247         * modules/allocsa: Depend on alloca-opt instead of alloca.
55248         * modules/setenv: Likewise.
55249         * modules/vasnprintf: Likewise.
55250         * MODULES.html.sh: Add alloca-opt.
55251
55252 2004-09-28  Simon Josefsson  <jas@extundo.com>
55253
55254         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55255         LGPL, and to replace license template from GPL to LGPL.
55256
55257 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55258
55259         * modules/dummy: Change license to LGPL.
55260
55261 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55262
55263         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55264
55265 2004-09-24  Simon Josefsson  <jas@extundo.com>
55266
55267         * modules/minmax (License): Change from GPL to LGPL.
55268
55269 2004-09-23  Simon Josefsson  <jas@extundo.com>
55270
55271         * gnulib-tool (--import): Typo.
55272
55273 2004-09-23  Simon Josefsson  <jas@extundo.com>
55274
55275         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55276
55277 2004-09-22  Bruno Haible  <bruno@clisp.org>
55278
55279         * modules/*: Add 'License' field.
55280         * gnulib-tool: Accept --extract-license option.
55281         (func_get_license): New function.
55282
55283 2004-09-21  Bruno Haible  <bruno@clisp.org>
55284
55285         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55286         Reported by Simon Josefsson.
55287
55288 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55291         gl_AC_TYPE_LONG_LONG.
55292
55293 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55294
55295         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55296
55297 2004-09-18  Simon Josefsson  <jas@extundo.com>
55298         and  Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55301         calls with autoreconf.  Define GL_LIB.
55302
55303 2004-09-14  Karl Berry  <karl@gnu.org>
55304
55305         * config/srclist.txt: unsync setenv.c, sigh.
55306
55307 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55308
55309         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55310         Problem reported by Bruno Haible in:
55311         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55312
55313 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55314
55315         * config/srclist.txt: Comment out argp-pvh.c.
55316
55317 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55318
55319         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55320         in case some system header has #define'd it.  Problem reported by
55321         Soeren D. Schulze in
55322         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55323
55324 2004-09-09  Karl Berry  <karl@gnu.org>
55325
55326         * regex.[ch]: delete from the root.  These were supposed to be
55327                 synced with emacs cvs, but this has not happened for about
55328                 a year, and anyway nothing else uses emacs regex.[ch].
55329                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55330                 lib/regex[.ch] is untouched.
55331
55332 2004-09-09  Bruno Haible  <bruno@clisp.org>
55333
55334         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55335
55336 2004-09-09  Bruno Haible  <bruno@clisp.org>
55337
55338         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55339         modifications.
55340         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55341
55342 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55343
55344         * modules/xvasprintf: New file.
55345         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55346
55347 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55348
55349         * lib/xvasprintf.h: New file.
55350         * lib/xvasprintf.c: New file.
55351         * lib/xasprintf.c: New file.
55352
55353 2004-09-08  Bruno Haible  <bruno@clisp.org>
55354
55355         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55356
55357 2004-09-08  Bruno Haible  <bruno@clisp.org>
55358
55359         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55360         length is > INT_MAX.
55361         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55362         more.
55363
55364 2004-09-08  Bruno Haible  <bruno@clisp.org>
55365
55366         * lib/stdint_.h: New file, taken from GNU clisp.
55367
55368 2004-09-08  Bruno Haible  <bruno@clisp.org>
55369             Oskar Liljeblad  <oskar@osk.mine.nu>
55370
55371         * modules/stdint: New file.
55372         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55373
55374 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55375
55376         Import from coreutils.
55377         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55378         strings on unbounded length.  alloca's performance benefits aren't
55379         that important here.
55380         (V_STRDUP): Remove.
55381         (parse_with_separator): New function, with most of the internals
55382         of the old parse_user_spec.  Allow user to omit both user and group,
55383         for compatibility with FreeBSD.
55384         Clone only the user name, not the entire spec.
55385         Do not set *uid, *gid unless entirely successful.
55386         Avoid memory leak in some failing cases.
55387         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55388         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55389         (parse_user_spec): Rewrite to use parse_with_separator.
55390
55391 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55392
55393         * modules/userspec: Don't depend on alloca.
55394
55395 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55396
55397         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55398
55399 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55400
55401         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55402         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55403         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55404
55405 2004-08-16  Simon Josefsson  <jas@extundo.com>
55406
55407         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55408         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55409         Add --dry-run for --import.
55410         Let user provided command line parameters override configure.ac
55411         settings.
55412
55413 2004-08-12  Simon Josefsson  <jas@extundo.com>
55414
55415         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55416         as discussed with Paul Eggert in threads rooted at
55417         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55418         and
55419         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55420         Before, the test was empty, and relied on ELIDE_CODE in source
55421         code.)
55422         (gl_PREREQ_GETOPT): New macro.
55423         (gl_GETOPT): Use them.
55424
55425 2004-08-12  Simon Josefsson  <jas@extundo.com>
55426
55427         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55428         * lib/getopt_.h: Renamed from getopt.h.
55429
55430 2004-08-12  Simon Josefsson  <jas@extundo.com>
55431
55432         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55433         Change default library name from libfoo to libgnu.
55434         Now, if you have a configure.ac that says:
55435                 gl_SOURCE_BASE(gl)
55436                 gl_M4_BASE(gl/m4)
55437                 gl_MODULES(error getopt etcetera)
55438                 gl_INIT
55439         you can import all you need by running:
55440                 ../gnulib/gnulib-tool --import
55441
55442         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55443         (Makefile.am): Rewrite, use logic from argz.
55444         (Include): Use <getopt.h> instead of "getopt.h".
55445
55446 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55447
55448         * modules/argp (Files): Add m4/unlocked-io.m4.
55449         (Depends-on): Add extensions.
55450
55451 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55452
55453         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55454         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55455         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55456         Check for program_invocation_name, program_invocation_short_name,
55457         flockfile, funlockfile, features.h, _getopt_long_only_r.
55458
55459 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55460
55461         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55462         its complicated substitute.
55463         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55464         and program_invocation_name.
55465         (__argp_basename) [!_LIBC]: Remove; the only use was
55466         replaced by its body.
55467         (__argp_short_program_name): Change condition from
55468         !defined __argp_short_program_name to
55469         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55470         to match argp-namefrob.h.
55471         (__argp_failure): Don't assume strerror_r returns char *.
55472         * lib/argp-parse.c (N_): Define unconditionally.
55473         (argp_default_options): Fill out initializers with 0 to avoid
55474         gcc warnings.
55475
55476 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55477
55478         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55479         getopt1.c.
55480
55481 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55482
55483         Merge from coreutils.
55484
55485         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55486
55487         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55488         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55489
55490 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55491
55492         Merge from coreutils.
55493
55494         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55495         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55496         for Reliant Unix 5.43.
55497
55498         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55499         (union fooround): Use uintmax_t, not long int.
55500         The rest is a merge from libc:
55501         [defined _LIBC]: Include <shlib-compat.h>.
55502         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55503
55504         * lib/settime.c (settime): Recode to avoid warning with
55505         Sun Forte C 6U2.
55506
55507         * lib/strverscmp.c: Convert to UTF-8.
55508
55509 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55510
55511         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55512         m4/uintmax_t.m4.
55513
55514 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55515
55516         * modules/xalloc-die: New file.
55517         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55518
55519         * modules/md5 (Files): Add m4/uint32_t.m4.
55520         * modules/sha1: Renamed from modules/sha.
55521         (Files):
55522         Rename lib/sha.h to lib/sha1.h.
55523         Rename lib/sha.c to lib/sha1.c.
55524         Rename m4/sha.m4 to m4/sha1.m4.
55525         (lib_SOURCES): Likewise.
55526         (configure.ac): Rename gl_SHA to gl_SHA1.
55527         (Include): sha.h -> sha1.h.
55528
55529 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55530
55531         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55532         * m4/sha1.m4: Renamed from sha.m4.
55533         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55534
55535 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55536
55537         * lib/obstack.h (obstack_empty_p):
55538         Don't assume that chunk->contents is suitably aligned.
55539         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55540         Likewise. Problem reported by Benno in
55541         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55542
55543         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55544         readable.  This could be improved further but it'd take some work.
55545
55546 2004-08-08  Simon Josefsson  <jas@extundo.com>
55547
55548         * modules/xgethostname (Depends-on): Remove exit and error (not
55549         used).
55550
55551         * modules/getpass-gnu: Add getpass.h.
55552         (Depends-on): Add stdbool.
55553         * modules/getpass: Add getpass.h.
55554
55555 2004-08-08  Simon Josefsson  <jas@extundo.com>
55556
55557         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55558         Check getpass declaration.
55559
55560 2004-08-08  Simon Josefsson  <jas@extundo.com>
55561
55562         * lib/xgethostname.c: Don't include error.h (not used).
55563
55564         * lib/getpass.h: Add.
55565         * lib/getpass.c: Include getpass.h first.
55566
55567 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55568
55569         * lib/xalloc-die.c: New file.
55570         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55571         All uses removed.
55572         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55573         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55574         xalloc-die.c.
55575         (_, N_, xalloc_die): Move to xalloc-die.c.
55576         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55577         so that we needn't mess with xalloc_msg_memory_exhausted.
55578
55579         * lib/sha1.h: Renamed from sha.h.
55580         (SHA1_H): Renamed from _SHA_H.
55581         (sha1_ctx): Renamed from sha_ctx.
55582         (sha1_init_ctx): Renamed from sha_init_ctx.
55583         (sha1_process_block): Renamed from sha_process_block.
55584         (sha1_process_bytes): Renamed from sha_process_bytes.
55585         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55586         (sha1_read_ctx): Renamed from sha_read_ctx.
55587         (sha1_stream): Renamed from sha_stream.
55588         (sha1_buffer): Renamed from sha_buffer.
55589         * lib/sha1.c: Likewise; renamed from sha.c.
55590         Do not include <sys/types.h>.
55591         Include <stddef.h> rather than <stdlib.h>.
55592
55593 2004-08-08  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55596         FILESYSTEM_PREFIX_LEN.
55597         * lib/progreloc.c: Likewise.
55598         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55599
55600 2004-08-06  Simon Josefsson  <jas@extundo.com>
55601
55602         * modules/progname (Depends-on): Don't depend on stdbool.
55603
55604 2004-08-06  Simon Josefsson  <jas@extundo.com>
55605
55606         * modules/getsubopt: New file.
55607         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55608         getsubopt.
55609
55610 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55611
55612         More merge from coreutils.
55613
55614         * m4/utimens.m4, m4/utimecmp.m4: New files.
55615         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55616         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55617         prereq.m4, sha.m4: Import changes from coreutils.
55618
55619 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55620
55621         More merge from coreutils.
55622         * modules/raise, modules/readtokens0, modules/utimens:
55623         * modules/utimecmp, module/xnanosleep: New files.
55624         * modules/strftime: Add lib/strftime.h.
55625         Change include from <time.h> to "strftime.h".
55626         * modules/yesno: Add lib/yesno.h.
55627         * modules/backupfile: Remove lib/addext.c.
55628         * modules/euidaccess: Add stat-macros.h.
55629         * modules/canonicalize, modules/euidaccess,
55630         modules/filemode, modules/lchown, modules/makepath,
55631         modules/rmdir, modules/stat: Likewise.
55632
55633 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55634
55635         Merge from tar.
55636         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55637         SIZE_MAX is a valid preprocessor constant.
55638         (__argp_basename): Change from "#ifndef _LIBC"
55639         to "#ifndef __argp_short_program_name", so that
55640         we don't compile these functions for tar.
55641
55642         More merges from coreutils.
55643         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55644         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55645         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55646         * lib/addext.c: Remove; no longer needed.
55647         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55648         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55649         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55650         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55651         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55652         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55653         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55654         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55655         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55656         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55657         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55658         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55659         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55660         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55661         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55662         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55663         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55664         Import changes from coreutils.
55665
55666 2004-08-05  Simon Josefsson  <jas@extundo.com>
55667
55668         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55669
55670 2004-08-05  Simon Josefsson  <jas@extundo.com>
55671
55672         * m4/getsubopt.m4: New file.
55673
55674 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55675
55676         Merge from coreutils.
55677
55678         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55679         * m4/getcwd-path-max.m4: New files.
55680
55681         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55682         FILESYSTEM_PREFIX_LEN ->
55683         FILE_SYSTEM_PREFIX_LEN.
55684         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55685         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55686         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55687         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55688
55689         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55690         prerequisite modules now handle the DOS stuff.
55691         Don't check for unistd.h.
55692
55693 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55694
55695         Merge from coreutils.
55696
55697         * lib/.gdb-history: Remove; this doesn't belong here.
55698
55699         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55700         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55701         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55702         * lib/getcwd.c: New files.
55703
55704         * lib/dirname.h: Include <stdbool.h>.
55705         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55706         for consistency with POSIX terminology.  All uses changed.
55707         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55708         (strip_trailing_slashes): Use bool for booleans.
55709         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55710
55711         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55712         sometimes returns a positive errno value even when it succeeds.
55713         (print_errno_message) [!LIBC]: Fall back on strerror if
55714         __strerror_r fails.
55715
55716         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55717         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55718         (longest_relative_suffix): New function.
55719         (path_concat): Use it.  Assume first argument is not NULL.
55720         Port to DOS.  Omit redundant separators.
55721         Report an error instead of returning NULL.
55722         Use mempcpy instead of memcpy.
55723         (xpath_concat): Remove: not declared or used.
55724
55725         * lib/same.h: Include <stdbool.h>
55726         (same_name): Return bool, not int.
55727         * lib/same.c (same_name): Likewise.
55728         (errno): Don't declare; we assume C89 or better now.
55729
55730         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55731         if not already defined.
55732
55733         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55734         * lib/dup-safer.c (errno): Likewise.
55735
55736 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55737
55738         Merge from coreutils.
55739         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55740         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55741         * modules/path-concat: Don't depend on strdup.
55742
55743 2004-08-03  Simon Josefsson  <jas@extundo.com>
55744
55745         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55746         * lib/progname.h: Don't include stdbool.h.
55747
55748 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55749
55750         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55751         * MODULES.html.sh (func_all_modules): Remove fatal.
55752
55753 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55754
55755         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55756
55757 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55758
55759         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55760         working.
55761
55762 2004-08-02  Simon Josefsson  <jas@extundo.com>
55763
55764         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55765         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55766         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55767
55768 2004-08-01  Simon Josefsson  <jas@extundo.com>
55769
55770         * lib/xgetdomainname.c: Include stdlib.h, for free().
55771
55772 2004-07-19  Bruno Haible  <bruno@clisp.org>
55773
55774         * MODULES.html.sh (func_all_modules): Add dummy.
55775
55776 2004-07-16  Simon Josefsson  <jas@extundo.com>
55777
55778         * modules/dummy: New file.
55779
55780 2004-07-16  Simon Josefsson  <jas@extundo.com>
55781
55782         * lib/dummy.c: New file.
55783
55784 2004-07-16  Bruno Haible  <bruno@clisp.org>
55785
55786         * lib/backupfile.h: Add extern "C" for C++.
55787         * lib/closeout.h: Likewise.
55788         * lib/copy-file.h: Likewise.
55789         * lib/findprog.h: Likewise.
55790         * lib/full-write.h: Likewise.
55791         * lib/pathname.h: Likewise.
55792         * lib/progname.h: Likewise.
55793         * lib/stpcpy.h: Likewise.
55794         * lib/stpncpy.h: Likewise.
55795         * lib/strcase.h: Likewise.
55796         * lib/strstr.h: Likewise.
55797         * lib/xalloc.h: Likewise.
55798
55799         * lib/mbswidth.h: Add extern "C" for C++.
55800         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55801
55802 2004-07-13  Robert Millan  <robertmh@gnu.org>
55803
55804         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55805
55806 2004-07-09  Simon Josefsson  <jas@extundo.com>
55807
55808         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55809         failed without this.)
55810
55811 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55812
55813         * modules/chown (Files): Add lib/fchown-stub.c, since
55814         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55815
55816 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55817
55818         * lib/fchown-stub.c: New file.
55819
55820 2004-06-24  Jim Meyering  <jim@meyering.net>
55821
55822         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55823
55824 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55825
55826         * modules/argz: Omit "#include".
55827
55828         * MODULES.html.sh (func_all_modules): Add calloc, to match
55829         2004-06-01 addition of calloc module.
55830
55831 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55832
55833         * m4/argz.m4: New file, which is autoupdated from libtool.
55834
55835 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55836
55837         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55838         libtool.
55839
55840 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55841
55842         * config/srclist-update: Don't insist on "USA." before the
55843         close-comment, as libtool omits the period and puts the */ on a
55844         separate line.
55845         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55846         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55847
55848 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55849
55850         * modules/argz: New file.
55851         * MODULES.html.sh (func_all_modules): Add argz.
55852
55853 2004-06-12  Jim Meyering  <jim@meyering.net>
55854         and  Paul Eggert  <eggert@cs.ucla.edu>
55855
55856         * modules/hash (Files): Add lib/xalloc.h.
55857         * modules/pipe (Depends-on): Add wait-process.
55858         * modules/stat (Depends-on): Add xalloc.
55859         * modules/userspec (Files): Add lib/userspec.h.
55860         * modules/xstrto
55861
55862         Upgrade from gettext-0.13.
55863         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55864         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55865         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55866
55867 2004-06-10  Jim Meyering  <jim@meyering.net>
55868
55869         * lib/calloc.c: New file.
55870
55871 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55872
55873         * lib/getdate.y (yylex): Allow space between sign and number.
55874         Problem reported by Dan Jacobson.
55875
55876 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55877
55878         Merge from coreutils CVS.
55879
55880         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55881         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55882         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55883         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55884         xstrtol.m4: Fix copyright date and/or serial number.
55885
55886         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55887         See if we need an fchown replacement.
55888         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55889         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55890         and use the replacement function if we detect either defect.
55891
55892         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55893         gl_UTIMECMP.
55894
55895 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55896         and  Jim Meyering  <jim@meyering.net>
55897
55898         Merge from coreutils CVS.
55899
55900         * lib/stat-macros.h: New file, with contents from file-type.h
55901         and coreutils' system.h.
55902         * lib/file-type.c: Include "stat-macros.h".
55903         * lib/file-type.h (file_type): Move all macro definitions to new file,
55904         stat-macros.h.
55905
55906         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55907         Wrap old code with this conditional.
55908         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55909         function that does not dereference symlinks.
55910         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55911
55912         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55913         dependency problems.
55914         (xreadlink): Accept new arg SIZE, for efficiency.
55915         All decls and uses changed.
55916         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55917
55918         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55919         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55920
55921         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55922         sysexits.h.
55923
55924 2004-06-01  Jim Meyering  <jim@meyering.net>
55925
55926         * m4/calloc.m4: New file.
55927
55928 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55929
55930         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55931         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55932         Also, fix a typo in a diagnostic.
55933
55934 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55935
55936         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55937         or AC_FUNC_REALLOC.
55938
55939 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55940
55941         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55942         macros to be defined.
55943         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55944         the allocator returns NULL because the requested size is zero.
55945
55946 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55947
55948         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55949         var.  Add comment explaining why libc still defines it.  This
55950         merges the following patch from glibc:
55951         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55952
55953 2004-05-20  Andreas Schwab  <schwab@suse.de>
55954
55955         * m4/free.m4: Replace free if it not known to work, not the other
55956         way round.
55957
55958 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55959
55960         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55961         present in glibc since revision 1.1 of this file.
55962         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55963         obstack_alignment_mask, obstack_alloc, obstack_base,
55964         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55965         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55966         obstack_grow0, obstack_init, obstack_int_grow,
55967         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55968         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55969         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55970         nonexistent functions.
55971
55972 2004-05-18  Karl Berry  <karl@gnu.org>
55973
55974         * config/srclist.txt: break link for vasnprintf.c.
55975
55976 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55977
55978         Port obstack to the AS/400, where pointers are 16 bytes wide and
55979         you cannot cast an integer to a valid pointer.  This patch is
55980         currently waiting to be integrated into glibc; see
55981         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55982
55983         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55984         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55985         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55986         (struct obstack): temp member is now a union of a pointer and
55987         an integer, instead of an integer.  All integer uses changed.
55988         This does not affect the physical layout of struct obstack,
55989         except on hosts (like the AS/400) where the size or alignment of
55990         void * is greater than that of ptrdiff_t.
55991         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55992         __STDC__)]: Store temporary in pointer member of union, not
55993         integer member.
55994         * lib/obstack.c: Include <stddef.h>, for offsetof.
55995         (struct fooalign): Remove; it doesn't need a name.
55996         (union fooround): Change double to long double, and add void *.
55997         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55998         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55999         not a macro.  Hence the values are always int; so remove all
56000         casts-to-int in uses.
56001
56002 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56003
56004         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
56005         we can get this patch merged into glibc.
56006
56007 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56008             Paul Eggert  <eggert@cs.ucla.edu>
56009
56010         * m4/argp: Depend on alloca.
56011
56012 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56013             Paul Eggert  <eggert@cs.ucla.edu>
56014
56015         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
56016         freecoding.
56017
56018 2004-05-17  Bruno Haible  <bruno@clisp.org>
56019
56020         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
56021         precision that consists of a '.' followed by an empty digit string.
56022         Patch by Tor Lillqvist <tml@iki.fi>.
56023
56024 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56025
56026         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
56027         for backward compatibility with older code.  We need our own
56028         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
56029         it under some other name, and our alloca.h will define it.
56030
56031 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56032             Derek Price  <derek@ximbiot.com>
56033
56034         * lib/alloca.c: Include <alloca.h>, to get our interface.
56035         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
56036         include <alloca.h> first.  Use C89 prototype for alloca; this
56037         requires including <stddef.h> for size_t.  Use extern "C" if C++.
56038         Use #elif for simplicity, since we can assume C89 now.
56039         Don't try to source the system alloca.h since it will not be found
56040         and to prevent recursively including its replacement.
56041         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
56042         * lib/regex.c: Likewise.
56043
56044 2004-05-16  Derek Price  <derek@ximbiot.com>
56045             Paul Eggert  <eggert@cs.ucla.edu>
56046
56047         getline cleanup.  This changes the getndelim2 API: both order of
56048         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
56049         no delimiter).
56050
56051         * lib/getline.c: Don't include stddef.h or stdio.h, since our
56052         interface does that.
56053         (getline): Always use getdelim, so that we don't have two
56054         copies of this code.
56055         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
56056         if available.
56057         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
56058         (GETNDELIM2_MAXIMUM): New macro.
56059         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
56060         instead of the old practice of delim2==0.  All callers changed.
56061         Return -1 on overflow, instead of returning junk.
56062         Do not set *linesize unless allocation succeeds.
56063         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
56064         that we include sys/types.h.
56065         * lib/getnline.h: Likewise.
56066         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
56067         (getndelim2): Reorder arguments.
56068         * lib/getnline.c (getnline, getndelim):
56069         Don't discard the NMAX argument.
56070         (getnline): Invoke getndelim, to avoid code duplication.
56071         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
56072         of (size_t) -1 by callers of the getnline family.
56073
56074 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56075
56076         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
56077         Check for gettimeofday.
56078         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
56079         Check for settimeofday, stime.
56080
56081 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56082
56083         * lib/nanosleep.c (suspended): Change its type from int to
56084         sig_atomic_t volatile.
56085         (first_call): Make it private to rpl_nanosleep, and have it
56086         be zero initially as that's a bit faster.
56087         (my_usleep): Round up fractional times instead of truncating them,
56088         as this is the usual meaning for 'sleep'.
56089
56090         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
56091         doesn't work.
56092         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
56093         (ENOSYS): Define if not defined.
56094         (settime): Fall back on stime if it exists and settimeofday fails.
56095         But don't bother with fallbacks if a method fails with errno == EPERM.
56096
56097 2004-05-11  Jim Meyering  <jim@meyering.net>
56098
56099         Prior to this change, the save_cwd caller required read access to the
56100         current directory on most systems (ones with the fchdir function).
56101
56102         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
56103         fails, try write-only, and finally, resort to using xgetcwd.
56104
56105 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56106
56107         * lib/obstack.c, obstack.h: Import changes from libc.
56108
56109 2004-04-28  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
56112         also implicitly appends .exe to executables.
56113         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
56114         accepts Windows pathnames.
56115         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56116         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56117         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56118         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56119         Reported by Derek Robert Price <derek@ximbiot.com>.
56120
56121 2004-04-21  Karl Berry  <karl@gnu.org>
56122
56123         * config/srclist.txt (localcharset.c): break sync.
56124
56125 2004-04-20  Paul Eggert  <eggert@twinsun.com>
56126
56127         * m4/host-os.m4: Add a copyright notice.
56128
56129 2004-04-20  Jim Meyering  <jim@meyering.net>
56130
56131         Change UTILS_ to gl_ in AC_DEFINE'd names.
56132         Change utils_- and jm_-prefixed variables, too.
56133         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
56134         UTILS_FUNC_MKDIR_TRAILING_SLASH.
56135         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
56136
56137         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
56138         Don't emit trailing blanks.
56139         Also rename jm_-prefixed variables to have gl_ prefix.
56140
56141         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
56142         Also rename jm_-prefixed variables to have gl_ prefix.
56143
56144         * m4/jm-macros.m4: Reflect the renamings.
56145         * m4/prereq.m4: Likewise.
56146
56147 2004-04-20  Jim Meyering  <jim@meyering.net>
56148
56149         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
56150         memory.
56151
56152 2004-04-20  Jim Meyering  <jim@meyering.net>
56153             Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
56156         memory when realloc fails.
56157
56158 2004-04-19  Jim Meyering  <jim@meyering.net>
56159
56160         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
56161         now that readutmp.c may call `free (0)'.
56162
56163 2004-04-19  Bruno Haible  <bruno@clisp.org>
56164
56165         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
56166         * m4/inttypes_h.m4: Likewise.
56167         * m4/stdint_h.m4: Likewise.
56168         * m4/intmax_t.m4: Likewise.
56169         * m4/uintmax_t.m4: Likewise.
56170
56171 2004-04-18  Jim Meyering  <jim@meyering.net>
56172
56173         * m4/prereq.m4: Don't forbid jm_ prefix.
56174
56175         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
56176         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
56177         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
56178         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
56179         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
56180         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
56181         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
56182         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
56183         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
56184         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
56185         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
56186         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
56187         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
56188         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
56189         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
56190         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
56191         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
56192         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
56193         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
56194
56195 2004-04-18  Jim Meyering  <jim@meyering.net>
56196
56197         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
56198         failure, don't leak memory and do call END_UTMP_ENT.
56199
56200 2004-04-16  Jim Meyering  <jim@meyering.net>
56201
56202         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
56203         coreutils' stat program.
56204         (gl_PREREQ): Don't require jm_PREREQ_STAT.
56205
56206 2004-04-11  Paul Eggert  <eggert@twinsun.com>
56207
56208         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
56209         C89.
56210         (CHAR_BIT): Remove, since we assume C89.
56211         Include <stdint.h> if available, as per current Autoconf CVS advice.
56212
56213 2004-03-31  Jim Meyering  <jim@meyering.net>
56214
56215         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
56216         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
56217         * m4/xalloc.m4: Likewise.
56218
56219 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56220
56221         Merge from coreutils.
56222
56223         * m4/inttostr.m4: New file.
56224         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56225         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56226         Require gl_CLOCK_TIME.
56227         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56228
56229 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56230
56231         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56232         not bool, to be more consistent with Unix conventions.
56233         Suggested by Bruno Haible.
56234
56235         Merge from coreutils.
56236
56237         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56238         * lib/umaxtostr.c: New files.
56239
56240         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56241         the usual <time.h> dance.
56242         (get_date): Change signature to support fractional time stamps.
56243         All callers changed.
56244         * lib/getdate.y: Include "getdate.h" first, as we can now
56245         assume C89 and don't need to worry about 'const'.
56246         Similarly, include "unlocked-io.h" near start, not in middle.
56247         Include <limits.h>.
56248         (textint.value): Use long int rather than int.
56249         (textint.digits): Use size_t rather than int.
56250         (BILLION, LOG10_BILLION): New constants.
56251         (parser_control): New member rel_ns.  Members day_ordinal,
56252         time_zone, month, day, hour, minutes, rel_year, rel_month,
56253         rel_day, rel_hour, rel_minutes, rel_seconds
56254         are now long int, not int.  Member seconds is now struct timespec,
56255         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56256         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56257         not int.
56258         (%union.intval): Now long int, not int.
56259         New member timespec.
56260         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56261         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56262         (spec): Now is a timespec or an item list.
56263         (timespec, items): New nonterminals.
56264         (time, rel, relunit, number, get_date):
56265         Add support for fractional seconds.
56266         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56267         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56268         (to_hour): First arg is now long int, not int.
56269         (to_year): Returns long int, not int.
56270         Don't treat year -70 like 70.
56271         (tm_diff): Returns long int, not int.
56272         (lookup_word): Use bool instead of int when appropriate.
56273         (yylex): Use size_t for count, not int.
56274         Detect overflow when parsing large integer constants.
56275         Add support for fractions.
56276         (get_date): Make pointers 'const' if possible.
56277         Use more-portable code to detect integer overflow.
56278         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56279         Don't use ctime; it's not reliable if the year has >4 digits.
56280
56281         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56282         This is for compatibility with BSD.
56283
56284         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56285         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56286         From coreutils' system.h.
56287
56288         * lib/userspec.c: Don't include "posixver.h".
56289         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56290         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56291         compatible extension.  Simplify code by removing a boolean int
56292         that was always nonzero if a string was nonnull.
56293
56294 2004-03-30  Jim Meyering  <jim@meyering.net>
56295
56296         Merge from coreutils.
56297
56298         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56299         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56300         on some systems one must include <grp.h> before it.
56301         Reported by Christian Krackowizer.
56302
56303 2004-03-30  Jim Meyering  <jim@meyering.net>
56304
56305         Merge from coreutils.
56306
56307         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56308
56309         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56310         an empty input stream.
56311
56312         * lib/readtokens.c: Include <stdbool.h>.
56313         (readtoken): Use `size_t' rather than int/long.
56314         All callers adjusted.
56315         Use `bool' rather than `int' where appropriate.
56316         Use memset rather than an explicit loop.
56317         Use x2nrealloc rather than xrealloc.
56318         Allow the use of `\0' as a delimiter.
56319         (readtokens): Likewise.
56320         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56321
56322 2004-03-30  Jim Meyering  <jim@meyering.net>
56323
56324         * m4/realloc.m4: Remove file, since now it does no more than
56325         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56326         the `configure.ac' section of module/realloc.
56327         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56328
56329 2004-03-30  Bruno Haible  <bruno@clisp.org>
56330
56331         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56332         nonnull.
56333
56334 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56335
56336         Merge changes to getloadavg.c from coreutils and Emacs.
56337
56338         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56339         Define to an expression, not to the empty string.
56340         Include cloexec.h and xalloc.h.
56341         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56342         Use set_cloexec_flag rather than rolling our own.
56343         * lib/cloexec.c, lib/cloexec.h: New files.
56344
56345 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56346
56347         * m4/cloexec.m4: New file.
56348
56349 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56350
56351         * lib/getopt.h: Sync with libc CVS.
56352
56353 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56354             Bruno Haible  <bruno@clisp.org>
56355
56356         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56357         mbswidth.
56358
56359 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56360             Bruno Haible  <bruno@clisp.org>
56361
56362         * lib/mbswidth.h: Include <wchar.h> only if
56363         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56364         <wchar.h>.
56365         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56366
56367 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56368
56369         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56370         Sync with libc CVS.
56371         * lib/getopt_int.h: New file, also synced from libc.
56372
56373 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56374
56375         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56376         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56377         Bring back getopt.c, getopt.h, getopt1.c.
56378
56379 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56380
56381         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56382         All uses changed.  Check for sa_sigaction member; this fixes
56383         a bug first reported by Jason Andrade in
56384         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56385
56386 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56387
56388         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56389         '#if' expressions.  Unlike the code it replaces, it does not
56390         depend on (defined _SC_PAGESIZE).  However, it does depend on
56391         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56392         first reported by Jason Andrade in
56393         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56394
56395 2004-02-25  Simon Josefsson  <jas@extundo.com>
56396
56397         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56398
56399 2004-02-25  Simon Josefsson  <jas@extundo.com>
56400
56401         * lib/strdup.h: New file.
56402         * lib/strdup.c: Include it.
56403         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56404         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56405
56406 2004-02-23  Karl Berry  <karl@gnu.org>
56407
56408         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56409         (from fencepost.gnu.org:/gd/gnuorg).
56410
56411 2004-02-23  Karl Berry  <karl@gnu.org>
56412
56413         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56414         * config/srclist.txt: add maintain/standards documents.
56415
56416 2004-02-18  Bruno Haible  <bruno@clisp.org>
56417
56418         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56419         Reported by Derek Robert Price <derek@ximbiot.com>.
56420
56421 2004-02-16  Karl Berry  <karl@gnu.org>
56422
56423         * config/mkinstalldirs, install-sh: update from automake.
56424
56425 2004-02-06  Karl Berry  <karl@gnu.org>
56426
56427         * m4/po.m4: update from gettext 0.14.1.
56428
56429 2004-02-06  Karl Berry  <karl@gnu.org>
56430
56431         * lib/config.charset: update from gettext 0.14.1.
56432
56433 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56434
56435         Add comments and code, prompted by suggestions from Bruno Haible
56436         for sh-quote.
56437         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56438         describing the enum quoting_style values.
56439         * lib/quotearg.c (quotearg_alloc): New function.
56440         (quotearg_buffer_restyled): Treat lone { and } as special.
56441         Treat = as special.  Work around bug with older shells
56442         that "see" a '\' that is really the 2nd byte of a multibyte char.
56443         Quote empty string with shell_quoting_style.
56444
56445 2004-02-03  Bruno Haible  <bruno@clisp.org>
56446
56447         * m4/pipe.m4: New file, from GNU gettext.
56448
56449 2004-02-03  Bruno Haible  <bruno@clisp.org>
56450
56451         * lib/pipe.h: New file, from GNU gettext.
56452         * lib/pipe.c: New file, from GNU gettext.
56453
56454 2004-01-27  Bruno Haible  <bruno@clisp.org>
56455
56456         * m4/execute.m4: New file, from GNU gettext.
56457
56458 2004-01-27  Bruno Haible  <bruno@clisp.org>
56459
56460         * lib/execute.h: New file, from GNU gettext.
56461         * lib/execute.c: New file, from GNU gettext.
56462         * lib/w32spawn.h: New file, from GNU gettext.
56463
56464 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56465
56466         Merge from diffutils.
56467
56468         * lib/file-type.c (file_type): Add typed memory objects.
56469         * lib/file-type.h (S_TYPEISTMO): New macro.
56470
56471         * lib/c-stack.h (c_stack_action): Remove argv argument.
56472         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56473         (die): Don't calculate message unless segv_action returns.
56474         (get_stack_location, min_address_from_argv, max_address_from_argv,
56475         volatile stack_base, volatile_stack_size): Remove.
56476         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56477         that every segmentation violation is a stack overflow.  (Ouch!)
56478         See Debian bug 136249 (still outstanding) for more info about why
56479         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56480
56481 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56482
56483         Exit-status fix from coreutils.
56484
56485         Use exit_failure consistently in place of EXIT_FAILURE,
56486         so that program exit statuses are consistent on failure.
56487
56488         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56489         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56490         * lib/argmatch.h: Comment fix to match the above.
56491         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56492         Now a macro referring to exit_failure, instead of a separate
56493         variable.  Include "exitfail.h" to get it.
56494         * lib/xstrtol.h: Include "exitfail.h".
56495         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56496
56497         * lib/long-options.c (parse_long_options): Use prototype
56498         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56499         for clarity.
56500
56501 2004-01-21  Jim Meyering  <jim@meyering.net>
56502
56503         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56504         so as not to conflict with a different-sized __mktime_internal
56505         function in GNU libc.
56506         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56507         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56508
56509 2004-01-20  Karl Berry  <karl@gnu.org>
56510
56511         * config/config.guess: update from config.
56512
56513         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56514
56515 2004-01-20  Bruno Haible  <bruno@clisp.org>
56516
56517         Safer stack allocation.
56518         * lib/setenv.c: Include allocsa.h.
56519         (alloca): Remove fallback definition.
56520         (freea): Remove macro.
56521         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56522         instead of freea.
56523
56524 2004-01-20  Bruno Haible  <bruno@clisp.org>
56525
56526         * m4/eealloc.m4: New file, from GNU gettext.
56527
56528 2004-01-20  Bruno Haible  <bruno@clisp.org>
56529
56530         * m4/allocsa.m4: New file, from GNU gettext.
56531
56532 2004-01-20  Bruno Haible  <bruno@clisp.org>
56533
56534         * lib/xallocsa.h: New file, from GNU gettext.
56535         * lib/xallocsa.c: New file, from GNU gettext.
56536
56537 2004-01-20  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56540
56541 2004-01-20  Bruno Haible  <bruno@clisp.org>
56542
56543         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56544         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56545         specially.
56546
56547 2004-01-20  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56550         patch.
56551
56552 2004-01-20  Bruno Haible  <bruno@clisp.org>
56553
56554         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56555
56556 2004-01-20  Bruno Haible  <bruno@clisp.org>
56557
56558         * lib/eealloc.h: New file.
56559
56560 2004-01-20  Bruno Haible  <bruno@clisp.org>
56561
56562         * lib/binary-io.h: Avoid warnings on Cygwin.
56563
56564 2004-01-20  Bruno Haible  <bruno@clisp.org>
56565
56566         * lib/allocsa.h: New file, from GNU gettext.
56567         * lib/allocsa.c: New file, from GNU gettext.
56568
56569 2004-01-18  Karl Berry  <karl@gnu.org>
56570
56571         * doc/gpl.texi, doc/lgpl.texi: new files.
56572
56573 2004-01-18  Karl Berry  <karl@gnu.org>
56574
56575         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56576         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56577
56578 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56579
56580         Merge from coreutils.
56581
56582         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56583         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56584         (gl_DEFAULT_POSIX2_VERSION): Move
56585         the documentation from 'configure' into 'config.hin',
56586         so that 'configure --help' isn't burdened by it and
56587         we don't have to worry about its formatting there.
56588         Reword the documentation so that it's more succinct
56589         and can be run together into a single paragraph.
56590         * m4/same.m4 (gl_SAME): Check for pathconf.
56591
56592 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56593
56594         Merge from coreutils.
56595
56596         * lib/posixver.c: Include posixver.h.
56597
56598         * lib/same.c: Include <stdbool.h>, <limits.h>.
56599         (_POSIX_NAME_MAX): Define if not defined.
56600         (MIN): New macro.
56601         (same_name): If file names are silently truncated, report
56602         that the file names are the same if they are the same after
56603         the silent truncation.
56604
56605         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56606         conversion function.
56607         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56608         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56609         longer needed.
56610
56611 2004-01-15  Jim Meyering  <jim@meyering.net>
56612
56613         Merge from coreutils.
56614
56615         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56616         if no library is required.
56617         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56618         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56619         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56620         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56621         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56622         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56623         value, $ac_cv_search_crypt, if it's "none required".
56624         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56625         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56626         not gl_FUNC_GETLOADAVG.
56627         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56628         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56629
56630 2004-01-15  Jim Meyering  <jim@meyering.net>
56631
56632         Merge from coreutils.
56633
56634         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56635         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56636         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56637
56638         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56639         optional configure-time default.
56640
56641         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56642
56643         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56644
56645 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56646
56647         Merge from coreutils.
56648
56649         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56650         value, $ac_cv_search_nanosleep, if it's "none required".
56651
56652 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56653
56654         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56655         with like-named macro in fnmatch.c.
56656         (EXT): Use an internal constant instead.
56657
56658         Merge fnmatch patches from glibc.
56659         * lib/fnmatch.c (mbsinit): Remove define.
56660         Add libc_hidden_ver (__fnmatch, fnmatch).
56661         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56662         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56663
56664 2004-01-14  Karl Berry  <karl@gnu.org>
56665
56666         * config/install-sh: update from automake.
56667
56668 2004-01-13  Karl Berry  <karl@gnu.org>
56669
56670         * config/install-sh: update from automake.
56671
56672 2004-01-09  Karl Berry  <karl@gnu.org>
56673
56674         * config/install-sh: update from automake.
56675
56676 2004-01-05  Karl Berry  <karl@gnu.org>
56677
56678         * config/config.{sub,guess}: update from config.
56679
56680 2003-12-31  Karl Berry  <karl@gnu.org>
56681
56682         * config/depcomp: update from automake.
56683
56684 2003-12-14  Karl Berry  <karl@gnu.org>
56685
56686         * lib/config.charset: update from gettext-runtime.
56687
56688 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56689
56690         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56691         Bug reported by Alfred M. Szmidt.
56692
56693 2003-12-03  Bruno Haible  <bruno@clisp.org>
56694
56695         * m4/gettext.m4: Upgrade from gettext-0.13.
56696         * m4/po.m4: Upgrade from gettext-0.13.
56697         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56698         * m4/intmax.m4: New file, from gettext-0.13.
56699         * m4/printf-posix.m4: New file, from gettext-0.13.
56700
56701 2003-11-29  Karl Berry  <karl@gnu.org>
56702
56703         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56704
56705 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56706             Bruno Haible  <bruno@clisp.org>
56707
56708         * lib/printf-parse.h: Don't include sys/types.h.
56709         (ARG_NONE): New macro.
56710         (char_directive): Change type of *arg_index fields to size_t.
56711         * lib/printf-parse.c: Don't include sys/types.h.
56712         (SSIZE_MAX): Remove macro.
56713         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56714         Remove unnecessary overflow check.
56715         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56716         fields.
56717
56718 2003-11-25  Bruno Haible  <bruno@clisp.org>
56719
56720         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56721
56722 2003-11-25  Bruno Haible  <bruno@clisp.org>
56723
56724         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56725         gt_TYPE_SSIZE_T.
56726
56727 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56728
56729         * modules/alloca: Remove dependency on xalloc.
56730
56731 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56732
56733         * lib/alloca.c: Remove dependency on xalloc module.
56734         (xalloc_die): Remove.
56735         (memory_full) [!defined emacs]: New macro.
56736         [!defined emacs]: Don't include xalloc.h.
56737         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56738         address arithmetic overflows.  Change datatypes a bit to avoid
56739         unnecessary casts.
56740
56741 2003-11-22  Jim Meyering  <jim@meyering.net>
56742
56743         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56744         s/size/size_t/.
56745
56746 2003-11-21  Karl Berry  <karl@gnu.org>
56747
56748         * config/config.{sub,guess}: update from config.
56749
56750 2003-11-18  Karl Berry  <karl@gnu.org>
56751
56752         * config/config.{sub,guess}: update from config.
56753
56754         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56755
56756 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56757
56758         * README: Mention that S+T cannot overflow if S is the size of
56759         an existing object and T is sufficiently small.
56760
56761 2003-11-17  Jim Meyering  <jim@meyering.net>
56762
56763         On systems without utime and without a utimes function capable of
56764         dealing with a NULL struct utimbuf* argument, this utime replacement
56765         could -- in unusual circumstances -- leak a file descriptor.
56766         * lib/utime.c: Include <unistd.h> and <errno.h>.
56767         (utime_null): Be sure to close `fd' and to preserve errno.
56768         Reported by Geoff Collyer via Arnold Robbins.
56769
56770 2003-11-17  Bruno Haible  <bruno@clisp.org>
56771
56772         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56773         (Depends-on): Add xsize.
56774
56775 2003-11-17  Bruno Haible  <bruno@clisp.org>
56776
56777         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56778
56779 2003-11-17  Bruno Haible  <bruno@clisp.org>
56780
56781         * lib/vasnprintf.c (alloca): Remove fallback definition.
56782         (freea): Remove definition.
56783         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56784         Reported by Paul Eggert.
56785
56786 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56787             Bruno Haible  <bruno@clisp.org>
56788
56789         Protect against address arithmetic overflow.
56790         * lib/printf-args.h: Include stddef.h.
56791         (arguments): Change type of field 'count' to size_t.
56792         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56793         'unsigned int' where appropriate.
56794         * lib/printf-parse.h: Include sys/types.h.
56795         (char_directive): Change type of *arg_index fields to ssize_t.
56796         (char_directives): Change type of fields 'count', max_*_length to
56797         size_t.
56798         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56799         (SSIZE_MAX): Define fallback value.
56800         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56801         instead of 'int' where appropriate. Check a_allocated, d_allocated
56802         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56803         * lib/vasnprintf.c: Include xsize.h.
56804         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56805         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56806         overflow. Avoid wraparound when converting a width or precision from
56807         decimal to binary.
56808
56809 2003-11-16  Bruno Haible  <bruno@clisp.org>
56810
56811         Update from GNU gettext.
56812         * lib/printf-parse.c: Generalize to it can be compiled for wide
56813         strings.
56814         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56815         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56816         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56817         SNPRINTF): New macros.
56818         Don't include <alloca.h> if the file is used inside libintl.
56819         (local_wcslen): New function, for Solaris 2.5.1.
56820         (VASNPRINTF): Use it instead of wcslen.
56821
56822 2003-11-16  Bruno Haible  <bruno@clisp.org>
56823
56824         * lib/xsize.h (xmax): New function.
56825         (xsum, xsum3, xsum4): Declare as "pure" functions.
56826
56827 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56828
56829         * modules/xalloc (Files): Undo latest change, since xalloc.h
56830         no longer needs SIZE_MAX or PTRDIFF_MAX.
56831
56832 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56833
56834         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56835         gl_PTRDIFF_MAX.
56836
56837 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56838
56839         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56840         "return", to pacify some unknown compiler.  Problem reported
56841         by Joerg Schilling.
56842
56843 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56844
56845         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56846         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56847         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56848         heuristic is just as accurate as far as we know, and it removes a
56849         dependency on size_max.m4 and ptrdiff_max.m4.
56850
56851 2003-11-11  Bruno Haible  <bruno@clisp.org>
56852
56853         * modules/xsize (Files): Add m4/size_max.m4.
56854         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56855
56856 2003-11-11  Bruno Haible  <bruno@clisp.org>
56857
56858         * m4/size_max.m4: New file.
56859         * m4/ptrdiff_max.m4: New file.
56860         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56861         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56862         (gl_XALLOC): Invoke it.
56863
56864 2003-11-11  Bruno Haible  <bruno@clisp.org>
56865
56866         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56867         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56868         defined.
56869
56870 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56871
56872         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56873         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56874         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56875         From Bruno Haible.
56876         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56877         not (size_t) -1, since it's defined here.
56878
56879 2003-11-09  Karl Berry  <karl@gnu.org>
56880
56881         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56882
56883 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56884
56885         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56886         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56887         Reject sizes of exactly SIZE_MAX bytes.
56888         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56889         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56890
56891 2003-11-05  Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56894         SIZE_MAX defined in <limits.h> on Solaris.
56895
56896 2003-11-04  Jim Meyering  <jim@meyering.net>
56897
56898         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56899         variable names, rather than @VAR@.
56900         * modules/poll: Likewise.
56901
56902 2003-11-04  Bruno Haible  <bruno@clisp.org>
56903
56904         * modules/xsize: New file.
56905         * modules/linebreak: Depend on xsize.
56906         * MODULES.html.sh (func_all_modules): Add xsize.
56907
56908 2003-11-04  Bruno Haible  <bruno@clisp.org>
56909
56910         * m4/xsize.m4: New file.
56911
56912 2003-11-04  Bruno Haible  <bruno@clisp.org>
56913
56914         * lib/xsize.h: New file.
56915         * lib/linebreak.c: Include xsize.h.
56916         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56917         argument for overflow.
56918         Suggested by Paul Eggert.
56919
56920 2003-11-03  Karl Berry  <karl@gnu.org>
56921
56922         * config/config.{guess,sub}: update from config.
56923
56924 2003-11-03  Jim Meyering  <jim@meyering.net>
56925
56926         * modules/userspec (lib_SOURCES): Add userspec.h.
56927         (Include): Add "userspec.h".
56928         Improve description.
56929
56930 2003-11-03  Jim Meyering  <jim@meyering.net>
56931
56932         * lib/userspec.c: Include "userspec.h".
56933         * lib/userspec.h: New file.
56934
56935 2003-11-03  Bruno Haible  <bruno@clisp.org>
56936
56937         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56938
56939 2003-11-03  Bruno Haible  <bruno@clisp.org>
56940
56941         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56942         available, to avoid (extremely rare) race condition.
56943         Suggested by Paul Eggert.
56944
56945 2003-11-02  Karl Berry  <karl@gnu.org>
56946
56947         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56948
56949 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56950
56951         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56952         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56953         (read_filesystem_list): Set and use me_type_malloced.
56954         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56955         whatever the type happens to be), for brevity and consistency.
56956         Check for size calculation overflow on Alphas running OSF/1.
56957
56958 2003-10-31  Jim Meyering  <jim@meyering.net>
56959
56960         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56961
56962         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56963
56964 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56965             Bruno Haible  <bruno@clisp.org>
56966
56967         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56968         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56969
56970 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56971
56972         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56973         netbsd*-gnu*.  Suggested by Robert Millan.
56974
56975 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56976
56977         * modules/group-member: Depend on stdbool.
56978
56979 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56980
56981         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56982
56983 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56984
56985         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56986         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56987         after the 'gnu' in these cases.  This fixes some bugs in the
56988         previous change, and is based on suggestions by Robert Millan.
56989
56990 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56991
56992         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56993         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56994         no longer needed.
56995         * lib/quotearg.c (quotearg_n_options): Use it.
56996         * lib/group-member.c: Include <stdbool.h>.
56997         (free_group_info): Arg is now const *; don't free arg.
56998         (get_group_info): Now returns bool and accepts struct group_info *,
56999         rather than returning a malloc'ed struct group_info *.
57000         All uses changed.  Check for overflow in internal size calculation.
57001
57002         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
57003         rather than xmalloc/xrealloc.
57004         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
57005         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
57006         conformance bug: the old code used a pointer after freeing the
57007         storage that it addressed.
57008         * lib/hash.c (hash_initialize): Simplify the code by using
57009         xalloc_oversized rather than doing it by hand.
57010         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
57011         the buffer preserved.  Use free and xmalloc instead.
57012         * lib/quotearg.c (quotearg_n_options): Likewise.
57013         Use a simpler test for size overflow.  Don't use xalloc_oversized
57014         because unsigned int might be wider than size_t (!); this suggests
57015         that we should switch from unsigned int to size_t for slot numbers.
57016
57017 2003-10-28  Paul Eggert  <eggert@twinsun.com>
57018
57019         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
57020         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
57021         NetBSD kernels.  Requested by Richard Stallman.
57022
57023 2003-10-27  Paul Eggert  <eggert@twinsun.com>
57024
57025         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
57026         to allocate the returned structure.  Do not allocate a subarray,
57027         as x2nrealloc will do that.
57028         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
57029         instead of xnrealloc.
57030         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
57031
57032 2003-10-27  Bruno Haible  <bruno@clisp.org>
57033
57034         * lib/stdbool_.h: Better support for BeOS.
57035
57036 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57037
57038         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
57039         now uses inline.
57040
57041 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57042
57043         * lib/xalloc.h (xalloc_oversized): New static inline function, for
57044         callers that want to do their own size-overflow checking.  Include
57045         <stdbool.h>, since xalloc_oversized returns bool.
57046         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
57047         to use xalloc_oversized.
57048
57049         Add two functions x2realloc, x2nrealloc, for programs that grow
57050         arrays dynamically by doubling their sizes.
57051         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
57052         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
57053         New functions.
57054
57055         Port to C99 semantics for 'inline' of external functions.
57056         Bug reported by Bruno Haible.
57057         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
57058         with the old contents of xnmalloc.
57059         (xnmalloc, xmalloc): Use it.
57060         (xnrealloc_inline): New static inline function,
57061         with the old contents of xnrealloc.
57062         (xnrealloc, xrealloc): Use it.
57063
57064         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
57065         that.
57066
57067 2003-10-26  Karl Berry  <karl@gnu.org>
57068
57069         * config/srclist.txt (COPYING.DOC): no longer available from
57070         /gd/gnuorg; don't know where the ultimate source is.
57071
57072 2003-10-25  Paul Eggert  <eggert@twinsun.com>
57073
57074         Fix several address-calculation bugs in the hash modules,
57075         plus some minor code cleanup.
57076
57077         * lib/hash.h: Include <stdbool.h>, for bool.
57078         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
57079         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
57080         hash_get_n_entries, hash_get_max_bucket_length,
57081         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
57082         hash_rehash): Use size_t rather than unsigned.
57083         * lib/hash.c (struct hash_table, hash_get_n_buckets,
57084         hash_get_n_buckets_used, hash_get_n_entries,
57085         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
57086         hash_get_entries, hash_do_for_each, hash_string, is_prime,
57087         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
57088         Likewise.
57089         (SIZE_MAX): Define if not defined.
57090         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
57091         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
57092         hash_print):
57093         Use const * when possible.
57094         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
57095         (check_tuning): Fix bug: if tuning parameters were very close to
57096         0 or 1, rounding errors could have caused subscript violations.
57097         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
57098         (hash_initialize): Add 'fail:' label
57099         to free table and return NULL, and use it to simplify code.
57100         Use calloc rather than clearing the storage ourself.
57101         (hash_initialize, hash_rehash): Check for arithmetic overflow in
57102         buffer size calculations.
57103         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
57104         Include <stddef.h>, for size_t.
57105         * lib/hash-pjw.c (hash_pjw): Likewise.
57106         Switch to method described by Bruno Haible.
57107         Include <limits.h>, for CHAR_BIT.
57108         (SIZE_BITS): New macro.
57109
57110 2003-10-23  Paul Eggert  <eggert@twinsun.com>
57111
57112         * m4/getline.m4 (AM_FUNC_GETLINE):
57113         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
57114         hosts.  Problem reported by Derek Robert Price in
57115         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
57116         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
57117         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
57118
57119 2003-10-21  Paul Eggert  <eggert@twinsun.com>
57120
57121         * lib/getndelim2.c (getndelim2): When size calculation overflows,
57122         ceiling the allocation at NMAX bytes rather than silently
57123         discarding input bytes before NMAX is reached.  This makes
57124         a difference only if NMAX exceeds SIZE_MAX / 2.
57125
57126         * lib/obstack.c: Merge from glibc.
57127         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
57128         Add libc_hidden_def (_obstack_newchunk).
57129         (_obstack_free) [! defined _LIBC]: Remove.
57130         [defined _LIBC]: Make a strong alias from obstack_free, rather than
57131         a clone of the function body.
57132         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
57133         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
57134
57135         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
57136         glibc.
57137         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
57138         arg to memcpy.
57139
57140         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
57141         (obstack_ptr_grow_fast, obstack_int_grow_fast):
57142         Don't use lvalue casts, as GCC plans to remove support for them
57143         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
57144         was also present in the non-GCC version, indicating that this
57145         code had always been buggy and had never been widely used.
57146         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
57147         Use the fast variant of each macro, rather than copying the
57148         definiens of the fast variant; that way, we'll be more likely to
57149         catch future bugs in the fast variants.
57150
57151 2003-10-20  Bruno Haible  <bruno@clisp.org>
57152
57153         * modules/wait-process: New file.
57154         * MODULES.html.sh (func_all_modules): Add wait-process.
57155
57156 2003-10-20  Bruno Haible  <bruno@clisp.org>
57157
57158         * m4/wait-process.m4: New file.
57159
57160 2003-10-20  Bruno Haible  <bruno@clisp.org>
57161
57162         * lib/wait-process.h: New file, from GNU gettext.
57163         * lib/wait-process.c: New file, from GNU gettext.
57164
57165 2003-10-19  Jim Meyering  <jim@meyering.net>
57166
57167         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
57168         HPUX 10.20.
57169
57170 2003-10-18  Karl Berry  <karl@gnu.org>
57171
57172         * config/config.guess: update from config.
57173
57174 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57175
57176         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
57177         (getgroups): First arg is int, not size_t.
57178         Don't let 'free' mangle errno.
57179
57180 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57181
57182         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
57183
57184 2003-10-16  Karl Berry  <karl@gnu.org>
57185
57186         * config/config.{guess,sub}: update from config.
57187
57188 2003-10-16  Jim Meyering  <jim@meyering.net>
57189
57190         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
57191         memcpy.
57192
57193 2003-10-15  Paul Eggert  <eggert@twinsun.com>
57194
57195         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
57196         (SIZE_MAX): Remove.
57197         (new_exclude, add_exclude_file): Initial size no longer needs to
57198         be a power of 2.
57199         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
57200         our own address arithmetic overflow checking.
57201
57202         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
57203         (fnmatch): Do not alloca more than 2000 wide characters;
57204         instead, use malloc for large buffers.
57205         Check for address arithmetic overflow, and return -1
57206         with errno set to ENOMEM in that case.
57207         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
57208         (NEW_PATTERN): Do not alloca more than 8000 bytes;
57209         instead, return -1.  Check for address arithmetic overflow.
57210
57211 2003-10-14  Paul Eggert  <eggert@twinsun.com>
57212
57213         Handle invalid suffixes and overflow independently, so that
57214         callers can treat them independently as needed.  Fix some bugs in
57215         suffix handling, e.g., "100k@" was not diagnosed as an invalid
57216         suffix for a human-readable blocksize.  The major caller-visible
57217         change is the addition of a new
57218         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
57219         that both overflow and suffix chars were found.
57220
57221         * lib/human.c (humblock): Don't check separately for invalid suffix
57222         char; that is xstrtoumax's job (now that its bug is fixed).
57223         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57224         INTMAX_MAX]: New macros.
57225         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57226         TYPE_MAXIMUM): New macros.
57227         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57228         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57229         if overflow occurs, as it's what __strtol does and it's more useful
57230         in practice.
57231         (__xstrtol): If __strtol reports some error other than ERANGE,
57232         reflect it to the caller as LONGINT_INVALID.  If it reports
57233         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57234         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57235         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57236         value.
57237         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57238         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57239         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57240         [defined UINTMAX_MAX]: New macros.
57241
57242 2003-10-14  Bruno Haible  <bruno@clisp.org>
57243
57244         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57245
57246 2003-10-14  Bruno Haible  <bruno@clisp.org>
57247
57248         * m4/sig_atomic_t: New file, from GNU gettext.
57249         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57250
57251 2003-10-14  Bruno Haible  <bruno@clisp.org>
57252
57253         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57254         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57255         Also use volatile where needed.
57256
57257 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57258
57259         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57260         Change maintainer from Bruno Haible to 'all'.
57261
57262 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57263
57264         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57265
57266 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57267
57268         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57269         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57270         and define in terms of the other primitives.
57271         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57272         (SIZE_MAX): Define if not already defined.
57273         (array_size_overflow): New function.
57274         (xalloc_die): Abort instead of exiting if 'error' returns.
57275         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57276         (xmalloc, xrealloc): Use them.
57277         (xcalloc): Check for address arithmetic overflow.
57278         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57279         a bit faster than strcpy.
57280
57281 2003-10-10  Simon Josefsson  <jas@extundo.com>
57282
57283         * modules/argp (Depends-on): Add restrict and strcase.
57284
57285 2003-10-10  Simon Josefsson  <jas@extundo.com>
57286
57287         * m4/argp.m4: Add AC_C_INLINE.
57288
57289 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57290
57291         Merge getpass from libc, plus a few fixes.
57292
57293         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57294         Include <stdbool.h>.
57295         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57296         __fsetlocking to empty.
57297         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57298         do include <bits/libc-lock.h>.
57299         Do not include <fcntl.h>; not needed.
57300         [_LIBC]: Include <wchar.h>.
57301         (NOTCANCEL_MODE): New macro.
57302         (flockfile, funlockfile) [_LIBC]: New macros.
57303         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57304         [!_LIBC]: New macros.
57305         (call_fclose): New function.
57306         (getpass): Use it.  Save tty stream separately; this simplifies the
57307         code and makes it more reliable if stdin happens to equal stdout.
57308         Invoke __fsetlocking on tty.
57309         Handle thread cancellation if needed.
57310         Namespace cleanup (use __tcgetattr, __getline).
57311         Use bool for Booleans.
57312         [USE_IN_LIBIO]: Handle wide streams.
57313         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57314         stream might go where.
57315
57316         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57317         doesn't have to include <stdio.h> before us.
57318         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57319         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57320         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57321         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57322         if not declared, so that we can use getpass.c code from libc without
57323         rewriting it.
57324         (flockfile, ftrylockfile, funlockfile): New macros.
57325
57326 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57327
57328         * modules/getpass: Depend on stdbool.
57329
57330 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57331
57332         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57333
57334 2003-10-07  Karl Berry  <karl@gnu.org>
57335
57336         * config/config.{guess,sub}: update from config.
57337
57338 2003-10-06  Jim Meyering  <jim@meyering.net>
57339             Bruno Haible  <bruno@clisp.org>
57340
57341         This lets translators provide better translations for the
57342         "Written by ..." part of --version output.
57343         * lib/version-etc.h: Include stdarg.h.
57344         (version_etc_copyright): Declare as readonly.
57345         (version_etc): Make this function variadic with a NULL-terminated list
57346         of author name strings.
57347         (version_etc_va): New declaration.
57348         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57349         (version_etc_copyright): Declare as readonly.
57350         (version_etc_va): New function. Provide a different translatable string
57351         for each possible number of authors < 10. Abbreviate when there are 10
57352         authors or more.
57353         (version_etc): Make this function variadic. Call version_etc_va.
57354         Suggestion from Gary V. Vaughan.
57355
57356         * lib/long-options.h (parse_long_options): Change prototype: the
57357         authors string is moved to the end and becomes variadic.
57358         * lib/long-options.c: Include stdarg.h.
57359         (parse_long_options): Make this function variadic, too.
57360         Call version_etc_va, not version_etc.
57361
57362 2003-10-06  Bruno Haible  <bruno@clisp.org>
57363
57364         * modules/version-etc-2: Remove file.
57365         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57366
57367 2003-10-06  Bruno Haible  <bruno@clisp.org>
57368
57369         * modules/fatal-signal: New file.
57370         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57371
57372 2003-10-06  Bruno Haible  <bruno@clisp.org>
57373
57374         * m4/fatal-signal.m4: New file.
57375         * m4/signalblocking.m4: New file, from GNU gettext.
57376
57377 2003-10-06  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/version-etc-2.h: Remove file.
57380         * lib/version-etc-2.c: Remove file.
57381
57382 2003-10-06  Bruno Haible  <bruno@clisp.org>
57383
57384         * lib/fatal-signal.h: New file, from GNU gettext.
57385         * lib/fatal-signal.c: New file, from GNU gettext.
57386
57387 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57388
57389         * README: Rework advice for preventing empty .o files.
57390         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57391         not <sys/types.h>.
57392
57393 2003-10-04  Karl Berry  <karl@gnu.org>
57394
57395         * lib/argp*: update from libc.
57396
57397 2003-10-04  Karl Berry  <karl@gnu.org>
57398
57399         * config/config.{guess,sub}: update from config.
57400
57401 2003-10-02  Bruno Haible  <bruno@clisp.org>
57402
57403         * modules/lchown (Include): Add lchown.h.
57404         * modules/time_r (Include): Use "..." syntax.
57405         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57406
57407 2003-10-01  Simon Josefsson  <jas@extundo.com>
57408
57409         * MODULES.html.sh (func_all_modules): Move gethostname from section
57410         'based on' to section 'lacking' POSIX:2001.
57411
57412 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57413
57414         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57415         to output mode on the same stream.
57416
57417 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57418
57419         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57420         Fix arg typo in previous patch.
57421
57422 2003-09-28  Jim Meyering  <jim@meyering.net>
57423
57424         * lib/error.c: Correct cpp indentation.
57425
57426 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57427
57428         * modules/free: New file.
57429
57430 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57431
57432         * m4/free.m4: New file.
57433
57434 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57435
57436         * lib/minmax.h (MIN, MAX)
57437         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57438         Omit the special code that used __typeof__, since we worry that
57439         it could be more trouble than it's worth.  See:
57440         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57441         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57442
57443         * lib/free.c: New file.
57444
57445 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57446
57447         Trivial fixes to Makefile.am parts of module listings.
57448         * modules/strstr: Append strstr.h to lib_SOURCES.
57449         * modules/strcase: Likewise, for strcase.h.
57450
57451 2003-09-27  Karl Berry  <karl@gnu.org>
57452
57453         * config/mkinstalldirs: update from automake.
57454
57455 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57456
57457         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57458         (error_tail): Do not loop, reallocating temporary buffer, since
57459         the output cannot contain more wide characters than the input
57460         contains bytes, the size must be big enough already.  This avoids
57461         one potential size overflow calculation.  Check for size overflow
57462         when calculating temporary buffer size.  Free temporary buffer
57463         when done, if it was allocated with malloc; this plugs a memory
57464         leak.  Remove casts from void * to pointers, that are no longer
57465         needed now that we're assuming C89 or better.
57466
57467         Merge error changes from glibc.
57468
57469         * lib/error.c, error.h: Update copyright notice header to match glibc.
57470         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57471         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57472         Disable cancellation while printing error.
57473         * lib/error.h: Prepend __ to parameter names.
57474
57475 2003-09-26  Jim Meyering  <jim@meyering.net>
57476
57477         * lib/error.c (error_tail): Move some declarations
57478         into inner scope where the local variables are used.
57479
57480 2003-09-26  Bruno Haible  <bruno@clisp.org>
57481
57482         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57483         stpncpy().
57484         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57485
57486 2003-09-26  Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57489         (stpncpy): Define as alias for gnu_stpncpy.
57490         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57491
57492 2003-09-25  Simon Josefsson  <jas@extundo.com>
57493
57494         * lib/xgetdomainname.h: New file.
57495         * lib/xgetdomainname.c: New file.
57496
57497 2003-09-25  Simon Josefsson  <jas@extundo.com>
57498             Bruno Haible  <bruno@clisp.org>
57499
57500         * modules/getdomainname: New file.
57501         * modules/xgetdomainname: New file.
57502         * MODULES.html.sh (func_all_modules): Add getdomainname,
57503         xgetdomainname.
57504
57505 2003-09-25  Simon Josefsson  <jas@extundo.com>
57506             Bruno Haible  <bruno@clisp.org>
57507
57508         * m4/getdomainname.m4: New file.
57509
57510 2003-09-25  Simon Josefsson  <jas@extundo.com>
57511             Bruno Haible  <bruno@clisp.org>
57512
57513         * lib/getdomainname.h: New file.
57514         * lib/getdomainname.c: New file.
57515
57516 2003-09-25  Karl Berry  <karl@gnu.org>
57517
57518         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57519
57520 2003-09-25  Karl Berry  <karl@gnu.org>
57521
57522         * config/install-sh: update from automake.
57523
57524 2003-09-25  Bruno Haible  <bruno@clisp.org>
57525
57526         * modules/version-etc-2: New file, from modules/version-etc with
57527         modifications.
57528         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57529
57530 2003-09-25  Bruno Haible  <bruno@clisp.org>
57531
57532         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57533         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57534
57535 2003-09-24  Simon Josefsson  <jas@extundo.com>
57536
57537         * modules/xgethostname: Add xgethostname.h.
57538
57539 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57540
57541         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57542         the buffer associated with the argument.  Bug reported by
57543         Simon Josefsson.
57544
57545 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57546
57547         * README: Document assumptions that 'int' is at least 32 bits
57548         wide, that integer arithmetic is 2's complement without overflow,
57549         that there are no holes in integer values, that adding sizes of
57550         two nonoverlapping objects can't overflow, and that all-bits-zero
57551         yields scalar zero.  Fix spelling and capitalization typos.
57552
57553 2003-09-19  Karl Berry  <karl@gnu.org>
57554
57555         * lib/argp.h: update from libc.
57556
57557 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57558
57559         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57560         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57561         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57562
57563 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57564
57565         * gnulib-tool: Use "test -h", not "test -L", for portability
57566         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57567         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57568         (sed_extract_prog): Issue s commands one-by-one, rather than
57569         using \| in one s command.
57570
57571 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57572
57573         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57574         input error, instead of returning NULL the next time we are called
57575         (and therefore losing track of errno).
57576
57577 2003-09-16  Bruno Haible  <bruno@clisp.org>
57578
57579         * gnulib-tool (func_create_testdir): Warn about duplicated
57580         dependencies.
57581
57582 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57583
57584         * modules/argmatch, modules/fatal, modules/obstack,
57585         modules/xalloc, modules/xgethostname: Sort dependencies by
57586         importance, not alphabetically.
57587
57588 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57589
57590         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57591         fails, so that the caller gets the proper errno.
57592
57593         * lib/readutmp.c (read_utmp): Likewise.
57594         Check for fstat error.  Close stream and free storage
57595         when failing.
57596
57597 2003-09-14  Karl Berry  <karl@gnu.org>
57598
57599         * config/srclist.txt (strdup.c): disable for c89 changes.
57600
57601 2003-09-14  Jim Meyering  <jim@meyering.net>
57602
57603         * lib/getloadavg.c: Correct cpp indentation.
57604         * lib/strdup.c: Likewise.
57605         * lib/vasnprintf.c: Likewise.
57606
57607 2003-09-14  Bruno Haible  <bruno@clisp.org>
57608
57609         * modules/fwriteerror: New file.
57610         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57611
57612 2003-09-14  Bruno Haible  <bruno@clisp.org>
57613
57614         * lib/fwriteerror.h: New file.
57615         * lib/fwriteerror.c: New file.
57616
57617 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57618
57619         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57620         modules/xgethostname, modules/xalloc: Depend on exit.
57621
57622 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57623
57624         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57625
57626         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57627         and AC_MINIX, too, so that their extensions are available.
57628
57629         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57630         This macro has been superseded by gl_BACKUPFILE.
57631
57632         More patches to assume C89 or better.
57633
57634         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57635
57636         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57637         unconditionally.
57638         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57639         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57640         Include <string.h>, <stdlib.h> unconditionally.
57641         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57642         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57643         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57644         headers or for string.h.
57645         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57646         or strtoul.
57647
57648         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57649         headers.
57650         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57651         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57652         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57653         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57654         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57655         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57656         memcpy, memset.
57657         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57658         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57659         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57660         strtol.
57661         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57662         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57663         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57664         strtoul.
57665
57666 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57667
57668         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57669         * lib/obstack.c [!defined _LIBC]: Likewise.
57670         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57671         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57672         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57673
57674         More changes to assume C89 or better.
57675
57676         * lib/error.c (error_tail): Assume vprintf.
57677
57678         * lib/argmatch.c (getenv): Remove decl.
57679         * lib/progreloc.c (get_full_program_name): Define via prototype.
57680         * lib/setenv.c (clearenv): Likewise.
57681         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57682         needed.
57683         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57684         (malloc, memcpy): Remove decls.
57685         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57686         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57687         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57688         (memcpy): Remove macro.
57689         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57690         (__P): Remove.  All uses removed.
57691         (PTR): Remove.  All uses changed to void *.
57692         (CHAR_BIT, NULL): Remove.
57693         (spaces, zeros, memset_space, memset_zero)
57694         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57695         Remove.
57696         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57697         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57698         Define with prototype.
57699         Remove now-unnecessary prototype decl.
57700         (extra_args_spec): Assume ANSI C.  All uses changed.
57701         (extra_args_spec_iso): Remove.
57702         (my_strftime, emacs_strftimeu): Define via prototype.
57703         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57704         unconditionally.
57705         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57706         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57707         (strtoul, strtol): Remove decls.
57708         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57709         LONG_MAX): Remove.
57710         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57711         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57712         (LOCALE_PARAM_PROTO): New macro.
57713         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57714         (INTERNAL (strtol), strtol): Define with a prototype.
57715         (PARAMS): Remove.  All uses removed.
57716         * lib/tempname.c: Include <string.h> unconditionally.
57717         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57718         * lib/xgethostname.c (main): Define with a prototype.
57719         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57720         Include <stdlib.h> unconditionally.
57721         (calloc, malloc, realloc, free): Remove decls.
57722         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57723         Include <stdlib.h> unconditionally.  Sort include file names.
57724         (strtod): Remove.
57725         (xstrtod): Define with a prototype.
57726         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57727         (strtol, strtoul): Remove decls.
57728
57729 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57730
57731         More patches to assume C89 or better.
57732         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57733         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57734         string.h, memchr, STDC_HEADERS.
57735
57736 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57737
57738         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57739         Include <stdlib.h>, <string.h> unconditionally.
57740         Remove now-unnecessary cast to char *.
57741         * lib/strnlen.c: Include <string.h> unconditionally.
57742         * lib/yesno.c (yesno): Define with a prototype.
57743
57744 2003-09-11  Bruno Haible  <bruno@clisp.org>
57745
57746         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57747
57748 2003-09-10  Jim Meyering  <jim@meyering.net>
57749
57750         * lib/error.c: Correct indentation of cpp directives.
57751
57752 2003-09-10  Bruno Haible  <bruno@clisp.org>
57753
57754         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57755         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57756         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57757         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57758         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57759         <stdlib.h> and <string.h> checks.
57760         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57761         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57762
57763 2003-09-10  Bruno Haible  <bruno@clisp.org>
57764
57765         * lib/strcspn.c: Include <string.h> unconditionally.
57766         * lib/strpbrk.c: Include <string.h> unconditionally.
57767         * lib/strstr.c: Include <string.h> unconditionally.
57768         * lib/unicodeio.c: Include <string.h> unconditionally.
57769         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57770         * lib/unsetenv.c: Likewise.
57771         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57772         * lib/yesno.c: Include <stdlib.h> unconditionally.
57773         (rpmatch): Add prototype.
57774
57775 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57776
57777         More patches to assume C89 or better.
57778         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57779         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57780         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57781         or for string.h.
57782         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57783         stdlib.h.
57784         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57785         C headers.
57786         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57787         string.h.
57788         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57789         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57790         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57791         or for string.h.
57792         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57793         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57794         C headers.
57795         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57796         memcpy.
57797         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57798         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57799         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57800         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57801         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57802         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57803         string.h, free.
57804         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57805         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57806         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57807         C headers, or for string.h.
57808         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57809         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57810         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57811         headers, memory.h, stdlib.h, string.h, strings.h.
57812         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57813         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57814         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57815         strchr.
57816         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57817         headers, memory.h, string.h.
57818         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57819         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57820         free.
57821         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57822         headers.
57823         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57824         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57825         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57826         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57827         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57828
57829 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57830
57831         More K&R removal.
57832
57833         * lib/acosl.c (main): Use a prototype.
57834         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57835         tanl.c: Likewise.
57836
57837         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57838
57839         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57840         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57841         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57842         with a prototype.
57843         * lib/getopt.c (const): Remove macro.
57844         Include <string.h> unconditionally.
57845         (my_index): Remove; all uses changed to strchr.
57846         (strlen): Remove decl.
57847         (exchange): Remove forward decl; no longer needed.
57848         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57849         Define with prototype.
57850         * lib/getopt1.c (const): Remove macro.
57851         (getopt_long, getopt_long_only, main): Define with prototype.
57852
57853         * lib/getugroups.c: Include <string.h> unconditionally.
57854
57855         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57856         (getusershell, setusershell, endusershell, readname, main):
57857         Define with prototypes.
57858
57859         * lib/group-member.c: Include group-member.h first.
57860         Include <stdlib.h> unconditionally.
57861
57862         * lib/hard-locale.c: Include hard-locale.h first.
57863         Include <stdlib.h>, <string.h> unconditionally.
57864
57865         * lib/hash.c (free, malloc): Remove decls.
57866         Include <stdlib.h> unconditionally.
57867
57868         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57869         (getenv): Do not declare.
57870
57871         * lib/idcache.c: Include <string.h> unconditionally.
57872
57873         * lib/long-options.c: Include long-options.h first, to test interface.
57874         Include <stdlib.h> unconditionally.
57875
57876         * lib/makepath.c: Include makepath.h first, to test interface.
57877         Include <stdlib.h> and <string.h> unconditionally.
57878
57879         * lib/linebuffer.c: Include <stdlib.h>.
57880         (free): Remove decl.
57881
57882         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57883         stddef.h. rpl_malloc returns void *, not char *.
57884         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57885         prototype.
57886
57887         * lib/md5.h: Include <limits.h> unconditionally.
57888         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57889         (__P): Remove; all uses removed.
57890         * lib/md5.c: Include "md5.h" first.
57891         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57892         md5_buffer, md5_process_bytes, md5_process_block):
57893         Define with prototypes.
57894         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57895         * lib/sha.c: Include "sha.h" first.
57896         Include <stdlib.h>, <string.h> unconditionally.
57897
57898         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57899         * lib/memcmp.c (__ptr_t): Likewise.
57900         * lib/memrchr.c (__ptr_t): Likewise.
57901         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57902         Include <string.h> unconditionally.
57903         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57904         * lib/memchr.c: Include <stdlib.h> unconditionally.
57905         * lib/memchr.c (LONG_MAX): Remove.
57906         * lib/memrchr.c (LONG_MAX): Likewise.
57907         * lib/memchr.c (__memchr): Define via a prototype.
57908         * lib/memrchr.c (__memrchr): Likewise.
57909         * lib/memcmp.c (__P): Remove, and remove all uses.
57910         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57911         Remove forward decls; no longer needed.
57912         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57913         Use types required by C89 in prototype.
57914
57915         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57916         * lib/savedir.c: Likewise.
57917         * lib/mkdir.c (free): Remove decl.
57918         * lib/rmdir.c (rmdir): Define with a prototype.
57919         * lib/savedir.c: Include savedir.h first, to test interface.
57920
57921         * lib/mktime.c (STDC_HEADERS): Remove.
57922         Include <stdlib.h>, <string.h> unconditionally.
57923
57924         * lib/modechange.c: Include <stdlib.h> unconditionally.
57925         (malloc): Remove decl.
57926
57927         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57928         (free): Remove decl.
57929
57930         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57931         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57932         (This type really should be intptr_t, but that's a C99ism.)
57933         (_obstack_memcpy): Remove: all uses changed to memcpy.
57934         Include <string.h> unconditionally.
57935         (struct obstack): Assume __STDC__ for types of members
57936         chunkfun, freefun, extra_arg.
57937         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57938         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57939         obstack_begin, obstack_specify_allocation,
57940         obstack_specify_allocation_with_arg, obstack_chunkfun,
57941         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57942         Remove unprototyped decls and the macros that use them.
57943         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57944         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57945         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57946         (defined __STDC__ && __STDC__)]:
57947         Remove nonprototyped code.
57948         Include <stdlib.h> unconditionally.
57949         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57950         _obstack_allocated_p, _obstack_free, obstack_free,
57951         _obstack_memory_used, print_and_abort):
57952         Define using prototypes.
57953         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57954         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57955         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57956         obstack_next_free, obstack_object_size, obstack_room) [0]:
57957         Remove unused, unprototyped code.
57958
57959         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57960
57961         * lib/physmem.c (physmem_total, physmem_available, main): Define
57962         with prototypes.
57963
57964         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57965         (main): Define with a prototype.
57966
57967         * lib/posixver.c (getenv): Remove decl.
57968
57969         * lib/putenv.c (malloc): Returns void *, not char *.
57970         Include <string.h> unconditionally.
57971         (strchr, memcpy, NULL): Do not define.
57972
57973         * lib/readtokens.c: Include readtokens.h first, to test interface.
57974         Include <stdlib.h>, <string.h> unconditionally.
57975         (init_tokenbuffer): Define with a prototype.
57976
57977         * lib/regex.c (PARAMS): Remove.  All uses removed.
57978         All uses of _RE_ARGS removed, too.
57979         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57980         unconditionally.
57981         (bzero): Assume memset exists.
57982         (memcmp, memcpy, NULL): Remove.
57983         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57984         char, or assignments to local vars of type signed char.
57985         (init_syntax_once, PREFIX(extract_number_and_incr),
57986         PREFIX(print_partial_compiled_pattern),
57987         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57988         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57989         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57990         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57991         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57992         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57993         wcs_compile_range, byte_compile_range, truncate_wchar,
57994         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57995         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57996         count_mbs_length, wcs_re_match_2_internal,
57997         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57998         PREFIX(alt_match_null_string_p),
57999         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
58000         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
58001         regfree, PREFIX(extract_number)): Define with prototype.  Remove
58002         now-unnecessary declaration, if any.
58003         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
58004         regcomp, regexec):
58005         Remove now-unnecessary casts among pointer types.
58006         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
58007
58008         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
58009         (free): Remove decl.
58010
58011         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
58012
58013         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
58014         (free): Remove decl.
58015
58016         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
58017         * lib/xgetcwd.c: Likewise.
58018
58019         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
58020         (free): Remove decl.
58021
58022         * lib/strchrnul.c (strchrnul): Define with a prototype.
58023         Fix bug: c_in was not converted to char before searching.
58024
58025         The following changes are not K&R related:
58026
58027         * lib/group-member.h: Include <sys/types.h>, so that this file is
58028         self-contained.
58029         * lib/makepath.h: Likewise.
58030
58031         * lib/getusershell.c (readname, default_index, line_size, readname):
58032         Use size_t, not int, for sizes.
58033         (readname): If the size overflows, report an error instead of
58034         looping forever.
58035
58036 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58037
58038         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
58039         libc.
58040
58041 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58042
58043         * README: New section: portability guidelines.
58044
58045 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58046
58047         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
58048         C89 spec.
58049
58050 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58051
58052         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
58053
58054 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58055
58056         Assume C89 or better; remove K&R cruft.
58057         A few of these changes were first proposed by Derek Robert Price
58058         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
58059
58060         * lib/addext.c: Include <string.h> unconditionally.
58061         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
58062         Don't declare getenv or malloc.
58063
58064         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
58065         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
58066         (NULL): Remove.
58067         (find_stack_direction, alloca): Use prototypes.
58068
58069         * lib/atexit.c (atexit): Define using a prototype.
58070
58071         * lib/basename.c, dirname.c, stripslash.c:
58072         Include <string.h> unconditionally.
58073
58074         * lib/bcopy.c: Include <stddef.h>.
58075         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
58076
58077         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
58078
58079         * lib/error.h (error, error_at_line, error_print_progname)
58080         [! (defined (__STDC__) && __STDC__)]: Remove decls.
58081         * lib/error.c: Include error.h first, to check interface.
58082         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58083         (VA_START): Remove; all uses changeed to va_start.
58084         (exit, strerror): Remove decls.
58085         (error_print_progname): Prototype uncondionally.
58086         Don't include <errno.h>; no longer needed.
58087         (private_strerror): Remove.
58088         (error_tail): Always define.
58089         (error, error_at_line): Assume C89 or better; always use prototypes.
58090         * lib/fatal.c: Include "fatal.h" first, to test interface.
58091         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58092         (VA_START): Remove; all uses changed to va_start.
58093         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
58094         this case.
58095         (exit): Remove decl.
58096         (fatal): Prototype unconditionally.  Assume va_start works.
58097         Abort at end, to pacify gcc.
58098
58099         * lib/euidaccess.c (main): Define with a prototype.
58100
58101         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
58102
58103         * lib/exitfail.c: Include <stdlib.h> unconditionally.
58104
58105         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
58106         prototypes.
58107         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
58108         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
58109         (getenv): Remove decl.
58110         (fnmatch): Define using a prototype.
58111         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
58112         (FCT): Define using a prototype.
58113
58114         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
58115
58116         * lib/gethostname.c: Include <stddef.h>.
58117         (gethostname): Define with prototype.  Length is size_t, not int.
58118
58119 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58120
58121         Assume C89 or better; remove K&R cruft.
58122         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
58123         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
58124         string.h, getenv, malloc.
58125         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
58126         headers.
58127         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
58128         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
58129         do not check for strerror.
58130         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
58131         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
58132         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
58133         do not check for doprnt or vprintf.
58134         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
58135         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
58136
58137 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58138
58139         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
58140         getversion.c should have been removed then, but was accidentally
58141         preserved.
58142
58143         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
58144         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
58145
58146 2003-09-08  Karl Berry  <karl@gnu.org>
58147
58148         * config/config.sub, config.guess, srclistvars.sh: update from savannah
58149                 config, forget about prep.
58150
58151         * config/depcomp, missing: update from automake.
58152
58153 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58154
58155         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
58156         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58157
58158 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58159
58160         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
58161         copy_tm_result.  Bug reported by Simon Josefsson in
58162         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58163
58164 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58165
58166         * m4/time_r.m4: New file.
58167         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
58168         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
58169         is. Check for timegm declaration.
58170         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
58171         Do not check for gmtime_r.
58172         Replace mktime if __mktime_internal does not exist and if mktime
58173         hasn't been replaced already.
58174
58175 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58176
58177         * lib/time_r.c, lib/time_r.h: New files.
58178
58179         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
58180         __localtime_r.
58181         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
58182         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
58183
58184         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
58185         __gmtime_r.
58186         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
58187         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
58188         Include <time_r.h>.
58189
58190         * lib/timegm.c: Switch to glibc implementation, with the following
58191         changes:
58192         [defined HAVE_CONFIG_H]: Include <config.h>.
58193         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
58194         (__mktime_internal) [!defined _LIBC]: New decl.
58195         (__gmtime_r) [!defined _LIBC]: New macro and function.
58196         (timegm): Use a prototype, since gnulib assumes C89.
58197         Do not bother declaring tmp to be const, as it's not really usefu.
58198         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
58199         (timegm): Declare only if HAVE_DECL_TIMEGM.
58200
58201 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58202
58203         * MODULES.html.sh (func_all_modules): Add time_r.
58204         * modules/time_r: New file.
58205         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
58206         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
58207
58208 2003-09-03  Paul Eggert  <eggert@twinsun.com>
58209
58210         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
58211         Bug reported by Lute Kamstra in
58212         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
58213
58214         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
58215         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
58216         course with correspondingly smaller numbers for tomorrow and
58217         yesterday.  From Tadayoshi Funaba.  Originally installed into
58218         sh-utils on 1999-08-07, but the patch got lost (I guess during the
58219         coreutils merge?).
58220
58221 2003-08-31  Simon Josefsson  <jas@extundo.com>
58222
58223         * modules/timegm: New file.
58224         * MODULES.html.sh (func_all_modules): Add timegm.
58225
58226 2003-08-31  Simon Josefsson  <jas@extundo.com>
58227
58228         * m4/timegm.m4: New file.
58229
58230 2003-08-31  Simon Josefsson  <jas@extundo.com>
58231
58232         * lib/timegm.h: New file.
58233         * lib/timegm.c: New file.  Based on
58234         wget-1.8.2/src/http.c:mktime_from_utc.
58235
58236 2003-08-31  Karl Berry  <karl@gnu.org>
58237
58238         * lib/argp.h: update from libc.
58239
58240 2003-08-28  Bruno Haible  <bruno@clisp.org>
58241
58242         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58243         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58244         followed by '#define fnmatch fnmatch_posix' gives an error.
58245
58246 2003-08-28  Bruno Haible  <bruno@clisp.org>
58247
58248         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58249         warning on QNX, which defines O_BINARY to 000000.
58250
58251 2003-08-27  Jim Meyering  <jim@meyering.net>
58252
58253         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58254         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58255         would fail after 32.  Reported by Danny Levinson.  Details here:
58256         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58257
58258 2003-08-24  Bruno Haible  <bruno@clisp.org>
58259
58260         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58261         MSVC7 <stdio.h> is included later.
58262
58263 2003-08-22  Simon Josefsson  <jas@extundo.com>
58264
58265         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58266
58267 2003-08-20  Karl Berry  <karl@gnu.org>
58268
58269         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58270
58271 2003-08-20  Bruno Haible  <bruno@clisp.org>
58272
58273         * modules/progname: New file.
58274         * MODULES.html.sh (func_all_modules): Add progname.
58275
58276 2003-08-20  Bruno Haible  <bruno@clisp.org>
58277
58278         * lib/progname.h: New file, from GNU gettext.
58279         * lib/progname.c: New file, from GNU gettext.
58280         * lib/progreloc.c: New file, from GNU gettext.
58281
58282 2003-08-19  Jim Meyering  <jim@meyering.net>
58283
58284         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58285         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58286
58287 2003-08-19  Bruno Haible  <bruno@clisp.org>
58288
58289         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58290         more.
58291
58292 2003-08-19  Bruno Haible  <bruno@clisp.org>
58293
58294         * lib/xstrdup.c: Assume <string.h> exists.
58295
58296 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58297
58298         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58299         in makefile rules.
58300
58301 2003-08-18  Jim Meyering  <jim@meyering.net>
58302
58303         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58304         * m4/lib-ld.m4: Likewise.
58305
58306 2003-08-18  Jim Meyering  <jim@meyering.net>
58307
58308         * lib/setenv.h: Indent nested cpp directive.
58309         * lib/vasnprintf.c: Remove trailing blanks.
58310
58311 2003-08-17  Simon Josefsson  <jas@extundo.com>
58312
58313         * modules/xstrndup: New file.
58314         * MODULES.html.sh (func_all_modules): Add xstrndup.
58315
58316 2003-08-17  Simon Josefsson  <jas@extundo.com>
58317
58318         * modules/argp: Fix autoconf macro name. Add more dependencies.
58319
58320 2003-08-17  Simon Josefsson  <jas@extundo.com>
58321
58322         * m4/xstrndup.m4: New file.
58323
58324 2003-08-17  Simon Josefsson  <jas@extundo.com>
58325
58326         * m4/argp.m4: New file.
58327
58328 2003-08-17  Simon Josefsson  <jas@extundo.com>
58329             Bruno Haible  <bruno@clisp.org>
58330
58331         * lib/xstrndup.h: New file.
58332         * lib/xstrndup.c: New file.
58333
58334 2003-08-17  Bruno Haible  <bruno@clisp.org>
58335
58336         * modules/strndup (Files, Include): Add lib/strndup.h.
58337
58338 2003-08-17  Bruno Haible  <bruno@clisp.org>
58339
58340         * modules/euidaccess (Files): Add lib/euidaccess.h.
58341
58342 2003-08-17  Bruno Haible  <bruno@clisp.org>
58343
58344         * lib/strndup.h: New file.
58345
58346 2003-08-17  Bruno Haible  <bruno@clisp.org>
58347
58348         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58349         like AC_GNU_SOURCE.
58350         * modules/extensions (configure.ac): Comment out the invocation of
58351         gl_USE_SYSTEM_EXTENSIONS.
58352
58353 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58354
58355         Merges from coreutils, etc.
58356         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58357         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58358         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58359         fixing a typo.
58360         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58361         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58362
58363 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58364
58365         Document merge from coreutils.
58366         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58367         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58368         * modules/utime: Add m4/utimes-null.m4.
58369
58370 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58371
58372         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58373         space, undoing this 2003-08-12 change:
58374         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58375
58376 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58377
58378         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58379         strtoul.c from libc, undoing this 2003-08-12 change:
58380         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58381
58382 2003-08-16  Jim Meyering  <jim@meyering.net>
58383
58384         Merges from coreutils.
58385         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58386         prefix.  Adjust cache variables similarly.  Create 500 rather than
58387         just 300 files, to exercise bug on Darwin6.5, too.
58388         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58389         $missing_dir.
58390         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58391         AM_SYS_POSIX_TERMIOS.
58392         Reported by mkc@mathdogs.com.
58393         Also change use of $am_cv_sys_posix_termios
58394         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58395         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58396         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58397         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58398         in /proc/mounts until it finds one with matching device number.  This
58399         is unnecessary when the FILE argument *is* a mount point.  No stat call
58400         is necessary in that case.  So, disable the statvfs-testing code on
58401         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58402         as RedHat bug# 84846.
58403         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58404         to 1MB, so as not to render systems with no stack size limit (e.g.,
58405         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58406         Include <unistd.h>.  On some systems,
58407         it is required for the definition of _SC_PAGESIZE.
58408
58409 2003-08-16  Jim Meyering  <jim@meyering.net>
58410
58411         Merge from coreutils.
58412         * lib/xstrtoimax.c: #else #if -> #elif.
58413         * lib/xstrtoumax.c: Likewise.
58414
58415 2003-08-16  Jim Meyering  <jim@meyering.net>
58416
58417         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58418         * m4/utimes.m4: Removed.
58419         * m4/utimes-null.m4: Renamed from utimes.m4.
58420
58421         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58422         to 1MB, so as not to render systems with no stack size limit (e.g.,
58423         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58424         Include <unistd.h>.  On some systems,
58425         it is required for the definition of _SC_PAGESIZE.
58426
58427 2003-08-16  Jim Meyering  <jim@meyering.net>
58428         and Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         Merges from coreutils, etc.
58431
58432         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58433         using the latest version from cvs.  This avoids problems with #line
58434         directives using a vendor (Sun) compiler.
58435         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58436         Don't set GETGROUPS_LIB here; now it's
58437         done via getgroups.m4's wrapper function.
58438         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58439         rather than just in sh-util/configure.in, so that the
58440         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58441         same.
58442         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58443         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58444         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58445         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58446         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58447         Remove code that is now done by the newly-required macros.
58448         Append $(EXEEXT) to DF_PROG.
58449         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58450         Do not invoke or require the following here,
58451         since prereq.m4 or some gnulib .m4 now does this for us:
58452         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58453         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58454         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58455         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58456         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58457         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58458         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58459         AC_FUNC_OBSTACK.
58460         Do not replace the following functions, as this is now the job
58461         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58462         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58463         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58464         atexit getpass, strdup, getpagesize.
58465         Replace 'raise'.
58466         Do not check for the following functions, as this is now the job
58467         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58468         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58469         setregid.
58470         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58471         Check for sys/sysctl.h.
58472         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58473         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58474         of checking for ssize_t ourselves.
58475
58476         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58477         Require every macro that gnulib/modules/* suggests for us.
58478         (jm_PREREQ_ADDEXT): New macro.
58479         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58480         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58481
58482         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58483         (gl_PHYSMEM): Use it.
58484         Also check for `table' function.
58485         Check for new headers and functions.
58486         Add check for sys/sysmp.h.
58487         With suggestions from Kaveh Ghazi.
58488         Ignore headers that are present but cannot be compiled.  This
58489         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58490         C 5.4.
58491
58492 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58493
58494         Document merge from coreutils.
58495         * modules/userspec: Depend on posixver.
58496         * modules/strftime: Depend on tzset.
58497
58498 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58499
58500         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58501         rather than tab, after '#' in shell-script copyright notices.
58502         Suggested by Bruno Haible.
58503
58504 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58505
58506         * config/srclist-update: Use three spaces, rather than tab, after '#'
58507         in shell-script copyright notices.  Suggested by Bruno Haible.
58508         Remove unnecessary parenthesization in regular expression.
58509
58510 2003-08-15  Jim Meyering  <jim@meyering.net>
58511
58512         Merge from coreutils.
58513         * lib/xgethostname.c: Include <stdlib.h>.
58514         (xghostname): Don't exit for anything other than memory-related
58515         failure; just return NULL.
58516         * lib/userspec.c: Include "posixver.h".
58517         (parse_user_spec): Accept `.' as a separator only
58518         in pre-POSIX-200112 mode.
58519         * lib/strtoimax.c: Use #elif rather than #else #if.
58520         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58521         Remove function, now that we can rely on a working tzset function.
58522         [!_LIBC]: Ensure that the required autoconf test has been run.
58523         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58524         Use underlying_strftime for %r.
58525         * lib/sha.c: Merge in some clean-up and optimization changes from
58526         glibc.
58527         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58528         Ensure that it is a multiple of 64.
58529         Rearrange loop exit tests so as to avoid performing an
58530         additional fread after encountering an error or EOF.
58531         * lib/realloc.c: Update copyright date.
58532
58533 2003-08-15  Jim Meyering  <jim@meyering.net>
58534         and Paul Eggert  <eggert@twinsun.com>
58535
58536         Merge from coreutils.
58537         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58538         member but strut utmpx does not.  Needed for AIX 4.3.3.
58539         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58540
58541 2003-08-15  Jim Meyering  <jim@meyering.net>
58542         and Paul Eggert  <eggert@cs.ucla.edu>
58543
58544         Merges from coreutils, etc.
58545         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58546         Require gl_FUNC_TZSET_CLOBBER.
58547         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58548         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58549         members.
58550
58551 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58552
58553         Help the merge from coreutils.
58554         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58555         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58556         * m4/tzset.m4: Use it too.
58557
58558 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58559
58560         * modules/tzset: New file.
58561
58562 2003-08-14  Jim Meyering  <jim@meyering.net>
58563
58564         Merges from coreutils.
58565         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58566         variable names, rather than @FNMATCH_H@.
58567         * modules/alloca: Likewise for $(ALLOCA_H).
58568
58569         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58570         the three copies of the literal target, `fnmatch.h'.
58571         * modules/alloca (alloca.h): Likewise.
58572
58573 2003-08-14  Jim Meyering  <jim@meyering.net>
58574
58575         Merge from coreutils.
58576         * m4/tzset.m4: New file.
58577         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58578         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58579         otherwise, AIX 5.1 systems would end up using the latter.
58580         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58581         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58582         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58583         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58584
58585 2003-08-14  Jim Meyering  <jim@meyering.net>
58586
58587         Merge from coreutils.
58588         * lib/obstack.h: Whitespace changes.
58589         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58590         and xcalloc return values.
58591         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58592         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58593         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58594         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58595         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58596         error from mntctl.
58597         Use mntctl's return value to drive the entry-processing loop, since
58598         we can't rely on the value of the vmt_length member in the last
58599         entry.  On some systems doing so could result in exhausting
58600         virtual memory.  Based in part on a patch from Mike Jetzer.
58601
58602 2003-08-14  Jim Meyering  <jim@meyering.net>
58603         and Paul Eggert  <eggert@twinsun.com>
58604
58605         Merges from coreutils, plus other fixes.
58606         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58607         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58608         for credits and details.  Thanks to Kaveh Ghazi for helping
58609         to keep these files in sync.
58610         (ARRAY_SIZE): Define it.
58611         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58612         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58613         (memcasecmp): Don't assume size_t fits in unsigned int.
58614         Remove casts and duplicate code.
58615         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58616         (memcpy): Remove definition.
58617         Merge in some clean-up and optimization changes from glibc.
58618         [BLOCKSIZE]: Move definition to top of file.
58619         Ensure that it is a multiple of 64.
58620         Rearrange loop exit tests so as to avoid performing an
58621         additional fread after encountering an error or EOF.
58622         * lib/md5.h (md5_uintptr): Define.
58623         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58624         return to the initial working directory.  Preserve errno
58625         for caller.
58626         * lib/idcache.c: Include "xalloc.h".
58627         (xmalloc, xrealloc): Remove decls.
58628         (getuser): Remove casts no longer required in C89.
58629         * lib/human.c: Include stdio.h, for sprintf.
58630         * lib/group-member.c: Include "xalloc.h".
58631         (xmalloc, xrealloc): Remove decls.
58632         (get_group_info): Remove casts no longer required in C89.
58633         * lib/getusershell.c (readname): Remove casts no longer required in
58634         C89.
58635         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58636         * lib/getline.c: Whitespace fix, from coreutils.
58637
58638 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58639
58640         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58641         Check for isascii.
58642
58643         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58644         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58645         Undo previous (whitespace-only) change.
58646
58647 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58648
58649         * lib/exclude.c: Include <ctype.h>
58650         (IN_CTYPE_DOMAIN): New macro.
58651         (is_space): New fn.
58652         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58653         and empty lines.
58654
58655         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58656         Undo previous (whitespace-only) change.
58657
58658 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58659
58660         * config/srclist-update: Change update back to the old behavior,
58661         leaving whitespace alone.  Use one 'sed' command rather than a
58662         pipeline.
58663         (fixlicense): Now a variable, not a function.
58664         (remove_trailing_blanks): Remove.
58665         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58666         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58667         Undo previous (whitespace-only) change.
58668
58669 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58670
58671         Merge from coreutils.
58672         * modules/euidaccess: Add lib_SOURCES, include for new
58673         file euidaccess.h
58674
58675 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58676
58677         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58678         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58679         Normalize leading white space and remove trailing white space.
58680
58681         Merge from coreutils
58682         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58683
58684         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58685         0.12.1.  These files are now being upgraded automatically by
58686         ../config/srclist-update.
58687
58688 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58689
58690         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58691         Normalize leading white space and remove trailing white space.
58692         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58693         notice, as per ../config/srclist-update.
58694
58695         Merge from coreutils.
58696         * lib/euidaccess.h: New file.
58697         * lib/euidaccess.c: Include it.
58698         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58699         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58700         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58701
58702 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58703
58704         * config/srclist-update: Add copyright notice.
58705         (remove_id_lines, remove_trailing_blanks): New constants.
58706         (fixfile): Use them to normalize spacing a bit in copied files.
58707         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58708         Normalize leading white space and remove trailing white space.
58709
58710         * config/texinfo.tex: Sync with texinfo.
58711
58712         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58713         strtoul.c from libc, to merge coreutils whitespace changes.
58714
58715         * config/srclist.txt: Get the following m4 files from gettext:
58716         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58717         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58718         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58719         wint_t.m4.
58720
58721 2003-08-12  Karl Berry  <karl@gnu.org>
58722
58723         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58724         been made.
58725
58726 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58727
58728         * modules/gnu-source, m4/gnu-source.m4:
58729         Remove; we're assuming Autoconf 2.54 or later now.
58730         Suggested by Bruno Haible.
58731         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58732
58733 2003-08-11  Bruno Haible  <bruno@clisp.org>
58734
58735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58736
58737 2003-08-11  Bruno Haible  <bruno@clisp.org>
58738
58739         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58740         (vasnprintf): Use it instead of wcslen.
58741
58742 2003-08-11  Bruno Haible  <bruno@clisp.org>
58743
58744         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58745         value to ensure that _Bool promotes to int. Use #define for _Bool when
58746         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58747
58748 2003-08-10  Karl Berry  <karl@gnu.org>
58749
58750         * lib/regex.h: update from libc (whitespace fix).
58751
58752 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58753
58754         Merge some files from coreutils.  These changes were
58755         originally made by Jim Meyering.
58756         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58757         many older Unixes require this.
58758         * lib/alloca.c (alloca): Remove cast to argument of free;
58759         no longer needed in C89.
58760         * lib/alloca_.h, regex.h: Fix white space to match
58761         what GNU indent does.
58762
58763 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58764
58765         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58766         apparently Emacs's Unicode mode got confused before my 2003-08-05
58767         checkin.
58768
58769 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58770
58771         * m4/extensions.m4: New file.
58772         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58773         Require gl_USE_SYSTEM_EXTENSIONS.
58774         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58775         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58776
58777 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58778
58779         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58780         * modules/extensions, modules/gnu-source: New files.
58781         * modules/timespec, modules/unlocked-io: Depend on extensions.
58782
58783 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58784
58785         * modules/restrict: New file.
58786         * MODULES.html.sh (func_all_modules): Add restrict.
58787         * modules/regex: Depend on restrict.
58788
58789 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58790
58791         * m4/restrict.m4: New file.
58792         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58793
58794 2003-08-07  Bruno Haible  <bruno@clisp.org>
58795
58796         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58797         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58798
58799 2003-08-07  Bruno Haible  <bruno@clisp.org>
58800
58801         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58802         makes the module 'getndelim2' compatible with the module 'getline'.
58803
58804 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58805
58806         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58807         byte with "\201" to avoid glitches when editing that source file
58808         with multi-gnome-terminal.
58809
58810 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58811
58812         * lib/bumpalloc.h: Remove.
58813
58814 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58815
58816         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58817         * modules/bumpalloc: Remove.
58818
58819 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58820
58821         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58822         GNU coding style.
58823
58824         Merge from coreutils.
58825         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58826         1. From glibc.
58827         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58828         from Karl Berry, implemented by Jim Meyering.
58829         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58830         from Dmitry V. Levin.
58831         Remove anachronistic cast of xrealloc.
58832         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58833         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58834         type. Otherwise, it wouldn't compile with at least /bin/cc on
58835         ymp-cray-unicos9.0.2.X.
58836         Combine two mostly-identical uses of alloca into one.
58837         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58838
58839 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58840
58841         [From Emacs.]
58842
58843         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58844         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58845         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58846         obsolete NLIST_NAME_UNION.
58847         [__GNU__]: Undef BSD and FSCALE.
58848         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58849
58850 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58851
58852         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58853         an enum type, so that it's guaranteed to promote to int.  See:
58854         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58855
58856 2003-08-03  Karl Berry  <karl@gnu.org>
58857
58858         * config/depcomp: update from automake.
58859
58860 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58861
58862         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58863         (strerror): Don't assume that a printable int fits in 14 bytes.
58864
58865 2003-07-31  Bruno Haible  <bruno@clisp.org>
58866
58867         * modules/getpass-gnu: New file.
58868         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58869
58870 2003-07-31  Bruno Haible  <bruno@clisp.org>
58871
58872         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58873
58874 2003-07-24  Karl Berry  <karl@gnu.org>
58875
58876         * config/missing: update from automake.
58877
58878 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58879             Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58882         * lib/getline.c (getline, getdelim): Likewise.
58883         Remove _GNU_SOURCE define; now it's defined in config.h through
58884         m4/getline.m4.
58885
58886 2003-07-23  Karl Berry  <karl@gnu.org>
58887
58888         * config/config.sub: update from prep.
58889
58890 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58891
58892         * modules/xalloc (Depends-on): Add exitfail.
58893         * modules/xmemcoll: Likewise.
58894
58895 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58896
58897         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58898         over-parenthesization in macros.
58899
58900         Sync with coreutils.
58901
58902         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58903         required by C99.
58904
58905         Use `exit_failure' for xalloc and xmemcoll instead of their own
58906         private exit-failure variables.
58907         * lib/xalloc.h (xalloc_exit_failure): Remove.
58908         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58909         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58910         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58911         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58912         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58913
58914 2003-07-20  Jim Meyering  <jim@meyering.net>
58915
58916         * modules/closeout (Depends-on): Add exitfail.
58917         Suggestion from Bruno Haible.
58918
58919 2003-07-19  Karl Berry  <karl@gnu.org>
58920
58921         * config/config.sub: update from prep.
58922
58923 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58924
58925         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58926         Remove.
58927         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58928         to test that it can stand by itself.  Include "exitfail.h".
58929         Clients should set exit_failure instead.
58930         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58931
58932 2003-07-18  Bruno Haible  <bruno@clisp.org>
58933
58934         * modules/getndelim2: New file.
58935         * modules/getline: Share files with module getndelim2.
58936         * modules/getnline: Depend on getndelim2 instead of sharing files with
58937         it. Add getnline.c to lib_SOURCES.
58938         * MODULES.html.sh (func_all_modules): Add getndelim2.
58939
58940 2003-07-18  Bruno Haible  <bruno@clisp.org>
58941
58942         * m4/getndelim2.m4: New file.
58943         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58944         invoke gl_PREREQ_GETNDELIM2.
58945         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58946         gl_PREREQ_GETNDELIM2.
58947         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58948         gl_GETNDELIM2.
58949
58950 2003-07-18  Bruno Haible  <bruno@clisp.org>
58951
58952         * lib/getndelim2.h: New file.
58953         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58954         getndelim2.h.
58955         (getndelim2): Make non-static. Change return type to ssize_t.
58956         * lib/getline.h: Change argument names.
58957         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58958         * lib/getnline.c: Include getndelim2.h.
58959
58960 2003-07-18  Andreas Schwab  <schwab@suse.de>
58961
58962         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58963
58964 2003-07-17  Karl Berry  <karl@gnu.org>
58965
58966         * config/config.sub: update from prep.
58967
58968 2003-07-17  Bruno Haible  <bruno@clisp.org>
58969
58970         * modules/getnline: New file.
58971         * modules/getline: Add lib/getndelim2.c to source file list.
58972         * MODULES.html.sh (func_all_modules): Add getnline.
58973
58974 2003-07-17  Bruno Haible  <bruno@clisp.org>
58975
58976         * m4/getnline.m4: New file.
58977
58978 2003-07-17  Bruno Haible  <bruno@clisp.org>
58979
58980         * m4/Makefile.am.in: Remove file.
58981         * m4/Makefile.am: Remove file.
58982         * m4/Makefile.in: Remove file.
58983
58984 2003-07-17  Bruno Haible  <bruno@clisp.org>
58985
58986         * lib/getnline.h: New file.
58987         * lib/getnline.c: New file.
58988         * lib/getndelim2.c: New file, extracted from getline.c.
58989         (getndelim2): Renamed from getdelim2, with added nmax argument.
58990         * lib/getline.c: Include getndelim2.c.
58991         (getdelim2): Moved out to getndelim2.c.
58992         (getline, getdelim): Update.
58993
58994 2003-07-17  Bruno Haible  <bruno@clisp.org>
58995
58996         * lib/Makefile.am: Remove file.
58997         * lib/Makefile.in: Remove file.
58998
58999 2003-07-17  Bruno Haible  <bruno@clisp.org>
59000
59001         * configure.in: Remove file.
59002         * Makefile.in: Remove file.
59003
59004 2003-07-17  Bruno Haible  <bruno@clisp.org>
59005
59006         * MODULES.html.sh: Put the </BODY> right before </HTML>.
59007
59008 2003-07-16  Karl Berry  <karl@gnu.org>
59009
59010         * config/srclist-update: was running fixlicense twice, which caused
59011                 texinfo.tex to be nullified for some reason.  Simplify,
59012                 $gplsrc is no longer needed as far as I can see?
59013
59014 2003-07-16  Jim Meyering  <jim@meyering.net>
59015
59016         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
59017
59018 2003-07-15  Paul Eggert  <eggert@twinsun.com>
59019
59020         * config/srclist.txt: Get the following files from gettext-runtime/intl
59021         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
59022         ref-del.sin.  From Bruno Haible.
59023         * config/srclist-update (fixfile): Change grep pattern again, since the
59024         previous fix didn't work (there was another trailing $).  Use
59025         '[$]' to escape the $s.
59026
59027 2003-07-15  Karl Berry  <karl@gnu.org>
59028
59029         * lib/vasnprintf.c: update from gettext.
59030
59031 2003-07-15  Karl Berry  <karl@gnu.org>
59032
59033         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
59034         gets expanded when surrounded by '$'.
59035
59036 2003-07-15  Jim Meyering  <jim@meyering.net>
59037
59038         * modules/save-cwd: Don't depend on error.  From Derek Price.
59039
59040 2003-07-15  Jim Meyering  <jim@meyering.net>
59041
59042         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
59043
59044 2003-07-14  Simon Josefsson  <jas@extundo.com>
59045
59046         * modules/mempcpy: New file.
59047         * MODULES.html.sh (func_all_modules): Add mempcpy.
59048
59049 2003-07-14  Simon Josefsson  <jas@extundo.com>
59050
59051         * m4/mempcpy.m4: New file.
59052
59053 2003-07-14  Simon Josefsson  <jas@extundo.com>
59054
59055         * lib/mempcpy.h: New file.
59056         * lib/mempcpy.c: New file.
59057
59058 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59059
59060         * modules/getdate, modules/posixtm: Depend on mktime.
59061
59062 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59063
59064         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
59065         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
59066         unicodeio.c, unicodeio.h, unlocked-io.h:
59067         Switch from LGPL to GPL.
59068
59069 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59070
59071         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
59072         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
59073         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
59074         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
59075         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
59076         updated automatically by ../config/srclist-update.  This changes
59077         their license from LPGL to GPL.
59078
59079 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59080
59081         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
59082         assumed to refer to the root of the most recent stable gettext version.
59083         * config/srclistvars.sh: Add defaults for eggert.
59084         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
59085         Match "This program" as well as "The program".  This is needed
59086         for gettext.
59087
59088 2003-07-14  Jim Meyering  <jim@meyering.net>
59089
59090         Don't emit diagnostics.  Let callers do that.
59091         * lib/save-cwd.c: Don't include "error.h".
59092         (save_cwd): Don't call error.  Ensure that errno is valid
59093         when returning nonzero.
59094
59095         * lib/save-cwd.h (restore_cwd): Update prototype.
59096         * lib/save-cwd.c (restore_cwd): Remove two parameters.
59097         Simplify.  Don't call error upon failure.  Let callers do that.
59098         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
59099         when auditing is enabled.  But don't bother updating the #if.
59100
59101 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
59102
59103         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
59104         it breaks C++ compilation.
59105         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
59106
59107 2003-07-10  Simon Josefsson  <jas@extundo.com>
59108
59109         * modules/strchrnul (Makefile.am): Add strchrnul.h.
59110
59111 2003-07-10  Jim Meyering  <jim@meyering.net>
59112
59113         * m4/clock_time.m4: Remove trailing blank.
59114         * m4/intmax_t.m4: Likewise.
59115
59116 2003-07-10  Jim Meyering  <jim@meyering.net>
59117
59118         * lib/vasnprintf.c: Remove trailing blanks.
59119         Make cpp indentation consistent.
59120
59121 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59122
59123         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
59124         posixver.c, strftime.c, strnlen.c, strverscmp.c:
59125         Switch from LGPL to GPL.
59126
59127 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59128
59129         * config/srclist.txt: Sort sublists.  Add
59130         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
59131         that differ from gnulib for one reason or another; we'd like this list
59132         to be smaller but for now let's document what we have.
59133
59134 2003-07-08  Paul Eggert  <eggert@twinsun.com>
59135
59136         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
59137         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
59138         and sweeter "eval x=$x".
59139         * config/srclist.txt: Get lib/argp* from glibc.
59140
59141 2003-07-07  Paul Eggert  <eggert@twinsun.com>
59142
59143         * lib/mktime.c: Fix some boundary cases and remove need for floating
59144         point.
59145
59146         Issue a compile-time diagnostic if time_t is floating point, or if
59147         two's complement arithmetic is not in effect, or if arithmetic
59148         right shift does not propagate the sign.  These assumptions were
59149         all in the original code but they weren't checked.
59150
59151         (TIME_T_MIDPOINT, verify): New macros.
59152         (__isleap): Remove; it has integer overflow problems.
59153         (leapyear): New function, without those problems.
59154         (ydhms_tm_diff): Remove; splitting into two parts.
59155         (ydhms_diff): New function, containing the arithmetic part of
59156         the old ydhms_tm_diff function.  Issue a compile-time
59157         diagnostic if we are not using C99 integer division.
59158         Avoid casts when possible.
59159         (guess_time_tm): New function, containing the checking part of
59160         the old ydhms_tm_diff function.  Return the new value, rather than
59161         the difference between it and the old.  Accept a new argument T
59162         so that *T specifies the old value.  Check for overflow in the result.
59163
59164         (__mktime_internal): Use a time_t offset, not a long int offset.
59165         This undoes the 2003-06-04 change, which is no longer needed now
59166         that we have better overflow checking.
59167         (localtime_offset): Likewise.
59168
59169         (__mktime_internal): Avoid harmful overflow on hosts where time_t
59170         and long are 64-bit but int is only 32-bit.
59171         (ydhms_diff): Use long int to store year1 and yday1.
59172         Issue a compile-time diagnostic if long int is not wide enough.
59173
59174         (__mktime_internal): Use long int to store adjusted year and yday.
59175         Use plain C rather than preprocessor commands, if that doesn't
59176         affect efficiency.
59177         Check for overflow (and try to repair) after each probe
59178         rather than checking only at the very end.  This avoids some bugs
59179         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
59180         does not equal GMT offset at maximum time).
59181         Use integer to check for overflow rather than floating point; this
59182         is more portable to non-IEEE hosts, and is a tad faster.
59183         When we detect that we are oscillating between two values,
59184         don't check whether tm_isdst has the requested value, since
59185         we already know the answer.  When tm_isdst has the wrong value,
59186         use a different heuristic to find the right one, based on the
59187         extreme values actually observed in practice in tz2003a,
59188         rather than the (overly optimistic) "previous 3 calendar quarters".
59189
59190         (not_equal_tm, print_tm, check_result): Use "const T" rather than
59191         "T const" to accommodate glibc style.
59192         (check_result): Use less-confusing report format.  "long" -> "long int.
59193         (main): Likewise.
59194         Don't loop if the iteration overflows time_t.
59195         Allow a negative step in the iteration.
59196
59197 2003-07-06  Karl Berry  <karl@gnu.org>
59198
59199         * config/depcomp: update from automake.
59200         * config/config.sub: update from prep.
59201
59202 2003-07-03  Karl Berry  <karl@gnu.org>
59203
59204         * config/config.guess: update from prep.
59205
59206 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59207
59208         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
59209         xreadlink.c now includes it unconditionally.
59210
59211 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59212
59213         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
59214         having it depend on HAVE_SYS_TYPES_H.
59215
59216 2003-07-01  Bruno Haible  <bruno@clisp.org>
59217
59218         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
59219         <sys/types.h> should be sufficient.
59220         Reported by Paul Eggert.
59221
59222 2003-06-26  Karl Berry  <karl@gnu.org>
59223
59224         * config/depcomp: update from automake.
59225
59226 2003-06-26  Bruno Haible  <bruno@clisp.org>
59227
59228         * modules/human: Depend on module stdbool.
59229
59230 2003-06-25  Bruno Haible  <bruno@clisp.org>
59231
59232         * modules/readlink: New file.
59233         * modules/xreadlink: Depend on it.
59234         * MODULES.html.sh (func_all_modules): Add readlink.
59235
59236 2003-06-25  Bruno Haible  <bruno@clisp.org>
59237
59238         * m4/readlink.m4: New file.
59239
59240 2003-06-25  Bruno Haible  <bruno@clisp.org>
59241
59242         * lib/readlink.c: New file.
59243
59244 2003-06-22  Karl Berry  <karl@gnu.org>
59245
59246         * config/srclist.txt: update mkinstalldirs from automake.
59247         * config/mkinstalldirs: update.
59248
59249 2003-06-22  Bruno Haible  <bruno@clisp.org>
59250
59251         Portability to mingw32.
59252         * m4/ssize_t.m4: New file, from GNU gettext.
59253         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59254         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59255
59256 2003-06-22  Bruno Haible  <bruno@clisp.org>
59257
59258         * modules/safe-read: Add m4/ssize_t.m4.
59259         * modules/xreadlink: Add m4/ssize_t.m4.
59260
59261 2003-06-20  Bruno Haible  <bruno@clisp.org>
59262
59263         Assume C89, so PARAMS isn't needed.
59264         * lib/unicodeio.h (PARAMS): Remove.
59265         * lib/unicodeio.c: Don't use PARAMS.
59266
59267 2003-06-18  Karl Berry  <karl@gnu.org>
59268
59269         * config/config.{guess,sub}: update from prep.
59270
59271 2003-06-18  Jim Meyering  <jim@meyering.net>
59272
59273         Merge changes from coreutils.
59274         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59275         Remove explicit declarations of xmalloc and realloc.
59276         Include xalloc.h.
59277         (read_utmp): Remove anachronistic cast of xmalloc.
59278
59279 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59280
59281         Assume C89, so PARAMS isn't needed.
59282         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59283         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59284         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59285         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59286         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59287         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59288         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59289         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59290         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59291         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59292         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59293         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59294         no longer needed. Anyway, config.h should always be included before any
59295         other file.
59296
59297 2003-06-11  Simon Josefsson  <jas@extundo.com>
59298
59299         * modules/sysexits: New file.
59300         * MODULES.html.sh (func_all_modules): Add sysexits.
59301
59302 2003-06-11  Simon Josefsson  <jas@extundo.com>
59303
59304         * lib/sysexit_.h: New file.
59305
59306 2003-06-11  Derek Price  <derek@ximbiot.com>
59307
59308         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59309         necessary.
59310
59311 2003-06-11  Bruno Haible  <bruno@clisp.org>
59312
59313         * m4/sysexits.m4: New file.
59314
59315 2003-06-10  Simon Josefsson  <jas@extundo.com>
59316
59317         * lib/argp.h: New file, from glibc.
59318         * lib/argp-ba.c: New file, from glibc.
59319         * lib/argp-eexst.c: New file, from glibc.
59320         * lib/argp-fmtstream.c: New file, from glibc.
59321         * lib/argp-fmtstream.h: New file, from glibc.
59322         * lib/argp-fs-xinl.c: New file, from glibc.
59323         * lib/argp-help.c: New file, from glibc.
59324         * lib/argp-namefrob.h: New file, from glibc.
59325         * lib/argp-parse.c: New file, from glibc.
59326         * lib/argp-pv.c: New file, from glibc.
59327         * lib/argp-pvh.c: New file, from glibc.
59328         * lib/argp-xinl.c: New file, from glibc.
59329
59330 2003-06-10  Simon Josefsson  <jas@extundo.com>
59331
59332         * modules/strchrnul: New file.
59333
59334 2003-06-10  Simon Josefsson  <jas@extundo.com>
59335
59336         * modules/argp: New file.
59337
59338 2003-06-10  Simon Josefsson  <jas@extundo.com>
59339
59340         * m4/strchrnul.m4: New file.
59341
59342 2003-06-10  Simon Josefsson  <jas@extundo.com>
59343
59344         * lib/strchrnul.h: New file.
59345         * lib/strchrnul.c: New file.
59346
59347 2003-06-10  Bruno Haible  <bruno@clisp.org>
59348
59349         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59350
59351 2003-06-07  Karl Berry  <karl@gnu.org>
59352
59353         * config/config.{guess,sub}: update from prep.
59354
59355 2003-06-07  Jim Meyering  <jim@meyering.net>
59356
59357         * modules/strtod: Use $(...) notation, not @...@ for
59358         AC_REPLACE'd variables.
59359         * modules/localcharset: Likewise.
59360
59361 2003-06-07  Jim Meyering  <jim@meyering.net>
59362
59363         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59364         in place of my name in the copyright comment.
59365         Remove definition and uses of __P.
59366
59367         From coreutils.
59368         * lib/stat.c: Don't declare xmalloc explicitly.
59369         Instead, include "xalloc.h".
59370         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59371         xrealloc, and xcalloc return values.
59372         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59373         Improve comment.
59374         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59375
59376 2003-06-07  Bruno Haible  <bruno@clisp.org>
59377
59378         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59379         avoid AC_CONFIG_LINKS.
59380         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59381         fnmatch.h, to avoid AC_CONFIG_LINKS.
59382         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59383
59384 2003-06-07  Bruno Haible  <bruno@clisp.org>
59385
59386         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59387         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59388         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59389         directory.
59390         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59391         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59392         directory.
59393
59394 2003-06-06  Jim Meyering  <jim@meyering.net>
59395
59396         Merge from coreutils.
59397         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59398         Consolidate declarations and initializations of *_base* locals.
59399
59400         Merge from coreutils.
59401         This avoids a core dump on systems without GNU putenv,
59402         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59403         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59404         (unsetenv): New static function, from GNU libc.
59405         (rpl_putenv): Use it.
59406
59407         * lib/modechange.c: Remove trailing blanks.
59408
59409         Merge from coreutils.
59410         * lib/fsusage.c: Remove declaration of statfs.
59411         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59412
59413         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59414
59415 2003-06-06  Jim Meyering  <jim@meyering.net>
59416
59417         * lib/stdbool_.h: Renamed from stdbool.h.in.
59418
59419 2003-06-06  Jim Meyering  <jim@meyering.net>
59420             Bruno Haible  <bruno@clisp.org>
59421
59422         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59423         Adjust Makefile.am snippet not to redirect directly to target.
59424         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59425
59426 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59427
59428         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59429         mismatch, look in future quarters as well as past.  This fixes a
59430         bug when processing fall-backwards gaps immediately after a long
59431         period of daylight-saving time.
59432
59433         * lib/mktime.c: Assume freestanding C89 or better.
59434         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59435         (__P): Remove; not used.
59436         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59437         (mktime, not_equal_tm, print_tm, check_result,
59438         main): Use prototypes.  Use const * where appropriate.
59439         (main): Fix typo in testing code that uncovered by above changes.
59440         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59441
59442 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59443
59444         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59445         locale.h, localeconv.  This merges changes from coreutils.
59446
59447         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59448         It can be removed after the next Autoconf is released.
59449         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59450         needed.
59451
59452 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59453
59454         * lib/mktime.c: Fix Debian bug 177940
59455         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59456         (localtime_offset): Now long int, not time_t, because we want it
59457         to be guaranteed to be signed.  All uses changed.
59458         (__mktime_internal): If overflow would occur when adding offset,
59459         don't add it.
59460
59461         Merge 'human' changes from coreutils.  Rewrite to support
59462         locale-specific notations like thousands separators.
59463         * lib/human.c: Simplify authorship notice.
59464         Include human.h immediately after config.h.
59465         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59466         <limits.h>: Do not include, since human.h does.
59467         (SIZE_MAX, UINTMAX_MAX): New macros.
59468         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59469         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59470         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59471         (power_letter): Renamed from suffixes.
59472         (generate_suffix_backwards): Remove.
59473         (adjust_value): Now takes int style (because of human.h changes)
59474         and long double value (for greater precision on some platforms).
59475         (group_number): New function.
59476         (human_readable): Use it.  Use integer options, not enum.
59477         Put the options before the sizes in the arg list.
59478         Support all the new options.
59479         The old human_readable function has been removed;
59480         use inttostr.h instead.
59481         (human_readable, default_block_size, humblock):
59482         Use uintmax_t, not int, for block sizes.
59483         (human_readable_inexact, block_size_types): Remove.
59484         (block_size_opts): New constant.
59485         (human_options): Renamed from human_block_size, with new signature
59486         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59487         * lib/human.h: Add copyright and authorship notice.
59488         Include <limits.h> and <stdbool.h> unconditionally.
59489         (PARAMS): Remove.  All uses removed.
59490         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59491         (enum human_inexact_style): Remove tag; now a nameless enum.
59492         (human_floor, human_ceiling, human_round_to_even): Now have
59493         values 2, 0, 1 rather than -1, 1, 0.
59494         (human_group_digits, human_suppress_point_zero, human_autoscale,
59495         human_base_1024, human_SI, human_B): New constants.
59496         (human_readable_inexact, human_block_size): Remove.
59497         (human_readable): Size args are now uintmax_t, not int.
59498         (human_options): New decl.
59499
59500         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59501         unnecessary now that we assume C89 or better.  This change
59502         imported from coreutils.
59503
59504         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59505         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59506         in the 2003-05-30 sync from glibc.
59507
59508         .h files should stand alone, but we shouldn't include <sys/types.h>
59509         if we can get away with just <stddef.h>.
59510
59511         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59512         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59513         rather than <sys/types.h>, as we merely need size_t.
59514         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59515         to get size_t.
59516         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59517         Include <stdio.h>, to get FILE.
59518         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59519         memcasecmp.h has included <stddef.h> and all we need is size_t.
59520         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59521         our interface, instead of including <sys/types.h>
59522
59523 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59524
59525         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59526         now, as glibc mktime is buggy on non-glibc systems.
59527
59528 2003-06-03  Karl Berry  <karl@gnu.org>
59529
59530         * config/config.sub: update from prep.
59531
59532 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59533
59534         [from coreutils]
59535         Fix some minor time-related bugs with POSIX time arguments.
59536         Some valid time stamps were being rejected (notably -1, and
59537         time stamps before 1900 on 64-bit hosts).  And some invalid
59538         time stamps were being accepted, e.g. September 31.
59539
59540         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59541         that we can return (time_t) -1 successfully.
59542         * lib/posixtm.c: Likewise.
59543         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59544         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59545         (t): Remove static var.
59546         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59547         of static var.  All uses changed.
59548         (year): Do not reject years before 1900; they can occur with
59549         64-bit time_t.
59550         (posix_time_parse): Do not check for out-of-range components;
59551         that is now the caller's responsibility, since our checks were
59552         only approximations.
59553         (posixtime): Use mktime to check for out-of-range components,
59554         since it knows them exactly.
59555         If mktime returns (time_t) -1, check whether an error actually occurred
59556         by invoking localtime on -1.
59557         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59558         posixtime failures better.
59559         Improve the test data (in comments only).
59560
59561 2003-06-02  Karl Berry  <karl@gnu.org>
59562
59563         * config/mkinstalldirs (version): new variable.
59564         (--version): new option.
59565         (usage): improve message.
59566
59567 2003-05-30  Karl Berry  <karl@gnu.org>
59568
59569         * lib/mktime.c: update from libc.
59570
59571 2003-05-30  Bruno Haible  <bruno@clisp.org>
59572
59573         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59574         * config/config.rpath: Upgrade to gettext-0.12.1.
59575
59576 2003-05-30  Bruno Haible  <bruno@clisp.org>
59577
59578         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59579         * m4/nls.m4: New file, from gettext-0.12.1.
59580         * m4/po.m4: New file, from gettext-0.12.1.
59581         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59582
59583 2003-05-30  Bruno Haible  <bruno@clisp.org>
59584
59585         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59586         * lib/localcharset.h: Likewise.
59587         * lib/localcharset.c: Likewise.
59588
59589 2003-05-29  Karl Berry  <karl@gnu.org>
59590
59591         * config/config.rpath: update from gettext.
59592
59593 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59594
59595         Assume the headers required for C89 freestanding compilers.
59596         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59597         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59598         * m4/human.m4 (gl_HUMAN): Likewise.
59599         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59600         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59601         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59602         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59603         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59604         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59605
59606 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59607
59608         Assume the headers required for C89 freestanding compilers.
59609         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59610         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59611         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59612         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59613         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59614         define, since <limits.h> is guaranteed to do that.
59615         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59616         * lib/exclude.c: Include <stdbool.h> unconditionally.
59617         * lib/tempname.c: Include <stddef.h> unconditionally.
59618         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59619         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59620         <stddef.h> does that.
59621         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59622         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59623         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59624         needed.
59625         * lib/xstrtol.c: Likewise.
59626         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59627         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59628
59629         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59630         warnings on some platforms.
59631
59632         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59633         arbitrarily.
59634
59635 2003-05-26  Jim Meyering  <jim@meyering.net>
59636
59637         Merge in a change from coreutils:
59638         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59639         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59640         that condition, rather than `-1' which is slightly misleading.
59641         Change the name of the cache variable to have the gl_ prefix.
59642         Prompted by a patch from Richard Dawe for DJGPP.
59643
59644 2003-05-24  Karl Berry  <karl@gnu.org>
59645
59646         * config/config.guess: update from prep.
59647
59648 2003-05-22  Karl Berry  <karl@gnu.org>
59649
59650         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59651
59652 2003-05-20  Karl Berry  <karl@gnu.org>
59653
59654         * config/config.guess: update from prep.
59655
59656 2003-05-18  Karl Berry  <karl@gnu.org>
59657
59658         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59659         might actually be set by the user.
59660
59661         * config/depcomp, install-sh, mdate-sh: update from automake.
59662
59663 2003-05-17  Bruno Haible  <bruno@clisp.org>
59664
59665         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59666         invalid expansion for AC_EGREP_CPP.
59667         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59668         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59669         Suggested by Akim Demaille <akim@epita.fr> in
59670         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59671
59672 2003-05-12  Jim Meyering  <jim@meyering.net>
59673
59674         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59675         the space-padded-by-default conversion specifiers, %e, %k, %l.
59676
59677 2003-05-12  Bruno Haible  <bruno@clisp.org>
59678
59679         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59680         the string is longer than 4 KB.
59681
59682 2003-05-11  Karl Berry  <karl@gnu.org>
59683
59684         * config/config.{guess,sub}: update from prep.
59685
59686 2003-05-09  Bruno Haible  <bruno@clisp.org>
59687
59688         * modules/error: Add m4/strerror_r.m4 to file list.
59689
59690 2003-05-03  Bruno Haible  <bruno@clisp.org>
59691
59692         Upgrade to Unicode-4.0.
59693         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59694         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59695         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59696         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59697         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59698         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59699         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59700         Change width of U+E0100..U+E01EF from 1 to 0.
59701
59702 2003-04-25  Jim Meyering  <jim@meyering.net>
59703
59704         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59705         of type size_t, not int.
59706
59707 2003-04-25  Bruno Haible  <bruno@clisp.org>
59708
59709         * lib/copy-file.c: Include <stddef.h>, for size_t.
59710
59711 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59712
59713         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59714         code which expansion is under static control.  Patch imported from
59715         Akim Demaille's patch to Bison; see
59716         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59717
59718 2003-04-14  Bruno Haible  <bruno@clisp.org>
59719
59720         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59721
59722 2003-04-11  Jim Meyering  <jim@meyering.net>
59723
59724         Merge changes from Coreutils.
59725
59726         2003-03-22  Jim Meyering  <jim@meyering.net>
59727
59728         * lib/strftime.c (widen): Cast alloca return value to proper type.
59729
59730         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59731
59732         From GNU libc.
59733         * lib/strftime.c (my_strftime): Handle very large width
59734         specifications for numeric values correctly.  Improve checks for
59735         overflow.
59736
59737         2003-01-19  Jim Meyering  <jim@meyering.net>
59738
59739         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59740         definitions.
59741         (nl_get_alt_digit) [! defined my_strftime]: Define.
59742         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59743         _nl_get_alt_digit and _nl_get_walt_digit.
59744
59745         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59746         libc. These changes have no effect outside of _LIBC.
59747
59748 2003-04-10  Bruno Haible  <bruno@clisp.org>
59749
59750         * modules/findprog: New file.
59751         * MODULES.html.sh (func_all_modules): Add it.
59752
59753 2003-04-10  Bruno Haible  <bruno@clisp.org>
59754
59755         * m4/findprog.m4: New file.
59756         * m4/eaccess.m4: New file.
59757
59758 2003-04-10  Bruno Haible  <bruno@clisp.org>
59759
59760         * lib/findprog.h: New file, from GNU gettext.
59761         * lib/findprog.c: New file, from GNU gettext.
59762
59763 2003-04-05  Jim Meyering  <jim@meyering.net>
59764
59765         Merge changes from Coreutils.
59766
59767         * lib/exclude.h (PARAMS): Remove definition and uses.
59768         * lib/exclude.c: Remove uses of `PARAMS'.
59769
59770         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59771         Add test-cases for DOS filenames. Declare program_name.
59772         (main): Set up program_name.  Patch by Rich Dawe.
59773
59774         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59775         error from mntctl.
59776         Use mntctl's return value to drive the entry-processing loop, since
59777         we can't rely on the value of the vmt_length member in the last
59778         entry.  On some systems doing so could result in exhausting
59779         virtual memory.  Based in part on a patch from Mike Jetzer.
59780
59781 2003-04-04  Bruno Haible  <bruno@clisp.org>
59782
59783         * modules/linebreak: New file.
59784         * MODULES.html.sh (func_all_modules): Add it.
59785
59786 2003-04-04  Bruno Haible  <bruno@clisp.org>
59787
59788         * m4/linebreak.m4: New file.
59789
59790 2003-04-04  Bruno Haible  <bruno@clisp.org>
59791
59792         * lib/linebreak.h: New file, from GNU gettext.
59793         * lib/linebreak.c: New file, from GNU gettext with slight
59794         modifications.
59795         * lib/lbrkprop.h: New file, from GNU gettext.
59796
59797 2003-04-03  Bruno Haible  <bruno@clisp.org>
59798
59799         * modules/utf8-ucs4: New file.
59800         * modules/utf16-ucs4: New file.
59801         * modules/ucs4-utf8: New file.
59802         * modules/ucs4-utf16: New file.
59803         * MODULES.html.sh (func_all_modules): Add them.
59804
59805 2003-04-03  Bruno Haible  <bruno@clisp.org>
59806
59807         * m4/utf-ucs4.m4: New file.
59808         * m4/ucs4-utf.m4: New file.
59809
59810 2003-04-03  Bruno Haible  <bruno@clisp.org>
59811
59812         * lib/utf8-ucs4.h: New file, from GNU gettext.
59813         * lib/utf16-ucs4.h: New file, from GNU gettext.
59814         * lib/ucs4-utf8.h: New file, from GNU gettext.
59815         * lib/ucs4-utf16.h: New file, from GNU gettext.
59816
59817 2003-04-02  Bruno Haible  <bruno@clisp.org>
59818
59819         * modules/binary-io: New file.
59820         * MODULES.html.sh (func_all_modules): Add it.
59821
59822 2003-04-02  Bruno Haible  <bruno@clisp.org>
59823
59824         * lib/binary-io.h: New file, from GNU gettext.
59825
59826 2003-04-01  Bruno Haible  <bruno@clisp.org>
59827
59828         * modules/pathname: New file.
59829         * MODULES.html.sh (func_all_modules): Add it.
59830
59831 2003-04-01  Bruno Haible  <bruno@clisp.org>
59832
59833         * lib/pathname.h: New file, from GNU gettext.
59834         * lib/concatpath.c: New file, from GNU gettext.
59835
59836 2003-03-30  Bruno Haible  <bruno@clisp.org>
59837
59838         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59839
59840 2003-03-30  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59843         function chown() doesn't exist.
59844
59845 2003-03-28  Bruno Haible  <bruno@clisp.org>
59846
59847         * modules/copy-file: New file.
59848         * MODULES.html.sh (func_all_modules): Add it.
59849
59850 2003-03-28  Bruno Haible  <bruno@clisp.org>
59851
59852         * m4/copy-file.m4: New file.
59853
59854 2003-03-28  Bruno Haible  <bruno@clisp.org>
59855
59856         * lib/copy-file.h: New file, from GNU gettext.
59857         * lib/copy-file.c: New file, from GNU gettext.
59858
59859 2003-03-18  Jim Meyering  <jim@meyering.net>
59860
59861         * lib/quote.c (quote_n): Fix typo in comment.
59862
59863 2003-03-18  Bruno Haible  <bruno@clisp.org>
59864
59865         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59866         checking.
59867         * m4/onceonly_2_57.m4: Likewise.
59868
59869 2003-03-17  Bruno Haible  <bruno@clisp.org>
59870
59871         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59872         (m4_quote): Remove macro.
59873         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59874
59875 2003-03-14  Jim Meyering  <jim@meyering.net>
59876
59877         Merge changes from Coreutils.
59878         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59879         to be const, in order to avoid warnings.
59880         (obstack_room): Likewise.
59881         (obstack_empty_p): Likewise.
59882
59883 2003-03-14  Bruno Haible  <bruno@clisp.org>
59884
59885         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59886         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59887
59888 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59889
59890         Merge changes from Bison.
59891         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59892         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59893         when compiling Bison 1.875's `bitset bset = obstack_alloc
59894         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59895         * lib/hash.c: Include <stdbool.h> unconditionally.
59896
59897 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59898
59899         * m4/onceonly.m4 (m4_quote): New macro.
59900         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59901         Quote AC_FOREACH variable-expansions properly.
59902
59903 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59904
59905         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59906
59907 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59908
59909         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59910         Reported by Bruce Becker; see:
59911         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59912
59913 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59914             Bruno Haible  <bruno@clisp.org>
59915
59916         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59917         Reported by John Hughes, see
59918         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59919
59920 2003-02-20  Bruno Haible  <bruno@clisp.org>
59921
59922         * MODULES.html.sh (func_all_modules): Add poll.
59923
59924 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59925
59926         * modules/poll: New file.
59927
59928 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59929
59930         * lib/poll_.h: New file.
59931         * lib/poll.c: New file.
59932
59933 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59934
59935         * m4/poll.m4: New file.
59936
59937 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59938
59939         * modules/mathl: New file.
59940
59941 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59942
59943         * lib/mathl.h: New file.
59944         * lib/acosl.c: New file.
59945         * lib/asinl.c: New file.
59946         * lib/atanl.c: New file.
59947         * lib/ceill.c: New file.
59948         * lib/cosl.c: New file.
59949         * lib/expl.c: New file.
59950         * lib/floorl.c: New file.
59951         * lib/frexpl.c: New file.
59952         * lib/ldexpl.c: New file.
59953         * lib/logl.c: New file.
59954         * lib/sincosl.c: New file.
59955         * lib/sinl.c: New file.
59956         * lib/sqrtl.c: New file.
59957         * lib/tanl.c: New file.
59958         * lib/trigl.c: New file.
59959         * lib/trigl.h: New file.
59960
59961 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59962
59963         * m4/mathl.m4: New file.
59964
59965 2003-02-18  Bruno Haible  <bruno@clisp.org>
59966
59967         * MODULES.html.sh (func_all_modules): Add mathl.
59968
59969 2003-02-17  Bruno Haible  <bruno@clisp.org>
59970
59971         * modules/mkdtemp: New module.
59972         * MODULES.html.sh (func_all_modules): Add it.
59973
59974 2003-02-17  Bruno Haible  <bruno@clisp.org>
59975
59976         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59977
59978 2003-02-17  Bruno Haible  <bruno@clisp.org>
59979
59980         * lib/mkdtemp.h: New file, from GNU gettext.
59981         * lib/mkdtemp.c: New file, from GNU gettext.
59982
59983 2003-02-02  Jim Meyering  <jim@meyering.net>
59984
59985         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59986         e.g. glibc-2.2.93.
59987
59988 2003-01-31  Bruno Haible  <bruno@clisp.org>
59989
59990         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59991         'rpl_rename'.
59992         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59993         'rpl_strnlen'.
59994         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59995         'rpl_strtod'.
59996         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59997         'rpl_utime'.
59998
59999 2003-01-31  Bruno Haible  <bruno@clisp.org>
60000
60001         * lib/rename.c: #undef rename before defining rpl_rename.
60002         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
60003
60004 2003-01-30  Bruno Haible  <bruno@clisp.org>
60005
60006         * modules/vasnprintf, modules/vasprintf: New modules.
60007         * MODULES.html.sh (func_all_modules): Add them.
60008
60009 2003-01-30  Bruno Haible  <bruno@clisp.org>
60010
60011         * m4/signed.m4: New file, from GNU gettext.
60012         * m4/longdouble.m4: New file, from GNU gettext.
60013         * m4/wchar_t.m4: New file, from GNU gettext.
60014         * m4/wint_t.m4: New file, from GNU gettext.
60015         * m4/vasnprintf.m4: New file.
60016         * m4/vasprintf.m4: New file.
60017
60018 2003-01-30  Bruno Haible  <bruno@clisp.org>
60019
60020         * lib/printf-args.h: New file, from GNU gettext.
60021         * lib/printf-args.c: New file, from GNU gettext.
60022         * lib/printf-parse.h: New file, from GNU gettext.
60023         * lib/printf-parse.c: New file, from GNU gettext.
60024         * lib/vasnprintf.h: New file, from GNU gettext.
60025         * lib/vasnprintf.c: New file, from GNU gettext.
60026         * lib/asnprintf.c: New file, from GNU gettext.
60027         * lib/vasprintf.h: New file, from GNU gettext with modifications.
60028         * lib/vasprintf.c: New file, from GNU gettext.
60029         * lib/asprintf.c: New file, from GNU gettext.
60030
60031 2003-01-29  Bruno Haible  <bruno@clisp.org>
60032
60033         * modules/stpncpy: New module.
60034         * MODULES.html.sh (func_all_modules): Add it.
60035
60036 2003-01-29  Bruno Haible  <bruno@clisp.org>
60037
60038         * m4/stpncpy.m4: New file.
60039
60040 2003-01-29  Bruno Haible  <bruno@clisp.org>
60041
60042         * lib/stpncpy.h: New file, from GNU gettext with modifications.
60043         * lib/stpncpy.c: New file, from GNU gettext with modifications.
60044
60045 2003-01-28  Bruno Haible  <bruno@clisp.org>
60046
60047         * modules/c-ctype: New module.
60048         * MODULES.html.sh (func_all_modules): Add it.
60049
60050 2003-01-28  Bruno Haible  <bruno@clisp.org>
60051
60052         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
60053         Paul Eggert.
60054         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
60055         Paul Eggert.
60056
60057 2003-01-27  Bruno Haible  <bruno@clisp.org>
60058
60059         * modules/xsetenv: New module.
60060         * MODULES.html.sh (func_all_modules): Add it.
60061
60062 2003-01-27  Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/xsetenv.h: New file, from GNU gettext.
60065         * lib/xsetenv.c: New file, from GNU gettext.
60066
60067 2003-01-23  Jim Meyering  <jim@meyering.net>
60068
60069         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
60070         from working on systems without dirfd (at least Irix and OSF1/Tru64).
60071
60072 2003-01-23  Bruno Haible  <bruno@clisp.org>
60073
60074         * modules/minmax: New module.
60075         * MODULES.html.sh (func_all_modules): Add it.
60076
60077 2003-01-23  Bruno Haible  <bruno@clisp.org>
60078
60079         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
60080         Eggert.
60081
60082 2003-01-22  Bruno Haible  <bruno@clisp.org>
60083
60084         * modules/exit: New module.
60085         * MODULES.html.sh (func_all_modules): Add it.
60086
60087 2003-01-22  Bruno Haible  <bruno@clisp.org>
60088
60089         * lib/exit.h: New file, from GNU gettext.
60090
60091 2003-01-19  Bruno Haible  <bruno@clisp.org>
60092
60093         * gnulib-tool: Recognize option --extract-maintainer.
60094         (func_get_maintainer): New function.
60095         * modules/*: Add Maintainer entry.
60096
60097 2003-01-16  Jim Meyering  <jim@meyering.net>
60098
60099         * m4/regex.m4: The `regex' struct is both input and output.
60100         Initialize it before each use.  Patch by Tim Waugh.
60101
60102 2003-01-16  Bruno Haible  <bruno@clisp.org>
60103
60104         * MODULES.html.sh: Add a table of contents. Add the module name as
60105         leftmost column. Add hyperlinks.
60106
60107 2003-01-15  Bruno Haible  <bruno@clisp.org>
60108
60109         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
60110
60111 2003-01-15  Bruno Haible  <bruno@clisp.org>
60112
60113         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
60114         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
60115         suffix.
60116
60117 2003-01-15  Bruno Haible  <bruno@clisp.org>
60118
60119         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
60120
60121 2003-01-15  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
60124         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
60125
60126 2003-01-14  Jim Meyering  <jim@meyering.net>
60127
60128         * lib/same.c (same_name): Tweak a comment.
60129
60130 2003-01-14  Bruno Haible  <bruno@clisp.org>
60131
60132         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
60133         when a string comparison is sufficient.
60134
60135 2003-01-14  Bruno Haible  <bruno@clisp.org>
60136
60137         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
60138         'unsigned int'.
60139
60140 2003-01-14  Bruno Haible  <bruno@clisp.org>
60141
60142         * lib/hash-pjw.c: Add comment about low quality of this function.
60143
60144 2003-01-13  Bruno Haible  <bruno@clisp.org>
60145
60146         * modules/stpcpy: Distribute lib/stpcpy.h.
60147         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
60148
60149 2003-01-13  Bruno Haible  <bruno@clisp.org>
60150
60151         * modules/*: Add a description.
60152         * modules/strpbrk: Fix Makefile.am snippet.
60153         * modules/strtoimax: Fix dependencies.
60154         * modules/strtoumax: Likewise.
60155
60156 2003-01-13  Bruno Haible  <bruno@clisp.org>
60157
60158         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
60159         * modules/alloca (Makefile.am): All object files depend on alloca.h.
60160         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
60161
60162 2003-01-13  Bruno Haible  <bruno@clisp.org>
60163
60164         * gnulib-tool (func_create_testdir): Store config/* files in the main
60165         directory.
60166         * config.rpath: Move to ...
60167         * config/config.rpath: ... here.
60168         * modules/gettext: Contains config/config.rpath, not config.rpath.
60169         * modules/iconv: Likewise.
60170
60171 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60172
60173         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60174         to avoid collisions with libcurses and libreadline.
60175
60176         * m4/getstr.m4: Remove.
60177         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
60178
60179 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60180
60181         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60182         to avoid collisions with libcurses and libreadline.
60183
60184         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
60185         * lib/getstr.h, getstr.c: Remove.
60186         * lib/getline.c: Include "getline.h", to check interface.
60187         Move body of old getstr.c here: this defines MIN_CHUNK and
60188         declares getdelim2, which is renamed from getstr.
60189         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
60190
60191         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
60192         All uses changed.
60193         * lib/linebuffer.h: Likewise.
60194         (readline): Remove backward-compatibility macro.
60195
60196 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60197
60198         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60199         to avoid collisions with libcurses and libreadline.
60200         * getstr: Remove.
60201         * MODULES.html.sh: Remove getstr.
60202         * modules/getline: Depend on unlocked-io, not getstr.
60203
60204 2003-01-12  Jim Meyering  <jim@meyering.net>
60205
60206         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
60207
60208 2003-01-10  Bruno Haible  <bruno@clisp.org>
60209
60210         * modules/alloca: Change Makefile.am requirements. Simplify Include
60211         requirements. Add lib/alloca_.h to file list.
60212
60213 2003-01-10  Bruno Haible  <bruno@clisp.org>
60214
60215         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
60216
60217 2003-01-10  Bruno Haible  <bruno@clisp.org>
60218
60219         * lib/alloca_.h: New file.
60220         * lib/getdate.y: Unconditionally include alloca.h.
60221         * lib/makepath.c: Likewise.
60222         * lib/setenv.c: Likewise.
60223         * lib/userspec.c: Likewise.
60224
60225 2003-01-09  Karl Berry  <karl@gnu.org>
60226
60227         * MODULES.html.sh: include `dirname $0` in PATH, to find
60228         gnulib-tool.
60229
60230 2003-01-09  Bruno Haible  <bruno@clisp.org>
60231
60232         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60233         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60234
60235 2003-01-09  Bruno Haible  <bruno@clisp.org>
60236
60237         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60238
60239 2003-01-09  Bruno Haible  <bruno@clisp.org>
60240
60241         * lib/stdbool.h.in: New file.
60242
60243 2003-01-09  Bruno Haible  <bruno@clisp.org>
60244
60245         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60246         * MODULES.html.sh: Likewise.
60247
60248 2003-01-08  Jim Meyering  <jim@meyering.net>
60249
60250         * lib/full-write.c: Undefine and define-away `const' after inclusion
60251         of errno.h, not before.  Suggestion from Bruno Haible.
60252
60253 2003-01-08  Bruno Haible  <bruno@clisp.org>
60254
60255         * modules/full-read: Depend on full-write.
60256
60257 2003-01-08  Bruno Haible  <bruno@clisp.org>
60258
60259         * lib/safe-read.c: Include specification header first, to ensure its
60260         selfcontainedness.
60261         * lib/full-write.c: Likewise.
60262
60263 2003-01-07  Jim Meyering  <jim@meyering.net>
60264
60265         * lib/full-write.c: Rework so that it may serve to define full_read,
60266         too.
60267         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60268
60269 2003-01-07  Bruno Haible  <bruno@clisp.org>
60270
60271         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60272         <inttypes.h>.
60273         * lib/xstrtol.h: Likewise.
60274         * lib/xstrtoimax.c: Likewise.
60275         * lib/xstrtoumax.c: Likewise.
60276         * lib/human.h: Likewise.
60277
60278         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60279         on systems that have <inttypes.h> but not <stdint.h>.
60280
60281 2003-01-07  Bruno Haible  <bruno@clisp.org>
60282
60283         * MODULES.html.sh: Add copyright notice.
60284         (missed_files): Omit CVS directory entries.
60285         (func_module): Make it work with sed-3.02.
60286         * MODULES.txt: Remove file.
60287
60288 2003-01-06  Jim Meyering  <jim@meyering.net>
60289
60290         * lib/version-etc.c: Update year in translatable copyright string.
60291
60292 2003-01-03  Karl Berry  <karl@gnu.org>
60293
60294         * config/config.{guess,sub}: update from prep.
60295
60296 2003-01-02  Karl Berry  <karl@gnu.org>
60297
60298         * doc/COPYING.DOC: belatedly updated to 1.2.
60299
60300 2003-01-01  Karl Berry  <karl@gnu.org>
60301
60302         * gnulib-tool (func_verify_module): report module name $module in
60303         error message, not $1.
60304         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60305         be created, only if it doesn't exist.
60306         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60307
60308 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60309
60310         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60311
60312 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60313
60314         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60315         memcmp if strcoll doesn't work.
60316
60317 2002-12-31  Bruno Haible  <bruno@clisp.org>
60318
60319         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60320         nonempty.
60321
60322 2002-12-31  Bruno Haible  <bruno@clisp.org>
60323
60324         * lib/memcoll.c (STRCOLL): New macro.
60325         (memcoll): Use it.
60326
60327 2002-12-31  Bruno Haible  <bruno@clisp.org>
60328
60329         * lib/localcharset.h: New file.
60330         * lib/localcharset.c: Include it.
60331         * lib/unicodeio.c: Likewise.
60332
60333 2002-12-31  Bruno Haible  <bruno@clisp.org>
60334
60335         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60336         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60337
60338 2002-12-31  Bruno Haible  <bruno@clisp.org>
60339
60340         * lib/getline.h: Include <stddef.h>, for size_t.
60341
60342         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60343         * lib/unicodeio.c: Don't include <stddef.h>.
60344
60345 2002-12-31  Bruno Haible  <bruno@clisp.org>
60346
60347         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60348         HAVE_TM_ZONE.
60349
60350 2002-12-24  Karl Berry  <karl@gnu.org>
60351
60352         * config/config.guess: update from prep.
60353
60354 2002-12-24  Bruno Haible  <bruno@clisp.org>
60355
60356         General infrasructure.
60357         * m4/README: Rewritten.
60358         * m4/onceonly.m4: New file.
60359         * m4/onceonly_2_57.m4: New file.
60360
60361         Module atexit.
60362         * m4/atexit.m4: New file.
60363
60364         Module strtod.
60365         * m4/strtod.m4: New file.
60366
60367         Module strtol.
60368         * m4/strtol.m4: New file.
60369
60370         Module strtoul.
60371         * m4/strtoul.m4: New file.
60372
60373         Module memchr.
60374         * m4/memchr.m4: New file.
60375
60376         Module memcmp.
60377         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60378         (jm_FUNC_MEMCMP): Invoke it.
60379
60380         Module memcpy.
60381         * m4/memcpy.m4: New file.
60382
60383         Module memmove.
60384         * m4/memmove.m4: New file.
60385
60386         Module memset.
60387         * m4/memset.m4: New file.
60388
60389         Module strcspn.
60390         * m4/strcspn.m4: New file.
60391
60392         Module strpbrk.
60393         * m4/strpbrk.m4: New file.
60394
60395         Module strstr.
60396         * m4/strstr.m4: New file.
60397
60398         Module strerror.
60399         * m4/strerror.m4: New file.
60400
60401         Module mktime.
60402         * m4/mktime.m4: Renamed from jm-mktime.m4.
60403         (gl_PREREQ_MKTIME): New macro.
60404         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60405
60406         Module malloc.
60407         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60408         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60409         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60410
60411         Module realloc.
60412         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60413         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60414         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60415
60416         Module strftime.
60417         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60418         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60419         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60420         gl_TM_GMTOFF.
60421         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60422
60423         Module xalloc.
60424         * m4/xalloc.m4: New file.
60425
60426         Module alloca.
60427         * m4/alloca.m4: New file.
60428
60429         Module putenv.
60430         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60431         (jm_FUNC_PUTENV): Invoke it.
60432
60433         Module setenv.
60434         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60435         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60436         when invoked twice.
60437         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60438         gt_FUNC_SETENV.
60439
60440         Module memrchr.
60441         * m4/memrchr.m4: New file.
60442
60443         Module stpcpy.
60444         * m4/stpcpy.m4: New file.
60445
60446         Module strcase.
60447         * m4/strcase.m4: New file.
60448
60449         Module strdup.
60450         * m4/strdup.m4: New file.
60451
60452         Module strnlen.
60453         * m4/strnlen.m4: New file.
60454
60455         Module strndup.
60456         * m4/strndup.m4: New file.
60457
60458         Module xstrtod.
60459         * m4/xstrtod.m4: New file.
60460
60461         Module xstrtol.
60462         * m4/xstrtol.m4: New file.
60463
60464         Module getdate.
60465         * m4/getdate.m4: New file.
60466
60467         Module unlocked-io.
60468         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60469         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60470         * m4/jm-glibc-io.m4n: Remove file.
60471
60472         Module long-options.
60473         * m4/long-options.m4: New file.
60474
60475         Module md5.
60476         * m4/md5.m4: New file.
60477
60478         Module sha.
60479         * m4/sha.m4: New file.
60480
60481         Module getstr.
60482         * m4/getstr.m4: New file.
60483
60484         Module getline.
60485         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60486         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60487         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60488         simply getline. Infoke gl_PREREQ_GETLINE.
60489
60490         Module obstack.
60491         * m4/obstack.m4: New file.
60492
60493         Module hash.
60494         * m4/hash.m4: New file.
60495
60496         Module readtokens.
60497         * m4/readtokens.m4: New file.
60498
60499         Module strverscmp.
60500         * m4/strverscmp.m4: New file.
60501
60502         Module stdbool.
60503         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60504         OSF/1.
60505
60506         Module strtoll.
60507         * m4/strtoll.m4: New file.
60508
60509         Module strtoull.
60510         * m4/strtoull.m4: New file.
60511
60512         Module strtoimax.
60513         * m4/strtoimax.m4: New file.
60514
60515         Module strtoumax.
60516         * m4/strtoumax.m4: New file.
60517
60518         Module xstrtoimax.
60519         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60520         jm_AC_PREREQ_XSTRTOIMAX.
60521         Moved the strtol prerequisites to strtol.m4.
60522         Moved the strtoll prerequisites to strtoll.m4.
60523         Moved the strtoimax prerequisites to strtoimax.m4.
60524
60525         Module xstrtoumax.
60526         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60527         jm_AC_PREREQ_XSTRTOUMAX.
60528         Moved the strtoul prerequisites to strtoul.m4.
60529         Moved the strtoull prerequisites to strtoull.m4.
60530         Moved the strtoumax prerequisites to strtoumax.m4.
60531
60532         Module chown.
60533         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60534         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60535
60536         Module dup2.
60537         * m4/dup2.m4: New file.
60538
60539         Module ftruncate.
60540         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60541         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60542
60543         Module getgroups.
60544         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60545         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60546
60547         Module gettimeofday.
60548         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60549         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60550         gl_PREREQ_GETTIMEOFDAY.
60551
60552         Module mkdir.
60553         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60554         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60555
60556         Module mkstemp.
60557         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60558         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60559         jm_AC_TYPE_UINTMAX_T.
60560         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60561
60562         Module stat.
60563         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60564         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60565
60566         Module lstat.
60567         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60568         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60569
60570         Module timespec.
60571         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60572         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60573         * m4/st_mtim.m4: Indentation.
60574
60575         Module nanosleep.
60576         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60577         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60578         gl_PREREQ_NANOSLEEP.
60579
60580         Module regex.
60581         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60582         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60583         (gl_REGEX): New macro.
60584
60585         Module rename.
60586         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60587         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60588
60589         Module rmdir.
60590         * m4/rmdir.m4: New file.
60591
60592         Module utime.
60593         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60594         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60595         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60596
60597         Module dirname.
60598         * m4/dirname.m4: New file.
60599
60600         Module getopt.
60601         * m4/getopt.m4: New file.
60602
60603         Module unistd-safer.
60604         * m4/unistd-safer.m4: New file.
60605
60606         Module fnmatch.
60607         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60608         declaration.
60609         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60610         (gl_FUNC_FNMATCH_POSIX): New macro.
60611         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60612         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60613         simply fnmatch.
60614
60615         Module exclude.
60616         * m4/exclude.m4: New file.
60617
60618         Module human.
60619         * m4/human.m4: New file.
60620
60621         Module acl.
60622         * m4/acl.m4: Nop.
60623
60624         Module backupfile.
60625         * m4/backupfile.m4: New file.
60626         * m4/d-ino.m4: Indentation.
60627
60628         Module fsusage.
60629         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60630         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60631         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60632
60633         Module dirfd.
60634         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60635         requirements.
60636
60637         Module euidaccess.
60638         * m4/euidaccess.m4: New file.
60639
60640         Module file-type.
60641         * m4/file-type.m4: New file.
60642
60643         Module fileblocks.
60644         * m4/fileblocks.m4: New file.
60645
60646         Module filemode.
60647         * m4/filemode.m4: New file.
60648
60649         Module isdir.
60650         * m4/isdir.m4: New file.
60651
60652         Module lchown.
60653         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60654         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60655
60656         Module makepath.
60657         * m4/makepath.m4: New file.
60658
60659         Module modechange.
60660         * m4/modechange.m4: New file.
60661
60662         Module mountlist.
60663         * m4/mountlist.m4: New file.
60664         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60665         Indentation.
60666
60667         Module path-concat.
60668         * m4/path-concat.m4: New file.
60669
60670         Module pathmax.
60671         * m4/pathmax.m4: New file.
60672
60673         Module same.
60674         * m4/same.m4: New file.
60675
60676         Module save-cwd.
60677         * m4/save-cwd.m4: New file.
60678
60679         Module savedir.
60680         * m4/savedir.m4: New file.
60681
60682         Module xgetcwd.
60683         * m4/xgetcwd.m4: New file.
60684         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60685
60686         Module xreadlink.
60687         * m4/xreadlink.m4: New file.
60688
60689         Module safe-read.
60690         * m4/safe-read.m4: New file.
60691
60692         Module safe-write.
60693         * m4/safe-write.m4: New file.
60694
60695         Module closeout.
60696         * m4/closeout.m4: New file.
60697
60698         Module stdio-safer.
60699         * m4/stdio-safer.m4: New file.
60700
60701         Module getpass.
60702         * m4/getpass.m4: New file.
60703
60704         Module getugroups.
60705         * m4/getugroups.m4: New file.
60706
60707         Module group-member.
60708         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60709         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60710
60711         Module idcache.
60712         * m4/idcache.m4: New file.
60713
60714         Module userspec.
60715         * m4/userspec.m4: New file.
60716
60717         Module gettime.
60718         * m4/clock_time.m4: New file.
60719         * m4/gettime.m4: New file.
60720
60721         Module settime.
60722         * m4/settime.m4: New file.
60723
60724         Module posixtm.
60725         * m4/posixtm.m4: New file.
60726
60727         Module gethostname.
60728         * m4/gethostname.m4: New file.
60729
60730         Module canon-host.
60731         * m4/canon-host.m4: New file.
60732
60733         Module gettext.
60734         * m4/codeset.m4: New file, from gettext-0.11.5.
60735         * m4/gettext.m4: New file, from gettext-0.11.5.
60736         * m4/glibc21.m4: New file, from gettext-0.11.5.
60737         * m4/iconv.m4: New file, from gettext-0.11.5.
60738         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60739         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60740         * m4/inttypes.m4: New file, from gettext-0.11.5.
60741         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60742         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60743         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60744         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60745         * m4/lib-link.m4: New file, from gettext-0.11.5.
60746         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60747         * m4/progtest.m4: New file, from gettext-0.11.5.
60748         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60749         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60750         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60751
60752         Module localcharset.
60753         * m4/localcharset.m4: New file.
60754
60755         Module hard-locale.
60756         * m4/hard-locale.m4: New file.
60757
60758         Module mbswidth.
60759         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60760         onceonly macros.
60761         * m4/mbrtowc.m4: Add comment.
60762
60763         Module memcasecmp.
60764         * m4/memcasecmp.m4: New file.
60765
60766         Module memcoll.
60767         * m4/memcoll.m4: New file.
60768
60769         Module unicodeio.
60770         * m4/unicodeio.m4: New file.
60771
60772         Module rpmatch.
60773         * m4/rpmatch.m4: New file.
60774
60775         Module yesno.
60776         * m4/yesno.m4: New file.
60777
60778         Module exitfail.
60779         * m4/exitfail.m4: New file.
60780
60781         Module c-stack.
60782         * m4/c-stack.m4 (gl_C_STACK): New macro.
60783         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60784
60785         Module error.
60786         * m4/error.m4 (gl_ERROR): New macro.
60787         (jm_PREREQ_ERROR): Use onceonly macros.
60788
60789         Module fatal.
60790         * m4/fatal.m4: New file.
60791
60792         Module getloadavg.
60793         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60794         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60795
60796         Module getpagesize.
60797         * m4/getpagesize.m4: New file.
60798
60799         Module getusershell.
60800         * m4/getusershell.m4: New file.
60801
60802         Module physmem.
60803         * m4/physmem.m4: New file.
60804
60805         Module posixver.
60806         * m4/posixver.m4: New file.
60807
60808         Module quotearg.
60809         * m4/quotearg.m4: New file.
60810
60811         Module quote.
60812         * m4/quote.m4: New file.
60813
60814         Module readutmp.
60815         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60816
60817         Module sig2str.
60818         * m4/sig2str.m4: New file.
60819
60820         Other.
60821         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60822         ulonglong.m4.
60823         * m4/intmax_t.m4: New file.
60824         * m4/d-type.m4: Indentation.
60825         * m4/jm-macros.m4: Update.
60826         * m4/prereq.m4 (jm_PREREQ): Update.
60827         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60828         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60829         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60830         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60831         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60832         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60833         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60834         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60835         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60836         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60837         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60838         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60839         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60840         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60841         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60842         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60843         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60844         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60845         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60846
60847 2002-12-24  Bruno Haible  <bruno@clisp.org>
60848
60849         * MODULES.txt: Update according to m4/ changes.
60850
60851         Module gettext.
60852         * config.rpath: New file, from gettext-0.11.5.
60853
60854         * modules/*: New module descriptions.
60855         * gnulib-tool: New file.
60856         * MODULES.html.sh: New file.
60857
60858 2002-12-21  Karl Berry  <karl@gnu.org>
60859
60860         * doc/fdl.texi: update to version 1.2.
60861
60862 2002-12-19  Karl Berry  <karl@gnu.org>
60863
60864         * config/config.guess: update from prep.
60865
60866 2002-12-18  Bruno Haible  <bruno@clisp.org>
60867
60868         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60869         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60870
60871 2002-12-17  Bruno Haible  <bruno@clisp.org>
60872
60873         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60874         stdlib.h, string.h.
60875
60876 2002-12-17  Bruno Haible  <bruno@clisp.org>
60877
60878         * lib/canon-host.c (strdup): Remove unused declaration.
60879
60880         * lib/fsusage.c: Include full_read.h.
60881         (get_fs_usage): Use full_read instead of safe_read.
60882
60883         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60884
60885 2002-12-12  Karl Berry  <karl@gnu.org>
60886
60887         * config/config.guess: update from prep.
60888
60889 2002-12-11  Bruno Haible  <bruno@clisp.org>
60890
60891         * m4/setenv.m4: New file, from gettext-0.11.5.
60892
60893 2002-12-11  Bruno Haible  <bruno@clisp.org>
60894
60895         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60896         not unsetenv().
60897         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60898         modifications:
60899
60900         2002-12-11  Bruno Haible  <bruno@clisp.org>
60901
60902                 * setenv.c (alloca): Fall back to malloc.
60903                 (freea): New macro.
60904                 (setenv): Use freea() to free memory allocated with alloca().
60905
60906         2002-11-13  Bruno Haible  <bruno@clisp.org>
60907
60908                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60909                 function declarations.
60910                 * unsetenv.c (unsetenv): Likewise.
60911
60912         2002-03-04  Bruno Haible  <bruno@clisp.org>
60913
60914                 Portability to AIX 4.3.3.
60915                 * unsetenv.c: New file, extracted from setenv.c.
60916                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60917
60918         2001-12-20  Bruno Haible  <bruno@clisp.org>
60919
60920                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60921                 use malloc instead. For SunOS 4.
60922
60923         2001-12-11  Bruno Haible  <bruno@clisp.org>
60924
60925                 * setenv.c: Declare alloca.
60926                 (compar_fn_t): New typedef.
60927                 (KNOWN_VALUE, STORE_VALUE): Use it.
60928
60929         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60930         setenv.h.
60931
60932 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60933
60934         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60935         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60936         Choose values that are less likely to collide with system fnmatch
60937         options.
60938         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60939         defined (e.g., a pure POSIX system).
60940         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60941         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60942
60943 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60944
60945         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60946         a pain in practice to deal with generated m4 files.  This change
60947         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60948
60949         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60950         and jm-glibc-io.m4, as they are no longer a special case.
60951         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60952         kludge and the auto-generation stuff.  Check only whether the
60953         functions are declared, not whether they exist, since older hosts
60954         that don't declare the functions can't use the optimization anyway.
60955
60956 2002-12-06  Jim Meyering  <jim@meyering.net>
60957
60958         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60959
60960         Merge in changes from libc's misc/error.c, in preparation
60961         for the merge of gnulib's changes back into libc.
60962
60963         * lib/error.c (_): Define only if not already defined.
60964         Move definition to follow all #include directives.
60965         Include unlocked-io.h only if !_LIBC.
60966         [_LIBC]: Include <libio/libioP.h>.
60967         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60968         (fflush): Tweak definition to use INTUSE.
60969         (putc): Define.
60970
60971 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60972
60973         * lib/alloca.c [defined emacs]: Include "lisp.h".
60974         (xalloc_die) [defined emacs]: New macro.
60975         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60976         [! defined emacs]: Include <xalloc.h>.
60977         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60978         (pointer): Typedef to POINTER_TYPE *.
60979         (malloc): Remove decl; we now always use xmalloc.
60980         (alloca): Use old-style definition, since Emacs needs this.
60981         Check for arithmetic overflow when computing combined size.
60982
60983 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60984
60985         Do not generate unlocked-io.h automatically, since it's easier to
60986         maintain it by hand.
60987
60988         * lib/unlocked-io.h: New file, from GNU diffutils,
60989         but with proper copyright notice and attribution.
60990         * lib/gen-uio: Remove.
60991         * lib/Makefile.am: Add copyright notice.
60992         (libfetish_a_SOURCES): Add unlocked-io.h.
60993         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60994         (DISTCLEANFILES, io_functions): Remove macros.
60995         (EXTRA_DIST): Remove gen_uio.
60996         (unlocked-io.h): Remove rule.
60997
60998 2002-12-04  Jim Meyering  <jim@meyering.net>
60999
61000         Reflect the fact that stat.c and lstat.c are no longer generated.
61001         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
61002         (DISTCLEANFILES): Likewise.
61003         (EXTRA_DIST): Likewise.
61004         (all_local): Don't depend on stat.c or lstat.c.
61005         (stat.c, lstat.c): Remove rules.
61006         (EXTRA_DIST): Remove xstat.in.
61007
61008         * lib/xstat.in: Remove file.  Contents moved into stat.c.
61009         * lib/stat.c: New file.  Contents mostly from xstat.in.
61010         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
61011         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
61012
61013         * lib/safe-read.c: Rework so that it may serve to define safe_write,
61014         too.
61015         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
61016
61017 2002-12-03  Jim Meyering  <jim@meyering.net>
61018
61019         * lib/safe-read.c, safe-write.c: Change variable names and comments,
61020         but not semantics, to minimize the differences between these two files.
61021         (safe_read): Change comment to mention SAFE_READ_ERROR.
61022
61023         * lib/safe-read.c (IS_EINTR): Define.
61024         (safe_read): Use IS_EINTR in place of in-function cpp directives.
61025
61026 2002-12-02  Jim Meyering  <jim@meyering.net>
61027
61028         * lib/safe-read.c (EINTR): Define.
61029         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61030         (INT_MAX): Provide fallback.
61031         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
61032
61033         * lib/safe-read.h (SAFE_READ_ERROR): Define.
61034
61035 2002-12-02  Bruno Haible  <bruno@clisp.org>
61036
61037         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
61038         Define, taken from safe-read.c.
61039         (INT_MAX): Provide fallback.
61040         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
61041         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
61042
61043         * lib/safe-read.c (EINTR): Remove definition.
61044         (safe_read): Don't use EINTR if it is absent.
61045
61046 2002-12-01  Jim Meyering  <jim@meyering.net>
61047
61048         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
61049         zero.
61050         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
61051
61052 2002-11-27  Paul Eggert  <eggert@twinsun.com>
61053
61054         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
61055         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
61056         with `if (! (value < limit)) abort ();', for readability.
61057
61058 2002-11-26  Karl Berry  <karl@gnu.org>
61059
61060         * lib/strdup.c: copy from libc again, with jim's ok.
61061         * lib/.cppi-disable: re-add strdup.c
61062
61063 2002-11-25  Karl Berry  <karl@gnu.org>
61064
61065         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
61066         instead of "strtol.c".
61067
61068 2002-11-25  Karl Berry  <karl@gnu.org>
61069
61070         * config/install-sh: update from automake for variable quoting, $0 in
61071         error msgs, etc.
61072
61073         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
61074         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
61075         entry.
61076
61077 2002-11-25  Jim Meyering  <jim@meyering.net>
61078
61079         * lib/mktime.c: Sync from libc, now that it has the latest fix.
61080
61081 2002-11-24  Karl Berry  <karl@gnu.org>
61082
61083         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
61084         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
61085
61086 2002-11-24  Jim Meyering  <jim@meyering.net>
61087
61088         Update from coreutils:
61089
61090         * lib/mktime.c: Merge in changes from libc.
61091
61092         Avoid a link-time failure on some Linux systems.
61093         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
61094         (otherwise).
61095         (__mon_yday): Declare with the STATIC attribute.
61096         (__mktime_internal): Likewise.
61097         Based on a report from Greg Schafer.
61098
61099 2002-11-23  Jim Meyering  <jim@meyering.net>
61100
61101         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
61102         Use `unsigned', not `int', as type of index.
61103
61104         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
61105
61106         * lib/fsusage.c: Remove unneeded parentheses around operands of
61107         `defined'.
61108
61109 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61110
61111         * lib/quotearg.h: Allow multiple inclusion by surrounding with
61112         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
61113         so that we can be included first.
61114         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
61115         * lib/quotearg.c: Include quotearg.h immediately after config.h.
61116         No need to include stddef.h or sys/types.h any more.
61117         Surround local include files with "", not "<>".
61118         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
61119         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
61120         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
61121         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
61122         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
61123         (ISPRINT): Remove; no longer needed now that we assume C89.
61124
61125         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
61126         Preserve errno.
61127
61128         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
61129         quotearg_char): Use SIZE_MAX rather than
61130         (size_t) -1 when we are talking about "infinity".
61131
61132         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
61133
61134 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61135
61136         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
61137         hint that one should use `if (! x) abort ();' rather than `assert
61138         (x);', and anyway it's one less thing to worry about configuring.
61139         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
61140         hash_rehash, hash_insert): Use abort rather than assert.
61141
61142 2002-11-22  Bruno Haible  <bruno@clisp.org>
61143
61144         * lib/safe-read.h: Assume C89. Add comments.
61145         (safe_read): Change return type to size_t.
61146         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
61147         byte counts > SSIZE_MAX correctly.
61148         * lib/safe-write.h: New file.
61149         * lib/safe-write.c: New file.
61150         * lib/full-read.h: New file.
61151         * lib/full-read.c: New file.
61152         * lib/full-write.h: Assume C89. Add comments.
61153         * lib/full-write.c: Include safe-write.h.
61154         (full_write): Rewritten to use safe_write.
61155         Suggested by Jim Meyering and Paul Eggert.
61156
61157 2002-11-21  Jim Meyering  <jim@meyering.net>
61158
61159         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
61160
61161         Merge in changes from the coreutils.
61162
61163         2002-09-25  Paul Eggert  <eggert@twinsun.com>
61164         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
61165         <stdint.h>.
61166         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
61167         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
61168         int.  Work more efficiently if X is the same width as uintmax_t.
61169         Do not compare X to -1, to avoid bogus compiler warning.
61170         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
61171         Don't assume that f_frsize and f_bsize are the same type.
61172
61173         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
61174         warning on FreeBSD.
61175
61176         * lib/makepath.c (make_path): Restore umask *before* creating the final
61177         component.
61178         (make_path): Minor reformatting.
61179
61180         * lib/xmalloc.c: Adjust to work with new autoconf macros,
61181         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
61182         HAVE_MALLOC/HAVE_REALLOC.
61183
61184         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
61185         dummy ones.  At least on GNU/Linux systems, `auto' means something
61186         else.
61187         From Michael Stone.
61188
61189 2002-11-21  Bruno Haible  <bruno@clisp.org>
61190
61191         Remove case insensitive option matching.
61192         * lib/argmatch.h (argcasematch): Remove declaration.
61193         (ARGCASEMATCH): Remove macro.
61194         (__xargmatch_internal): Remove case_sensitive argument.
61195         (XARGMATCH): Update.
61196         (XARGCASEMATCH): Remove macro.
61197         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
61198         case_sensitive argument.
61199         (argcasematch): Remove function.
61200         (__xargmatch_internal): Remove case_sensitive argument.
61201         (main): Use XARGMATCH instead of XARGCASEMATCH.
61202
61203         * lib/xmalloc.c: Change compile-time error message. Add comment about
61204         required autoconf version.
61205
61206 2002-11-20  Paul Eggert  <eggert@twinsun.com>
61207
61208         Merge argmatch cleanups from Bison.  Assume C89.
61209
61210         * lib/argmatch.c: Include config.h here, not in argmatch.h.
61211         Include stdlib.h, for EXIT_FAILURE.
61212         Always include <string.h>, since we assume C89.
61213         (EXIT_FAILURE): Remove pre-C89 bug workaround.
61214         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
61215         Include <stddef.h> instead, since it's all we need for size_t.
61216         (PARAMS): Remove.  All uses removed.
61217         (ARRAY_CARDINALITY): Do not bother to #undef.
61218         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
61219         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61220         Remove unnecessary parentheses.
61221         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61222         Insert necessary parentheses.
61223         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61224         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61225
61226 2002-11-19  Bruno Haible  <bruno@clisp.org>
61227
61228         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61229         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61230
61231         * lib/mbswidth.h (PARAMS): Remove macro.
61232         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61233         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61234
61235         * lib/gcd.h (PARAMS): Remove macro.
61236         (gcd): Use ANSI C function declarations.
61237         * lib/gcd.c (gcd): Likewise.
61238
61239 2002-11-15  Bruno Haible  <bruno@clisp.org>
61240
61241         * lib/strcspn.c: Include <stddef.h>.
61242         (strcspn): Use ANSI C function declaration. Change return type to
61243         size_t. Use NULL.
61244         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61245         (strpbrk): Use NULL.
61246         * lib/strpbrk.h (PARAMS): Remove macro.
61247         (strpbrk): Use ANSI C function declaration.
61248         * lib/strstr.c: Don't include <sys/types.h>.
61249         * lib/strstr.h (PARAMS): Remove macro.
61250         (strstr): Use ANSI C function declarations.
61251
61252 2002-11-14  Karl Berry  <karl@gnu.org>
61253
61254         * config/mkinstalldirs: `do' on separate line, instead of
61255         `for var; do'.
61256
61257 2002-11-06  Bruno Haible  <bruno@clisp.org>
61258
61259         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61260         * lib/gcd.c (gcd): Likewise.
61261
61262 2002-11-05  Bruno Haible  <bruno@clisp.org>
61263
61264         * lib/gcd.h: New file, from gettext-0.11.5.
61265         * lib/gcd.c: New file, from gettext-0.11.5.
61266
61267 2002-11-05  Bruno Haible  <bruno@clisp.org>
61268
61269         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61270         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61271         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61272         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61273
61274         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61275         <libintl.h>.
61276         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61277         <libintl.h>.
61278
61279         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61280         * lib/human.c: Include gettext.h instead of <libintl.h>.
61281         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61282         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61283         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61284         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61285         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61286         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61287         (textdomain): Remove definition.
61288         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61289
61290         * lib/long-options.c: Remove include of <libintl.h> and definition of
61291         _.
61292         * lib/same.c: Remove include of <libintl.h> and definition of _.
61293
61294 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61295
61296         * lib/config.charset: A few additions for Solaris.
61297
61298 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61299
61300         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61301         * lib/localcharset.c (locale_charset): Declare as extern "C".
61302
61303 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61304
61305         * lib/config.charset: msdos in uk_UA uses CP1125.
61306
61307 2002-11-04  Bruno Haible  <bruno@clisp.org>
61308
61309         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61310         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61311         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61312         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61313         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61314
61315 2002-11-04  Bruno Haible  <bruno@clisp.org>
61316
61317         * lib/localcharset.c (locale_charset): Don't return an empty string.
61318
61319 2002-11-04  Bruno Haible  <bruno@clisp.org>
61320
61321         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61322         aliases.
61323
61324 2002-11-04  Bruno Haible  <bruno@clisp.org>
61325
61326         * lib/config.charset: Update for newest glibc. Add canonical names
61327         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61328
61329 2002-11-04  Bruno Haible  <bruno@clisp.org>
61330
61331         * lib/config.charset: Add support for NetBSD.
61332
61333 2002-11-04  Bruno Haible  <bruno@clisp.org>
61334
61335         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61336
61337 2002-11-01  Bruno Haible  <bruno@clisp.org>
61338
61339         * configure.in: Add AC_CONFIG_AUX_DIR call.
61340         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61341         test/Makefile.
61342         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61343
61344 2002-09-28  Karl Berry  <karl@gnu.org>
61345
61346         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61347         installed automake until the next release, since changes have been
61348         made.
61349
61350 2002-09-25  Karl Berry  <karl@gnu.org>
61351
61352         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61353         * lib/getopt*: copy from libc/posix.
61354         * lib/gettext.h: copy from gettext.
61355         * lib/.cppi-disable: add strdup.c, gettext.h.
61356
61357 2002-09-25  Karl Berry  <karl@gnu.org>
61358
61359         * config/srclist.txt: enable gettext.h check.
61360         * config/config.{guess,sub}: update from prep.
61361         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61362                 from automake 1.6.3.
61363         See srclist*.
61364
61365 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61366
61367         * regex.c (PATFETCH): Remove the translating fetch.
61368         (PATFETCH_RAW): Rename to PATFETCH.
61369         (set_image_of_range): New fun.
61370         (SET_RANGE_TABLE_WORK_AREA): Use it.
61371         (regex_compile): Don't translate the pattern chars so eagerly.
61372         Only do it when inserting an `exactn' bytecode or when handling
61373         a char-range.
61374         (mutually_exclusive_p): Avoid empty statement.
61375
61376 2002-07-06  Jim Meyering  <meyering@lucent.com>
61377
61378         * m4/README: Don't mention Makefile.am.in.
61379         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61380
61381 2002-07-01  Jim Meyering  <meyering@lucent.com>
61382
61383         * lib/c-stack.c: Include sys/time.h.
61384         From Volker Borchert.
61385
61386 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61387
61388         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61389
61390 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61391
61392         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61393         New macro.  Use it uniformly instead of
61394         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61395         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61396         reported by Vin Shelton.
61397
61398 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61399
61400         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61401         Do not assume SA_SIGINFO behavior.
61402         Bug reported by Jim Meyering on NetBSD 1.5.2.
61403
61404 2002-06-22  Jim Meyering  <meyering@lucent.com>
61405
61406         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61407         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61408
61409         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61410         now that configure.ac uses AC_GNU_SOURCE.
61411         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61412         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61413
61414         Update to latest tools.  Suggestions from Paul Eggert.
61415         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61416         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61417         * m4/fnmatch.m4: Likewise.
61418         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61419         to AC_HEADER_STDBOOL
61420
61421 2002-06-22  Jim Meyering  <meyering@lucent.com>
61422
61423         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61424         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61425
61426 2002-06-22  Jim Meyering  <meyering@lucent.com>
61427
61428         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61429
61430         * lib/exitfail.c, exitfail.h: Likewise.
61431         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61432
61433         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61434         of fnmatch.h.
61435         (EXTRA_DIST): Add fnmatch_loop.c.
61436         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61437
61438         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61439         * lib/fnmatch.c: Update from diffutils-2.8.2.
61440         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61441         * lib/fnmatch.h: Remove file.
61442
61443 2002-06-21  Jim Meyering  <meyering@lucent.com>
61444
61445         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61446         * m4/mbrtowc.m4: Likewise.
61447
61448         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61449         * m4/mbswidth.m4: Reflect name change:
61450         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61451         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61452
61453         * m4/lib-link.m4: Update from gettext-0.11.2.
61454         * m4/gettext.m4: Likewise.
61455
61456         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61457         From Alfred M. Szmidt.
61458
61459 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61460
61461         * lib/file-type.h: Report an error if neither S_ISREG nor
61462         S_IFREG is defined, instead of using a test specific to glibc
61463         2.2.  This should be safe, since POSIX requires S_ISREG and
61464         Unix Version 7 had S_IFREG.  We don't need to check for
61465         <sys/types.h> since we don't use any symbols that it defines.
61466
61467 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61468
61469         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61470         $@-t, so that each temporary file name is unique and valid in the first
61471         8 characters, for operation under DOS.
61472
61473 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61474
61475         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61476
61477 2002-06-15  Jim Meyering  <meyering@lucent.com>
61478
61479         Work even with DJGPP 2.03, which lacks support for symlinks.
61480         From Richard Dawe.
61481         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61482         is defined.
61483         * lib/lchown.c (S_ISLNK): Likewise.
61484
61485 2002-06-15  Jim Meyering  <meyering@lucent.com>
61486
61487         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61488         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61489         have been included before this file.
61490
61491 2002-06-14  Jim Meyering  <meyering@lucent.com>
61492
61493         * lib/file-type.h: Use the version from diffutils-2.8.2.
61494         * lib/file-type.c: Likewise.
61495
61496 2002-06-07  Jim Meyering  <meyering@lucent.com>
61497
61498         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61499         They're needed at least for NetBSD 1.5.2.
61500         ($statxfs_includes): Include those same headers.
61501         ($statxfs_includes): Include sys/vfs.h if available.
61502         ($statxfs_includes): Likewise for sys/statvfs.h.
61503         Check for the following members in both structs statfs and statvfs:
61504         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61505
61506 2002-06-01  Jim Meyering  <meyering@lucent.com>
61507
61508         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61509         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61510
61511 2002-05-28  Jim Meyering  <meyering@lucent.com>
61512
61513         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61514         Reported by Volker Borchert.
61515
61516 2002-05-27  Jim Meyering  <meyering@lucent.com>
61517
61518         Fix a problem seen only on nonconforming systems whereby ls.c's
61519         use of localtime, and then of gettimeofday would cause trouble:
61520         the localtime call used to initialize rpl_gettimeofday's save
61521         mechanism would clobber ls's current local time information so
61522         that in any long listing the first file would always be listed
61523         with date 1970-01-01.  Analysis by Volker Borchert.
61524
61525         * lib/gettimeofday.c (localtime): Undefine.
61526         (rpl_localtime): New function.
61527
61528 2002-05-27  Jim Meyering  <meyering@lucent.com>
61529
61530         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61531         localtime.
61532
61533         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61534         use the replacement function; it wouldn't resolve at link time.
61535         Reported by Volker Borchert.
61536
61537 2002-05-22  Jim Meyering  <meyering@lucent.com>
61538
61539         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61540         file-type.h.
61541         * lib/file-type.h: New file.
61542         * lib/file-type.c (file_type): New file/function.  Extracted from
61543         diffutils.
61544
61545 2002-04-30  Jim Meyering  <meyering@lucent.com>
61546
61547         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61548
61549 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61550
61551         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61552
61553 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61554
61555         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61556         Do not check for alloca.h (no longer used) or stdbool.h (was never
61557         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61558
61559 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61560
61561         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61562
61563 2002-04-29  Jim Meyering  <meyering@lucent.com>
61564
61565         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61566         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61567         Use AC_FUNC_STRNLEN here instead.
61568
61569         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61570         With autoconf-2.53a, it's part of AC_PROG_CC.
61571
61572 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61573
61574         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61575         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61576
61577 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61578
61579         * lib/sig2str.h, lib/sig2str.c: New files.
61580         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61581
61582 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61583
61584         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61585         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61586         of 127, since 64 is the largest conceivable number for ancient
61587         nonstandard hosts.
61588         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61589
61590 2002-04-28  Jim Meyering  <meyering@lucent.com>
61591
61592         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61593
61594 2002-04-24  Jim Meyering  <meyering@lucent.com>
61595
61596         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61597         (jm_PREREQ): Use it.
61598
61599         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61600         mach/mach.h fcntl.h.
61601         Check for this function: setlocale.
61602
61603 2002-04-24  Jim Meyering  <meyering@lucent.com>
61604
61605         * lib/gettext.h: New file, from Gettext.
61606         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61607         (libfetish_a_SOURCES): Add gettext.h.
61608
61609 2002-04-16  Jim Meyering  <meyering@lucent.com>
61610
61611         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61612         ut_pid, ut_id, ut_exit.
61613
61614 2002-04-16  Jim Meyering  <meyering@lucent.com>
61615
61616         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61617         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61618         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61619
61620 2002-04-12  Jim Meyering  <meyering@lucent.com>
61621
61622         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61623         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61624         existence of the getmntinfo function.  Needed for Darwin 5.3.
61625
61626         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61627         This is necessary at least on Darwin 5.3.
61628
61629         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61630         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61631         strnlen.o in the library, and that makes some versions of ranlib
61632         object.
61633
61634 2002-04-12  Jim Meyering  <meyering@lucent.com>
61635
61636         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61637
61638 2002-04-09  Jim Meyering  <meyering@lucent.com>
61639
61640         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61641         to be more precise.  Rather than saying we're checking whether the
61642         function `works', say what we're testing.
61643         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61644         Reported by Bruno Haible.
61645
61646 2002-03-10  Jim Meyering  <meyering@lucent.com>
61647
61648         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61649         Suggestion from Santiago Vila.
61650
61651 2002-03-08  Jim Meyering  <meyering@lucent.com>
61652
61653         * lib/rename.c: Mention that this wrapper is needed also on
61654         mips-dec-ultrix4.4 systems.
61655
61656 2002-03-02  Jim Meyering  <meyering@lucent.com>
61657
61658         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61659         not HAVE_CLOCK_SETTIME.
61660
61661 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61662
61663         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61664         Check for clock_settime.
61665
61666 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61667
61668         * lib/nanosleep.h: Rename to....
61669         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61670
61671         * lib/gettime.c: New file.
61672         * lib/settime.c: New file.
61673         * lib/stime.c: Remove.
61674
61675         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61676         timespec.h.  Remove nanosleep.h.
61677
61678 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61679
61680         * m4/acl.m4: New file.
61681         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61682         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61683
61684 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61685
61686         * lib/acl.c, lib/acl.h: New files.
61687         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61688
61689 2002-02-24  Jim Meyering  <meyering@lucent.com>
61690
61691         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61692         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61693         cause trouble.  Reported by Nelson Beebe.
61694
61695 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61696
61697         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61698         compilers that don't know that xalloc_die never returns.
61699
61700 2002-02-20  Jim Meyering  <meyering@lucent.com>
61701
61702         * lib/getdate.c: Regenerate using bison-1.33.
61703
61704 2002-02-17  Jim Meyering  <meyering@lucent.com>
61705
61706         * config/config.guess (main): Don't use `head -1'; it's no longer
61707         portable. Use `sed 1q' instead.
61708
61709 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61710
61711         * m4/codeset.m4: Upgrade to gettext-0.11.
61712         * m4/gettext.m4: Upgrade to gettext-0.11.
61713         * m4/glibc21.m4: Upgrade to gettext-0.11.
61714         * m4/iconv.m4: Upgrade to gettext-0.11.
61715         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61716         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61717         * m4/lib-ld.m4: New file, from gettext-0.11.
61718         * m4/lib-link.m4: New file, from gettext-0.11.
61719         * m4/lib-prefix.m4: New file, from gettext-0.11.
61720         * m4/progtest.m4: Upgrade to gettext-0.11.
61721
61722 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61723
61724         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61725         (jm_PREREQ): Use it.
61726
61727 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61728
61729         * lib/posixver.c, lib/posixver.h: New files.
61730         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61731
61732 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61733             Bruno Haible  <bruno@clisp.org>
61734
61735         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61736         (fwrite_success_callback): New declaration.
61737         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61738         print_unicode_char. Call failure callback instead of error.
61739         (fwrite_success_callback): New function.
61740         (exit_failure_callback): New function.
61741         (fallback_failure_callback): New function.
61742         (print_unicode_char): Call unicode_to_mb.
61743
61744 2002-01-26  Jim Meyering  <meyering@lucent.com>
61745
61746         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61747         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61748
61749 2002-01-26  Jim Meyering  <meyering@lucent.com>
61750
61751         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61752
61753 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61754
61755         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61756
61757 2002-01-22  Jim Meyering  <meyering@lucent.com>
61758
61759         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61760         Otherwise, some versions of automake would omit the rule that makes
61761         Makefile from Makefile.in.
61762
61763 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61764
61765         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61766         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61767         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61768         (memcoll): Set errno to zero if there is no error.
61769
61770         * lib/quotearg.c (quotearg_buffer_restyled):
61771         Fix bug with quoting buffers containing NUL when backslashing escapes.
61772         This bug was exposed by the other changes in this patch.
61773         (quotearg_n_options): New arg ARGSIZE.
61774         All callers changed.
61775         (quoting_options_from_style): New function.
61776         (quotearg_n_style): Use it.
61777         (quotearg_n_style_mem): New function.
61778
61779         * lib/quotearg.h (quotearg_n_style_mem): New function.
61780
61781 2002-01-19  Jim Meyering  <meyering@lucent.com>
61782
61783         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61784         Remove useless quotes: DF_PROG="df".
61785         * m4/strnlen.m4: New file.
61786
61787 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61788
61789         * lib/backupfile.c (ISDIGIT): Comment fix.
61790         * lib/getdate.y (ISDIGIT): Likewise.
61791         * lib/posixtm.c (ISDIGIT, year): Likewise.
61792         * lib/strverscmp.c (ISDIGIT): Likewise.
61793         * lib/userspec.c (ISDIGIT): Likewise.
61794
61795 2002-01-16  Jim Meyering  <meyering@lucent.com>
61796
61797         * lib/getdate.y: Add three semicolons, each just before a closing
61798         brace. Bison (as of version 1.31) no longer papers over that mistake.
61799
61800 2002-01-05  Jim Meyering  <meyering@lucent.com>
61801
61802         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61803
61804 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61805
61806         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61807         not silently exit merely because the output buffer happens to
61808         have nothing pending.
61809
61810 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61811
61812         See the big note in ../ChangeLog.
61813         * lib/human.c (suffixes): Prefer K to k for 1024.
61814         (generate_suffix_backwards): New function.
61815         (human_readable_inexact): Use it.
61816         * lib/xstrtol.c (__xstrtol): If there is no number but there
61817         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61818         Accept 'K' as well as 'k'.
61819
61820 2001-12-15  Jim Meyering  <meyering@lucent.com>
61821
61822         * lib/regex.h (__restrict_arr): Update from libc.
61823
61824         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61825         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61826         (STREQ): Define.
61827
61828 2001-12-14  Jim Meyering  <meyering@lucent.com>
61829
61830         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61831         Suggestion from Bruno Haible.
61832
61833 2001-12-10  Jim Meyering  <meyering@lucent.com>
61834
61835         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61836         xrealloc, Instead, include "xalloc.h".
61837         (initbuffer): Don't cast xmalloc return value to char*.
61838         (readline): Reword comment.
61839         Don't cast xrealloc return value to char*
61840         Return NULL, not 0.
61841
61842 2001-12-09  Jim Meyering  <meyering@lucent.com>
61843
61844         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61845         about `signed and unsigned type in conditional expression'.
61846         * lib/posixtm.c (posix_time_parse): Likewise.
61847
61848         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61849
61850         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61851         to avoid a pedantic warning.
61852
61853         * lib/getstr.c: Don't include assert.h.
61854         (getstr): Remove warning-evoking assertions.
61855         Return -1 if offset parameter is out of bounds.
61856         Change the type of a local from int to size_t.
61857
61858         * lib/strftime.c (my_strftime_localtime_r): Include this function
61859         definition in the `#if ! HAVE_TM_GMTOFF' block.
61860
61861         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61862         Include xalloc.h instead.
61863
61864 2001-12-02  Jim Meyering  <meyering@lucent.com>
61865
61866         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61867         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61868         included.
61869
61870         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61871         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61872
61873 2001-11-30  Akim Demaille  <akim@epita.fr>
61874
61875         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61876         before being defined.
61877
61878 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61879
61880         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61881         First arg is int, not unsigned.
61882         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61883         (SIZE_MAX, UINT_MAX): New macros.
61884         (quotearg_n_options): Abort if N is negative.
61885         Avoid overflow check on hosts where size_t is 64 bits and int
61886         is 32 bits, as overflow is impossible there.
61887         Fix off-by-one typo that caused unnecessary reallocation.
61888
61889 2001-11-27  Jim Meyering  <meyering@lucent.com>
61890
61891         * lib/tempname.c: Merge with version from libc.
61892         * lib/regex.c: Likewise.
61893
61894         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61895         systems for which STDC_HEADERS is 0, it was not included, resulting in
61896         a warning about an integer-to-pointer conversion problem with getenv.
61897         Reported by Volker Borchert.
61898
61899 2001-11-26  Jim Meyering  <meyering@lucent.com>
61900
61901         * lib/gtod.h: Remove file.
61902         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61903         * lib/gettimeofday.c: Don't include gtod.h.
61904         (GTOD_init): Remove function.
61905         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61906         Suggestion from Volker Borchert.
61907
61908 2001-11-23  Jim Meyering  <meyering@lucent.com>
61909
61910         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61911         it.
61912         * lib/hash.c (struct hash_table): Define it here instead.
61913
61914 2001-11-22  Jim Meyering  <meyering@lucent.com>
61915
61916         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61917
61918 2001-11-20  Jim Meyering  <meyering@lucent.com>
61919
61920         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61921         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61922
61923 2001-11-19  Jim Meyering  <meyering@lucent.com>
61924
61925         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61926         directory.  Use "conftestXXXXXX" as the template.
61927         Suggestion from Paul Eggert.
61928
61929         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61930         immediately, so the test doesn't mistakenly hit the max-open-files
61931         limit.
61932
61933 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61934
61935         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61936         (TEMPORARIES): New macro.
61937         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61938         removes an artificial limitation (e.g. HP-UX 10.20, where
61939         TMP_MAX is 17576).
61940
61941 2001-11-18  Jim Meyering  <meyering@lucent.com>
61942
61943         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61944
61945 2001-11-18  Jim Meyering  <meyering@lucent.com>
61946
61947         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61948         on SunOS 4.
61949
61950         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61951         files will be created before anything else.
61952
61953 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61954
61955         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61956         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61957
61958 2001-11-17  Jim Meyering  <meyering@lucent.com>
61959
61960         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61961         Prompted by a report from Bob Proulx.
61962
61963         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61964         Instead, require UTILS_FUNC_MKSTEMP.
61965
61966 2001-11-17  Jim Meyering  <meyering@lucent.com>
61967
61968         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61969         Now, that's done as part of AC_FUNC_STRTOD.
61970
61971 2001-11-17  Jim Meyering  <meyering@lucent.com>
61972
61973         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61974         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61975         rather than group writable.  Patch by Juan F. Codagnone.
61976
61977         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61978         xrealloc, Instead, include "xalloc.h".
61979
61980         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61981         Remove explicit declarations of xmalloc, xrealloc,
61982         and xstrdup.  Instead, include "xalloc.h".
61983
61984         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61985         unlocked-io.h.
61986         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61987         Likewise.
61988         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61989
61990         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61991         Reported by Padraig Brady.
61992
61993         * lib/mkstemp.c: #undef mkstemp.
61994         Include config.h.
61995         (rpl_mkstemp): Rename from mkstemp.
61996         Protoize.
61997
61998 2001-11-16  Jim Meyering  <meyering@lucent.com>
61999
62000         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
62001         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
62002         determine the amount of total physical memory, use pstat_getstatic.
62003         HPUX-11 doesn't define _SC_PHYS_PAGES.
62004         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
62005         If sysconf couldn't be used to determine the amount of available
62006         physical memory, use both pstat_getstatic and pstat_getdynamic.
62007         Based on a patch from Bob Proulx.
62008
62009 2001-11-10  Jim Meyering  <meyering@lucent.com>
62010
62011         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
62012         (jm_PREREQ): Use it.
62013
62014 2001-11-09  Jim Meyering  <meyering@lucent.com>
62015
62016         * m4/jm-macros.m4: Require autoconf-2.52f.
62017         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
62018         Use these AC_-prefixed names, not the AM_-prefixed ones.
62019
62020         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
62021
62022 2001-11-05  Jim Meyering  <meyering@lucent.com>
62023
62024         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
62025
62026 2001-11-04  Jim Meyering  <meyering@lucent.com>
62027
62028         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
62029         $DEFS.
62030
62031 2001-11-03  Jim Meyering  <meyering@lucent.com>
62032
62033         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
62034         of AC_DEFUN.
62035
62036         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
62037         know the name of the variable in the macro definition.
62038
62039 2001-11-03  Jim Meyering  <meyering@lucent.com>
62040
62041         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
62042         in argmatch_to_argument call.
62043
62044         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
62045         argument.
62046
62047         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
62048         e.g., a fault due to an attempt to free a NULL pointer.
62049
62050 2001-11-01  Jim Meyering  <meyering@lucent.com>
62051
62052         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
62053         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
62054
62055 2001-11-01  Jim Meyering  <meyering@lucent.com>
62056
62057         * lib/dirfd.c, lib/dirfd.h: New files.
62058         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
62059
62060         * lib/hash.c (hash_print) [TESTING]: Clean up.
62061
62062 2001-10-22  Paul Eggert  <eggert@twinsun.com>
62063
62064         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
62065         to avoid a warning if -Wall.
62066
62067 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
62068
62069         * README: New file
62070         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
62071         (per RMS's instructions, this is now the canonical source)
62072         * lgpl/, gpl/: New directories.
62073
62074 2001-10-21  Paul Eggert  <eggert@twinsun.com>
62075
62076         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
62077
62078 2001-10-21  Jim Meyering  <meyering@lucent.com>
62079
62080         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
62081         this code would end up calling gettext even in packages built
62082         with --disable-nls.
62083         * lib/getopt.c (_): Likewise.
62084         * lib/regex.c (_): Likewise.
62085
62086 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62087
62088         * m4/error.m4 (jm_PREREQ_ERROR):
62089         Do not invoke AC_CHECK_FUNCS with strerror_r, as
62090         AC_FUNC_STRERROR_R does that.
62091         Check for strerror declaration.
62092
62093         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
62094         are supposed to have them these days.
62095         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
62096         Merge changes from latest Autoconf CVS.
62097         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
62098         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
62099         POSIX decided to standardize on the int flavor of strerror_r.
62100
62101 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62102
62103         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
62104         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
62105         Use strerror_r that is only a macro, even if it is not a function.
62106         (strerror): Check for HAVE_DECL_STRERROR before declaring.
62107         (private_strerror): Use prototypes, not old-style function definition.
62108         (print_errno_message): New function.
62109         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
62110         char*-flavored one.
62111         (error_tail, error, error_at_line): Use it.
62112
62113 2001-10-11  Jim Meyering  <meyering@lucent.com>
62114
62115         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
62116         and quote_n (1, ... to avoid clobbering a buffer.
62117
62118 2001-10-05  Jim Meyering  <meyering@lucent.com>
62119
62120         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
62121         hash-pjw.h.
62122         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
62123         * lib/hash-pjw.h: New file.
62124
62125 2001-09-30  Jim Meyering  <meyering@lucent.com>
62126
62127         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
62128         `struct fsstat' has the `f_fstypename' member.
62129         Use that to define FS_TYPE, which is now used to make
62130         the getfsstat link test tighter.
62131
62132 2001-09-30  Jim Meyering  <meyering@lucent.com>
62133
62134         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
62135         Include <sys/ucred.h>, for Apple Darwin.
62136         Include sys/mount.h and sys/fs_types.h only if available.
62137         (FS_TYPE): Define.
62138         (read_filesystem_list): Use FS_TYPE.
62139
62140 2001-09-29  Paul Eggert  <eggert@twinsun.com>
62141
62142         * lib/exclude.c (excluded_filename): 0 -> false, since it's
62143         a boolean context.
62144
62145 2001-09-29  Jim Meyering  <meyering@lucent.com>
62146
62147         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62148         [one-argument getmntent function]): Include stdio.h before mntent.h.
62149         SunOS 4.1.x needs it for the declaration of `FILE'.
62150         Patch by Volker Borchert.
62151
62152         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62153         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
62154         sys/fs_types.h, and make the link-test for getfsstat guard #include
62155         directives with appropriate #if HAVE_*_H tests so that we can
62156         detect getfsstat on Apple Darwin1.3.7 systems.
62157         Reported by Nelson Beebe.
62158         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
62159
62160 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62161
62162         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62163         #defines strtoimax.  Also treat the other strto* functions
62164         like strtoimax.
62165
62166         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62167         Check for strtoul and strtoumax,
62168         as those declarations are made even in the signed case.
62169         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
62170         Likewise, for strtol and strtoimax.
62171
62172 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62173
62174         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62175         #defines strtoimax.  Also treat the other strto* functions
62176         like strtoimax.
62177
62178         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
62179         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
62180         (strtoimax, strtoumax): Do not declare if already defined as a macro.
62181
62182 2001-09-26  Jim Meyering  <meyering@lucent.com>
62183
62184         Most macros in unlocked-io.h had the wrong number of arguments.
62185         * lib/gen-uio: New script.
62186         (USE_UNLOCKED_IO): Define to 1 if not already defined.
62187         * lib/unlocked-io.hin: Remove file.
62188         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
62189         rather than trying to embed it here.
62190         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
62191         Reported by Padraig Brady.
62192
62193 2001-09-25  Volker Borchert  <bt@teknon.de>
62194
62195         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
62196         `result'.
62197
62198 2001-09-24  Jim Meyering  <meyering@lucent.com>
62199
62200         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
62201
62202 2001-09-23  Jim Meyering  <meyering@lucent.com>
62203
62204         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
62205         instead of the mere test for existence of mntent.h.  The latter
62206         would get a false-positive on AIX 3.4 systems.
62207         In the outer getmntent if-block, don't die if neither of the getmntent
62208         tests succeeds.  Instead, just fall through and continue with the
62209         remaining tests.
62210
62211 2001-09-23  Jim Meyering  <meyering@lucent.com>
62212
62213         * lib/mountlist.c: Remove useless parentheses in #if directives.
62214         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
62215         the deprecated MOUNTED symbol is no longer defined in mntent.h.
62216
62217 2001-09-22  Jim Meyering  <meyering@lucent.com>
62218
62219         * m4/gettext.m4: New file.  From gettext.
62220         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62221         * m4/progtest.m4: Likewise
62222         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62223         * m4/glibc21.m4: Likewise.
62224
62225         * m4/libintl.m4: Remove.  No longer used.
62226
62227 2001-09-22  Jim Meyering  <meyering@lucent.com>
62228
62229         * lib/localcharset.c: Update from latest gettext.
62230         * lib/config.charset: Likewise.
62231
62232 2001-09-20  Jim Meyering  <meyering@lucent.com>
62233
62234         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62235         strtoimax.
62236         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62237         strtoumax.
62238
62239 2001-09-20  Jim Meyering  <meyering@lucent.com>
62240
62241         * lib/xstrtol.c (strtoimax): Guard declaration with
62242         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62243         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62244         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62245         (strtoumax): Likewise, for completeness (it wasn't necessary).
62246
62247 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62248
62249         * lib/strtoimax.c (HAVE_LONG_LONG):
62250         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62251         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62252         to work around bug in IBM C compiler.
62253
62254 2001-09-17  Jim Meyering  <meyering@lucent.com>
62255
62256         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62257         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62258         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62259         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62260         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62261         whenever the right hand side need not be expanded by the shell.
62262
62263 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62264
62265         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62266         library.  It's not correct, as some older glibcs are buggy.
62267         fnmatch wasn't fixed until glibc 2.2.
62268
62269         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62270         special shell magic here.
62271
62272 2001-09-16  Jim Meyering  <meyering@lucent.com>
62273
62274         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62275         * m4/jm-macros.m4: Require it.
62276
62277 2001-09-16  Jim Meyering  <meyering@lucent.com>
62278
62279         * lib/mkdir.c: New file.
62280
62281 2001-09-15  Jim Meyering  <meyering@lucent.com>
62282
62283         * m4/jm-macros.m4: Check for help2man.
62284
62285 2001-09-11  Jim Meyering  <meyering@lucent.com>
62286
62287         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62288         The body, by Paul Eggert, was moved here from configure.in.
62289         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62290
62291 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62292
62293         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62294         (jm_PREREQ): Use it.
62295
62296 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62297
62298         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62299         Use ssize_t, not int, to store result of readlink.
62300         Check for ssize_t overflow as well as size_t overflow,
62301         as POSIX says the result of readlink is implementation-defined
62302         when ssize_t overflows.
62303         Remove unnecessary cast to char*.
62304         Use free+malloc instead of realloc, as the storage doesn't need
62305         to be preserved and it's clearer and can be more efficient that way.
62306         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62307         * lib/xreadlink.h (xreadlink): Update prototype.
62308
62309 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62310
62311         * lib/xgetcwd.c: Revert some of the previous change; intead,
62312         fix the HAVE_GETCWD_NULL code to behave more like the
62313         !HAVE_GETCWD_NULL code used to.
62314
62315         Include "xalloc.h".
62316         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62317         invoke xalloc_die.
62318
62319 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62320
62321         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62322         sys/param.h, as pathmax.h includes them.
62323
62324 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62325
62326         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62327         (jm_PREREQ_XGETCWD): New macro.
62328
62329         * m4/getcwd.m4: New file.
62330
62331 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62332
62333         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62334         like the HAVE_GETCWD_NULL code.
62335         Include pathmax.h if not HAVE_GETCWD.
62336         Do not include xalloc.h.
62337         (INITIAL_BUFFER_SIZE): New symbol.
62338         Do not use xmalloc / xrealloc, since the caller is responsible for
62339         handling errors.  Preserve errno around `free' during failure.
62340         Do not overrun buffer when using getwd.
62341
62342 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62343
62344         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62345         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62346         getcwd (NULL, 0).
62347
62348 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62349
62350         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62351         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62352         spotted by Jim Meyering.
62353
62354 2001-09-03  Jim Meyering  <meyering@lucent.com>
62355
62356         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62357         failure.
62358
62359 2001-09-02  Jim Meyering  <meyering@lucent.com>
62360
62361         * lib/error.c: Update from GNU libc.
62362
62363 2001-09-01  Jim Meyering  <meyering@lucent.com>
62364
62365         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62366         Used by df.
62367
62368 2001-09-01  Jim Meyering  <meyering@lucent.com>
62369
62370         * lib/xreadlink.c: New file.
62371         * lib/xreadlink.h: New file.
62372         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62373         xreadlink.h.
62374
62375         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62376         doesn't conflict with sparc Solaris 7's definition in
62377         /usr/include/sys/int_types.h.
62378
62379         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62380         files.
62381         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62382         and strncasecmp as r-values.  Unixware didn't have declarations.
62383
62384 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62385
62386         * lib/xstrtol.h: Add copyright notice.
62387         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62388         LONGINT_INVALID_SUFFIX_CHAR.
62389
62390 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62391
62392         * lib/xstrtol.c (strtoimax): New decl.
62393
62394 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62395
62396         * lib/xgetcwd.c: Don't include pathmax.h.
62397         Include stdlib.h and unistd.h if available.
62398         Include xalloc.h.
62399         (xmalloc, xstrdup, free): Remove decls.
62400         (xgetcwd): Don't assume sizes fit in unsigned.
62401         Check for overflow when computing sizes.
62402         Simplify reallocation code.
62403
62404 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62405
62406         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62407         a directory's st_size can have an arbitrary value, so the old
62408         usage could waste an arbitrary amount of memory.  All uses
62409         changed.
62410         * lib/savedir.h: Update prototype.
62411
62412 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62413
62414         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62415
62416         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62417         old strtoimax.c.
62418
62419         Also, make the following further changes to make this file's
62420         configuration more similar to that of strtol.c:
62421         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62422         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62423         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62424         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62425         changed to signed values.
62426
62427         And make the following changes as well:
62428         Fix copyright notice, as 1999 was missing.
62429         (verify): New macro.
62430         (strtoimax): Check sizes at compile-time, not run-time.
62431         Prefer strtol to strtoll if both work.
62432         (main): Remove; it was not that useful and was a pain to maintain.
62433
62434         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62435
62436 2001-08-31  Jim Meyering  <meyering@lucent.com>
62437
62438         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62439         Use an initial, malloc'd, buffer of length 128 rather than
62440         a statically allocated one of length 1024.
62441
62442 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62443
62444         Simplify code, partly by assuming autoconf 2.52 semantics.
62445
62446         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62447
62448         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62449         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62450         All uses removed.
62451         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62452         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62453         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62454         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62455         jm_AC_HEADER_INTTYPES_H.
62456         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62457
62458         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62459
62460         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62461         Quote first arg of AC_DEFUN.
62462         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62463         since they are needed to parse the include file even if we need
62464         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62465         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62466         but with opposite signedness.
62467
62468 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62469
62470         Merge 'exclude' changes from tar 1.13.22.
62471         This fixes one or two unlikely storage allocation overflow bugs,
62472         but doesn't change user-visible behavior otherwise.
62473
62474 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62475
62476         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62477         (jm_PREREQ_EXCLUDE): New macro.
62478
62479 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62480
62481         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62482         tm to be declared.
62483
62484 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62485
62486         * lib/hash.c: Remove '2001' from copyright notice.
62487
62488 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62489
62490         * lib/full-write.h: New file.
62491         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62492         * lib/full-write.c: Correct credits, as cccp.c no longer
62493         exists and anyway it was so heavily changed from the old cccp
62494         code as to be unrecognizable.  Include full-write.h.
62495         (full_write) Return size_t, with short writes meaning failure.
62496         All callers changed.  This fixes a bug with large buffers
62497         on 64-bit hosts.
62498         * lib/utime.c: Include full-write.h.
62499
62500 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62501
62502         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62503         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62504         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62505         Include if available.
62506         (<xalloc.h>): Include
62507         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62508         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62509         collide with FNM macros.
62510         (struct patopts): New struct.
62511         (struct exclude): Use it, as exclude patterns now come with options.
62512         (new_exclude): Support above changes.
62513         (new_exclude, add_exclude_file):
62514         Initial size must now be a power of two to simplify overflow checking.
62515         (free_exclude, fnmatch_no_wildcards): New function.
62516         (excluded_filename): No longer requires options arg, as the options
62517         are determined by add_exclude.  Now returns bool, not int.
62518         (excluded_filename, add_exclude):
62519         Add support for the fancy new exclusion options.
62520         (add_exclude, add_exclude_file): Now takes int options arg.
62521         Check for arithmetic overflow when computing sizes.
62522         (add_exclude_file): xrealloc might modify errno, so don't
62523         realloc until after errno might be used.
62524
62525         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62526         New macros.
62527         (free_exclude): New decl.
62528         (add_exclude, add_exclude_file): Now takes int options arg.
62529         (excluded_filename): No longer requires options arg, as the options
62530         are determined by add_exclude.  Now returns bool, not int.
62531
62532 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62533
62534         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62535
62536 2001-08-27  Jim Meyering  <meyering@lucent.com>
62537
62538         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62539
62540         * lib/version-etc.c (N_): Remove definition.
62541         Revert most of last change.
62542         Instead, simply don't mark the `Copyright...' string for translation.
62543         Based on advice from Paul Eggert.
62544
62545         * lib/strtoxmax.c: Tweak comment.
62546
62547 2001-08-26  Jim Meyering  <meyering@lucent.com>
62548
62549         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62550
62551         * m4/xstrtoimax.m4: New file.
62552         * m4/xstrtoumax.m4: Add comments explaining why we
62553         AC_REPLACE_FUNCS(strtol).
62554
62555 2001-08-26  Jim Meyering  <meyering@lucent.com>
62556
62557         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62558         of copyright with `%s' so translators don't get an untranslated
62559         message in 2002.
62560         (COPYRIGHT_YEAR): Define.
62561         (version_etc): Use fprintf rather than fputs.
62562         Suggestion from Ulrich Drepper.
62563
62564         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62565
62566         * lib/strtoll.c: New file, from GNU libc.
62567         * lib/xstrtoimax.c: New file.
62568
62569         * lib/xstrtol.h: Add xstrtoimax.
62570         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62571         * lib/strtoimax.c: New file.  Likewise, but first define
62572         STRTOUXMAX_SIGNED.
62573
62574         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62575         ...
62576         * lib/strtoxmax.c: ... then renamed to this.
62577
62578 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62579
62580         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62581         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62582         (jm_AC_TYPE_INTMAX_T): New macro.
62583         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62584
62585         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62586
62587         * m4/longlong.m4: Renamed from ulonglong.m4.
62588         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62589         * m4/uintmax_t.m4: Removed.
62590
62591 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62592
62593         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62594         Port to Solaris 8, where 'sed' requires a space after the 'r'
62595         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62596         Redirect output to $tmp just once.
62597
62598 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62599
62600         * lib/addext.c (<errno.h>): Include.
62601         (errno): Declare if not defined.
62602         (addext): Work correctly when pathconf returns -1 and leaves
62603         errno alone because there is no limit.  Also, work even if
62604         pathconf returns a value greater than SIZE_MAX.
62605
62606 2001-08-12  Jim Meyering  <meyering@lucent.com>
62607
62608         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62609         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62610         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62611         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62612         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62613         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62614         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62615         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62616         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62617         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62618         utime.m4, utimes.m4, xstrtoumax.m4:
62619         Quote the first argument in each use of AC_DEFUN.
62620
62621 2001-08-12  Jim Meyering  <meyering@lucent.com>
62622
62623         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62624         Simply `return getcwd (NULL, 0);'.
62625         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62626         Use 1300 as initial value for length, not PATH_MAX.
62627
62628         * lib/pathmax.h: Clean up cpp syntax.
62629
62630 2001-08-12  Jim Meyering  <meyering@lucent.com>
62631
62632         * lib/gettimeofday.c: New file.
62633         * lib/gtod.h: New file.
62634         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62635
62636 2001-08-05  Jim Meyering  <meyering@lucent.com>
62637
62638         * m4/jm-macros.m4: Require autoconf-2.52.
62639
62640 2001-08-04  Jim Meyering  <meyering@lucent.com>
62641
62642         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62643         stmt, to get in sync with glibc.
62644
62645 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62646
62647         The following changes are from gettext 0.10.39 as maintained by
62648         Bruno Haible.
62649
62650         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62651         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62652         with inverted sense.  All uses changed.
62653
62654         * lib/mbswidth.c: Don't include <limits.h>.
62655         Include <stdlib.h> and <string.h> unconditionally.
62656         (iswcntrl, mbsinit, ISCNTRL): New macros.
62657         (mbsnwidth): Use K&R style function declarations.
62658         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62659         can optimize it when MB_CUR_MAX == 1.
62660         The width of control characters is zero, not 1.
62661
62662 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62663
62664         The following changes are from gettext 0.10.39 as maintained by
62665         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62666
62667         * m4/codeset.m4: Upgrade to serial AM1.
62668         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62669         all uses changed.  Quote first arg of AC_DEFUN.
62670         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62671
62672         * m4/iconv.m4: Upgrade to serial AM2.
62673         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62674         Add --with-libconv-prefix.
62675         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62676         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62677         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62678         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62679         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62680
62681         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62682         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62683         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62684         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62685         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62686         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62687         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62688         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62689         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62690
62691         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62692         string.h any more.
62693
62694         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62695         not the default value.
62696
62697         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62698         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62699         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62700         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62701         Also check for iswcntrl, used for wcwidth fallback.
62702         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62703         to Autoconf 2.13.
62704
62705 2001-08-03  Jim Meyering  <meyering@lucent.com>
62706
62707         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62708         as it was in the original.  Reported by Paul Eggert.
62709
62710 2001-07-16  Jim Meyering  <meyering@lucent.com>
62711
62712         * m4/gettimeofday.m4: New file.
62713         Prompted by a report from Bernhard Baehr.
62714
62715 2001-07-15  Jim Meyering  <meyering@lucent.com>
62716
62717         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62718         stuff. Now it's in ../Makefile.cfg.
62719
62720 2001-07-15  Jim Meyering  <meyering@lucent.com>
62721
62722         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62723         (BUILT_SOURCES): Add unlocked-io.h.
62724         (io_functions): Define.
62725         (unlocked-io.h): New rule.
62726         (DISTCLEANFILES): Add unlocked-io.h.
62727         (all-local): Depend on unlocked-io.h, to ensure it is created.
62728
62729         * lib/unlocked-io.hin: New file
62730
62731         * lib/regex.c: Update from glibc.
62732
62733 2001-07-05  Jim Meyering  <meyering@lucent.com>
62734
62735         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62736         recommendation.
62737         (libfetish_a_SOURCES): Put all .h files here instead.
62738         Remove a thus-exposed (better checks in automake) duplicate and
62739         two unnecessary .h files.
62740
62741 2001-07-04  Jim Meyering  <meyering@lucent.com>
62742
62743         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62744         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62745         distcheck failure.
62746
62747 2001-07-02  Jim Meyering  <meyering@lucent.com>
62748
62749         The following changes were prompted by suggestions from Bruno Haible.
62750
62751         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62752         is now generated.
62753         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62754         definition of EXTRA_DIST.
62755         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62756         ensure that the generated file is created/updated whenever the list
62757         of $(unlocked_functions) is changed.
62758         (jm-glibc-io.m4): New rule.
62759         (unlocked-io.h): New rule -- currently unused.
62760
62761 2001-06-24  Jim Meyering  <meyering@lucent.com>
62762
62763         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62764         unmatched right bracket, rather than kludging it with an extra,
62765         falsely-matching quote in a comment.  Patch by Akim Demaille.
62766
62767 2001-06-11  Jim Meyering  <meyering@lucent.com>
62768
62769         * lib/regex.c: Update from GNU libc.
62770
62771 2001-05-27  Jim Meyering  <meyering@lucent.com>
62772
62773         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62774         Check for ut_type in struct utmp.
62775
62776 2001-05-27  Jim Meyering  <meyering@lucent.com>
62777
62778         * lib/readutmp.h (UT_TYPE): Define.
62779
62780 2001-05-24  Jim Meyering  <meyering@lucent.com>
62781
62782         * lib/argmatch.c: Include "quote.h".
62783         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62784         quote function.  Reported by Göran Uddeborg.
62785
62786 2001-05-22  Jim Meyering  <meyering@lucent.com>
62787
62788         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62789         now that we use the package-supplied version unconditionally.
62790         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62791
62792 2001-05-21  Jim Meyering  <meyering@lucent.com>
62793
62794         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62795         shell syntax errors.
62796
62797 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62798
62799         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62800
62801 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62802
62803         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62804         Don't bother to check library strftime, since
62805         we'll be using our own my_strftime function anyway.
62806         Define my_strftime instead of strftime.
62807
62808 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62809
62810         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62811         which is not yet declared.
62812
62813 2001-05-15  Jim Meyering  <meyering@lucent.com>
62814
62815         * m4/regex.m4: Use proper quoting so brackets appear in the test
62816         program.
62817         Reported by, and with help from, Bruno Haible.
62818
62819 2001-05-13  Jim Meyering  <meyering@lucent.com>
62820
62821         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62822         undefined.
62823
62824 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62825
62826         dirname code cleanup.  base_name now behaves more compatibly
62827         with POSIX basename when given file names that have trailing
62828         slashes, and similarly for dir_name.  Add new primitives
62829         base_len and dir_len.  Put the directory-name-related decls
62830         into dirname.h.
62831
62832         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62833         * lib/backupfile.c (base_name): Likewise.
62834         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62835         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62836         * lib/makepath.c (strip_trailing_slashes): Likewise.
62837         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62838         ISSLASH): Likewise.
62839         * lib/rename.c (strip_trailing_slashes): Likewise.
62840         * lib/same.c (base_name): Likewise.
62841         * lib/stripslash.c (ISSLASH): Likewise.
62842
62843         * lib/addext.c: Include <dirname.h> after size_t is defined.
62844         * lib/backupfile.c: Likewise.
62845
62846         * lib/addext.c (addext): Use base_len to trim redundant
62847         trailing slashes instead of doing it ourselves.
62848         But do not trim the last slash if it is not redundant.
62849
62850         * lib/backupfile.c (find_backup_file_name,
62851         max_backup_version): Use base_len instead of rolling it ourselves.
62852         Handle the case of "" and (on DOS) "C:" correctly.
62853
62854         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62855         needed. Include <string.h>, <dirname.h>.
62856         (base_name): Allow file names ending in slashes, other than names
62857         that are all slashes.  In this case, return the basename followed
62858         by the slashes.  This is more general, and can be used in places
62859         where the original base_name purposely had an assertion failure.
62860         (base_len): New function.
62861
62862         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62863         Do not include <assert.h>; no longer needed.
62864         Include xalloc.h.
62865         (memrchr): Remove decl.
62866         (dir_name_r): Remove.
62867         (dir_len): Renamed from dirlen.  All callers changed.
62868         Rewrite in terms of base_name, for simplicity and consistency.
62869         (dir_name): Never return NULL.  All callers changed.
62870         Do not include <stdlib.h> in test program; no longer needed.
62871         return 0; is fine for test program.
62872
62873         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62874         New macros.
62875         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62876
62877         * lib/path-concat.c (path_concat): Use base_len to compute
62878         base length, not strlen; this means we cannot rely on memcpy
62879         to null-terminate.
62880
62881         * lib/same.c (STREQ): Remove.
62882         (same_name): Handle the case where the basename ends in trailing '/'.
62883
62884         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62885         a slash was stripped.  Do not strip the last slash after a
62886         file system prefix.
62887
62888 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62889
62890         * lib/Makefile.am (libfetish_a_SOURCES):
62891         Add strftime.c, since we now compile it on all hosts.
62892
62893         * lib/strftime.c (my_strftime):
62894         Define to nstrftime if emacs, but only if my_strftime is not defined.
62895         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62896         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62897         Add one more extra argument: a nanoseconds value.
62898         All uses changed.
62899         (ns): New macro.
62900         (my_strftime function): Add %N format.
62901         (emacs_strftimeu): Renamed from emacs_strftime,
62902         with extra ut argument.
62903
62904 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62905
62906         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62907
62908 2001-04-21  Jim Meyering  <meyering@lucent.com>
62909
62910         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62911         doesn't interfere.
62912
62913 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62914
62915         * m4/ftruncate.m4: Check for chsize.
62916         Link with ftruncate.o unconditionally if ftruncate is missing.
62917         This was required when cross-compiling to i586-mingw32msvc.
62918
62919 2001-04-08  Jim Meyering  <meyering@lucent.com>
62920
62921         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62922         recomputed; that's necessary when the offset spans a DST transition.
62923         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62924
62925 2001-04-02  Jim Meyering  <meyering@lucent.com>
62926
62927         * lib/regex.h, regex.c: Update from GNU libc.
62928
62929 2001-03-24  Jim Meyering  <meyering@lucent.com>
62930
62931         * m4/jm-macros.m4: Require autoconf-2.49d.
62932
62933 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62934
62935         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62936
62937 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62938
62939         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62940
62941 2001-03-17  Jim Meyering  <meyering@lucent.com>
62942
62943         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62944         now that the version in autoconf is equivalent.
62945         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62946
62947         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62948         Suggestion from Akim Demaille.
62949
62950         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62951         (jm_PREREQ_TEMPNAME): New function.
62952
62953 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62954
62955         * lib/tempname.c (uint64_t): Define to uintmax_t if
62956         not defined, and if UINT64_MAX is not defined.
62957         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62958         Reported by John David Anglin.
62959
62960 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62961
62962         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62963         resolve alias if codeset is empty.
62964         * lib/config.charset (BeOS): Use wildcard syntax.
62965
62966 2001-03-13  Jim Meyering  <meyering@lucent.com>
62967
62968         * lib/path-concat.c (path_concat)
62969         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62970         concatenating e.g., `C:' and `foo'.
62971         From Bruno Haible.
62972
62973 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62974
62975         * lib/localcharset.c (locale_charset): Don't use
62976         setlocale(LC_CTYPE,NULL). Don't return NULL.
62977         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62978
62979 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62980
62981         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62982         support for DOS/DJGPP.
62983
62984 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62985
62986         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62987         lacks mkstemp.  Compile our own tempname.c if we compile our own
62988         mkstemp.c, as mkstemp relies on tempname.
62989
62990 2001-03-01  Jim Meyering  <meyering@lucent.com>
62991
62992         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62993         AH_VERBATIM really does output its argument verbatim.
62994
62995 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62996
62997         * lib/Makefile.am (libfetish_a_SOURCES):
62998         Add dup-safer.c, fopen-safer.c.
62999         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
63000
63001         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
63002         * lib/unistd-safer.h: New files.
63003
63004 2001-02-25  Paul Eggert  <eggert@twinsun.com>
63005
63006         The mkstemp replacement is taken from glibc 2.2.2, with some
63007         portability fixes for use outside glibc, as follows:
63008
63009         * lib/tempname.c (struct_stat64): New macro.
63010         (direxists, __gen_tempname): Use it.
63011         This avoids a portability problem with Solaris 8.
63012
63013         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
63014         (<stddef.h>, <stdint.h>, <string.h>):
63015         Include only if STDC_HEADERS || _LIBC.
63016         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
63017         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
63018         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
63019         (__set_errno): Define this macro if <errno.h> doesn't.
63020         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
63021         Define these macros if <stdio.h> doesn't.
63022         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
63023         Define these macros if <sys/stat.h>
63024         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
63025         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
63026         __xstat64): Define if not _LIBC.
63027         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
63028         (__gen_tempname): Invoke gettimeofday only if
63029         HAVE_GETTIMEOFDAY || _LIBC;
63030         otherwise, fall back on plain "time".
63031         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
63032
63033         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
63034
63035         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
63036
63037 2001-02-18  Paul Eggert  <eggert@twinsun.com>
63038
63039         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
63040
63041 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63042
63043         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
63044         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
63045         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
63046         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
63047
63048 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63049
63050         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
63051         Remove workaround macros for hosts that have mbrtowc but not
63052         mbstate_t, as we now insist on proper declarations for both
63053         before using mbrtowc.
63054
63055 2001-02-17  Jim Meyering  <meyering@lucent.com>
63056
63057         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
63058         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
63059         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
63060         UnixWare 7.1.1.
63061
63062         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
63063         rather than AC_CACHE_VAL.
63064
63065 2001-02-17  Jim Meyering  <meyering@lucent.com>
63066
63067         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
63068         around included file name.
63069
63070         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
63071
63072         * lib/strftime.c: Update from GNU libc (the only changes were to
63073         comments).
63074
63075 2001-02-17  Jim Meyering  <meyering@lucent.com>
63076
63077         * lib/regex.c: Update from libc.
63078
63079 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
63080
63081         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
63082         clash.
63083
63084 2001-02-16  Paul Eggert  <eggert@twinsun.com>
63085
63086         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
63087         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
63088         Reported by Mark Hounschell via Paul Eggert.
63089
63090 2001-02-07  Jim Meyering  <meyering@lucent.com>
63091
63092         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
63093
63094 2001-02-05  Jim Meyering  <meyering@lucent.com>
63095
63096         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
63097         it includes the patch required for `large file' support with at least
63098         HP-UX's 10.20 /bin/cc.
63099
63100 2001-02-03  Jim Meyering  <meyering@lucent.com>
63101
63102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
63103         AS_IF, now that it works once again (mysteriously).
63104         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63105
63106 2001-01-30  Jim Meyering  <meyering@lucent.com>
63107
63108         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
63109         * m4/chown.m4: Rename conftestchown to conftest.chown.
63110         * m4/rename.m4: s/conftestdir/conftest.d1/ and
63111         s/conftestdir2/conftest.d2/.
63112         * m4/utimes.m4: s/conftestdata/conftest.data/
63113         Inspired by Pavel Roskin's change in autoconf.
63114
63115 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
63116
63117         * lib/config.charset: Update for FreeBSD 4.2.
63118
63119 2001-01-27  Jim Meyering  <meyering@lucent.com>
63120
63121         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
63122         a use of AS_IF.
63123         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63124
63125 2001-01-26  Jim Meyering  <meyering@lucent.com>
63126
63127         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
63128         quotearg.c includes it.
63129
63130 2001-01-26  Jim Meyering  <meyering@lucent.com>
63131
63132         * lib/quotearg.c: Include stddef.h.
63133         * lib/quote.c: Include stddef.h.
63134         Reported by Axel Kittenberger.
63135
63136         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
63137         line in double quotes so that it evokes a better diagnostic.
63138         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
63139         Reported by Axel Kittenberger.
63140
63141 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
63142
63143         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
63144         as if it was a `charset'.
63145
63146 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63147
63148         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
63149         has const.
63150
63151 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63152
63153         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
63154         to avoid a warning.  Add back 'const' to inptr.
63155
63156 2001-01-20  Jim Meyering  <meyering@lucent.com>
63157
63158         Be sure that headers are checked before used in code compiled
63159         for the type checks.
63160         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
63161         In place of that, invoke jm_CHECK_ALL_TYPES.
63162         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
63163         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
63164         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
63165         The check for ssize_t was mistakenly run before the test for unistd.h.
63166
63167         The configure-time check for stdbool.h was missing.
63168         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
63169         (jm_PREREQ_HASH): New function.
63170
63171 2001-01-17  Jim Meyering  <meyering@lucent.com>
63172
63173         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
63174         for autoconf-2.49c.
63175         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
63176
63177 2001-01-16  Jim Meyering  <meyering@lucent.com>
63178
63179         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
63180         From Bruno Haible.
63181
63182 2001-01-14  Jim Meyering  <meyering@lucent.com>
63183
63184         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
63185         foo and bar.  Create conftestdir/ in the script, not in the C code.
63186         Remove directories in the script, not in the C code.
63187         Remove conftestdir{,2} before trying to create the directory.
63188         Make the entire configure script fail if the mkdir fails.
63189
63190 2001-01-14  Jim Meyering  <meyering@lucent.com>
63191
63192         * lib/rename.c: New file.  From Volker Borchert.
63193         Include stdlib.h, string.h or strings.h, and xalloc.h.
63194         Use strip_trailing_slashes rather than open-coding it.
63195
63196 2001-01-03  Paul Eggert  <eggert@twinsun.com>
63197
63198         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
63199
63200 2001-01-03  Jim Meyering  <meyering@lucent.com>
63201
63202         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
63203         of local `inptr' to avoid warning with some system declarations of
63204         iconv.
63205
63206 2001-01-02  Volker Borchert  <bt@teknon.de>
63207
63208         * m4/rename.m4: New file.
63209         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
63210
63211 2001-01-01  Jim Meyering  <meyering@lucent.com>
63212
63213         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
63214         even on systems with utmpx.h.  It's necessary for the declaration of
63215         utmp's ut_user member.  Reported by Andreas Jaeger.
63216
63217         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
63218         available. They are required for the declarations of getgrgid and
63219         getpwuid resp.
63220         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63221         Reported by Andreas Jaeger.
63222
63223 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63224
63225         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63226         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63227         so `make install' also works in VPATH builds.
63228
63229 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63230
63231         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63232         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63233         can be used in subdirectories.
63234
63235 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63236
63237         * lib/modechange.c: Do not assume that mode_t uses the
63238         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63239         the other-execute bit of FOO even if S_IXOTH != 1.
63240
63241         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63242         WOTH, XOTH, ALLM): New macros.
63243         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63244          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63245         Use them.
63246         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63247         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63248         (mode_compile):
63249         No need to use uintmax_t; unsigned long is long enough.
63250         Don't bother to get suffix since we don't use it.
63251
63252 2000-12-26  Jim Meyering  <meyering@lucent.com>
63253
63254         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63255         better with autoheader.
63256
63257 2000-12-24  Jim Meyering  <meyering@lucent.com>
63258
63259         * lib/hash.c (is_prime): Return explicit boolean values.
63260         (hash_get_first): Return NULL to appease Irix5.6's 89.
63261         Reported by Nelson Beebe.
63262
63263 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63264
63265         * lib/localcharset.c (locale_charset): Add support for Win32.
63266
63267 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63268
63269         * lib/physmem.h, lib/physmem.c: New files.
63270
63271         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63272         (noinst_HEADERS): Add physmem.h.
63273
63274         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63275         't' for compatibility with Solaris 8 sort.
63276
63277 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63278
63279         * lib/config.charset: Add support for BeOS.
63280
63281 2000-12-17  Jim Meyering  <meyering@lucent.com>
63282
63283         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63284         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63285
63286 2000-12-16  Jim Meyering  <meyering@lucent.com>
63287
63288         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63289         N and M) would have treated it like `chown N:N FILE'.
63290
63291         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63292
63293 2000-12-16  Jim Meyering  <meyering@lucent.com>
63294
63295         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63296         SHELLS_FILE to a file name that's useful on djgpp systems.
63297         Include stdlib.h.
63298         (ADDITIONAL_DEFAULT_SHELLS): Define.
63299         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63300         Based mostly on a patch from Prashant TR.
63301
63302 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63303
63304         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63305         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63306         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63307
63308 2000-12-08  Andreas Schwab  <schwab@suse.de>
63309
63310         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63311         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63312
63313 2000-12-07  Jim Meyering  <meyering@lucent.com>
63314
63315         * lib/stripslash.c (ISSLASH): Define.
63316         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63317         `/'.
63318         From Prashant TR.
63319
63320         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63321         (dir_name_r): Declare this function as static.
63322         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63323         manifest itself on a name containing a mix of slashes and
63324         backslashes.
63325         Make this function work with names starting with a DOS-style
63326         drive letter and colon prefix.
63327         (dir_name): Append `.' if necessary.
63328         Based mostly on patches from Prashant TR and Eli Zaretskii.
63329
63330         * lib/dirname.h (dir_name_r): Remove prototype.
63331
63332 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63333
63334         * m4/off_t-format.m4: Remove this file.
63335         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63336
63337 2000-12-06  Jim Meyering  <meyering@lucent.com>
63338
63339         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63340         replacement strtoull, we may well need the replacement strtoul, too.
63341         Check for declarations of strtoul and strtoull.
63342         Check for strtol.  Mainly as a cue to cause automake to include
63343         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63344         Check for limits.h -- strtol.c needs it.
63345
63346 2000-12-05  Jim Meyering  <meyering@lucent.com>
63347
63348         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63349
63350 2000-12-04  Jim Meyering  <meyering@lucent.com>
63351
63352         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63353         Also include memory.h, stdlib.h, unistd.h if appropriate.
63354         Reported by Andreas Jaeger (conflicting declaration of malloc).
63355
63356 2000-12-02  Jim Meyering  <meyering@lucent.com>
63357
63358         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63359         * m4/jm-macros.m4 (jm_MACROS): require it.
63360
63361 2000-12-02  Jim Meyering  <meyering@lucent.com>
63362
63363         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63364
63365 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63366
63367         * lib/memrchr.c: Include <config.h> before any system include file.
63368
63369 2000-11-30  Jim Meyering  <meyering@lucent.com>
63370
63371         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63372
63373 2000-11-30  Jim Meyering  <meyering@lucent.com>
63374
63375         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63376
63377 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63378
63379         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63380
63381 2000-11-26  Jim Meyering  <meyering@lucent.com>
63382
63383         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63384
63385 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63386
63387         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63388         size of (size_t) -1; it's not portable.
63389
63390 2000-11-17  Jim Meyering  <meyering@lucent.com>
63391
63392         * lib/strstr.c: Update from GNU libc.
63393
63394 2000-11-17  Akim Demaille  <akim@epita.fr>
63395
63396         * lib/obstack.h: Formatting changes.
63397         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63398         prevent type checking.
63399         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63400         cast the value to (void *): assigning a `foo *' to a `void *'
63401         variable is valid.
63402         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63403
63404 2000-11-16  Jim Meyering  <meyering@lucent.com>
63405
63406         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63407
63408 2000-11-11  Jim Meyering  <meyering@lucent.com>
63409
63410         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63411
63412 2000-11-10  Jim Meyering  <meyering@lucent.com>
63413
63414         * lib/obstack.h: Update from GNU libc.
63415         * lib/obstack.c: Likewise.
63416
63417 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63418
63419         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63420
63421 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63422
63423         * lib/getusershell.c (setusershell): Use rewind rather than
63424         fseek/fseeko, to avoid configuration hassles with fseeko.
63425         Don't bother opening SHELLS_FILE if shellstream is NULL;
63426         it's not necessary.
63427
63428 2000-11-05  Jim Meyering  <meyering@lucent.com>
63429
63430         * lib/makepath.h (make_dir): Declare.
63431         * lib/makepath.c (make_dir): Remove `static' attribute.
63432         Tweak a comment.
63433
63434 2000-11-04  Jim Meyering  <meyering@lucent.com>
63435
63436         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63437
63438 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63439
63440         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63441         last one in a bucket, advance to the next bucket.
63442
63443 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63444
63445         * lib/fnmatch.c: Do not comment out all the code if we are using
63446         the GNU C library, because in some cases we are replacing buggy
63447         code in the GNU C library itself.
63448
63449 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63450
63451         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63452         (regex_compile): Catch bogus \(\1\).
63453
63454 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63455
63456         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63457         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63458         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63459
63460 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63461
63462         * lib/error.h, getline.h, modechange.h:
63463         Remove "2000" from Copyright line, as the file hasn't been
63464         changed this year other than in the copyright notice.
63465
63466         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63467         was changed this year.
63468
63469 2000-10-29  Jim Meyering  <meyering@lucent.com>
63470
63471         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63472         renaming.
63473         * m4/ls-mntd-fs.m4: Likewise
63474
63475 2000-10-29  Jim Meyering  <meyering@lucent.com>
63476
63477         * lib/xstat.in: Fix grammar in comment.
63478
63479 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63480
63481         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63482         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63483         doesn't define __restrict_arr.
63484
63485 2000-10-28  Jim Meyering  <meyering@lucent.com>
63486
63487         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63488         (jm_PREREQ_MEMCHR): New function.
63489
63490 2000-10-28  Jim Meyering  <meyering@lucent.com>
63491
63492         * lib/memchr.c: Update from libc.
63493         Adjust for portability:
63494         [HAVE_STDLIB_H]: Include stdlib.h.
63495         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63496         Undef __memchr, too.
63497         [!weak_alias]: Define __memchr to memchr.
63498
63499         * lib/regex.c: Update from libc.
63500         * lib/regex.h: Likewise.
63501         * lib/getopt1.c: Likewise.
63502         * lib/memcmp.c: Likewise.
63503
63504         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63505         Avoid using fseek, when possible -- it's broken by design.
63506         Patch by Ulrich Drepper.
63507
63508 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63509
63510         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63511         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63512         Giving in to popular pressure to shut up the compiler with casts.
63513
63514 2000-10-26  Jim Meyering  <meyering@lucent.com>
63515
63516         * lib/strftime.c: Update from libc.
63517
63518 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63519
63520         * regex.c: More `unsigned char' -> `re_char' changes.
63521         Also change several `int' into `re_wchar_t'.
63522         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63523         (PUSH_FAILURE_POINTER): Don't cast any more.
63524         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63525         We want GCC to complain, since this piece of code makes
63526         re_match non-reentrant, which *should* be fixed.
63527         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63528         (EXTEND_BUFFER): Use RETALLOC.
63529         (SET_LIST_BIT): Don't cast.
63530         (re_wchar_t): New type.
63531         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63532         that those two functions will always properly return.
63533         (IMMEDIATE_QUIT_CHECK): Cast to void.
63534         (analyse_first): Use recursion rather than an explicit stack.
63535         (re_compile_fastmap): Can't fail anymore.
63536         (re_search_2): Don't check re_compile_fastmap for failure.
63537         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63538         Now also sets the new value (passed in a new argument).
63539         (re_match_2_internal): Use it.
63540         Also, use a new var `reg' of type size_t when looping through regs
63541         rather than reuse the inappropriate `mcnt'.
63542
63543 2000-10-25  Jim Meyering  <meyering@lucent.com>
63544
63545         * lib/obstack.c: Update from libc.
63546
63547 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63548
63549         * regex.c (regex_compile): Change the way of handling a range from
63550         a char less than 256 to a char not less than 256.
63551
63552 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63553
63554         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63555         NT-Emacs only.
63556         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63557         so that re_search functions only quit when callers expect them to.
63558
63559 2000-10-23  Jim Meyering  <meyering@lucent.com>
63560
63561         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63562         wrong.  That set_locale call must not have any side effects.
63563         From Paul Eggert.
63564
63565 2000-10-22  Jim Meyering  <meyering@lucent.com>
63566
63567         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63568         [CYCLIC]: Remove now-unused definition.
63569
63570         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63571         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63572         Suggestion from Ulrich Drepper.
63573
63574 2000-10-21  Jim Meyering  <meyering@lucent.com>
63575
63576         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63577         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63578         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63579
63580 2000-10-21  Jim Meyering  <meyering@lucent.com>
63581
63582         * lib/dirname.c (memrchr): Declare if necessary.
63583         (dir_name): Remove the restriction that there be no
63584         trailing slashes.  Now, this code skips past them, effectively
63585         ignoring them.
63586         [TEST_DIRNAME] (main): New unit tests.
63587
63588         * lib/memrchr.c: New file from GNU libc.
63589         Undef __memrchr, too.
63590         [!weak_alias]: Define __memrchr to memrchr.
63591         Guard weak_alias use with `#ifdef weak_alias'.
63592
63593 2000-10-21  Jim Meyering  <meyering@lucent.com>
63594
63595         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63596         (dir_name): Use dir_name_r.
63597         * lib/dirname.h (dir_name_r): Declare it.
63598
63599 2000-10-17  Jim Meyering  <meyering@lucent.com>
63600
63601         * lib/quote.h (PARAMS): Define and use.
63602         Reported by Akim Demaille.
63603
63604         * lib/getopt.c: Update from libc.
63605
63606 2000-10-16  Jim Meyering  <meyering@lucent.com>
63607
63608         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63609         setlocale.
63610         From Jan Fedak.
63611
63612 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63613
63614         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63615
63616 2000-09-25  Jim Meyering  <meyering@lucent.com>
63617
63618         * lib/md5.h (rol): Define (from GnuPG).
63619
63620         * lib/sha.c: Give credit (GnuPG) where due.
63621         (M): Use rol rather than open-coding it.
63622         Add a FIXME comment.
63623
63624 2000-09-21  Jim Meyering  <meyering@lucent.com>
63625
63626         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63627         Reported by Michael Stone.
63628
63629 2000-09-20  Jim Meyering  <meyering@lucent.com>
63630
63631         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63632         (noinst_HEADERS): Add sha.h.
63633         Based on code from Scott G. Miller and from GnuPG.
63634
63635 2000-09-18  Jim Meyering  <meyering@lucent.com>
63636
63637         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63638         LIBS. Otherwise, everyone ends up linking with -lelf for some
63639         configurations.
63640         Reported by Mike Stone.
63641
63642 2000-09-15  Jim Meyering  <meyering@lucent.com>
63643
63644         * lib/regex.c: Update from libc.
63645
63646 2000-09-10  Jim Meyering  <meyering@lucent.com>
63647
63648         * lib/getopt.c (_getopt_internal): Update from glibc.
63649
63650 2000-09-09  Jim Meyering  <meyering@lucent.com>
63651
63652         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63653         think it should be used as a general replacement for isascii.
63654         * lib/fnmatch.c: Likewise.
63655         * lib/mbswidth.c: Likewise
63656         * lib/regex.c: Likewise.
63657
63658         Don't use atoi.
63659         * lib/userspec.c: Include sys/param.h and limits.h.
63660         Include xstrtol.h.
63661         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63662         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63663         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63664         UID, GID.  Check range.
63665
63666 2000-09-06  Jim Meyering  <meyering@lucent.com>
63667
63668         * lib/getopt.c (_getopt_internal): Update from glibc.
63669
63670 2000-08-30  Jim Meyering  <meyering@lucent.com>
63671
63672         * lib/strftime.c: Merge in changes from GNU libc.
63673
63674 2000-08-26  Jim Meyering  <meyering@lucent.com>
63675
63676         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63677         * m4/fpending.m4: New file.
63678
63679 2000-08-26  Jim Meyering  <meyering@lucent.com>
63680
63681         * lib/closeout.c: Include "__fpending.h".
63682         (close_stdout_status): Return right away if there's nothing to flush.
63683
63684         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63685         * lib/__fpending.c: New file.
63686         * lib/__fpending.h: New file.
63687
63688 2000-08-20  Jim Meyering  <meyering@lucent.com>
63689
63690         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63691         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63692         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63693
63694 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63695
63696         Improve fileutils installation on systems where running
63697         programs (like install) can't be unlinked.
63698         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63699         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63700
63701 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63702
63703         Standardize on "memory exhausted" instead of "Memory exhausted"
63704         or "virtual memory exhausted".
63705         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63706         "virtual memory exhausted".
63707         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63708         our own message.
63709         * lib/userspec.c (parse_user_spec): Likewise.
63710         * lib/bumpalloc.h: comment fix
63711         * lib/same.c, userspec.c: Include xalloc.h.
63712
63713         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63714         not char *const and pointing to a constant array.
63715         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63716         (xrealloc): Comment fix.
63717
63718         * lib/userspec.c (parse_user_spec):
63719         Don't translate a message until just before returning,
63720         to avoid unnecessary translation.
63721
63722 2000-08-07  Jim Meyering  <meyering@lucent.com>
63723
63724         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63725         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63726         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63727         getgroups.c, gethostname.c, getopt.h, group-member.c,
63728         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63729         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63730         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63731         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63732         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63733         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63734         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63735         yesno.c: Back out Copyright date changes for each file with no change
63736         this year.  This eases coordination with other programs using the same
63737         source code modules.  From Paul Eggert.
63738
63739 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63740
63741         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63742         not char, for compatibility with glibc 2.1.3 strftime.c.
63743
63744 2000-08-03  Greg McGary  <greg@mcgary.org>
63745
63746         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63747         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63748         (EXTEND_BUFFER): Use them.
63749
63750 2000-08-01  Jim Meyering  <meyering@lucent.com>
63751
63752         * lib/dirname.c (ISSLASH): Define.
63753         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63754         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63755         both `\' and `/' may be use as path separators.
63756         Based on a patch from Prashant TR.
63757
63758 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63759
63760         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63761         slot vector a constant, since it might get modified.
63762
63763 2000-07-31  Jim Meyering  <meyering@lucent.com>
63764
63765         * lib/xmalloc.c: Use `virtual memory exhausted', not
63766         `Memory exhausted'.
63767         * lib/obstack.c (print_and_abort): Likewise.
63768
63769 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63770
63771         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63772         buffer, so that the caller can always quote one small
63773         component of a "memory exhausted" message in slot 0.
63774         From a suggestion by Jim Meyering.
63775
63776 2000-07-30  Jim Meyering  <meyering@lucent.com>
63777
63778         * lib/makepath.c (make_path): Quote the other instance, too.
63779
63780         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63781         (STATIC_BUF_SIZE): Define.
63782         (quotearg_n_options): Use only statically allocated storage when
63783         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63784         than STATIC_BUF_SIZE.
63785
63786 2000-07-29  Jim Meyering  <meyering@lucent.com>
63787
63788         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63789         * lib/dirname.c (dir_name): Likewise.
63790
63791         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63792         `/'.
63793
63794         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63795         (dir_name): Assert that there are no trailing slashes.
63796
63797 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63798
63799         * lib/mbswidth.h (mbswidth): Add a flags argument.
63800         (mbswidth): New declaration.
63801         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63802         * lib/mbswidth.c (mbswidth): Add a flags argument.
63803         (mbsnwidth): New function.
63804
63805 2000-07-24  Jim Meyering  <meyering@lucent.com>
63806
63807         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63808
63809 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63810
63811         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63812
63813 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63814
63815         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63816         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63817         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63818         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63819         invoke multibyte primitives.
63820
63821 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63822
63823         * lib/quotearg.c:
63824         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63825         so that mbstate_t is always defined.
63826
63827         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63828         be 1 in at least one GCC installation, and this configuration
63829         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63830         performance on hosts that have mbrtowc but have only unibyte
63831         locales, but I assume these hosts are rare.
63832
63833 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63834
63835         * lib/mbswidth.c (_XOPEN_SOURCE):
63836         Don't define; this causes problems on Solaris 7.
63837         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63838
63839 2000-07-23  Jim Meyering  <meyering@lucent.com>
63840
63841         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63842         too: getgrgid, getpwuid, getuid.
63843
63844 2000-07-23  Jim Meyering  <meyering@lucent.com>
63845
63846         * lib/basename.c (base_name): Add an assertion.
63847
63848 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63849
63850         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63851         shadow its mbsinit function.
63852
63853 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63854
63855         * lib/mbswidth.h: New file.
63856         * lib/mbswidth.c: New file.
63857         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63858         (noinst_HEADERS): Add mbswidth.h.
63859
63860 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63861
63862         * lib/config.charset: Add support for FreeBSD. Improve support for
63863         HP-UX and IRIX 6.
63864
63865 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63866
63867         * m4/mbswidth.m4: New file.
63868         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63869
63870 2000-07-15  Jim Meyering  <meyering@lucent.com>
63871
63872         * lib/makepath.c: Include quote.h.
63873         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63874         corresponding argument in a `quote (...)' call.
63875         Give better diagnostics.
63876
63877         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63878         (noinst_HEADERS): Add quote.h.
63879
63880         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63881         from tar's src/misc.c.
63882         * lib/quote.h: New file.  Prototypes for same.
63883
63884 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63885
63886         From a suggestion by Bruno Haible.
63887         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63888         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63889         to decide whether to define the BeOS workaround macro;
63890         this adjusts to the change to AC_MBSTATE_T.
63891
63892 2000-07-14  Jim Meyering  <meyering@lucent.com>
63893
63894         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63895         jm_AC_TYPE_UINTMAX_T.
63896
63897 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63898
63899         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63900
63901         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63902         quotearg_buffer_restyled): Add support for
63903         clocale_quoting_style.  Undo previous change to
63904         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63905         and "{RIGHT QUOTATION MARK}" msgids.
63906
63907 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63908
63909         From a suggestion by Bruno Haible.
63910         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63911         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63912         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63913         and mbstate_t, to a single-part test that simply defines mbstate_t.
63914         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63915         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63916
63917 2000-07-10  Jim Meyering  <meyering@lucent.com>
63918
63919         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63920
63921         * m4/gnu-source.m4: Output to confdefs.h directly.
63922         Suggestion from Akim Demaille.
63923
63924 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63925
63926         The old behavior of quoting `like this' doesn't look good with
63927         newer, ISO-style fonts.  See:
63928         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63929
63930         Instead, quote "like this" by default.  Let the translator
63931         tailor the locale-specific quoting behavior by providing
63932         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63933
63934         * lib/quotearg.c (N_): New macro.
63935         (gettext_default): New function.
63936         (quotearg_buffer_restyled): Use
63937         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63938         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63939
63940 2000-07-09  Jim Meyering  <meyering@lucent.com>
63941
63942         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63943         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63944
63945         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63946         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63947
63948 2000-07-09  Jim Meyering  <meyering@lucent.com>
63949
63950         * lib/Most files: Update copyright dates to include 2000.
63951
63952 2000-07-08  Jim Meyering  <meyering@lucent.com>
63953
63954         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63955         if not defined.
63956         (xgethostname): Remove now-unnecessary #ifdef.
63957         Move declaration of `err' into loop where it's used.
63958
63959 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63960         and Bruno Haible  <haible@clisp.cons.org>
63961
63962         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63963         only if the test for an object-type mbstate_t fails.  This
63964         prevents us from mistakenly reporting that mbstate_t is a
63965         system object type after we "#define mbstate_t int" to work
63966         around its lack.
63967
63968 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63969         and Bruno Haible  <haible@clisp.cons.org>
63970
63971         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63972
63973 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63974
63975         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63976         to strerror_r.
63977         Include <ctype.h> for use of isalpha.
63978
63979 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63980
63981         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63982         by allocating a larger buffer. Test the gethostname return value for
63983         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63984         returns an error and ENAMETOOLONG isn't defined.
63985
63986 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63987
63988         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63989         dimension.
63990
63991 2000-07-04  Jim Meyering  <meyering@lucent.com>
63992
63993         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63994         of the deprecated AC_CHECKING.
63995
63996 2000-07-04  Jim Meyering  <meyering@lucent.com>
63997
63998         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63999         Reported by Bruno Haible.
64000
64001 2000-07-04  Jim Meyering  <meyering@lucent.com>
64002
64003         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
64004         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
64005         lacks mbrtowc.
64006
64007 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64008
64009         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
64010         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
64011
64012 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64013         and Bruno Haible  <haible@clisp.cons.org>
64014
64015         * lib/quotearg.c (mbrtowc):
64016         Assign to *pwc, and return 1 only if result is nonzero.
64017         (iswprint): Use ISPRINT when substituting our own mbrtowc.
64018
64019 2000-07-03  Jim Meyering  <meyering@lucent.com>
64020
64021         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
64022
64023 2000-07-03  Jim Meyering  <meyering@lucent.com>
64024
64025         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
64026         This is necessary to get a definition of e.g., UTMP_FILE on
64027         HP-UX 10.20.
64028         From Bob Proulx.
64029
64030 2000-07-02  Jim Meyering  <meyering@lucent.com>
64031
64032         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
64033
64034         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
64035         AC_LIBOBJ(function_name).
64036         * m4/chown.m4: Likewise.
64037         * m4/fnmatch.m4: Likewise.
64038         * m4/ftruncate.m4: Likewise.
64039         * m4/getgroups.m4: Likewise.
64040         * m4/getline.m4: Likewise.
64041         * m4/group-member.m4: Likewise.
64042         * m4/jm-macros.m4: Likewise.
64043         * m4/lstat.m4: Likewise.
64044         * m4/malloc.m4: Likewise.
64045         * m4/memcmp.m4: Likewise.
64046         * m4/nanosleep.m4: Likewise.
64047         * m4/putenv.m4: Likewise.
64048         * m4/realloc.m4: Likewise.
64049         * m4/regex.m4: Likewise.
64050         * m4/stat.m4: Likewise.
64051         * m4/strftime.m4: Likewise.
64052
64053 2000-07-02  Jim Meyering  <meyering@lucent.com>
64054
64055         * lib/quotearg.c (mbstate_t): Don't define here.
64056
64057 2000-07-02  Jim Meyering  <meyering@lucent.com>
64058
64059         * lib/nanosleep.c (SIGCONT): Define if not already defined.
64060
64061 2000-07-01  Jim Meyering  <meyering@lucent.com>
64062
64063         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
64064
64065 2000-07-01  Jim Meyering  <meyering@lucent.com>
64066
64067         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
64068         problem.
64069
64070 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64071
64072         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
64073         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
64074
64075 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64076
64077         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
64078         per change in ../m4/ls-mntd-fs.m4.
64079         (read_filesystem_list): Ignore symbolic links.
64080
64081 2000-06-29  Jim Meyering  <meyering@lucent.com>
64082
64083         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
64084         for declaration of strcmp.
64085
64086         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
64087
64088         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
64089         Avoid warning by casting result to `char *' to remove `const'.
64090
64091 2000-06-28  Jim Meyering  <meyering@lucent.com>
64092
64093         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
64094         included by quotearg.c, for which we perform this test.  From
64095         Bruno Haible.
64096
64097 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64098
64099         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
64100         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
64101         <utmpx.h> exists, put readutmp.o into LIBOBJS.
64102
64103 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64104
64105         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
64106
64107 2000-06-26  Paul Eggert  <eggert@twinsun.com>
64108
64109         savedir now sets errno on failure and invokes xmalloc to get memory.
64110         Fix a couple of other minor bugs while we're at it.
64111
64112         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
64113         (NAMLEN): Remove macro.
64114         (malloc, realloc): Remove decls.
64115         (stpcpy): Likewise.
64116         ("xalloc.h"): Include.
64117         (NAME_SIZE_DEFAULT): New macro.
64118         (savedir): Use xmalloc / xrealloc to allocate memory.
64119         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
64120         Skip "" directory entries.
64121         Use strlen to calculate directory entry length, since the old method
64122         is rarely used these days and isn't worth supporting.
64123         Don't use a pointer after freeing it.
64124         Check for integer overflow when calculating allocation size.
64125         Use memcpy to copy entries, instead of stpcpy.
64126         Set errno properly when returning NULL.
64127         Check for readdir error.
64128
64129 2000-06-26  Jim Meyering  <meyering@lucent.com>
64130
64131         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
64132
64133 2000-06-25  Jim Meyering  <meyering@lucent.com>
64134
64135         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
64136         Linux header bug when _XOPEN_SOURCE is defined to 500.
64137
64138 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64139
64140         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
64141         deficiency.
64142
64143 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64144
64145         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
64146         Include xalloc.h.
64147         Don't include <stdlib.h>.  Don't declare malloc, realloc.
64148
64149 2000-06-24  Jim Meyering  <meyering@lucent.com>
64150
64151         * m4/strerror_r.m4: Revive this file -- to try out an experimental
64152         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
64153         for which strerror does return char*, but which lacks a conveniently
64154         accessible declaration of the function.  If the compile-test says
64155         strerror_r doesn't work, then resort to a `run'-test that works on
64156         BeOS and segfaults on DEC Unix.
64157
64158 2000-06-24  Jim Meyering  <meyering@lucent.com>
64159
64160         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
64161
64162 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64163
64164         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
64165         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
64166
64167 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64168
64169         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
64170         (mbrtowc, mbstate_t): Define substitutes if
64171         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
64172         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
64173         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
64174
64175 2000-06-23  Jim Meyering  <meyering@lucent.com>
64176
64177         * m4/afs.m4: Add missing AC_MSG_RESULT.
64178         Reported by Bruno Haible.
64179
64180         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
64181         Suggestion from Bruno Haible.
64182
64183 2000-06-23  Jim Meyering  <meyering@lucent.com>
64184
64185         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
64186
64187 2000-06-21  Jim Meyering  <meyering@lucent.com>
64188
64189         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
64190
64191 2000-06-21  Jim Meyering  <meyering@lucent.com>
64192
64193         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
64194         (noinst_HEADERS): Add getstr.h.
64195
64196         * lib/getline.c (getstr): Move into a separate file.
64197         * lib/getstr.c (getstr): New file, extracted from getline.c, with
64198         the following changes: new parameter, delim2; both delim[12]
64199         parameters have type `int', not `char'.  The latter would lose
64200         with 8-bit delimiters.
64201         * lib/getstr.h: New file.
64202
64203 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64204
64205         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
64206         than 1024, return a memory chunk of least possible size, instead
64207         of size PATH_MAX + 2. In the loop, increment the size proportionally.
64208         Use free/xmalloc instead of xrealloc to avoid copying for very long
64209         paths.
64210
64211 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64212
64213         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
64214         the empty string.
64215
64216 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64217
64218         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
64219         address, not strdup.  Include <stdlib.h> and don't declare free().
64220
64221 2000-06-19  Jim Meyering  <meyering@lucent.com>
64222
64223         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64224
64225 2000-06-18  Jim Meyering  <meyering@lucent.com>
64226
64227         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64228
64229         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64230         `checking whether...' message to be consistent with that of the
64231         lstat test.
64232
64233 2000-06-18  Jim Meyering  <meyering@lucent.com>
64234
64235         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64236         Besides, these days every porting target provides a mkdir function.
64237
64238         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64239         needed. (this snippet comes from src/system.h).
64240
64241 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64242
64243         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64244
64245 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64246
64247         * lib/human.c (adjust_value): New function.
64248         (human_readable_inexact): Apply rounding style even when
64249         printing approximate values.
64250
64251 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64252
64253         * lib/human.c (human_readable_inexact): Allow an input block
64254         size that is not a multiple of the output block size, and vice versa.
64255         Reported by Piergiorgio Sartor.
64256
64257 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64258
64259         * lib/getdate.y (get_date): Apply relative times after time
64260         zone indicator, not before.  Reported by Todd A. Jacobs.
64261
64262 2000-06-13  Jim Meyering  <meyering@lucent.com>
64263
64264         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64265
64266         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64267
64268 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64269
64270         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64271
64272 2000-06-12  Jim Meyering  <meyering@lucent.com>
64273
64274         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64275         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64276         optional argument.
64277         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64278         the optional argument, `lib'.
64279
64280 2000-06-08  Jim Meyering  <meyering@lucent.com>
64281
64282         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64283
64284 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64285
64286         Rewrite largefile configuration so that we don't need to run
64287         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64288         AC_CANONICAL_HOST in configure.in -- jmm]
64289
64290         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64291         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64292         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64293         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64294         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64295         All uses changed.
64296         Instead of inspecting the output of getconf, try to compile the
64297         test program without and with the macro definition.
64298         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64299         for getconf.  Instead, check for the needed flags by compiling
64300         test programs.
64301
64302 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64303
64304         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64305
64306 2000-06-04  Jim Meyering  <meyering@lucent.com>
64307
64308         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64309         SunOS 4.1.4 for which gid_t is an unsigned type.
64310
64311 2000-06-03  Jim Meyering  <meyering@lucent.com>
64312
64313         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64314         now that autoconf requires that.
64315
64316         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64317         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64318         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64319
64320 2000-06-03  Jim Meyering  <meyering@lucent.com>
64321
64322         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64323
64324 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64325
64326         * m4/glibc21.m4: New file.
64327         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64328
64329 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64330
64331         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64332         newer, don't install charset.alias.
64333         * lib/config.charset: Change the Linux/glibc rules so they become empty
64334         on glibc-2.1 or newer.
64335
64336 2000-06-02  Jim Meyering  <meyering@lucent.com>
64337
64338         * lib/mountlist.c: Back out last change.  Instead, do this...
64339         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64340         me_dummy member using the same `ignore'-testing code.
64341         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64342         fs_type strings.
64343         From Mark D. Roth.
64344
64345 2000-05-29  Jim Meyering  <meyering@lucent.com>
64346
64347         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64348         mounts with the `ignore' attribute.  Based on a patch from
64349         Mark D. Roth.
64350
64351 2000-05-28  Jim Meyering  <meyering@lucent.com>
64352
64353         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64354         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64355         * m4/stat.m4: Likewise.
64356         * m4/lstat.m4: Likewise.
64357         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64358
64359         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64360         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64361
64362 2000-05-26  Jim Meyering  <meyering@lucent.com>
64363
64364         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64365
64366 2000-05-24  Jim Meyering  <meyering@lucent.com>
64367
64368         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64369         autoconf requires that.
64370         * m4/lib-check.m4: Likewise.
64371         * m4/jm-macros.m4: Likewise.
64372         * m4/strftime.m4: Likewise.
64373
64374         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64375         AC_CHECK_DECLS, now that autoconf requires that.
64376
64377 2000-05-22  Jim Meyering  <meyering@lucent.com>
64378
64379         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64380         * m4/lstat.m4: Likewise.
64381
64382 2000-05-22  Jim Meyering  <meyering@lucent.com>
64383
64384         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64385
64386 2000-05-20  Jim Meyering  <meyering@lucent.com>
64387
64388         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64389         (jm_PREREQ): Use it.
64390
64391 2000-05-18  Jim Meyering  <meyering@lucent.com>
64392
64393         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64394         back, too, since it may have been modified by allocate_entry.
64395         (hash_delete): Rewrite to use neither the assignment operator
64396         nor the comma operator in an if-expression.
64397
64398 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64399
64400         * lib/closeout.c:
64401         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64402         Remove; no longer needed.
64403         "quotearg.h": Add include.
64404         (file_name): Do not bother to explicitly initialize to NULL; it's less
64405         efficient on some hosts.
64406         (close_stdout_status): Remove test as to whether stdout was already
64407         closed; it breaks for the case "echo x | sort >&-".
64408         Quote file name colons.
64409         Do not assume that _("write error") lacks format strings.
64410
64411 2000-05-15  Jim Meyering  <meyering@lucent.com>
64412
64413         * lib/version-etc.c (version_etc_copyright): Update the copyright
64414         string used in all --version output.
64415
64416 2000-05-14  Jim Meyering  <meyering@lucent.com>
64417
64418         * lib/closeout.c (close_stdout_set_file_name): New function.
64419         (close_stdout_status): Use new file-scoped global.
64420         Return right away if fstat says the stdout file descriptor is invalid.
64421         * lib/closeout.h (close_stdout_set_file_name): Declare.
64422
64423 2000-05-10  Jim Meyering  <meyering@lucent.com>
64424
64425         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64426         (close_stdout_set_status): New function.
64427         * lib/closeout.h (close_stdout_set_status): Declare.
64428
64429 2000-05-09  Jim Meyering  <meyering@lucent.com>
64430
64431         * m4/gettext.m4: Rename this...
64432         * m4/libintl.m4: ...to this.
64433
64434 2000-05-08  Jim Meyering  <meyering@lucent.com>
64435
64436         * lib/long-options.c: Don't include closeout.h.
64437         (parse_long_options): Don't call close_stdout for --version.
64438
64439 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64440
64441         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64442         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64443         2.1.3 bug.  This avoids a clash when files like regex.c define
64444         _GNU_SOURCE.
64445
64446 2000-05-06  Jim Meyering  <meyering@lucent.com>
64447
64448         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64449         (AC_REPLACE_FUNCS): Add strnlen.
64450
64451         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64452         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64453
64454         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64455         AC_SEARCH_LIBS call for nanosleep.
64456         (LIB_NANOSLEEP): Set and AC_SUBST.
64457
64458 2000-05-06  Jim Meyering  <meyering@lucent.com>
64459
64460         * lib/strnlen.c: Undefine __strnlen and strnlen.
64461         [!weak_alias]: Define __strnlen to strnlen.
64462
64463         * lib/atexit.c: New file, from libiberty.
64464
64465 2000-05-06  Jim Meyering  <meyering@lucent.com>
64466
64467         * lib/closeout.c (close_stdout_status): Also check for errors on the
64468         stderr stream.
64469
64470 2000-05-05  Jim Meyering  <meyering@lucent.com>
64471
64472         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64473         AC_SEARCH_LIBS call for clock_gettime.
64474         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64475
64476         * m4/search-libs.m4: Update from autoconf.
64477
64478         su doesn't work on Solaris 2.6.
64479         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64480         <shadow.h>.  Reported by Dragos Harabor.
64481
64482 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64483
64484         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64485         memcpy instead of xmalloc, xrealloc, path_concat.
64486         (locale_charset): Treat empty environment variables as absent.
64487         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64488
64489 2000-05-04  Jim Meyering  <meyering@lucent.com>
64490
64491         * lib/getopt.c: Update from glibc.
64492         * lib/obstack.c: Likewise.
64493         * lib/obstack.h: Likewise.
64494         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64495         file
64496
64497         * lib/regex.h: Likewise.
64498         * lib/strndup.c: Likewise.
64499         * lib/strnlen.c: New file, from glibc.
64500
64501 2000-05-03  Jim Meyering  <meyering@lucent.com>
64502
64503         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64504
64505 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64506
64507         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64508         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64509         compile-time test, rather than inspecting host and OS, to
64510         decide whether to define _LARGEFILE_SOURCE.
64511
64512 2000-05-01  Jim Meyering  <meyering@lucent.com>
64513
64514         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64515
64516         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64517         Based on a patch from Bruno Haible.
64518
64519 2000-05-01  Jim Meyering  <meyering@lucent.com>
64520
64521         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64522
64523 2000-04-29  Jim Meyering  <meyering@lucent.com>
64524
64525         * lib/path-concat.c: Declare strdup only if it's not defined.
64526         * lib/canon-host.c: Likewise.
64527
64528 2000-04-28  Jim Meyering  <meyering@lucent.com>
64529
64530         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64531         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64532         is included first, then limits.h is included by locale.h by libintl.h.
64533         From John David Anglin.
64534
64535 2000-04-25  Jim Meyering  <meyering@lucent.com>
64536
64537         * lib/makepath.c (S_IRWXUGO): Define.
64538         (make_path): Always perform explicit chmod if MODE specifies any
64539         of the `special' permission bits.  Prompted by a bug report against
64540         install from Mate Wierdl and Joost van Baal.
64541
64542 2000-04-18  Jim Meyering  <meyering@lucent.com>
64543
64544         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64545         (jm_PREREQ): Use it.
64546
64547 2000-04-18  Jim Meyering  <meyering@lucent.com>
64548
64549         * lib/README: New file.
64550
64551         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64552         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64553
64554 2000-04-17  Jim Meyering  <meyering@lucent.com>
64555
64556         Get it right :-)
64557         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64558         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64559         Suggestion from Akim Demaille.
64560
64561 2000-04-17  Jim Meyering  <meyering@lucent.com>
64562
64563         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64564         the definition of it to rpl_strftime also defined-away the system's
64565         declaration.
64566
64567 2000-04-15  Jim Meyering  <meyering@lucent.com>
64568
64569         Use `C' to denote so-called `contiguous' files, the same way
64570         that tar does.
64571         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64572         (ftypelet): Use S_ISCTG.
64573         From Michael Deutschmann.
64574
64575 2000-04-14  Jim Meyering  <meyering@lucent.com>
64576
64577         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64578         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64579         clobbered.
64580
64581 2000-04-14  Jim Meyering  <meyering@lucent.com>
64582
64583         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64584
64585 2000-04-13  Jim Meyering  <meyering@lucent.com>
64586
64587         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64588         AH_VERBATIM to insert required #ifndef into config.h.in.
64589         Suggestion from Akim Demaille.
64590
64591 2000-04-12  Jim Meyering  <meyering@lucent.com>
64592
64593         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64594         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64595         Christian Krackowizer.
64596
64597         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64598         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64599         (AC_SYS_LARGEFILE): Require.
64600         (AM_C_PROTOTYPES): Require.
64601
64602 2000-04-08  Jim Meyering  <meyering@lucent.com>
64603
64604         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64605         names don't conflict.  Reported by Eli Zaretskii.
64606
64607 2000-04-07  Jim Meyering  <meyering@lucent.com>
64608
64609         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64610         sys/types.h, to work around system header problems on AIX 3.2.5.
64611         From Bruno Haible.
64612
64613 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64614
64615         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64616         bug.  Deal with the different error behavior of Irix iconv.
64617
64618 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64619
64620         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64621         IRIX if the installer said otherwise.
64622
64623 2000-04-05  Jim Meyering  <meyering@lucent.com>
64624
64625         Portability tweaks required for ultrix4.3.
64626         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64627         (jm_CHECK_DECLS): Add getutent to the list of functions.
64628         (_jm_DECL_HEADERS): Add utmpx.h.
64629         From John David Anglin.
64630
64631         * m4/strftime.m4: Back out the 2000-04-02 change.
64632         Instead of that change, simply undefine putenv in the test program.
64633
64634 2000-04-05  Jim Meyering  <meyering@lucent.com>
64635
64636         Portability tweaks required for ultrix4.3.
64637         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64638         getutent.
64639         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64640         * lib/canon-host.c: Declare strdup.
64641         * lib/path-concat.c: Likewise.
64642         From John David Anglin.
64643
64644 2000-04-04  Jim Meyering  <meyering@lucent.com>
64645
64646         Be more DOS 8.3-friendly.
64647         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64648         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64649         * lib/Makefile.am: Reflect renaming.
64650         Reported by Eli Zaretskii.
64651
64652         Use a temporary file name that won't clash with `charset.alias'
64653         in the DOS 8.3 name space.
64654         * lib/Makefile.am (charset_tmp): Define.
64655         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64656         (uninstall-local): Likewise.
64657         Reported by Eli Zaretskii.
64658
64659 2000-04-03  Jim Meyering  <meyering@lucent.com>
64660
64661         * m4/gettext.m4: Fix typo in comment.
64662
64663         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64664         textutils/configure.in).  Suggestion from Paul Eggert.
64665         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64666
64667 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64668
64669         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64670         variable in the shell rather than using putenv, which isn't
64671         portable.  This avoids the configure-time inter-test dependency
64672         on the potentially-renamed putenv function.
64673
64674 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64675
64676         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64677         before checking struct stat.st_blksize, so that
64678         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64679
64680 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64681
64682         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64683         since strftime.c uses HAVE_STRFTIME to decide whether to use
64684         the underlying strftime.
64685
64686 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64687
64688         * lib/time/strftime.c (my_strftime): Make sure we call the system
64689         strftime, not ourselves, when invoking the underlying strftime.
64690
64691 2000-03-24  Jim Meyering  <meyering@lucent.com>
64692
64693         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64694         (charset_alias): Define.
64695         (install-exec-local): Factor out common code.
64696         (uninstall-local): Split lines longer than 80.
64697         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64698         (SUFFIXES): Define.
64699         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64700         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64701
64702 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64703
64704         * lib/config.charset: Output a line containing "Packages using this
64705         file".
64706         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64707         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64708         ref-del.sed): New rules.
64709
64710 2000-03-17  Jim Meyering  <meyering@lucent.com>
64711
64712         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64713         Otherwise, include <strings.h>
64714
64715 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64716
64717         * lib/unicodeio.c (utf8_wctomb): New function.
64718         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64719         format instead of in UCS-4 with platform dependent endianness.
64720
64721 2000-03-10  Jim Meyering  <meyering@lucent.com>
64722
64723         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64724         From Marco Franzen.
64725
64726 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64727
64728         * lib/savedir.c (savedir): Work even if directory size is
64729         negative; this can happen with some screwy NFS configurations.
64730
64731 2000-03-06  Jim Meyering  <meyering@lucent.com>
64732
64733         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64734         if it's NULL (because we ran out of memory).  From Bruno Haible.
64735
64736 2000-03-05  Jim Meyering  <meyering@lucent.com>
64737
64738         * lib/localcharset.c ("path-concat.h"): Include.
64739         (get_charset_aliases): Use path_concat instead of ANSI string
64740         concatenation.
64741
64742         * lib/unicodeio.h (PARAMS): Define.
64743         Use it to guard prototype.
64744
64745 2000-03-04  Jim Meyering  <meyering@lucent.com>
64746
64747         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64748         for lib/localcharset.c.
64749
64750 2000-03-04  Jim Meyering  <meyering@lucent.com>
64751
64752         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64753         installing into it.
64754         (uninstall-local): Uncomment this rule so `make distcheck' works
64755         once again.
64756
64757         * lib/unicodeio.c (<errno.h>): Include it.
64758         (errno): Declare if not defined.
64759
64760         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64761
64762         * lib/config.charset: New version, incorporating remarks from a linux
64763         i18n mailing list.  From Bruno Haible.
64764
64765 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64766
64767         * m4/codeset.m4: New file.
64768         * m4/iconv.m4: New file.
64769         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64770
64771 2000-03-03  Jim Meyering  <meyering@lucent.com>
64772
64773         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64774
64775 2000-03-02  Jim Meyering  <meyering@lucent.com>
64776
64777         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64778         the messages come out on separate lines.
64779
64780         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64781         rather than jm_CHECK_DECLARATIONS.
64782         * m4/decl.m4: Remove now-unused file.
64783
64784         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64785         geteuid.
64786
64787 2000-03-02  Jim Meyering  <meyering@lucent.com>
64788
64789         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64790
64791 2000-03-01  Jim Meyering  <meyering@lucent.com>
64792
64793         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64794         * lib/unicodeio.c: Likewise.
64795
64796 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64797
64798         * lib/config.charset: New file.
64799         * lib/localcharset.c: New file.
64800         * lib/unicodeio.h, lib/unicodeio.c: New files.
64801         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64802         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64803         (noinst_HEADERS): Add unicodeio.h.
64804         (all-local, install-exec-local, charset.alias): New targets.
64805
64806 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64807
64808         * lib/quotearg.c (ALERT_CHAR): New macro.
64809         (quotearg_buffer_restyled): Use it.
64810
64811 2000-02-27  Jim Meyering  <meyering@lucent.com>
64812
64813         * m4/check-decl.m4: Add getenv to the list.
64814
64815 2000-02-27  Jim Meyering  <meyering@lucent.com>
64816
64817         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64818         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64819
64820         * lib/backupfile.c: Guard inclusion of stdlib.h with
64821         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64822         Declare malloc if needed.
64823
64824         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64825         `#ifndef HAVE_DECL..'
64826         now that autoconf always defines the HAVE_DECL_ symbols.
64827         * lib/human.c: Likewise.
64828         * lib/same.c: Likewise.
64829         * lib/strtoumax.c: Likewise.
64830
64831         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64832         declaration check was not run.
64833         * lib/hash.c: Likewise.
64834         * lib/human.c: Likewise.
64835         * lib/same.c: Likewise.
64836         * lib/strtoumax.c: Likewise.
64837
64838         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64839         `.', then first look up the entire `.'-containing string as a login
64840         name.
64841
64842 2000-02-23  Jim Meyering  <meyering@lucent.com>
64843
64844         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64845         in place of my hack.
64846
64847 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64848
64849         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64850         (textint): New typedef.
64851         (parser_control): Member year changed from int to textint.
64852         All uses changed.
64853         (YYSTYPE): Removed; replaced by %union with int and textint members.
64854         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64855         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64856         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64857         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64858         (date, number, to_year): Use width of number in digits, not its value,
64859         to determine whether it's a 2-digit year, or a 2-digit time.
64860         (yylex): Store number of digits of numeric tokens.
64861         Reported by John Kendall.
64862
64863         (parser_control): Changed from struct parser_control to typedef (for
64864         consistency).  All uses changed.
64865
64866         (tID): Removed; not used.
64867         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64868
64869 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64870
64871         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64872         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64873
64874 2000-02-12  Jim Meyering  <meyering@lucent.com>
64875
64876         * lib/userspec.c (ISDIGIT): Define it.
64877         (isdigit): Remove definition.
64878         (is_number): Use ISDIGIT, not isdigit.
64879         <libintl.h>: Include.
64880         (_ and N_): Define.
64881         (parse_user_spec): Mark translatable strings.
64882
64883 2000-02-10  Jim Meyering  <meyering@lucent.com>
64884
64885         With these changes, nanosleep.[ch] are finally enough like the other
64886         lib/* replacement files to compile on a few more losing systems.
64887
64888         * lib/nanosleep.h: Don't include config.h.
64889         Remove prototype from declaration of nanosleep.
64890         (PARAMS): Remove now-unneeded definition.
64891         * lib/nanosleep.c: #undef nanosleep.
64892         (rpl_nanosleep): Rename from nanosleep.
64893
64894 2000-02-10  Jim Meyering  <meyering@lucent.com>
64895
64896         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64897         gnu_nanosleep to rpl_nanosleep.
64898
64899 2000-02-09  Jim Meyering  <meyering@lucent.com>
64900
64901         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64902         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64903
64904 2000-02-08  Akim Demaille  <akim@epita.fr>
64905
64906         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64907         `[' and `]' and remove uses of `changequote'.
64908         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64909         (AC_SYS_LARGEFILE): Likewise.
64910         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64911         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64912         of changequote.
64913         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64914         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64915         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64916         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64917
64918 2000-02-05  Jim Meyering  <meyering@lucent.com>
64919
64920         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64921         Remove explicit use of AC_HEADER_TIME.  It is required by
64922         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64923         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64924         in autoconf whereby the expansion of the latter ended up preceding
64925         the expansion of its prerequisite, AC_HEADER_TIME.
64926         Reported by Volker Borchert.
64927
64928 2000-02-03  Jim Meyering  <meyering@lucent.com>
64929
64930         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64931
64932 2000-02-03  Jim Meyering  <meyering@lucent.com>
64933
64934         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64935         rather than with `#if HAVE_UTMPNAME'.
64936
64937 2000-02-02  Jim Meyering  <meyering@lucent.com>
64938
64939         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64940         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64941         Reported by Eli Zaretskii.
64942
64943 2000-02-01  Jim Meyering  <meyering@lucent.com>
64944
64945         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64946
64947 2000-01-31  Jim Meyering  <meyering@lucent.com>
64948
64949         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64950         functions.  Add the time.h and sys/time.h headers along with the
64951         AC_REQUIRE'ment of AC_HEADER_TIME.
64952
64953 2000-01-31  Jim Meyering  <meyering@lucent.com>
64954
64955         * lib/nanosleep.h (nanosleep): Guard declaration with
64956         `#if ! HAVE_DECL_NANOSLEEP'.
64957         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64958         the declaration in that vendor's sys/timers.h.
64959         Reported by Christian Krackowizer.
64960
64961         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64962         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64963         (ISPRINT): Likewise.
64964         Reported by Tom Tromey.
64965
64966 2000-01-30  Jim Meyering  <meyering@lucent.com>
64967
64968         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64969
64970         * m4/prereq.m4 (utmp_includes): Define.
64971         Check for ut_user and ut_name members in both struct utmpx
64972         and struct utmp.
64973
64974 2000-01-30  Jim Meyering  <meyering@lucent.com>
64975
64976         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64977         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64978         header files where only utmpx.ut_user is declared.
64979
64980         * lib/readutmp.h (UT_USER): Define.
64981
64982 2000-01-29  Jim Meyering  <meyering@lucent.com>
64983
64984         * m4/lib-check.m4: New file containing library-related checks from
64985         fileutils and sh-utils (textutils had none).
64986
64987 2000-01-28  Jim Meyering  <meyering@lucent.com>
64988
64989         * m4/perl.m4: Change format of warning message to look more like that
64990         from the missing script.  Suggestion from François Pinard.
64991
64992 2000-01-25  Jim Meyering  <meyering@lucent.com>
64993
64994         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64995         well as time.h in the compile check.
64996         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64997         Fix typo in cross-compiling case: s/yes/no/.
64998
64999 2000-01-23  Jim Meyering  <meyering@lucent.com>
65000
65001         * m4/jm-macros.m4: Move df-related tests here from
65002         fileutils/configure.in
65003
65004         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
65005         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
65006
65007         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
65008         s/space/ac_fsusage_space/.
65009         (jm_FILE_SYSTEM_USAGE): Take two parameters.
65010
65011         * m4/ftruncate.m4: New file (derived from part of
65012         fileutils/configure.in).
65013         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
65014         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
65015
65016         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
65017         AC_SUBST these here, rather than just in sh-util/configure.in, so
65018         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
65019         all the same.
65020         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
65021         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
65022         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
65023         (AC_SUBST(POW_LIBM)): Likewise.
65024         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
65025
65026 2000-01-23  Jim Meyering  <meyering@lucent.com>
65027
65028         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
65029         obstack.c.
65030
65031 2000-01-22  Jim Meyering  <meyering@lucent.com>
65032
65033         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
65034
65035         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
65036
65037         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
65038         configure.in
65039         (AC_CHECK_HEADERS): Likewise for sh-utils.
65040         (AC_CHECK_HEADERS): Likewise for textutils.
65041         Merge the three lists of headers.
65042
65043         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
65044         from fileutils' configure.in.
65045
65046         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
65047         code. Moved tests into their own function (_jm_DECL_HEADERS) in
65048         check-decl.m4.
65049
65050         * m4/check-decl.m4: Use #if rather than #ifdef.
65051         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
65052         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
65053         (_jm_DECL_HEADERS): Define new function.
65054         (jm_CHECK_DECLARATIONS): Require it.
65055
65056 2000-01-22  Jim Meyering  <meyering@lucent.com>
65057
65058         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
65059         [! HAVE_DECL_STRTOULL]: Declare strtoull.
65060         Required for some AIX systems.  Reported by Christian Krackowizer.
65061         [TESTING] (main): New function.
65062
65063         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
65064         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
65065         letters.
65066
65067         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
65068         iswprint.
65069
65070         * lib/strverscmp.c (ISDIGIT): Define.
65071         (strverscmp): Use ISDIGIT, not isdigit.
65072
65073 2000-01-19  Jim Meyering  <meyering@lucent.com>
65074
65075         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
65076         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
65077         defines `struct timespec' in <sys/time.h>
65078
65079         * m4/c-bs-a.m4: Remove uses of changequote altogether.
65080         Thanks to Akim for explaining.
65081
65082 2000-01-17  Paul Eggert  <eggert@twinsun.com>
65083
65084         * lib/nanosleep.c (nanosleep):
65085         Don't use SA_INTERRUPT to decide whether to call sigaction, as
65086         POSIX.1 doesn't require SA_INTERRUPT and some systems
65087         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
65088         it's been part of POSIX.1 since day 1 (in 1988).
65089
65090 2000-01-17  Jim Meyering  <meyering@lucent.com>
65091
65092         * lib/interlock: Remove unused file.  Reported by François Pinard.
65093
65094 2000-01-16  Paul Eggert  <eggert@twinsun.com>
65095
65096         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
65097         alert, backslash, formfeed, and vertical tab unnecessarily in
65098         shell quoting style.
65099
65100 2000-01-16  Jim Meyering  <meyering@lucent.com>
65101
65102         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
65103         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
65104         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
65105         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
65106
65107 2000-01-16  Jim Meyering  <meyering@lucent.com>
65108
65109         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
65110         because the latter didn't work.
65111
65112 2000-01-15  Jim Meyering  <meyering@lucent.com>
65113
65114         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
65115         (AC_REPLACE_FUNCS): Add memcpy and memset.
65116         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
65117         Add strpbrk.
65118         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
65119
65120 2000-01-12  Jim Meyering  <meyering@lucent.com>
65121
65122         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
65123         (jm_PREREQ): Use it.
65124         (jm_PREREQ_READUTMP): New macro.
65125         (jm_PREREQ): Use it.
65126
65127 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65128
65129         Quote multibyte characters correctly.
65130         * m4/c-bs-a.m4: New file.
65131         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
65132         (jm_PREREQ): Use it.
65133
65134 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65135
65136         * m4/uintmax_t.m4: Port to autoconf 2.13.
65137
65138 2000-01-08  Jim Meyering  <meyering@ascend.com>
65139
65140         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
65141         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
65142
65143 2000-01-04  Jim Meyering  <meyering@ascend.com>
65144
65145         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
65146         jm_STRUCT_DIRENT_D_TYPE.
65147         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
65148         jm_STRUCT_DIRENT_D_INO.
65149         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
65150         jm_STRUCT_UTIMBUF.
65151         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
65152         renamings.
65153         * m4/utime.m4: Likewise.
65154
65155         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
65156         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
65157
65158 2000-01-03  Paul Eggert  <eggert@twinsun.com>
65159
65160         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
65161         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
65162
65163 2000-01-02  Jim Meyering  <meyering@ascend.com>
65164
65165         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
65166         remember if this is necessary.
65167
65168 1999-12-26  Jim Meyering  <meyering@ascend.com>
65169
65170         * m4/jm-macros.m4: Use it here.
65171         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
65172
65173 1999-12-23  Jim Meyering  <meyering@ascend.com>
65174
65175         * m4/jm-macros.m4: Check for clock_gettime (moved from
65176         fileutils/configure.in)
65177         Check for gettimeofday.
65178
65179 1999-12-20  Jim Meyering  <meyering@ascend.com>
65180
65181         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
65182         autoconf-2.14a-1999-12-20.
65183
65184 1999-12-19  Jim Meyering  <meyering@ascend.com>
65185
65186         * m4/lstat-slash.m4: New file.
65187         * m4/jm-macros.m4: Use the new macro:
65188         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65189
65190 1999-12-07  Jim Meyering  <meyering@ascend.com>
65191
65192         * m4/perl.m4: Require that File::Compare be available, too.
65193         Too many systems seem to lack it.
65194
65195         * m4/strftime.m4: Add checks for most of the cpp macros tested in
65196         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
65197
65198 1999-11-18  Paul Eggert  <eggert@twinsun.com>
65199
65200         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
65201         problem with the QNX 4.25 shell, which doesn't propagate exit
65202         status of failed commands inside shell assignments.
65203
65204 1999-11-17  Jim Meyering  <meyering@ascend.com>
65205
65206         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
65207
65208 1999-11-07  Jim Meyering  <meyering@ascend.com>
65209
65210         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
65211
65212 1999-11-06  Jim Meyering  <meyering@ascend.com>
65213
65214         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
65215         * m4/jm-macros.m4 (jm_MACROS): Use it here.
65216
65217 1999-11-05  Jim Meyering  <meyering@ascend.com>
65218
65219         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
65220         configure.in of textutils, fileutils, and sh-utils into this one
65221         (shared between those packages) file.
65222         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65223         AC_STRUCT_ST_BLKSIZE.
65224
65225 1999-11-03  Jim Meyering  <meyering@ascend.com>
65226
65227         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65228         of AC_CHECK_TYPE checks includes unistd.h.
65229         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65230         Suggestion from Akim Demaille.
65231
65232 1999-10-30  Jim Meyering  <meyering@ascend.com>
65233
65234         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65235         m4-quoted string.
65236         * m4/ls-mntd-fs.m4: Likewise.
65237         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65238         * m4/jm-winsz1.m4: Likewise.
65239
65240         * m4/const.m4: Remove file, since the fix made it into the experimental
65241         version of autoconf.
65242         * m4/mktime.m4: Likewise.
65243
65244         * m4/check-type.m4: Remove file, now that the latest version of
65245         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65246
65247         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65248         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65249         AC_CHECK_TYPE.
65250
65251 1999-10-04  Jim Meyering  <meyering@ascend.com>
65252
65253         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65254
65255 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65256
65257         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65258         2.95.1 bug with HP-UX 10.20.
65259
65260 1999-09-17  Jim Meyering  <meyering@ascend.com>
65261
65262         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65263         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65264         due to missing strdup (against sh-utils-2.0).
65265
65266 1999-08-29  Jim Meyering  <meyering@ascend.com>
65267
65268         * m4/jm-macros.m4: Require jm_BISON.
65269         * m4/bison.m4: New file.
65270
65271 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65272
65273         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65274         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65275
65276 1999-08-05  Jim Meyering  <meyering@ascend.com>
65277
65278         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65279         to avoid conflicts with `conftest' on 8+3 filesystems.
65280         Suggestion from Eli Zaretskii.
65281
65282 1999-08-04  Jim Meyering  <meyering@ascend.com>
65283
65284         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65285         fileutils and sh-utils (textutils's getline test was inadequate).
65286         (AM_FUNC_GETLINE): Run this test.
65287         (AC_CHECK_FUNCS): Check for getdelim.
65288         Reported by Bob Proulx.
65289
65290 1999-08-02  Jim Meyering  <meyering@ascend.com>
65291
65292         * m4/jm-macros.m4: Add a comment.
65293
65294 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65295
65296         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65297         <inttypes.h> defines strtoumax as a macro (and not as a
65298         function).
65299
65300 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65301
65302         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65303         that we can shift, multiply and divide unsigned long long
65304         values; Ultrix cc can't do it.
65305
65306 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65307
65308         * m4/mktime.m4: New file, which is a preview of what should appear
65309         in the next public autoconf release.
65310
65311 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65312
65313         * m4/lfs.m4: Remove this file.
65314         * m4/largefile.m4: New file.  It contains the old contents of
65315         lfs.m4, except that all names with prefix AC_LFS have been
65316         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65317         compatible with future autoconf versions.  Also, some minor m4
65318         quoting problems have been fixed.
65319
65320 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65321
65322         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65323         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65324         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65325         and simplify the shell code.
65326
65327 1999-08-01  Jim Meyering  <meyering@ascend.com>
65328
65329         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65330         m4.
65331
65332 1999-07-20  Jim Meyering  <meyering@ascend.com>
65333
65334         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65335
65336 1999-07-15  Jim Meyering  <meyering@ascend.com>
65337
65338         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65339
65340 1999-05-22  Jim Meyering  <meyering@ascend.com>
65341
65342         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65343
65344 1999-05-20  Jim Meyering  <meyering@ascend.com>
65345
65346         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65347         Add a colon after each `then' in case $4 is empty.
65348
65349 1999-05-16  Jim Meyering  <meyering@ascend.com>
65350
65351         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65352
65353 1999-05-10  Jim Meyering  <meyering@ascend.com>
65354
65355         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65356
65357         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65358         AC_FUNC_MKTIME.
65359
65360 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65361
65362         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65363
65364 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65365
65366         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65367         not CPPFLAGS, so that linking works correctly in IRIX.
65368
65369 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65370
65371         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65372
65373 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65374
65375         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65376         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65377         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65378         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65379         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65380
65381         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65382
65383 1999-04-20  Jim Meyering  <meyering@ascend.com>
65384
65385         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65386         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65387         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65388
65389 1999-04-18  Jim Meyering  <meyering@ascend.com>
65390
65391         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65392         * m4/jm-macros.m4: Use it.
65393
65394 1999-04-06  Jim Meyering  <meyering@ascend.com>
65395
65396         * m4/strftime.m4: Remove test for %f.
65397
65398 1999-03-29  Jim Meyering  <meyering@ascend.com>
65399
65400         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65401         superset of the AC_TYPE_* checks in the textutils, fileutils,
65402         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65403         AC_TYPE_PID_T.
65404
65405 1999-03-28  Jim Meyering  <meyering@ascend.com>
65406
65407         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65408         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65409         replaced e.g., in the *.sh files of the sh-utils.
65410
65411 1999-03-20  Jim Meyering  <meyering@ascend.com>
65412
65413         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65414         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65415         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65416
65417 1999-03-19  Jim Meyering  <meyering@ascend.com>
65418
65419         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65420
65421 1999-03-12  Jim Meyering  <meyering@ascend.com>
65422
65423         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65424
65425 1999-03-07  Jim Meyering  <meyering@ascend.com>
65426
65427         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65428         declared.
65429
65430 1999-02-17  Jim Meyering  <meyering@ascend.com>
65431
65432         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65433         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65434
65435 1999-02-07  Jim Meyering  <meyering@ascend.com>
65436
65437         * m4/group-member.m4: New file -- extracted from sh-utils'
65438         configure.in.
65439
65440         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65441         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65442
65443 1999-02-06  Jim Meyering  <meyering@ascend.com>
65444
65445         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65446         * m4/fnmatch.m4: Likewise.
65447         * m4/getgroups.m4: Likewise.
65448         * m4/lstat.m4: Likewise.
65449         * m4/malloc.m4: Likewise.
65450         * m4/putenv.m4: Likewise.
65451         * m4/realloc.m4: Likewise.
65452         * m4/regex.m4: Likewise.
65453         * m4/stat.m4: Likewise.
65454         * m4/strftime.m4: Likewise.
65455         Suggestion from Alain Magloire.
65456
65457         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65458         * m4/fnmatch.m4: Likewise.
65459         * m4/getgroups.m4: Likewise.
65460         * m4/getline.m4: Likewise.
65461         * m4/lstat.m4: Likewise.
65462         * m4/malloc.m4: Likewise.
65463         * m4/memcmp.m4: Likewise.
65464         * m4/putenv.m4: Likewise.
65465         * m4/realloc.m4: Likewise.
65466         * m4/regex.m4: Likewise.
65467         * m4/stat.m4: Likewise.
65468         * m4/strftime.m4: Likewise.
65469         Suggestion from Alain Magloire.
65470
65471         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65472         an argument.
65473
65474         * m4/regex.m4: Add a run-time Test for proper operation of
65475         re_compile_pattern.
65476
65477 1999-01-31  Jim Meyering  <meyering@ascend.com>
65478
65479         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65480
65481 1999-01-30  Jim Meyering  <meyering@ascend.com>
65482
65483         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65484
65485         * m4/jm-mktime.m4: Make this a wrapper around the official
65486         AM_FUNC_MKTIME rather than my private copy, now that the official one
65487         is up to date.
65488         * m4/mktime.m4: Remove file.
65489
65490         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65491         * m4/uptime.m4: Likewise.
65492         * m4/uintmax_t.m4: Likewise.
65493
65494 1999-01-28  Jim Meyering  <meyering@ascend.com>
65495
65496         * m4/jm-macros.m4: Use jm_AFS.
65497         * m4/afs.m4: New file (from fileutils' configure.in).
65498
65499         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65500         * m4/chown.m4: Likewise.
65501         * m4/d-ino.m4: Likewise.
65502         * m4/d-type.m4: Likewise.
65503         * m4/fnmatch.m4: Likewise.
65504         * m4/getgroups.m4: Likewise.
65505         * m4/gettext.m4: Likewise.
65506         * m4/jm-mktime.m4: Likewise.
65507         * m4/jm-winsz2.m4: Likewise.
65508         * m4/lcmessage.m4: Likewise.
65509         * m4/ls-mntd-fs.m4: Likewise.
65510         * m4/malloc.m4: Likewise.
65511         * m4/memcmp.m4: Likewise.
65512         * m4/putenv.m4: Likewise.
65513         * m4/realloc.m4: Likewise.
65514         * m4/st_mtim.m4: Likewise.
65515         * m4/strftime.m4: Likewise.
65516
65517 1999-01-16  Jim Meyering  <meyering@ascend.com>
65518
65519         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65520         (ARGMATCH_DIE_DECL): Define.
65521
65522 1999-01-12  Jim Meyering  <meyering@ascend.com>
65523
65524         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65525         Reported by Lars Hecking.
65526
65527 1999-01-10  Jim Meyering  <meyering@ascend.com>
65528
65529         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65530         gross kludge.
65531         * m4/inttypes_h.m4: Likewise.
65532         * m4/lstat.m4: Likewise.
65533         * m4/malloc.m4: Likewise.
65534         * m4/readdir.m4: Likewise.
65535         * m4/realloc.m4: Likewise.
65536         * m4/st_dm_mode.m4: Likewise.
65537         * m4/stat.m4: Likewise.
65538         * m4/utimbuf.m4: Likewise.
65539         * m4/utimes.m4: Likewise.
65540
65541         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65542         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65543         comments in config.h.in are meaningful.
65544
65545         * m4/jm-macros.m4: Require autoconf-2.13 here.
65546
65547         * m4/regex.m4: By default, don't use the included regex.c on systems
65548         with glibc 2.  Suggestion from Uli Drepper.
65549
65550 1999-01-02  Jim Meyering  <meyering@ascend.com>
65551
65552         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65553
65554 1998-12-18  Jim Meyering  <meyering@ascend.com>
65555
65556         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65557         Based on a suggestion from Lars Hecking.
65558
65559 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65560
65561         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65562
65563 1998-11-16  Jim Meyering  <meyering@ascend.com>
65564
65565         * m4/lfs.m4: Double-quote the `uname...` expression.
65566
65567 1998-11-14  Jim Meyering  <meyering@ascend.com>
65568
65569         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65570         * m4/stat.m4: Likewise.
65571
65572 1998-11-03  Jim Meyering  <meyering@ascend.com>
65573
65574         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65575         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65576
65577 1998-10-18  Jim Meyering  <meyering@ascend.com>
65578
65579         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65580
65581 1998-10-17  Jim Meyering  <meyering@ascend.com>
65582
65583         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65584         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65585         calls for those previously hard-coded headers.  Instead, take a new
65586         parameter.
65587         (jm_CHECK_DECLARATIONS): Reflect interface change.
65588         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65589         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65590
65591         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65592
65593 1998-10-14  Jim Meyering  <meyering@ascend.com>
65594
65595         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65596         instead of "TZ=America/Vancouver".  From Paul Eggert.
65597
65598 1998-10-11  Jim Meyering  <meyering@ascend.com>
65599
65600         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65601         This adds a test for a recently added compatibility fix for mktime.c.
65602         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65603
65604 1998-09-27  Jim Meyering  <meyering@ascend.com>
65605
65606         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65607
65608         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65609         ../configure.in, including a change from Gordon Matzigkeit to allow
65610         cross-compiling for the Hurd.
65611
65612         * m4/glibc.m4: New file/macro to test for the GNU C Library
65613         versions 1 and 2.  From Gordon Matzigkeit.
65614         Indent.
65615
65616 1998-09-21  Jim Meyering  <meyering@ascend.com>
65617
65618         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65619
65620 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65621
65622         Port nanosecond-resolution times to UnixWare 2.1.2 and
65623         pedantic Solaris 2.6.
65624
65625         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65626         AC_STRUCT_ST_MTIM.
65627         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65628         Generate name of ns member, instead of just 1 or undef.
65629         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65630
65631 1998-08-15  Jim Meyering  <meyering@ascend.com>
65632
65633         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65634         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65635         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65636         instead of jm_TYPE_SSIZE_T.
65637
65638 1998-08-12  Jim Meyering  <meyering@ascend.com>
65639
65640         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65641
65642 1998-08-02  Jim Meyering  <meyering@ascend.com>
65643
65644         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65645         in acconfig.h manually.
65646
65647 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65648
65649         * m4/st_mtim.m4: New file.
65650
65651 1998-07-28  Jim Meyering  <meyering@ascend.com>
65652
65653         * m4/utimes.m4: Undef stat.
65654
65655 1998-07-25  Jim Meyering  <meyering@ascend.com>
65656
65657         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65658         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65659
65660 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65661
65662         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65663         uid and gid actually remain unchanged.
65664
65665 1998-07-07  Jim Meyering  <meyering@ascend.com>
65666
65667         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65668
65669 1998-07-04  Jim Meyering  <meyering@ascend.com>
65670
65671         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65672         to prove that this macro can be used in packages without regex.c.
65673
65674 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65675
65676         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65677         is to be used.
65678
65679 1998-07-03  Jim Meyering  <meyering@ascend.com>
65680
65681         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65682
65683         * m4/gettext.m4: New file -- from gettext-0.10.35.
65684         * m4/lcmessage.m4: Likewise.
65685         * m4/progtest.m4: Likewise.
65686
65687         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65688         * m4/jm-macros.m4: Require the new macro.
65689
65690 1998-06-29  Jim Meyering  <meyering@ascend.com>
65691
65692         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65693         for the definition of NGROUPS (used in a system header included
65694         by sys/mount.h).
65695
65696 1998-06-28  Jim Meyering  <meyering@ascend.com>
65697
65698         * m4/ls-mntd-fs.m4: New file.
65699         * m4/fstypename.m4: New file.
65700
65701         * m4/jm-macros.m4: Require the new macro.
65702         * m4/jm-glibc-io.m4: New file.
65703
65704 1998-05-19  Jim Meyering  <meyering@ascend.com>
65705
65706         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65707         * m4/lchown.m4: New file.
65708
65709         * m4/Makefile.am.in: New file.
65710         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65711
65712 1998-05-14  Jim Meyering  <meyering@ascend.com>
65713
65714         * m4/Makefile.am (EXTRA_DIST): Add them.
65715         * m4/jm-macros.m4: New file.
65716         * m4/utimbuf.m4: New file.
65717
65718 1998-05-12  Jim Meyering  <meyering@ascend.com>
65719
65720         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65721
65722 1998-05-11  Jim Meyering  <meyering@ascend.com>
65723
65724         * m4/isc-posix.m4: New file.
65725
65726 1998-05-10  Jim Meyering  <meyering@ascend.com>
65727
65728         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65729
65730 1998-05-09  Jim Meyering  <meyering@ascend.com>
65731
65732         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65733         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65734         with automake.
65735
65736         * m4/ssize_t.m4: New file.
65737         * m4/mktime.m4: Remove file -- the new automake has this now.
65738
65739 1998-04-26  Jim Meyering  <meyering@ascend.com>
65740
65741         * m4/assert.m4: New file.
65742         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65743
65744 1998-04-05  Jim Meyering  <meyering@ascend.com>
65745
65746         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65747         (jm_PREREQ): Use it here.
65748
65749 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65750
65751         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65752         in acconfig.h.
65753
65754 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65755
65756         * m4/prereq.m4: New file.
65757         * m4/error.m4: New file.
65758         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65759
65760 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65761
65762         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65763         cache-check for the same variable -- that defeated the purpose of
65764         the test; the test program was never run.  This was a problem only
65765         on systems with losing getline functions -- HP-UX 10.20 is one.
65766         Reported by Bjorn Helgaas.
65767
65768 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65769
65770         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65771
65772 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65773
65774         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65775
65776         * m4/const.m4: New file.  Use an initializer in this declaration
65777         typedef int charset[2]; const charset x;
65778         Reported by Bob Glickstein.
65779
65780 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65781
65782         * m4/chown.m4: Fix reversed types on -1 args to chown.
65783         From Kaveh Ghazi.
65784
65785 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65786
65787         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65788         Add lseek and memchr.
65789
65790         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65791         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65792         have a 20-character limit on names.
65793
65794 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65795
65796         * m4/inttypes_h.m4: New file.
65797         * m4/uintmax_t.m4: New file.
65798         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65799
65800
65801         -----
65802
65803         Local Variables:
65804         coding: utf-8
65805         End:
65806
65807         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65808
65809         Copying and distribution of this file, with or without
65810         modification, are permitted provided the copyright notice
65811         and this notice are preserved.